:root {
  --bg-main: #030305;
  --bg-card: rgba(10, 10, 15, 0.85);
  --text-main: #ffffff;
  --text-muted: #888888;
  --accent: #00f3ff;
  --accent-sec: #bc13fe;
  --neon-green: #0aff0a;
  --accent-glow: rgba(0, 243, 255, 0.2);
  --border: rgba(0, 243, 255, 0.1);
  --grid-line: rgba(0, 243, 255, 0.1);
}
body {
  font-family: "Share Tech Mono", monospace;
  background: var(--bg-main);
}
h1,
h2,
h3,
.logo {
  font-family: "Orbitron", sans-serif;
  letter-spacing: 0.02em;
}
nav {
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent);
  border-bottom: 1px solid var(--border);
}
.nav-links a.active {
  color: #000;
  background: linear-gradient(135deg, var(--accent), var(--accent-sec));
}
.card {
  background: var(--bg-card);
  border-color: rgba(255, 255, 255, 0.08);
}
.accordion {
  background: rgba(0, 0, 0, 0.6);
}
.card-media {
  background: #050505;
}
/* Anime.js visual layer */
#cursor {
  position: fixed;
  top: 0;
  left: 0;
  width: 20px;
  height: 20px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  pointer-events: none;
  z-index: 10000;
  transform: translate(-50%, -50%);
  mix-blend-mode: difference;
  transition:
    width 0.2s,
    height 0.2s;
}
#cursor.hovered {
  width: 50px;
  height: 50px;
  background: rgba(0, 243, 255, 0.2);
}
#bg-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  opacity: 0.4;
}
.scanlines {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9000;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0),
    rgba(255, 255, 255, 0) 50%,
    rgba(0, 0, 0, 0.2) 50%,
    rgba(0, 0, 0, 0.2)
  );
  background-size: 100% 4px;
  opacity: 0.3;
}
#boot-screen {
  position: fixed;
  inset: 0;
  background: var(--bg-main);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  animation: background-pulse 8s infinite alternate ease-in-out;
}
.boot-sequence-text.is-visible {
  opacity: 1;
}
.loader-content {
  width: 90%;
  max-width: 450px;
  text-align: left;
}
.boot-sequence-text {
  font-family: Inter, system-ui, sans-serif;
  color: #cccccc;
  font-size: 1.5rem;
  font-weight: 300;
  margin-bottom: 1.5rem;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
  line-height: 1.5;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
}
#boot-text-changer {
  display: inline-block;
  position: relative;
}
.boot-sequence-text .letter {
  display: inline-block;
  opacity: 0;
  transform: translateY(10px);
}
.boot-sequence-text .space {
  width: 0.4em;
}
.boot-word {
  display: inline-block;
  white-space: nowrap;
  margin-right: 0.4em;
}
.progress-bar-wrap {
  width: 100%;
  height: 2px;
  background-color: rgba(0, 243, 255, 0.1);
}
.progress-bar {
  width: 0;
  height: 100%;
  background: var(--accent);
  box-shadow: 0 0 15px var(--accent);
}
@keyframes background-pulse {
  from {
    background: radial-gradient(circle at 50% 50%, rgba(0, 243, 255, 0.05), var(--bg-main) 60%);
  }
  to {
    background: radial-gradient(circle at 50% 50%, rgba(188, 19, 254, 0.05), var(--bg-main) 60%);
  }
}
@keyframes boot-cursor {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0;
  }
}
@keyframes boot-flicker {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
}
@media (max-width: 768px) {
  * {
    cursor: auto;
  }
}

:root {
  --bg-main: #030305;
  --bg-card: rgba(10, 10, 15, 0.85);
  --text-main: #ffffff;
  --text-muted: #888888;
  --accent: #00f3ff;
  --accent-sec: #bc13fe;
  --neon-green: #0aff0a;
  --accent-glow: rgba(0, 243, 255, 0.2);
  --border: rgba(0, 243, 255, 0.1);
  --grid-line: rgba(0, 243, 255, 0.1);
  --nav-h: 64px;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  cursor: none;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 12px);
  overflow-x: hidden;
}
body {
  background: var(--bg-main);
  color: var(--text-main);
  font-family:
    Inter,
    system-ui,
    Segoe UI,
    Roboto,
    Arial,
    sans-serif;
  line-height: 1.6;
  overflow-x: hidden;
  max-width: 100%;
}
body.is-loading #top h1,
body.is-loading #top .subtitle,
body.is-loading #top .hero-contacts,
body.is-loading #top .stats-hud,
body.is-loading #top .hero-cta {
  opacity: 0;
  visibility: hidden;
}
body.is-loading {
  overflow: hidden;
  height: 100vh;
  overscroll-behavior: none;
}
* {
  max-width: 100%;
}
img,
canvas,
embed,
video {
  max-width: 100%;
}
a {
  color: inherit;
  text-decoration: none;
}
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
} /* Nav */
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--nav-h);
  z-index: 1000;
  background: rgba(2, 6, 23, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: transform 0.25s ease;
}
nav.hide {
  transform: translateY(calc(-1 * var(--nav-h)));
}
.nav-inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 0.75rem;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.nav-resume-btn {
  padding: 0.4rem 0.85rem;
  font-size: 0.82rem;
  border-color: rgba(255, 255, 255, 0.12);
}
.logo {
  font-family: "Fira Code", monospace;
  color: var(--accent);
  font-weight: 700;
  white-space: nowrap;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}
.nav-links a {
  color: var(--text-muted);
  font-size: 0.92rem;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  border: 1px solid transparent;
}
.nav-links a:hover {
  color: var(--accent);
}
.nav-links a.active {
  color: #0b1120;
  background: linear-gradient(135deg, var(--accent), var(--accent-sec));
}
.menu-toggle {
  display: none;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.9);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  gap: 4px;
  flex-direction: column;
}
.menu-toggle span {
  width: 1.3rem;
  height: 2px;
  border-radius: 999px;
  background: var(--text-main);
  transition:
    transform 0.25s,
    opacity 0.25s;
}
.menu-toggle.open span:nth-child(1) {
  transform: translateY(4px) rotate(45deg);
}
.menu-toggle.open span:nth-child(2) {
  opacity: 0;
}
.menu-toggle.open span:nth-child(3) {
  transform: translateY(-4px) rotate(-45deg);
}
.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1rem;
}
main {
  padding-top: calc(var(--nav-h) + 0.5rem);
}
section {
  padding: 6rem 0;
  border-bottom: 1px solid var(--border);
} /* Typo */
h1 {
    font-family: 'Orbitron'; font-size: clamp(3rem, 7vw, 6rem); line-height: 0.9; margin: 0;
    text-transform: uppercase; position: relative;
}
h1 span { display: inline-block; }
/* h1 {
  font-size: 3.25rem;
  background: linear-gradient(to right, #fff, var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
  letter-spacing: 0.01em;
} */
h2 {
  font-size: 2.35rem;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  @media (max-width: 768px) {
    font-size: 1.8rem;
  }
}
h2::before {
  content: ">";
  color: var(--accent);
  font-family: "Fira Code", monospace;
}
h3 {
  font-size: 1.35rem;
  color: var(--text-main);
  margin: 1.75rem 0 1rem;
  padding-left: 0.9rem;
}
p {
  color: var(--text-muted);
  max-width: 850px;
  margin-bottom: 1.25rem;
} /* Hero */
header#top {
  padding: 0.5rem 2.5rem 4rem;
  min-height: 68vh;
  display: grid;
  gap: 1.2rem;
}
.hero-subline {
  font-family: "Fira Code", monospace;
  color: var(--accent);
  font-size: 0.9rem;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0.5rem 0 1rem;
}
.hero-stat {
  border-radius: 999px;
  border: 1px solid var(--border);
  padding: 0.5rem 0.85rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(15, 23, 42, 0.8);
}
.hero-stat span {
  color: var(--accent);
  font-family: "Fira Code", monospace;
  font-size: 0.75rem;
}
.hero-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.5rem 0 1.1rem;
}
.stack-pill {
  border-radius: 999px;
  border: 1px solid var(--border);
  padding: 0.25rem 0.7rem;
  font-size: 0.75rem;
  color: var(--text-muted);
  background: rgba(15, 23, 42, 0.9);
  white-space: nowrap;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}
.section-cta {
  margin-top: 1.75rem;
  margin-bottom: 1.5rem;
  padding: 1.25rem 1.5rem;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
  justify-content: center;
  align-items: center;
  text-align: center;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: linear-gradient(120deg, rgba(56, 189, 248, 0.08), rgba(129, 140, 248, 0.06));
}
.section-cta .section-note {
  width: 100%;
  color: var(--text-main);
  margin: 0 0 0.85rem;
}
.section-cta .btn {
  color: var(--text-main);
}
.contact-cta {
  margin-top: 1rem;
  width: 100%;
  justify-content: space-between;
}
.contact-cta .btn {
  flex: 1 1 0;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 1.2rem;
  border-radius: 999px;
  font-size: 0.92rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: 0.25s;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-sec));
  color: #0b1120;
  font-weight: 700;
  box-shadow: 0 10px 30px -15px var(--accent-glow);
}
.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 40px -22px var(--accent-glow);
}
.btn-ghost {
  border-color: var(--border);
  color: var(--text-muted);
  background: rgba(15, 23, 42, 0.9);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: rgba(15, 23, 42, 0.95);
} /* Universal cards/grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.1rem;
}
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  transition:
    transform 0.2s,
    box-shadow 0.2s,
    border-color 0.2s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  transform-style: preserve-3d;
  min-width: 0;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px -10px var(--accent-glow);
  border-color: var(--accent);
}
.card-media {
  height: 200px;
  width: 100%;
  background: #000;
  overflow: hidden;
  position: relative;
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s;
  -webkit-user-drag: none;
  user-select: none;
}
.card:hover .card-media img {
  transform: scale(1.02);
}
.pdf-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #ef4444;
  color: #fff;
  padding: 2px 6px;
  font-size: 0.7rem;
  border-radius: 4px;
  font-weight: 700;
}
.card-info {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.card-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--text-main);
}
.card-path {
  font-family: "Fira Code", monospace;
  font-size: 0.72rem;
  color: var(--text-muted);
  opacity: 0.7;
  overflow-wrap: anywhere;
} /* Accordions */
.accordion {
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 1rem;
  background: rgba(15, 23, 42, 0.7);
  overflow: hidden;
} 
.accordion summary {
  list-style: none;
  cursor: pointer;
  padding: 1rem 1.25rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--text-main);
  font-weight: 800;
}
.accordion summary::-webkit-details-marker {
  display: none;
}
.accordion[open] {
  box-shadow: 0 10px 30px -12px var(--accent-glow);
  border-color: var(--accent);
}
.accordion-content {
  padding: 0 1.2rem 1.2rem;
  position: relative;
}
.accordion-meta {
  font-family: "Fira Code", monospace;
  font-size: 0.78rem;
  color: var(--accent);
  opacity: 0.85;
}
.accordion-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  justify-content: space-between;
}
.accordion-grid .accordion {
  margin: 0;
  flex: 0 1 calc(50% - 1.5rem);
  max-width: 48%;
}
#design .accordion-grid .accordion {
  flex-basis: 100%;
  max-width: 100%;
}
/* Reveal */
.reveal {
  opacity: 0;
  transform: translateY(16px) scale(0.99);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.lazy-item {
  opacity: 0;
  transform: translateY(20px);
}
.lazy-visible {
  opacity: 1;
  transform: translateY(0);
}
/* Narrative tags */
.aida-tag {
  display: inline-block;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--accent);
  font-size: 0.75rem;
  background: rgba(56, 189, 248, 0.08);
  margin-bottom: 0.6rem;
  letter-spacing: 0.02em;
  margin-top: 30px;
}
.aida-tag.action {
  color: var(--accent-sec);
  border-color: rgba(129, 140, 248, 0.5);
  background: rgba(129, 140, 248, 0.08);
} /* Section-specific layouts */ /* 01 DevOps: split layout + sticky metrics band */
#devops {
  background:
    radial-gradient(
      1200px 400px at 10% 10%,
      rgba(56, 189, 248, 0.08),
      transparent 60%
    ),
    radial-gradient(
      900px 300px at 90% 30%,
      rgba(129, 140, 248, 0.07),
      transparent 60%
    );
}
#devops .section-preview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem 1.25rem;
  background: linear-gradient(
    120deg,
    rgba(56, 189, 248, 0.08),
    rgba(129, 140, 248, 0.05)
  );
}
#devops .section-preview img {
  max-width: 100%;
  height: 100%;
  max-height: 320px;
  border-radius: 10px;
  border: 1px solid var(--border);
}
#devops .metrics-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(1rem, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}
@media (max-width: 900px) {
  #devops .metrics-band {
    grid-template-columns: repeat(2, minmax(140px, 1fr));
  }
}
@media (max-width: 520px) {
  #devops .metrics-band {
    grid-template-columns: 1fr;
  }
}
#devops .metric {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.9rem;
}
#devops .metric strong {
  display: block;
  font-size: 1.35rem;
  color: #fff;
}
#devops .metric span {
  font-family: "Fira Code", monospace;
  color: var(--text-muted);
  font-size: 0.8rem;
} 

/* Desjardins */
#desjardins .section-preview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem 1.25rem;
  background: linear-gradient(
    120deg,
    rgba(129, 140, 248, 0.08),
    rgba(56, 189, 248, 0.05)
  );
}
#desjardins .section-preview img {
  max-width: 100%;
  height: 100%;
  max-height: 320px;
  border-radius: 10px;
  border: 1px solid var(--border);
}
#desjardins .metrics-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(1rem, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}
@media (max-width: 900px) {
  #desjardins .metrics-band {
    grid-template-columns: repeat(2, minmax(140px, 1fr));
  }
}
@media (max-width: 520px) {
  #desjardins .metrics-band {
    grid-template-columns: 1fr;
  }
}
#desjardins .metric {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.9rem;
}
#desjardins .metric strong {
  display: block;
  font-size: 1.35rem;
  color: #fff;
}
#desjardins .metric span {
  font-family: "Fira Code", monospace;
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* Open Source */
#open-source .section-preview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem 1.25rem;
  background: linear-gradient(
    120deg,
    rgba(56, 189, 248, 0.08),
    rgba(34, 197, 94, 0.06)
  );
}
#open-source .section-preview img {
  max-width: 100%;
  height: 100%;
  max-height: 320px;
  border-radius: 10px;
  border: 1px solid var(--border);
}
#open-source .metrics-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(1rem, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}
@media (max-width: 900px) {
  #open-source .metrics-band {
    grid-template-columns: repeat(2, minmax(140px, 1fr));
  }
}
@media (max-width: 520px) {
  #open-source .metrics-band {
    grid-template-columns: 1fr;
  }
}
#open-source .metric {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.9rem;
}
#open-source .metric strong {
  display: block;
  font-size: 1.35rem;
  color: #fff;
}
#open-source .metric span {
  font-family: "Fira Code", monospace;
  color: var(--text-muted);
  font-size: 0.8rem;
}
.impact-card {
  margin-top: 1.5rem;
  margin-bottom: 1.75rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  background: rgba(15, 23, 42, 0.75);
  box-shadow: 0 20px 45px -35px rgba(56, 189, 248, 0.35);
}
.impact-card p {
  color: var(--text-main);
  margin-bottom: 1rem;
  font-size: 0.98rem;
  line-height: 1.7;
}
.impact-card p:last-of-type {
  margin-bottom: 1.25rem;
}
.impact-card p strong {
  color: var(--text-main);
}
.impact-card p em {
  color: var(--accent);
  font-style: normal;
}
.accordion-grid {
  margin-top: 1.25rem;
  margin-bottom: 1.5rem;
}
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.9rem;
}
.stat-card {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.9rem 1rem;
  background: rgba(2, 6, 23, 0.7);
}
.stat-card strong {
  display: block;
  font-size: 1.1rem;
  color: var(--text-main);
}
.stat-card span {
  display: block;
  margin-top: 0.35rem;
  color: var(--text-muted);
  font-size: 0.82rem;
}

/* 02 SaaS: sticky proof column + gallery grid */
details .grid {
  display: grid;
  grid-auto-flow: column;
  /* grid-auto-columns: minmax(300px, 1fr); */
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0.75rem 2.75rem;
  scroll-behavior: smooth;
}
details .card {
  scroll-snap-align: start;
  min-width: 300px;
} 
.accordion-scroll-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(2, 6, 23, 0.8);
  color: var(--text-main);
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 18px -12px var(--accent-glow);
  transition: transform 0.2s ease, opacity 0.2s ease;
  z-index: 2;
}
.accordion-scroll-btn:hover {
  transform: translateY(-50%) scale(1.05);
}
.accordion-scroll-btn:disabled {
  opacity: 0.35;
  pointer-events: none;
}
.accordion-scroll-btn.is-hidden {
  opacity: 0;
  pointer-events: none;
}
.accordion-scroll-btn.prev {
  left: 0.35rem;
}
.accordion-scroll-btn.next {
  right: 0.35rem;
}
.accordion-content:not(.has-scroll) .accordion-scroll-btn {
  opacity: 0;
  pointer-events: none;
}
.section-preview {
 margin-bottom: 30px;
 max-width: 100%;
 overflow: hidden;
}
.section-preview img {
  max-width: 100%;
  display: block;
}

#saas .section-preview {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 1.25rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem;
  background: linear-gradient(
    120deg,
    rgba(129, 140, 248, 0.08),
    rgba(56, 189, 248, 0.05)
  );
  
}
#saas .section-preview img {
  width: 100%;
  height: 100%;
  max-height: 340px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--border);
}
#saas .proof {
  position: relative;
}
#saas .proof-card {
  position: sticky;
  top: calc(var(--nav-h) + 14px);
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem;
}
#saas .proof-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 0.6rem;
  margin-top: 0.8rem;
}
@media (max-width: 900px) {
  #saas .proof-grid {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
  }
}
@media (max-width: 520px) {
  #saas .proof-grid {
    grid-template-columns: 1fr;
  }
}
#saas .proof-item {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.6rem;
  background: rgba(2, 6, 23, 0.7);
  text-align: center;
}
#saas .proof-item strong {
  display: block;
  font-size: 1.15rem;
} /* 03 Design: masonry */
#design .section-preview {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem 1.25rem;
  background: linear-gradient(
    120deg,
    rgba(56, 189, 248, 0.06),
    rgba(129, 140, 248, 0.05)
  );
}
#design .section-preview img {
  width: 220px;
  height: 140px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--border);
}



/* 04 Marketing: horizontal scroll-snap */
#marketing .section-preview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.25rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem;
  background: linear-gradient(
    120deg,
    rgba(129, 140, 248, 0.07),
    rgba(56, 189, 248, 0.05)
  );
}
#marketing .section-preview img {
  width: 100%;
  height: 100%;
  max-height: 320px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--border);
}

/* 05 Security: timeline + cert wall */
#security .section-preview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1.25rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem;
  background: linear-gradient(
    120deg,
    rgba(56, 189, 248, 0.06),
    rgba(129, 140, 248, 0.06)
  );
}
#security .section-preview img {
  width: 100%;
  height: 100%;
  max-height: 320px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--border);
}
.timeline {
  position: relative;
  border-left: 2px dashed rgba(56, 189, 248, 0.35);
  margin: 1rem 0 2rem 1rem;
  padding-left: 1.25rem;
}
.timeline .titem {
  margin-bottom: 1rem;
}
.timeline .titem::before {
  content: "";
  position: absolute;
  left: -6px;
  margin-top: 0.45rem;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
}
.timeline .titem strong {
  display: block;
}


/* Contact */
.contact-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  align-items: flex-start;
}
.contact-card {
  flex: 1;
  min-width: 260px;
  background: var(--bg-card);
  border-radius: 16px;
  border: 1px solid var(--border);
  padding: 1.35rem;
}
.contact-item {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-bottom: 1rem;
}
.contact-label {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}
.contact-value a {
  color: var(--accent);
}
.contact-value a:hover {
  text-decoration: underline;
} /* Scroll rail + progress */
.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  z-index: 1200;
  background: rgba(255, 255, 255, 0.05);
}
.scroll-thumb {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--accent), var(--accent-sec));
  transition: width 0.1s linear;
}
.story-rail {
  position: fixed;
  right: 1.2rem;
  top: 28%;
  width: 230px;
  z-index: 1100;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  padding: 0.85rem;
  display: grid;
  gap: 0.6rem;
}
.story-rail h5 {
  margin: 0;
  color: var(--text-main);
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}
.story-step {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  padding: 0.35rem 0.45rem;
  border-radius: 8px;
  border: 1px solid transparent;
}
.story-step span {
  color: var(--text-muted);
  font-size: 0.8rem;
}
.story-step .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
  flex-shrink: 0;
}
.story-step.active {
  border-color: var(--accent);
  background: rgba(56, 189, 248, 0.08);
}
.story-step.active span {
  color: var(--text-main);
}
.story-step.active .dot {
  background: var(--accent);
  box-shadow: 0 0 12px var(--accent);
} /* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.95);
  z-index: 2000;
  justify-content: center;
  align-items: center;
  padding: 2rem;
}
.lightbox.active {
  display: flex;
}
.lightbox-content {
  max-width: 95%;
  max-height: 95%;
  box-shadow: 0 0 50px rgba(56, 189, 248, 0.2);
}
.close-btn {
  position: absolute;
  top: 2rem;
  right: 2rem;
  color: #fff;
  font-size: 3rem;
  cursor: pointer;
  line-height: 1;
} /* Footer */
footer {
  text-align: center;
  padding: 4rem 1rem;
  border-top: 1px solid var(--border);
  margin-top: 4rem;
  color: var(--text-muted);
  font-size: 0.85rem;
}
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: stretch;
}
.footer-copy {
  margin: 0;
  text-align: right;
  align-self: flex-end;
  margin-top: 1.25rem;
}
.footer-groups {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1.25rem;
  text-align: left;
}
.footer-group {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.footer-title {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.footer-links a {
  color: var(--text-muted);
  border-bottom: 1px solid transparent;
  padding-bottom: 0.15rem;
}
.footer-links a:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
} /* Mobile */
@media (max-width: 1024px) {
  .story-rail {
    display: none;
  }
}
@media (max-width: 900px) {
  h1 {
    font-size: 2.55rem;
  }
  .accordion-grid .accordion {
    flex-basis: 100%;
    max-width: 100%;
  }
}
@media (max-width: 768px) {
  .nav-inner {
    padding: 0 1rem;
  }
  .nav-links {
    position: absolute;
    top: 100%;
    right: 0;
    left: 0;
    padding: 0.75rem 1rem 1rem;
    background: rgba(15, 23, 42, 0.98);
    border-bottom: 1px solid var(--border);
    display: none;
    flex-direction: column;
    gap: 0.75rem;
  }
  .nav-links a {
    padding: 0.75rem 1rem;
  }
  .nav-links.open {
    display: flex;
  }
  .menu-toggle {
    display: inline-flex;
  }
  #top {
    padding: 1rem 0.5rem;
  }
  #top h1 {
    font-size: clamp(2.2rem, 8.5vw, 3.2rem);
  }
  .section-preview {
    display: grid;
    grid-template-columns: 1fr !important;
  }
  .section-preview img {
    width: 100%;
    height: auto;
  }
  #design .section-preview {
    flex-direction: column;
    align-items: flex-start;
  }
  #design .section-preview img {
    width: 100%;
    height: auto;
  }
  #saas .proof-card {
    position: relative;
    top: auto;
  }
  #design details .grid {
    column-count: 1;
  }
  .hero-contacts {
    flex-direction: column;
  }
  .hero-contact-item {
    width: 100%;
    justify-content: space-between;
  }
  #top {
    min-height: auto;
  }
  #top h1 {
    font-size: 2rem;
    line-height: 1;
  }
  .hero-cta {
    flex-direction: column;
    align-items: stretch;
  }
  #long_presentation {
    font-size: 0.95rem;
  }
}
@media (hover: none), (pointer: coarse) {
  #cursor {
    display: none;
  }
}
@media (max-width: 520px) {
  .hero-meta {
    flex-direction: column;
  }
  .subtitle {
    font-size: 0.6rem;
  }
  .stats-hud {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 375px) {
  .container {
    padding: 0 0.75rem;
  }
  #top h1 {
    font-size: 2rem;
  }
  .subtitle {
    max-width: 0.6rem;
  }
  .stats-hud {
    padding: 0.75rem;
    gap: 0.75rem;
  }
  .hero-contact-item {
    padding: 0.5rem 0.75rem;
  }
  .hero-stack {
    gap: 0.35rem;
  }
}

/* Hero + Stats HUD (animejs2-inspired) */
#top {
  min-height: 80vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
}
#top h1 {
  font-family: "Orbitron", sans-serif;
  font-size: clamp(2.8rem, 7vw, 6rem);
  line-height: 0.95;
  margin: 0;
  text-transform: uppercase;
  position: relative;
  color: #ffffff;
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
}
#top h1 .word {
  display: inline-block;
  max-width: 100%;
}
#top h1 .letter {
  display: inline-block;
  opacity: 0;
  transform: translateY(40px);
}
.word-outline {
  color: transparent;
  -webkit-text-stroke: 1px #ffffff;
  text-stroke: 1px #ffffff;
}

.subtitle { 
  font-size: 1.2rem;
  color: var(--accent-sec);
  margin-top: 1rem; 
  border-left: 3px solid var(--accent);
  padding-left: 1rem;
  max-width: 600px;
  @media(max-width: 520px) {
      font-size: 0.6rem;
  }
}
.hero-contacts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.2rem;
}
.hero-contact-item {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0.9rem;
  border: 1px solid var(--grid-line);
  border-radius: 999px;
  background: rgba(0, 243, 255, 0.04);
  color: var(--text-main);
  text-decoration: none;
  box-shadow: 0 0 18px rgba(0, 243, 255, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  min-width: 0;
}
.hero-contact-item:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 0 24px rgba(0, 243, 255, 0.2);
}
.hero-contact-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-sec);
}
.hero-contact-value {
  font-size: 0.9rem;
  color: var(--text-main);
  overflow-wrap: anywhere;
  @media (max-width: 768px) {
    font-size: 0.7rem;
  }
}
#selected_tooling {
  margin-top: 1.25rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--grid-line);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.45);
  box-shadow: inset 0 0 20px rgba(0, 243, 255, 0.05);
}
#selected_tooling .contact-label {
  color: var(--accent-sec);
  letter-spacing: 0.08em;
}
#selected_tooling .stack-pill {
  border-color: var(--grid-line);
  background: rgba(0, 243, 255, 0.04);
  color: var(--text-main);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
#selected_tooling .stack-pill:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 0 16px rgba(0, 243, 255, 0.2);
}
#long_presentation {
  margin-top: 1.5rem;
  padding: 1.25rem 1.4rem;
  background: rgba(0, 0, 0, 0.6);
  border-left: 2px solid var(--accent-sec);
  color: #cccccc;
  position: relative;
  overflow: hidden;
}
#long_presentation::before {
  content: "MISSION_LOG // DECLASSIFIED";
  display: block;
  font-size: 0.7rem;
  color: var(--accent-sec);
  margin-bottom: 0.5rem;
  opacity: 0.85;
}
.anime-ready .hero-contact-item,
.anime-ready #selected_tooling .stack-pill,
.anime-ready #long_presentation {
  opacity: 0;
  transform: translateY(16px);
}
/* .stats-hud {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 4rem;
  padding: 1rem;
  border: 1px solid var(--border);
  background: rgba(0, 243, 255, 0.02);
  clip-path: polygon(0 0, 100% 0, 100% 85%, 95% 100%, 0 100%);
} */
.stats-hud {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem;
    margin-top: 0.5rem; padding: 1rem; border: 1px solid var(--border);
    background: rgba(0, 243, 255, 0.02); clip-path: polygon(0 0, 100% 0, 100% 85%, 95% 100%, 0 100%);
}

.stat-item h3 {
  font-size: 2.5rem;
  margin: 0;
  color: var(--accent);
  font-family: "Orbitron", sans-serif;
  padding-left: 0%;
}
.stat-item p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
}
.neon-text {
  color: var(--accent);
}

@media (max-width: 768px) {
  #top h1 {
    font-size: 8vw;
  }
}

/* Multicolor section titles (animejs2-inspired) */
h2 {
  font-family: "Orbitron", sans-serif;
  background: linear-gradient(90deg, var(--accent), var(--accent-sec), #ffffff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-transform: uppercase;
}
h2::before {
  color: var(--accent-sec);
}
.pink-text {
  color: var(--accent-sec);
}
