/* ================================================================
   CUSTOM PROPERTIES
================================================================ */
:root {
  --bg:        #060d16;
  --bg-2:      #0a1525;
  --bg-3:      #0f1f35;

  --surface:   rgba(10, 21, 37, 0.65);
  --surface-2: rgba(15, 31, 53, 0.85);

  --border:    rgba(0, 212, 204, 0.10);
  --border-2:  rgba(0, 212, 204, 0.22);

  --cyan:      #00d4cc;
  --cyan-dim:  rgba(0, 212, 204, 0.12);
  --blue:      #3b82f6;
  --blue-dim:  rgba(59, 130, 246, 0.12);

  --text:      #e8f0fe;
  --text-2:    #8fa8c8;
  --text-3:    #4a6480;

  --glow-cyan: 0 0 28px rgba(0, 212, 204, 0.22);
  --glow-blue: 0 0 28px rgba(59, 130, 246, 0.22);

  --radius:    12px;
  --radius-sm: 6px;
  --radius-lg: 20px;

  --ease:      200ms ease;
  --ease-slow: 500ms ease;

  --max-w:     1160px;
  --pad-x:     clamp(1.25rem, 5vw, 2.5rem);
  --spot-x:    50%;
  --spot-y:    12%;
}

/* ================================================================
   RESET & BASE
================================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 72px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.65;
  min-height: 100vh;
  overflow-x: hidden;

  /* Technical grid + ambient glow */
  background-image:
    radial-gradient(circle 420px at var(--spot-x) var(--spot-y), rgba(0, 212, 204, 0.11), transparent 62%),
    radial-gradient(ellipse 80% 45% at 50% -5%,  rgba(0, 212, 204, 0.07) 0%, transparent 65%),
    radial-gradient(ellipse 60% 30% at 80% 80%,  rgba(59, 130, 246, 0.05) 0%, transparent 60%),
    linear-gradient(rgba(0, 212, 204, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 212, 204, 0.025) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 100% 100%, 64px 64px, 64px 64px;
  background-attachment: fixed;
}

img   { max-width: 100%; height: auto; display: block; }
a     { color: inherit; text-decoration: none; }
ul    { list-style: none; }
ol    { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 200;
  width: 100%;
  height: 2px;
  transform-origin: left center;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--cyan), var(--blue));
  box-shadow: 0 0 16px rgba(0, 212, 204, 0.35);
  pointer-events: none;
}

/* ================================================================
   TYPOGRAPHY
================================================================ */
h1, h2, h3 {
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

h1 { font-size: clamp(1.9rem, 4.5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); }
h3 { font-size: clamp(1rem, 2vw, 1.15rem); }

p      { color: var(--text-2); }
strong { color: var(--text); font-weight: 600; }
em     { color: var(--cyan); font-style: normal; }

/* ================================================================
   LAYOUT
================================================================ */
.container {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.section {
  padding-block: clamp(4rem, 8vw, 6.5rem);
}

.section-head {
  text-align: center;
  max-width: 560px;
  margin-inline: auto;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}

.section-sub {
  margin-top: 0.75rem;
  font-size: 1rem;
}

/* ================================================================
   EYEBROW
================================================================ */
.eyebrow {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 0.6rem;
}

/* ================================================================
   FOCUS RING
================================================================ */
:focus-visible {
  outline: 2px solid var(--cyan);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ================================================================
   BUTTONS
================================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  transition: box-shadow var(--ease), transform var(--ease), color var(--ease), background-color var(--ease), border-color var(--ease);
}

.btn.primary {
  background: linear-gradient(135deg, var(--cyan) 0%, var(--blue) 100%);
  color: #040a12;
  box-shadow: 0 4px 20px rgba(0, 212, 204, 0.28);
}
.btn.primary:hover,
.btn.primary:focus-visible {
  box-shadow: 0 6px 32px rgba(0, 212, 204, 0.45);
  transform: translateY(-1px);
}

.btn.outline {
  border: 1px solid var(--border-2);
  color: var(--text);
  background: var(--surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.btn.outline:hover,
.btn.outline:focus-visible {
  border-color: var(--cyan);
  color: var(--cyan);
  background: var(--cyan-dim);
}

.btn.ghost {
  border: 1px solid var(--border);
  color: var(--text-2);
  background: transparent;
}
.btn.ghost:hover,
.btn.ghost:focus-visible {
  border-color: var(--border-2);
  color: var(--text);
  background: rgba(255,255,255,0.04);
}

/* ================================================================
   HEADER / NAV
================================================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(6, 13, 22, 0.82);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border-bottom: 1px solid var(--border);
  transition: background var(--ease-slow), box-shadow var(--ease-slow);
}

.header.scrolled {
  background: rgba(6, 13, 22, 0.96);
  box-shadow: 0 1px 24px rgba(0, 0, 0, 0.5);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  height: 68px;
}

/* Brand */
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  margin-right: auto;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: #040a12;
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

.brand-text  { display: flex; flex-direction: column; }
.brand-name  { font-size: 0.875rem; font-weight: 700; color: var(--text); line-height: 1.2; }
.brand-sub   { font-size: 0.6rem; color: var(--text-3); letter-spacing: 0.08em; text-transform: uppercase; }

/* Desktop nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.125rem;
}

.nav-links a {
  padding: 0.45rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-2);
  transition: color var(--ease), background var(--ease);
}
.nav-links a:hover,
.nav-links a.active,
.nav-links a:focus-visible {
  color: var(--text);
  background: rgba(255,255,255,0.05);
}

.nav-cta {
  background: linear-gradient(135deg, var(--cyan), var(--blue)) !important;
  color: #040a12 !important;
  font-weight: 700 !important;
  margin-left: 0.5rem;
  padding: 0.45rem 1rem !important;
  border-radius: var(--radius) !important;
  box-shadow: 0 2px 12px rgba(0,212,204,0.2);
}
.nav-cta:hover,
.nav-cta:focus-visible {
  box-shadow: 0 4px 20px rgba(0,212,204,0.4) !important;
  transform: translateY(-1px);
  background: linear-gradient(135deg, var(--cyan), var(--blue)) !important;
}

/* Hamburger */
.menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  padding: 9px;
  border-radius: var(--radius-sm);
  transition: background var(--ease);
}
.menu-btn:hover { background: rgba(255,255,255,0.05); }

.bar {
  display: block;
  height: 1.5px;
  width: 100%;
  background: var(--text-2);
  border-radius: 2px;
  transition: transform var(--ease), opacity var(--ease);
}
.menu-btn[aria-expanded="true"] .bar:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .bar:nth-child(2) { opacity: 0; transform: scaleX(0); }
.menu-btn[aria-expanded="true"] .bar:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile nav */
.mobile-nav {
  display: flex;
  flex-direction: column;
  padding: 0 var(--pad-x);
  gap: 0.25rem;
  border-top: 1px solid transparent;
  /* Hidden by default — JS adds .is-open */
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition: max-height 280ms ease, opacity 220ms ease, visibility 0s linear 280ms, border-color 280ms ease, padding 280ms ease;
}
.mobile-nav.is-open {
  max-height: 400px;
  opacity: 1;
  visibility: visible;
  padding-block: 0.75rem 1rem;
  border-top-color: var(--border);
  transition: max-height 280ms ease, opacity 220ms ease, visibility 0s linear 0s, border-color 280ms ease, padding 280ms ease;
}
@media (prefers-reduced-motion: reduce) {
  .mobile-nav { transition: none; }
}
.mobile-nav a {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-2);
  transition: color var(--ease), background-color var(--ease);
}
.mobile-nav a:hover { color: var(--text); background: rgba(255,255,255,0.05); }

.nav-cta-mobile {
  background: linear-gradient(135deg, var(--cyan), var(--blue)) !important;
  color: #040a12 !important;
  font-weight: 700 !important;
  text-align: center;
  border-radius: var(--radius) !important;
  margin-top: 0.25rem;
}

/* ================================================================
   HERO
================================================================ */
.hero {
  padding-top: clamp(4.5rem, 10vw, 7.5rem);
  padding-bottom: clamp(4rem, 8vw, 6rem);
}

.hero-inner {
  max-width: var(--max-w);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.hero-content { max-width: 620px; }

.hero-content h1 {
  margin-bottom: 1.25rem;
  background: linear-gradient(135deg, var(--text) 55%, var(--cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: 2rem;
  max-width: 520px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  margin-bottom: 2rem;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.hero-pills span {
  padding: 0.3rem 0.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.72rem;
  color: var(--text-2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

/* Hero aside */
.hero-aside {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.profile-wrap {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-2);
  box-shadow: var(--glow-cyan);
  aspect-ratio: 1 / 1;
  background: var(--bg-2);
}
.profile-wrap picture {
  display: block;
  width: 100%;
  height: 100%;
}
.profile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.aside-card {
  background: var(--surface);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.875rem 1rem;
}
.aside-label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 0.25rem;
}
.aside-value { font-size: 0.85rem; color: var(--text); }

.signal-card {
  background: linear-gradient(180deg, rgba(0, 212, 204, 0.08), rgba(15, 31, 53, 0.72));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  padding: 1rem;
  overflow: hidden;
}

.signal-head {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}

.signal-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 16px rgba(0, 212, 204, 0.8);
}

.signal-value {
  min-height: 1.45rem;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
}

.signal-bars {
  display: grid;
  gap: 0.35rem;
  margin-top: 0.85rem;
}

.signal-bars span {
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--cyan), transparent);
  opacity: 0.7;
  transform-origin: left center;
}

.signal-bars span:nth-child(2) { opacity: 0.5; }
.signal-bars span:nth-child(3) { opacity: 0.35; }

/* ================================================================
   SCOPE PANEL
================================================================ */
.hero-scope {
  max-width: var(--max-w);
  margin-inline: auto;
  padding-inline: var(--pad-x);
}

.scope-panel {
  margin-top: clamp(1.75rem, 3.5vw, 2.5rem);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  background: rgba(3, 8, 16, 0.96);
  overflow: hidden;
  box-shadow: var(--glow-cyan), 0 0 0 1px rgba(0, 212, 204, 0.04);
}

.scope-bar {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 0.375rem 0.875rem;
  border-bottom: 1px solid rgba(0, 212, 204, 0.08);
  background: rgba(6, 13, 22, 0.7);
}

.scope-bar span {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.6rem;
  letter-spacing: 0.06em;
  color: var(--text-3);
}

.scope-ch   { color: var(--cyan) !important; font-weight: 700; }
.scope-time { color: var(--text-2) !important; }
.scope-trig { color: #f59e0b !important; }
.scope-run  {
  display: inline-flex !important;
  align-items: center;
  gap: 0.375rem;
  margin-left: auto;
  color: #22c55e !important;
  font-weight: 700;
}

.scope-led {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #22c55e;
  flex-shrink: 0;
}

.scope-view {
  position: relative;
  height: 88px;
  overflow: hidden;
  background-image:
    /* Center reference line (slightly brighter) */
    linear-gradient(180deg,
      transparent 50%, rgba(0,212,204,0.14) 50%,
      rgba(0,212,204,0.14) calc(50% + 1px), transparent calc(50% + 1px)),
    /* Grid: 4 columns × 4 rows */
    repeating-linear-gradient(90deg,  rgba(0,212,204,0.05) 0, rgba(0,212,204,0.05) 1px, transparent 1px, transparent 25%),
    repeating-linear-gradient(180deg, rgba(0,212,204,0.05) 0, rgba(0,212,204,0.05) 1px, transparent 1px, transparent 25%),
    /* CRT scanlines */
    repeating-linear-gradient(180deg, transparent 0, transparent 2px, rgba(0,0,0,0.14) 2px, rgba(0,0,0,0.14) 4px);
}

.scope-svg {
  width: 200%;
  height: 100%;
  display: block;
  will-change: transform;
}

.sw {
  fill: none;
  stroke: var(--cyan);
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sw-glow {
  fill: none;
  stroke: var(--cyan);
  stroke-width: 9;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.07;
}

/* ================================================================
   SERVICES
================================================================ */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.125rem;
}

.service-card {
  background: var(--surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  transition: border-color var(--ease), box-shadow var(--ease), transform var(--ease);
  will-change: transform;
}
.service-card:hover {
  border-color: var(--border-2);
  box-shadow: var(--glow-cyan);
  transform: translateY(-2px);
}

.service-icon {
  width: 42px;
  height: 42px;
  padding: 9px;
  border-radius: var(--radius-sm);
  background: var(--cyan-dim);
  border: 1px solid rgba(0, 212, 204, 0.18);
  color: var(--cyan);
  margin-bottom: 1.25rem;
}
.service-icon svg { width: 100%; height: 100%; }

.service-card h3 { margin-bottom: 0.625rem; }
.service-card > p { font-size: 0.875rem; line-height: 1.7; margin-bottom: 1.25rem; }

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}
.tag-list li {
  padding: 0.22rem 0.6rem;
  background: var(--blue-dim);
  border: 1px solid rgba(59, 130, 246, 0.18);
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 600;
  color: #93c5fd;
}

/* ================================================================
   CREDENTIALS
================================================================ */
.creds-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.125rem;
  margin-bottom: 1.25rem;
}

.cred-card {
  background: var(--surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: border-color var(--ease);
}
.cred-card:hover            { border-color: var(--border-2); }
.cred-card.featured         { border-color: rgba(0, 212, 204, 0.28); background: rgba(0, 212, 204, 0.04); }
.cred-card.featured:hover   { border-color: rgba(0, 212, 204, 0.5); }

.cred-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.875rem;
  flex-wrap: wrap;
}
.cred-type {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--cyan);
  padding: 0.18rem 0.5rem;
  background: var(--cyan-dim);
  border: 1px solid rgba(0,212,204,0.18);
  border-radius: 100px;
  white-space: nowrap;
}
.cred-period {
  font-size: 0.7rem;
  color: var(--text-3);
}

.cred-card h3 { margin-bottom: 0.25rem; }
.cred-role {
  font-size: 0.775rem;
  font-weight: 700;
  color: var(--cyan);
  margin-bottom: 0.75rem;
}
.cred-card > p:last-child { font-size: 0.85rem; line-height: 1.6; }

/* Education strip */
.edu-strip {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  padding: 1.25rem 1.5rem;
  background: var(--surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.edu-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  flex: 1;
  min-width: 200px;
}
.edu-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--blue);
}
.edu-item > span:last-child { font-size: 0.83rem; color: var(--text-2); }

.edu-divider {
  width: 1px;
  height: 40px;
  background: var(--border);
  flex-shrink: 0;
}

/* ================================================================
   PROJECTS
================================================================ */
.projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.125rem;
}

.project-card {
  background: var(--surface);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.875rem;
  transition: border-color var(--ease), box-shadow var(--ease), transform var(--ease);
  will-change: transform;
}
.project-card:hover {
  border-color: var(--border-2);
  box-shadow: var(--glow-cyan);
  transform: translateY(-2px);
}

.project-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}
.project-head h3 { flex: 1; }

.project-badge {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.18rem 0.5rem;
  background: var(--blue-dim);
  border: 1px solid rgba(59,130,246,0.18);
  border-radius: 100px;
  color: #93c5fd;
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.project-card > p { font-size: 0.875rem; line-height: 1.7; flex: 1; }

.project-note {
  font-size: 0.78rem !important;
  color: var(--text-3) !important;
  padding-top: 0.75rem;
  border-top: 1px solid var(--border);
  flex: unset !important;
}

.project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
}
.project-tags span {
  padding: 0.22rem 0.625rem;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-2);
}

.project-link {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--cyan);
  align-self: flex-start;
  transition: color var(--ease);
}
.project-link:hover { color: #fff; }

/* ================================================================
   PROCESS
================================================================ */
.process-section {
  background-image:
    linear-gradient(180deg, transparent 0%, rgba(0,212,204,0.025) 50%, transparent 100%);
}

.process-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  position: relative;
}

/* Connector line */
.process-steps::before {
  content: '';
  position: absolute;
  top: 27px;
  left: 8%;
  right: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent 0%, var(--border-2) 20%, var(--border-2) 80%, transparent 100%);
  pointer-events: none;
}

.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 0.75rem;
  position: relative;
}

.step-num {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--bg-2);
  border: 1px solid var(--border-2);
  color: var(--cyan);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  margin-bottom: 1.25rem;
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  transition: background var(--ease), border-color var(--ease), box-shadow var(--ease);
}

.step:hover .step-num {
  background: var(--cyan-dim);
  border-color: var(--cyan);
  box-shadow: var(--glow-cyan);
}

.step-body h3 { font-size: 0.95rem; margin-bottom: 0.5rem; }
.step-body p  { font-size: 0.82rem; line-height: 1.6; }

/* ================================================================
   TECH STACK
================================================================ */
.stack-section {
  background-image:
    linear-gradient(180deg, transparent 0%, rgba(59,130,246,0.025) 50%, transparent 100%);
}

.stack-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.125rem;
}

.stack-group {
  background: var(--surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
}

.stack-group h3 {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-3);
  margin-bottom: 1rem;
}

.stack-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.stack-tags span {
  padding: 0.32rem 0.75rem;
  background: var(--bg);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text);
  transition: border-color var(--ease), color var(--ease);
}
.stack-tags span:hover { border-color: var(--cyan); color: var(--cyan); }

/* ================================================================
   CONTACT
================================================================ */
.contact-section {
  background-image:
    linear-gradient(180deg, transparent 0%, rgba(59,130,246,0.03) 50%, transparent 100%);
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}

.contact-content h2 {
  background: linear-gradient(135deg, var(--text) 40%, var(--cyan) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 1rem;
}

.contact-sub {
  font-size: 1.025rem;
  line-height: 1.75;
  margin-bottom: 2rem;
  max-width: 460px;
}

.contact-btn { font-size: 0.95rem; padding: 0.9rem 1.9rem; }

.social-links {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
  flex-wrap: wrap;
}
.social-links a {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--text-2);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: color var(--ease), border-color var(--ease), background-color var(--ease);
}
.social-links a:hover {
  color: var(--cyan);
  border-color: var(--border-2);
  background: var(--cyan-dim);
}

/* Contact info card */
.contact-card-wrap { display: flex; }

.contact-info-card {
  background: var(--surface);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  padding: 1.75rem;
  min-width: 240px;
  box-shadow: var(--glow-blue);
}

.info-row {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding-block: 1rem;
  border-bottom: 1px solid var(--border);
}
.info-row:first-child { padding-top: 0; }
.info-row:last-child  { padding-bottom: 0; border-bottom: none; }

.info-label {
  font-size: 0.62rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--cyan);
}
.info-value { font-size: 0.875rem; color: var(--text); }

/* ================================================================
   INQUIRY MODAL
================================================================ */
.inquiry-modal {
  position: fixed;
  inset: 0;
  width: min(600px, calc(100vw - 2rem));
  max-height: calc(100dvh - 2rem);
  margin: auto;
  padding: 0;
  border: 1px solid var(--border-2);
  border-radius: var(--radius-lg);
  background: rgba(6, 13, 22, 0.97);
  backdrop-filter: blur(28px);
  -webkit-backdrop-filter: blur(28px);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.7), var(--glow-cyan);
  color: var(--text);
  overflow: hidden auto;
}

.inquiry-modal::backdrop {
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.modal-inner {
  padding: clamp(1.5rem, 4vw, 2rem);
}

.modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.modal-title {
  font-size: clamp(1.1rem, 2.5vw, 1.4rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
  line-height: 1.3;
}

.modal-close {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-2);
  flex-shrink: 0;
  transition: background var(--ease), color var(--ease);
}
.modal-close:hover,
.modal-close:focus-visible { background: rgba(255, 255, 255, 0.1); color: var(--text); }

.inquiry-form { display: flex; flex-direction: column; gap: 1.125rem; }

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.875rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.form-field label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-2);
  letter-spacing: 0.02em;
}

.req { color: var(--cyan); }

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0.65rem 0.875rem;
  border: 1px solid var(--border-2);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font: inherit;
  font-size: 0.875rem;
  resize: vertical;
  transition: border-color var(--ease), background-color var(--ease);
}

.form-field input::placeholder,
.form-field textarea::placeholder { color: var(--text-3); }

.form-field input:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--cyan);
  background: rgba(0, 212, 204, 0.04);
}

.form-fieldset {
  border: none;
  padding: 0;
  margin: 0;
}

.form-fieldset legend {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-2);
  letter-spacing: 0.02em;
  margin-bottom: 0.625rem;
  display: block;
}

.radio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.5rem;
}

.radio-label {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.02);
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-2);
  cursor: pointer;
  text-align: center;
  transition: border-color var(--ease), background-color var(--ease), color var(--ease);
}

.radio-label:hover {
  border-color: var(--border-2);
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.radio-label input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.radio-label:has(input:checked) {
  border-color: var(--cyan);
  background: var(--cyan-dim);
  color: var(--cyan);
  font-weight: 600;
}

.form-actions {
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
  padding-top: 0.25rem;
}

.form-submit {
  width: 100%;
  padding: 0.8rem;
  font-size: 0.9rem;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  color: #040a12;
  font-weight: 700;
  box-shadow: 0 4px 20px rgba(0, 212, 204, 0.25);
  transition: box-shadow var(--ease), transform var(--ease);
}

.form-submit:hover {
  box-shadow: 0 6px 32px rgba(0, 212, 204, 0.45);
  transform: translateY(-1px);
}

.form-note {
  font-size: 0.72rem;
  color: var(--text-3);
  text-align: center;
  line-height: 1.5;
}

/* Success state */
.form-success {
  display: none;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
  padding: 1.5rem 0 0.5rem;
}
.form-success.show { display: flex; }

.success-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--cyan-dim);
  border: 1px solid rgba(0, 212, 204, 0.3);
  color: var(--cyan);
  margin-inline: auto;
}

@media (prefers-reduced-motion: no-preference) {
  @keyframes modal-in {
    from { opacity: 0; transform: scale(0.96) translateY(14px); }
    to   { opacity: 1; transform: scale(1)    translateY(0); }
  }
  @keyframes modal-out {
    from { opacity: 1; transform: scale(1)    translateY(0); }
    to   { opacity: 0; transform: scale(0.96) translateY(8px); }
  }
  .inquiry-modal[open]      { animation: modal-in  220ms cubic-bezier(0.22, 1, 0.36, 1) forwards; }
  .inquiry-modal.is-closing { animation: modal-out 180ms ease forwards; }
}

@media (max-width: 480px) {
  .form-row       { grid-template-columns: 1fr; }
  .radio-grid     { grid-template-columns: repeat(2, 1fr); }
}

/* ================================================================
   FOOTER
================================================================ */
.footer {
  border-top: 1px solid var(--border);
  padding-block: 1.5rem;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.footer-brand { font-size: 0.875rem; font-weight: 700; color: var(--text); }
.footer-copy  { font-size: 0.78rem; color: var(--text-3); }

/* ================================================================
   ANIMATIONS
================================================================ */
@media (prefers-reduced-motion: no-preference) {
  @keyframes signal-scan {
    0%, 100% { transform: scaleX(0.34); }
    50%      { transform: scaleX(1); }
  }

  html.js .fade-in {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  html.js .fade-in.visible { opacity: 1; transform: translateY(0); }
  html.js .fade-in-delay-1 { transition-delay: 0.1s; }
  html.js .fade-in-delay-2 { transition-delay: 0.2s; }
  html.js .fade-in-delay-3 { transition-delay: 0.3s; }

  @keyframes scope-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
  }

  @keyframes led-blink {
    0%, 100% { opacity: 1; box-shadow: 0 0 5px #22c55e; }
    50%       { opacity: 0.5; box-shadow: 0 0 2px #22c55e; }
  }

  @keyframes dot-pulse {
    0%, 100% { box-shadow: 0 0 8px rgba(0, 212, 204, 0.55); }
    50%       { box-shadow: 0 0 20px rgba(0, 212, 204, 0.95), 0 0 36px rgba(0, 212, 204, 0.2); }
  }

  .scope-svg  { animation: scope-scroll 9s linear infinite; }
  .scope-led  { animation: led-blink 2.4s ease-in-out infinite; }
  .signal-dot { animation: dot-pulse 2.2s ease-in-out infinite; }

  .signal-bars span              { animation: signal-scan 2.6s ease-in-out infinite; }
  .signal-bars span:nth-child(2) { animation-delay: 0.25s; }
  .signal-bars span:nth-child(3) { animation-delay: 0.5s; }
}

/* ================================================================
   RESPONSIVE — TABLET
================================================================ */
@media (max-width: 900px) {
  .process-steps {
    grid-template-columns: repeat(3, 1fr);
    row-gap: 2.5rem;
  }
  .process-steps::before { display: none; }
}

/* ================================================================
   RESPONSIVE — MOBILE
================================================================ */
@media (max-width: 768px) {
  .nav-links  { display: none; }
  .menu-btn   { display: flex; }

  /* Hero */
  .hero-inner {
    grid-template-columns: 1fr;
  }
  .hero-aside {
    flex-direction: row;
    flex-wrap: wrap;
    width: 100%;
  }
  .profile-wrap {
    width: 110px;
    height: 110px;
    flex-shrink: 0;
  }
  .aside-card {
    flex: 1;
    min-width: 140px;
  }

  /* Contact */
  .contact-inner {
    grid-template-columns: 1fr;
  }
  .contact-card-wrap {
    width: 100%;
  }
  .contact-info-card {
    min-width: unset;
    width: 100%;
  }

  /* Process */
  .process-steps {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .step {
    flex-direction: row;
    text-align: left;
    align-items: flex-start;
    gap: 1.25rem;
    padding: 0;
  }
  .step-num { margin-bottom: 0; flex-shrink: 0; }

  /* Education strip */
  .edu-divider { display: none; }

  /* Footer */
  .footer-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 768px), (prefers-reduced-motion: reduce) {
  body {
    background-attachment: scroll;
  }
}

@media (max-width: 600px) {
  .hero-scope { display: none; }
}

@media (max-width: 480px) {
  .hero-actions      { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .social-links      { flex-direction: column; }
  .social-links a    { width: 100%; justify-content: center; }
}
