:root {
  --bg: #07111f;
  --bg-soft: #0b1730;
  --panel: rgba(12, 23, 43, 0.82);
  --panel-strong: rgba(15, 29, 55, 0.96);
  --panel-glass: rgba(10, 20, 37, 0.72);
  --text: #f5f8ff;
  --text-dim: #d6e1f7;
  --text-muted: #8ba1c4;
  --line: rgba(132, 161, 210, 0.16);
  --line-strong: rgba(57, 255, 20, 0.24);
  --accent: #39ff14;
  --accent-soft: #8aff7a;
  --accent-blue: #5fa8ff;
  --warning: #ffca7a;
  --radio-glow: rgba(57, 255, 20, 0.34);
  --radio-smoke: rgba(203, 226, 255, 0.09);
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.34);
  --radius-xl: 28px;
  --radius-lg: 22px;
  --radius-md: 18px;
  --max-width: 1140px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: 'Inter', sans-serif;
  line-height: 1.7;
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 18%, rgba(95, 168, 255, 0.16), transparent 24%),
    radial-gradient(circle at 88% 0%, rgba(57, 255, 20, 0.12), transparent 28%),
    linear-gradient(180deg, #07111f 0%, #081221 42%, #091629 100%);
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 46px 46px;
  opacity: 0.22;
  pointer-events: none;
  mask-image: radial-gradient(circle at center, black 25%, transparent 84%);
}

body::after {
  content: '';
  position: fixed;
  inset: auto auto 8% 4%;
  width: 300px;
  height: 220px;
  background:
    radial-gradient(circle at 30% 55%, var(--radio-smoke), transparent 48%),
    radial-gradient(circle at 62% 42%, rgba(57, 255, 20, 0.05), transparent 36%),
    radial-gradient(circle at 68% 72%, rgba(95, 168, 255, 0.08), transparent 28%);
  filter: blur(18px);
  opacity: 0.8;
  pointer-events: none;
  z-index: 0;
  animation: smoke-drift 18s ease-in-out infinite alternate;
}

body.nav-open {
  overflow: hidden;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

button,
input,
textarea,
select {
  font: inherit;
}

.shell {
  width: min(var(--max-width), calc(100% - 40px));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(7, 17, 31, 0.72);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(132, 161, 210, 0.12);
}

.nav {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-logo,
.eyebrow,
.section-kicker,
.button,
.chip,
.pill,
.meta,
.lang-toggle button,
.nav-links a,
.status-badge,
.tiny-label,
.footer-note,
.footer-links a,
.metric-label {
  font-family: 'IBM Plex Mono', monospace;
}

.nav-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  position: relative;
  color: var(--accent);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.08em;
}

.nav-logo::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 14px var(--radio-glow);
  animation: signal-pulse 1.8s ease-in-out infinite;
}

.nav-logo::after {
  content: 'RADIO ACTIVE';
  position: absolute;
  left: 18px;
  top: calc(100% + 2px);
  color: rgba(138, 255, 122, 0.72);
  font-size: 9px;
  letter-spacing: 0.18em;
}

.nav-menu {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  gap: 18px;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  gap: 22px;
  margin: 0;
  padding: 0;
}

.nav-links a {
  position: relative;
  padding-left: 14px;
  text-decoration: none;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  transition: color 0.2s ease;
}

.nav-links a::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(138, 255, 122, 0.45);
  transform: translateY(-50%);
  opacity: 0.45;
  transition: opacity 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--accent);
}

.nav-links a:hover::before,
.nav-links a.is-active::before {
  background: var(--accent);
  opacity: 1;
  box-shadow: 0 0 10px var(--radio-glow);
  animation: signal-pulse 1.8s ease-in-out infinite;
}

.lang-toggle {
  display: inline-flex;
  align-items: center;
  padding: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(132, 161, 210, 0.12);
}

.lang-toggle button,
.menu-toggle {
  border: 0;
  background: transparent;
  color: var(--text-muted);
}

.lang-toggle button {
  min-width: 48px;
  height: 34px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}

.lang-toggle button.is-active {
  background: rgba(57, 255, 20, 0.14);
  color: var(--accent);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid rgba(132, 161, 210, 0.14);
  cursor: pointer;
}

.menu-toggle svg {
  width: 18px;
  height: 18px;
}

.nav-hire {
  min-width: 118px;
  justify-content: center;
  white-space: nowrap;
  margin-left: 4px;
}

.page {
  position: relative;
}

.page-progress {
  position: fixed;
  inset: 0 auto auto 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, var(--accent), var(--accent-blue));
  transform-origin: left center;
  transform: scaleX(0);
  z-index: 80;
}

.page-transition {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at top left, rgba(95, 168, 255, 0.15), transparent 26%),
    linear-gradient(135deg, rgba(7, 17, 31, 0.98), rgba(9, 22, 41, 0.98));
  z-index: 90;
  pointer-events: none;
  transform: translateY(100%);
}

.ambient-orb {
  position: fixed;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  filter: blur(28px);
  background: radial-gradient(circle, rgba(57, 255, 20, 0.08), transparent 60%);
  pointer-events: none;
  z-index: 0;
  opacity: 0.9;
  transition: transform 0.16s linear;
}

.ambient-orb.orb-blue {
  width: 520px;
  height: 520px;
  background: radial-gradient(circle, rgba(95, 168, 255, 0.12), transparent 62%);
}

main,
section,
footer {
  position: relative;
  z-index: 1;
}

section {
  padding: 90px 0;
}

.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 26px;
  margin-bottom: 34px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(132, 161, 210, 0.09);
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.section-kicker::before,
.meta::before,
.footer-note::before {
  content: '';
  display: inline-block;
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--radio-glow);
  animation: signal-pulse 2.1s ease-in-out infinite;
}

.meta,
.footer-note {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.section-title,
.hero-title,
.card-title,
.quote-title,
.cta-title,
.contact-title,
.page-title,
.project-name,
.service-title,
.info-title,
.timeline-title {
  font-family: 'Source Serif 4', serif;
}

.section-title {
  margin: 0 0 10px;
  font-size: clamp(2.1rem, 4vw, 3.3rem);
  line-height: 1.04;
  letter-spacing: -0.03em;
}

.section-desc {
  max-width: 62ch;
  margin: 0;
  color: var(--text-muted);
}

.hero {
  min-height: calc(100vh - 78px);
  display: flex;
  align-items: center;
  padding-top: 48px;
}

.hero-grid,
.split-grid,
.contact-grid,
.cta-grid,
.projects-grid,
.cards-grid,
.timeline-grid,
.service-grid,
.stats-grid {
  display: grid;
  gap: 22px;
}

.hero-grid {
  grid-template-columns: minmax(0, 1.18fr) minmax(340px, 0.82fr);
  align-items: center;
  gap: 36px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(57, 255, 20, 0.22);
  background: rgba(16, 30, 56, 0.72);
  color: var(--accent);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.eyebrow::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 18px rgba(57, 255, 20, 0.46);
  animation: signal-pulse 1.7s ease-in-out infinite;
}

.hero-title {
  margin: 0 0 20px;
  max-width: 11ch;
  font-size: clamp(3rem, 6vw, 5.5rem);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.hero-lead,
.lede {
  color: var(--text-dim);
  font-size: 18px;
}

.hero-lead {
  max-width: 60ch;
  margin-bottom: 30px;
}

.hero-lead strong,
.lede strong {
  color: var(--text);
  font-weight: 600;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid var(--line);
  text-decoration: none;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  transition: transform 0.25s ease, border-color 0.25s ease, color 0.25s ease, background 0.25s ease;
  overflow: hidden;
}

.button:hover {
  transform: translateY(-2px);
}

.button::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 24%, rgba(255,255,255,0.12) 50%, transparent 78%);
  transform: translateX(-120%);
  transition: transform 0.45s ease;
}

.button:hover::after {
  transform: translateX(120%);
}

.button-primary {
  background: var(--accent);
  color: #041109;
  border-color: var(--accent);
  font-weight: 600;
}

.button-primary:hover {
  background: var(--accent-soft);
}

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

.button-secondary:hover {
  border-color: var(--line-strong);
  color: var(--accent);
}

.button-ghost {
  background: transparent;
  color: var(--text-muted);
}

.stats-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 34px;
}

.stat-card,
.glass-card,
.panel-card,
.project-card,
.service-card,
.contact-card,
.timeline-card,
.feature-card,
.quote-card,
.metric-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.stat-card {
  padding: 18px 18px 16px;
}

.stat-card strong {
  display: block;
  color: var(--accent);
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 8px;
}

.metric-label {
  color: var(--text-muted);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-side {
  display: grid;
  gap: 18px;
}

.glass-card {
  position: relative;
  padding: 26px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(17, 33, 63, 0.9), rgba(10, 21, 40, 0.95));
}

.hero,
.page-hero,
.quote-card,
.glass-card,
.panel-card,
.feature-card {
  position: relative;
}

.hero::before,
.page-hero::before {
  content: '';
  position: absolute;
  left: -2%;
  top: 6%;
  width: 220px;
  height: 160px;
  background:
    radial-gradient(circle at 38% 52%, rgba(223, 239, 255, 0.08), transparent 42%),
    radial-gradient(circle at 62% 38%, rgba(57, 255, 20, 0.05), transparent 30%);
  filter: blur(20px);
  opacity: 0.72;
  pointer-events: none;
  animation: smoke-drift 16s ease-in-out infinite alternate;
}

.quote-card::after,
.glass-card::after,
.feature-card:nth-child(2n + 1)::after {
  content: '';
  position: absolute;
  right: -16px;
  bottom: 8%;
  width: 140px;
  height: 96px;
  background:
    radial-gradient(circle at 35% 48%, rgba(219, 235, 255, 0.08), transparent 40%),
    radial-gradient(circle at 64% 56%, rgba(57, 255, 20, 0.05), transparent 30%);
  filter: blur(16px);
  opacity: 0.6;
  pointer-events: none;
  animation: smoke-drift 14s ease-in-out infinite alternate-reverse;
}

.glass-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at top right, rgba(57, 255, 20, 0.12), transparent 30%),
    linear-gradient(145deg, rgba(255,255,255,0.04), transparent 40%);
  pointer-events: none;
}

.card-title {
  margin: 0 0 10px;
  font-size: 2rem;
}

.glass-card p,
.panel-card p,
.service-card p,
.contact-card p,
.timeline-card p,
.feature-card p,
.quote-card p {
  margin: 0;
  color: var(--text-dim);
}

.terminal {
  border-radius: 18px;
  border: 1px solid rgba(132, 161, 210, 0.14);
  background: rgba(5, 12, 24, 0.74);
  padding: 18px;
}

.terminal::before {
  content: '';
  display: block;
  width: 54px;
  height: 10px;
  margin-bottom: 18px;
  background:
    radial-gradient(circle at 5px 5px, #ff5f56 0 5px, transparent 6px),
    radial-gradient(circle at 27px 5px, #ffbd2e 0 5px, transparent 6px),
    radial-gradient(circle at 49px 5px, #27c93f 0 5px, transparent 6px);
  background-repeat: no-repeat;
}

.terminal-line {
  display: flex;
  gap: 8px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.9;
}

.terminal-key { color: #8dc9ff; }
.terminal-value { color: var(--accent-soft); }
.terminal-note { color: var(--warning); }

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

.panel-card {
  padding: 28px;
}

.chips,
.pill-row,
.tag-list,
.project-tags,
.info-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip,
.pill,
.tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(132, 161, 210, 0.16);
  background: rgba(9, 19, 37, 0.5);
  color: var(--text-dim);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.feature-list,
.bullet-list {
  display: grid;
  gap: 14px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.feature-list li,
.bullet-list li {
  position: relative;
  padding-left: 18px;
  color: var(--text-dim);
}

.feature-list li::before,
.bullet-list li::before {
  content: '•';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--accent);
}

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

.feature-card {
  padding: 22px;
}

.feature-card h3,
.metric-card h3,
.quote-title,
.timeline-title {
  margin: 0 0 8px;
  font-size: 1.25rem;
}

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

.service-card {
  position: relative;
  padding: 24px;
  overflow: hidden;
}

.service-card::after,
.project-card::after,
.metric-card::after {
  content: '';
  position: absolute;
  inset: auto -26px -32px auto;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(57, 255, 20, 0.1), transparent 64%);
  pointer-events: none;
}

.meta {
  display: inline-block;
  color: var(--accent);
  margin-bottom: 14px;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.service-title,
.project-name,
.page-title,
.cta-title,
.contact-title {
  margin: 0 0 10px;
  line-height: 1.08;
}

.service-title {
  font-size: 1.32rem;
}

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

.project-card {
  position: relative;
  padding: 24px;
  overflow: hidden;
  border-radius: 14px;
  transition: border-color 0.25s ease, transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.16);
}

.project-card:hover {
  border-color: rgba(57, 255, 20, 0.4);
  transform: translateY(-5px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.project-preview {
  position: relative;
  height: 138px;
  margin: 0 0 18px;
  border-radius: 18px;
  border: 1px solid rgba(132, 161, 210, 0.12);
  background:
    linear-gradient(180deg, rgba(9, 20, 39, 0.9), rgba(7, 15, 28, 0.96)),
    radial-gradient(circle at 24% 28%, rgba(57, 255, 20, 0.08), transparent 20%),
    radial-gradient(circle at 78% 34%, rgba(95, 168, 255, 0.12), transparent 26%);
  overflow: hidden;
}

.project-preview::before {
  content: '';
  position: absolute;
  inset: 12px 14px auto 14px;
  height: 12px;
  background:
    radial-gradient(circle at 6px 6px, rgba(255,95,86,0.88) 0 4px, transparent 5px),
    radial-gradient(circle at 26px 6px, rgba(255,189,46,0.88) 0 4px, transparent 5px),
    radial-gradient(circle at 46px 6px, rgba(39,201,63,0.88) 0 4px, transparent 5px);
  background-repeat: no-repeat;
}

.project-preview::after {
  content: '';
  position: absolute;
  inset: auto 14px 14px 14px;
  height: 64px;
  border-radius: 14px;
  background:
    linear-gradient(90deg, rgba(57, 255, 20, 0.16), rgba(95, 168, 255, 0.08)),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.03) 0 18px, transparent 18px 36px);
  opacity: 0.9;
}

.project-preview.laundryos {
  background:
    linear-gradient(180deg, rgba(7, 24, 22, 0.94), rgba(7, 16, 28, 0.96)),
    radial-gradient(circle at 22% 22%, rgba(57, 255, 20, 0.13), transparent 24%);
}

.project-preview.genzhoes {
  background:
    linear-gradient(180deg, rgba(22, 12, 20, 0.96), rgba(10, 18, 31, 0.98)),
    radial-gradient(circle at 76% 24%, rgba(255, 202, 122, 0.14), transparent 24%);
}

.project-preview.client-page {
  background:
    linear-gradient(180deg, rgba(8, 20, 39, 0.96), rgba(8, 13, 24, 0.98)),
    radial-gradient(circle at 24% 22%, rgba(95, 168, 255, 0.15), transparent 26%);
}

.project-preview.api-erd {
  background:
    linear-gradient(180deg, rgba(11, 17, 31, 0.96), rgba(8, 15, 26, 0.98)),
    radial-gradient(circle at 72% 26%, rgba(57, 255, 20, 0.1), transparent 24%);
}

.project-preview.franchise {
  background:
    linear-gradient(180deg, rgba(26, 18, 10, 0.96), rgba(9, 15, 26, 0.98)),
    radial-gradient(circle at 26% 24%, rgba(255, 202, 122, 0.14), transparent 22%);
}

.project-preview .preview-bar,
.project-preview .preview-card,
.project-preview .preview-dot {
  position: absolute;
}

.project-preview .preview-bar {
  left: 16px;
  height: 7px;
  border-radius: 999px;
  background: rgba(214, 225, 247, 0.16);
}

.project-preview .preview-bar.one { top: 42px; width: 54%; }
.project-preview .preview-bar.two { top: 57px; width: 72%; }
.project-preview .preview-bar.three { top: 72px; width: 46%; }

.project-preview .preview-card {
  right: 16px;
  top: 38px;
  width: 58px;
  height: 46px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(57,255,20,0.18), rgba(95,168,255,0.12));
  border: 1px solid rgba(132, 161, 210, 0.14);
}

.project-preview .preview-dot {
  bottom: 18px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--radio-glow);
  animation: signal-pulse 1.9s ease-in-out infinite;
}

.project-preview .preview-dot.one { left: 18px; }
.project-preview .preview-dot.two { left: 34px; animation-delay: 0.3s; }
.project-preview .preview-dot.three { left: 50px; animation-delay: 0.6s; }

.project-card.featured {
  border-color: var(--line-strong);
}

.project-top {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
  margin-bottom: 14px;
}

.tiny-label {
  color: var(--text-muted);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.status-badge {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(132, 161, 210, 0.16);
  background: rgba(255, 255, 255, 0.03);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.status-live {
  color: var(--accent);
  border-color: rgba(57, 255, 20, 0.24);
}

.status-dev {
  color: var(--warning);
  border-color: rgba(255, 202, 122, 0.24);
}

.project-name {
  font-size: 1.52rem;
}

.project-card p {
  color: var(--text-dim);
  margin: 0 0 16px;
}

.project-tags .tag {
  font-size: 12px;
}

.project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(30, 53, 96, 0.75);
}

.project-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  padding: 6px 14px;
  border-radius: 5px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.04em;
  transition: all 0.15s ease;
}

.project-link:hover {
  transform: translateY(-2px);
}

.link-code {
  background: transparent;
  border: 1px solid rgba(132, 161, 210, 0.2);
  color: var(--text-dim);
}

.link-code:hover {
  border-color: rgba(214, 225, 247, 0.4);
  color: var(--text);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

.link-demo {
  background: var(--accent);
  color: #04110a;
  border: 1px solid var(--accent);
}

.link-demo:hover {
  background: var(--accent-soft);
  border-color: var(--accent-soft);
  box-shadow: 0 10px 22px rgba(57, 255, 20, 0.18);
}

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

.timeline-card {
  padding: 24px;
}

.timeline-year {
  color: var(--accent);
  margin-bottom: 8px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.cta-grid {
  grid-template-columns: 1.05fr 0.95fr;
  align-items: stretch;
}

.quote-card,
.metric-card,
.contact-card {
  padding: 28px;
}

.quote-card {
  background: linear-gradient(180deg, rgba(14, 28, 52, 0.95), rgba(9, 19, 37, 0.96));
  border-color: var(--line-strong);
}

.quote-title {
  font-size: clamp(2rem, 3vw, 2.8rem);
}

.metrics {
  display: grid;
  gap: 16px;
}

.metric-card strong {
  display: block;
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 1.8rem;
}

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

.contact-card {
  padding: 30px;
}

#contact-form {
  scroll-margin-top: 110px;
}

.contact-list {
  display: grid;
  gap: 12px;
  margin-top: 20px;
}

.contact-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  text-decoration: none;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(132, 161, 210, 0.14);
  background: rgba(8, 18, 33, 0.42);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.contact-link:hover {
  transform: translateX(4px);
  border-color: var(--line-strong);
}

.contact-link:focus-visible,
.button:focus-visible,
.robot-toggle:focus-visible {
  outline: 2px solid rgba(57, 255, 20, 0.58);
  outline-offset: 3px;
}

.contact-link .tiny-label {
  margin-bottom: 4px;
  display: block;
}

.contact-arrow {
  color: var(--accent);
  font-size: 18px;
}

.form-grid {
  display: grid;
  gap: 16px;
}

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

label {
  display: grid;
  gap: 8px;
  color: var(--text-dim);
  font-size: 14px;
}

label > span {
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11px;
  font-family: 'IBM Plex Mono', monospace;
}

input,
textarea {
  width: 100%;
  background: rgba(6, 14, 26, 0.72);
  color: var(--text);
  border: 1px solid rgba(132, 161, 210, 0.16);
  border-radius: 16px;
  padding: 14px 16px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

input:focus,
textarea:focus {
  border-color: rgba(57, 255, 20, 0.34);
  box-shadow: 0 0 0 4px rgba(57, 255, 20, 0.08);
  transform: translateY(-1px);
}

input::placeholder,
textarea::placeholder {
  color: #7489a8;
}

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

.form-note {
  margin: 0;
  color: var(--text-muted);
  font-size: 13px;
}

.form-status {
  margin: 2px 0 0;
  min-height: 24px;
  font-size: 13px;
  color: var(--text-muted);
}

.form-status[data-state="sending"] {
  color: var(--accent-blue);
}

.form-status[data-state="success"] {
  color: var(--accent);
}

.form-status[data-state="error"] {
  color: #ff8a8a;
}

.form-grid button[disabled] {
  opacity: 0.7;
  cursor: wait;
}

.page-hero {
  padding-top: 48px;
}

.page-hero-inner {
  padding: 36px 0 10px;
}

.page-title {
  margin: 0 0 18px;
  max-width: 12ch;
  font-size: clamp(2.8rem, 5vw, 4.7rem);
  line-height: 1;
  letter-spacing: -0.05em;
}

.page-subtitle {
  max-width: 62ch;
  margin: 0;
  color: var(--text-dim);
  font-size: 18px;
}

.footer {
  border-top: 1px solid rgba(132, 161, 210, 0.12);
  padding: 28px 0 40px;
}

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

.footer-note {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 12px;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.footer-links a {
  text-decoration: none;
  color: var(--text-muted);
  font-size: 14px;
}

.footer-links a:hover {
  color: var(--accent);
}

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

.tilt-card {
  transform-style: preserve-3d;
  transition: transform 0.18s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  will-change: transform;
}

.tilt-card:hover {
  border-color: rgba(57, 255, 20, 0.22);
}

.magnetic {
  will-change: transform;
}

@media (max-width: 1024px) {
  .hero-grid,
  .split-grid,
  .cta-grid,
  .contact-grid,
  .timeline-grid,
  .projects-grid,
  .service-grid,
  .cards-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 820px) {
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav-menu {
    position: fixed;
    inset: 79px 20px auto 20px;
    padding: 18px;
    border-radius: 24px;
    background: rgba(7, 17, 31, 0.96);
    border: 1px solid rgba(132, 161, 210, 0.14);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s ease;
  }

  body.nav-open .nav-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav-links {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    flex: none;
    gap: 8px;
  }

  .nav-links a {
    display: block;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.02);
  }

  .nav-hire {
    width: 100%;
    margin-left: 0;
  }

  .hero {
    min-height: auto;
  }
}

@media (max-width: 720px) {
  .shell {
    width: min(var(--max-width), calc(100% - 28px));
  }

  .nav-logo::after {
    font-size: 8px;
    letter-spacing: 0.12em;
  }

  section {
    padding: 72px 0;
  }

  .nav {
    min-height: 72px;
  }

  .hero-title,
  .page-title {
    max-width: none;
  }

  .stats-grid,
  .form-row {
    grid-template-columns: 1fr;
  }

  .button-row {
    flex-direction: column;
  }

  .button {
    width: 100%;
  }

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

.robot-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 70;
}

.robot-toggle {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  width: 22px;
  height: 22px;
  padding: 0;
  display: grid;
  place-items: center;
  transform: translate(-50%, -50%);
  pointer-events: auto;
  border-radius: 50%;
  border: 1px solid rgba(132, 161, 210, 0.18);
  background: radial-gradient(circle at 30% 30%, rgba(95, 168, 255, 0.16), rgba(6, 14, 28, 0.94));
  color: var(--text-dim);
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.robot-toggle:hover {
  border-color: rgba(57, 255, 20, 0.24);
  background: radial-gradient(circle at 30% 30%, rgba(57, 255, 20, 0.18), rgba(6, 14, 28, 0.98));
  box-shadow: 0 0 10px rgba(57, 255, 20, 0.16);
}

.robot-daniel {
  position: fixed;
  left: 0;
  top: 0;
  width: 96px;
  height: 122px;
  padding: 0;
  border: 0;
  background: transparent;
  pointer-events: auto;
  cursor: pointer;
  touch-action: none;
  transform: translate3d(0, 0, 0);
  transition: transform 3.2s cubic-bezier(0.22, 1, 0.36, 1), filter 0.25s ease;
  will-change: transform;
}

.robot-daniel.is-dragging {
  cursor: grabbing;
  transition: none;
}

.robot-daniel:hover {
  filter: drop-shadow(0 0 16px rgba(57, 255, 20, 0.22));
}

.robot-daniel.is-speaking .robot-bubble {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.robot-daniel.is-annoyed .robot-core {
  animation: robot-annoyed 0.24s linear 2, robot-float 4.2s ease-in-out infinite;
}

.robot-daniel.is-waving .robot-arm.right {
  animation: robot-wave 0.5s ease-in-out infinite;
}

.robot-daniel.is-thinking .robot-head {
  animation: robot-think-head 1.2s ease-in-out infinite;
}

.robot-daniel.is-thinking .antenna-dot,
.robot-daniel.is-thinking .antenna-dot::before {
  animation: robot-think-glow 0.9s ease-in-out infinite alternate;
}

.robot-daniel.is-beckoning .robot-arm.left {
  animation: robot-beckon 0.6s ease-in-out infinite;
}

.robot-daniel.is-peeking .robot-eye {
  animation: robot-peek-eyes 0.8s ease-in-out infinite alternate;
}

.robot-daniel.is-peeking .robot-core {
  animation: robot-peek-bob 1.4s ease-in-out infinite;
}

.robot-daniel.is-curious .robot-head {
  animation: robot-curious-tilt 1s ease-in-out infinite;
}

.robot-daniel.is-celebrating .robot-arm.left,
.robot-daniel.is-celebrating .robot-arm.right {
  animation: robot-celebrate-arm 0.45s ease-in-out infinite alternate;
}

.robot-daniel.is-celebrating .robot-core {
  animation: robot-celebrate-bounce 0.7s ease-in-out infinite;
}

.robot-daniel.is-annoyed .robot-mouth {
  width: 14px;
  height: 3px;
  border-radius: 0;
}

.robot-daniel.is-annoyed .robot-eye {
  height: 6px;
  border-radius: 999px;
}

.robot-daniel.is-paused .robot-core {
  animation-play-state: paused;
}

.robot-daniel.is-paused .robot-arm,
.robot-daniel.is-paused .robot-leg,
.robot-daniel.is-paused .robot-head,
.robot-daniel.is-paused .robot-eye {
  animation-play-state: paused;
}

.robot-core {
  position: relative;
  width: 96px;
  height: 122px;
  animation: robot-float 4.2s ease-in-out infinite;
}

.robot-shadow {
  position: absolute;
  left: 50%;
  bottom: -2px;
  width: 52px;
  height: 12px;
  border-radius: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(5, 8, 12, 0.5), transparent 70%);
  filter: blur(2px);
  opacity: 0.8;
}

.robot-head {
  position: absolute;
  left: 16px;
  top: 0;
  width: 64px;
  height: 52px;
  border-radius: 20px;
  border: 1px solid rgba(132, 161, 210, 0.26);
  background: linear-gradient(180deg, rgba(34, 53, 88, 0.98), rgba(12, 22, 39, 0.98));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.03);
}

.robot-head::before,
.robot-head::after {
  content: '';
  position: absolute;
  top: -10px;
  width: 2px;
  height: 12px;
  background: rgba(132, 161, 210, 0.48);
}

.robot-head::before { left: 18px; }
.robot-head::after { right: 18px; }

.robot-head .antenna-dot,
.robot-head .antenna-dot::before {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(57, 255, 20, 0.5);
}

.robot-head .antenna-dot {
  left: 14px;
  top: -14px;
}

.robot-head .antenna-dot::before {
  content: '';
  left: 26px;
  top: 0;
}

.robot-face {
  position: absolute;
  inset: 8px 7px 7px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(9, 19, 37, 0.94), rgba(13, 25, 47, 0.92));
  overflow: hidden;
}

.robot-face::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(95, 168, 255, 0.12), transparent 42%);
}

.robot-eye {
  position: absolute;
  top: 12px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent-blue);
  box-shadow: 0 0 9px rgba(95, 168, 255, 0.34);
  animation: robot-blink 5.2s infinite;
}

.robot-eye::after {
  content: '';
  position: absolute;
  left: 2px;
  top: 2px;
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
}

.robot-eye.left { left: 12px; }
.robot-eye.right { right: 12px; }

.robot-mouth {
  position: absolute;
  left: 50%;
  bottom: 8px;
  width: 14px;
  height: 3px;
  border-radius: 999px;
  transform: translateX(-50%);
  background: rgba(57, 255, 20, 0.9);
  box-shadow: 0 0 8px rgba(57, 255, 20, 0.2);
}

.robot-body {
  position: absolute;
  left: 21px;
  top: 46px;
  width: 54px;
  height: 54px;
  border-radius: 18px;
  border: 1px solid rgba(132, 161, 210, 0.22);
  background: linear-gradient(180deg, rgba(18, 31, 57, 0.98), rgba(10, 20, 37, 0.98));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.02);
}

.robot-toggle-icon {
  position: absolute;
  display: block;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.robot-toggle-pause {
  width: 8px;
  height: 10px;
  opacity: 1;
}

.robot-toggle-pause::before,
.robot-toggle-pause::after {
  content: '';
  position: absolute;
  top: 0;
  width: 2px;
  height: 10px;
  border-radius: 999px;
  background: rgba(245, 248, 255, 0.94);
  box-shadow: 0 0 8px rgba(95, 168, 255, 0.2);
}

.robot-toggle-pause::before {
  left: 1px;
}

.robot-toggle-pause::after {
  right: 1px;
}

.robot-toggle-play {
  width: 0;
  height: 0;
  opacity: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 8px solid rgba(245, 248, 255, 0.94);
  transform: translateX(1px);
  filter: drop-shadow(0 0 6px rgba(95, 168, 255, 0.18));
}

.robot-daniel.is-paused .robot-toggle-pause {
  opacity: 0;
  transform: scale(0.7);
}

.robot-daniel.is-paused .robot-toggle-play {
  opacity: 1;
  transform: translateX(1px) scale(1);
}

.robot-arm,
.robot-leg {
  position: absolute;
  background: linear-gradient(180deg, rgba(142, 168, 207, 0.9), rgba(77, 95, 122, 0.9));
  transform-origin: top center;
}

.robot-arm {
  top: 50px;
  width: 7px;
  height: 28px;
  border-radius: 999px;
  animation: robot-arm-swing 2.8s ease-in-out infinite alternate;
}

.robot-arm.left {
  left: 14px;
  transform: rotate(16deg);
}

.robot-arm.right {
  right: 14px;
  transform: rotate(-16deg);
  animation-delay: -1.4s;
}

.robot-leg {
  top: 88px;
  width: 8px;
  height: 26px;
  border-radius: 999px;
  animation: robot-leg-step 1.8s ease-in-out infinite alternate;
}

.robot-leg.left {
  left: 33px;
}

.robot-leg.right {
  right: 33px;
  animation-delay: -0.9s;
}

.robot-bubble {
  position: absolute;
  left: calc(100% + 18px);
  top: -4px;
  width: min(280px, calc(100vw - 140px));
  min-height: 0;
  max-height: none;
  padding: 14px 16px;
  border-radius: 18px;
  border: 1px solid rgba(132, 161, 210, 0.16);
  background: rgba(8, 18, 33, 0.94);
  box-shadow: var(--shadow);
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px) scale(0.96);
  transition: opacity 0.22s ease, transform 0.22s ease;
  overflow: visible;
}

.robot-daniel.bubble-left .robot-bubble {
  left: auto;
  right: calc(100% + 18px);
}

.robot-bubble::before {
  content: '';
  position: absolute;
  left: -8px;
  top: 22px;
  width: 16px;
  height: 16px;
  transform: rotate(45deg);
  background: rgba(8, 18, 33, 0.94);
  border-left: 1px solid rgba(132, 161, 210, 0.16);
  border-bottom: 1px solid rgba(132, 161, 210, 0.16);
}

.robot-daniel.bubble-left .robot-bubble::before {
  left: auto;
  right: -8px;
  border-left: 0;
  border-bottom: 0;
  border-top: 1px solid rgba(132, 161, 210, 0.16);
  border-right: 1px solid rgba(132, 161, 210, 0.16);
}

.robot-bubble-copy {
  margin: 0;
  color: var(--text);
  font-size: 14px;
  line-height: 1.65;
}

@keyframes robot-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

@keyframes signal-pulse {
  0%, 100% { opacity: 0.5; transform: scale(0.88); }
  50% { opacity: 1; transform: scale(1.08); }
}

@keyframes smoke-drift {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  100% { transform: translate3d(18px, -12px, 0) scale(1.06); }
}

@keyframes robot-arm-swing {
  0% { transform: rotate(18deg); }
  100% { transform: rotate(-8deg); }
}

@keyframes robot-leg-step {
  0% { transform: rotate(8deg); }
  100% { transform: rotate(-8deg); }
}

@keyframes robot-blink {
  0%, 46%, 52%, 100% { transform: scaleY(1); }
  48%, 50% { transform: scaleY(0.18); }
}

@keyframes robot-annoyed {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-2px); }
  50% { transform: translateX(2px); }
  75% { transform: translateX(-1px); }
}

@keyframes robot-wave {
  0%, 100% { transform: rotate(-18deg); }
  50% { transform: rotate(-58deg); }
}

@keyframes robot-think-head {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(-7deg); }
}

@keyframes robot-think-glow {
  0% { opacity: 0.55; box-shadow: 0 0 10px rgba(57, 255, 20, 0.3); }
  100% { opacity: 1; box-shadow: 0 0 18px rgba(57, 255, 20, 0.7); }
}

@keyframes robot-beckon {
  0%, 100% { transform: rotate(18deg); }
  50% { transform: rotate(46deg); }
}

@keyframes robot-peek-eyes {
  0% { transform: scaleX(1) scaleY(1); }
  100% { transform: scaleX(1.35) scaleY(0.8); }
}

@keyframes robot-peek-bob {
  0%, 100% { transform: translateY(0) translateX(0); }
  50% { transform: translateY(-4px) translateX(5px); }
}

@keyframes robot-curious-tilt {
  0%, 100% { transform: rotate(0deg); }
  50% { transform: rotate(7deg); }
}

@keyframes robot-celebrate-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes robot-celebrate-arm {
  0% { transform: rotate(-28deg); }
  100% { transform: rotate(28deg); }
}

@media (max-width: 900px) {
  .robot-daniel {
    width: 82px;
    height: 110px;
  }

  .robot-bubble {
    left: auto;
    right: 0;
    top: calc(100% + 14px);
    width: min(300px, calc(100vw - 28px));
  }

  .robot-daniel.bubble-left .robot-bubble {
    right: 0;
  }

  .robot-bubble::before {
    left: auto;
    right: 28px;
    top: -8px;
    border-left: 0;
    border-bottom: 0;
    border-top: 1px solid rgba(132, 161, 210, 0.16);
    border-right: 1px solid rgba(132, 161, 210, 0.16);
  }

  .robot-daniel.bubble-left .robot-bubble::before {
    right: 28px;
  }
}

@media (max-width: 720px) {
  .robot-daniel {
    width: 76px;
    height: 104px;
  }

  .robot-toggle {
    width: 20px;
    height: 20px;
  }

  .robot-bubble {
    position: absolute;
    left: 50%;
    right: auto;
    top: auto;
    bottom: calc(100% + 14px);
    width: min(340px, calc(100vw - 20px));
    max-height: min(36vh, 260px);
    overflow: auto;
    transform: translate(-42%, 10px) scale(0.96);
  }

  .robot-bubble::before {
    display: block;
    left: 50%;
    right: auto;
    top: auto;
    bottom: -8px;
    margin-left: -8px;
    border-left: 0;
    border-bottom: 0;
    border-top: 1px solid rgba(132, 161, 210, 0.16);
    border-right: 1px solid rgba(132, 161, 210, 0.16);
  }

  .robot-daniel.bubble-left .robot-bubble,
  .robot-daniel.bubble-right .robot-bubble {
    left: 50%;
    right: auto;
  }

  .robot-daniel.bubble-left .robot-bubble::before,
  .robot-daniel.bubble-right .robot-bubble::before {
    left: 50%;
    right: auto;
  }

  .robot-daniel.is-speaking .robot-bubble {
    transform: translate(-42%, 0) scale(1);
  }
}

@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::after,
  .hero::before,
  .page-hero::before,
  .quote-card::after,
  .glass-card::after,
  .feature-card:nth-child(2n + 1)::after,
  .ambient-orb,
  .robot-layer {
    animation: none !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}
