:root {
  --bg: #040b18;
  --bg-2: #0a1630;
  --panel: rgba(7, 18, 37, 0.78);
  --panel-strong: rgba(10, 24, 48, 0.9);
  --line: rgba(106, 168, 255, 0.18);
  --line-strong: rgba(106, 168, 255, 0.38);
  --text: #ecf5ff;
  --muted: #c6d6ee;
  --accent: #74d7ff;
  --accent-2: #34f5c5;
  --accent-3: #ffbf69;
  --danger: #ff7b95;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --max-width: 1320px;
}

@font-face {
  font-family: "Orbitron Local";
  src: url("assets/fonts/Orbitron-wght.ttf") format("truetype");
  font-weight: 400 900;
  font-style: normal;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    linear-gradient(90deg, rgba(255, 191, 105, 0.08) 0%, rgba(255, 191, 105, 0.03) 34%, rgba(116, 215, 255, 0.04) 58%, rgba(116, 215, 255, 0.08) 100%),
    linear-gradient(180deg, #10203f 0%, #0d1a34 100%);
  font-family: "Space Grotesk", sans-serif;
  overflow-x: hidden;
}

body.lightbox-open {
  overflow: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(rgba(255, 191, 105, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 191, 105, 0.08) 1px, transparent 1px),
    radial-gradient(circle at 12% 18%, rgba(255, 191, 105, 0.2) 0 2px, transparent 3px),
    radial-gradient(circle at 24% 42%, rgba(255, 191, 105, 0.16) 0 2px, transparent 3px),
    radial-gradient(circle at 18% 70%, rgba(255, 191, 105, 0.14) 0 2px, transparent 3px);
  background-size: 72px 72px, 72px 72px, auto, auto, auto;
  background-position: left top, left top, left top, left top, left top;
  clip-path: polygon(0 0, 47% 0, 40% 100%, 0 100%);
  opacity: 0.35;
  pointer-events: none;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(rgba(116, 215, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(116, 215, 255, 0.08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(116, 215, 255, 0.12), transparent 42%);
  background-size: 36px 36px, 36px 36px, 100% 100%;
  clip-path: polygon(58% 0, 100% 0, 100% 100%, 50% 100%);
  opacity: 0.3;
  pointer-events: none;
}

.noise,
.grid-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
}

.noise {
  display: none;
}

.grid-glow {
  display: none;
}

.topbar,
.hero,
.section {
  width: min(calc(100% - 32px), var(--max-width));
  margin-inline: auto;
}

.topbar {
  position: fixed;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(4, 11, 24, 0.76);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.brand,
.topnav a,
.button {
  text-decoration: none;
  color: inherit;
}

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

.brand-mark {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  box-shadow: 0 0 20px rgba(52, 245, 197, 0.8);
}

.brand-text,
.eyebrow,
.signal-value,
.panel-head,
.method-index {
  font-family: "Orbitron Local", "Orbitron", sans-serif;
  letter-spacing: 0.08em;
}

.brand-text {
  font-size: 0.85rem;
}

.topnav {
  display: flex;
  gap: 20px;
  margin-right: 48px;
  color: var(--muted);
}

.topnav a {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  padding-bottom: 2px;
}

.topnav a:hover {
  color: var(--text);
}

.hero {
  display: grid;
  grid-template-columns: 1.28fr 0.87fr;
  gap: 30px;
  padding: 72px 0 0;
  align-items: center;
}

main {
  padding-bottom: 200px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--accent-2);
  font-size: 0.74rem;
  text-transform: uppercase;
}

h1,
h2,
h3,
h4 {
  margin: 0;
}

h1 {
  max-width: 18ch;
  font-family: "Orbitron Local", "Orbitron", sans-serif;
  font-size: clamp(1.7rem, 3.2vw, 2.9rem);
  line-height: 1;
  text-transform: none;
}

h1 span {
  display: block;
  color: var(--accent);
  margin-top: 14px;
  max-width: 32ch;
  font-size: clamp(1.05rem, 1.8vw, 1.65rem);
  line-height: 1.15;
  text-transform: none;
  text-shadow: 0 0 24px rgba(116, 215, 255, 0.4);
}

.hero-contact {
  display: grid;
  justify-items: start;
  gap: 8px;
  margin-top: 18px;
}

.hero-contact-row,
.hero-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.hero-contact-marker {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent-2);
  box-shadow: 0 0 14px rgba(52, 245, 197, 0.35);
  flex: 0 0 auto;
}

.hero-contact-image {
  display: block;
  height: 20px;
  width: auto;
  opacity: 0.96;
}

.hero-contact-image-phone {
  max-width: min(290px, 100%);
}

.hero-contact-image-email {
  max-width: min(430px, 100%);
}

.hero-contact-image-linkedin {
  max-width: min(520px, 100%);
}

.hero-contact-link {
  min-height: 20px;
  text-decoration: none;
  line-height: 0;
  transition: opacity 180ms ease, transform 180ms ease;
}

.hero-contact-link:hover {
  opacity: 0.86;
}

.hero-text,
.section-lead,
.profile-card p,
.method-card p,
.detail-block p,
.detail-list,
.project-summary {
  color: var(--muted);
  line-height: 1.7;
}

.hero-text {
  max-width: 72ch;
  font-size: 1.06rem;
  margin: 22px 0 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px 2px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  line-height: 1;
}

.button-primary {
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  color: #031019;
  box-shadow: 0 18px 40px rgba(52, 245, 197, 0.2);
}

.button-secondary {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.02);
}

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

.signal-card,
.radar-card,
.project-card,
.project-detail,
.method-card,
.profile-card {
  border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(10, 23, 46, 0.92), rgba(6, 16, 32, 0.82));
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.signal-card {
  padding: 16px;
  border-radius: var(--radius-lg);
}

.signal-value {
  display: block;
  color: var(--text);
  font-size: 0.9rem;
  white-space: nowrap;
}

.signal-label {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.85rem;
}

.hero-panel {
  display: flex;
  justify-content: flex-end;
  width: 100%;
}

.radar-card {
  width: 100%;
  max-width: 540px;
  padding: 24px;
  border-radius: 32px;
  position: relative;
  overflow: hidden;
}

.panel-head {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  margin-bottom: 28px;
  color: var(--accent-2);
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.panel-statement {
  margin: 0 0 20px;
  color: var(--text);
  font-size: 1.08rem;
  line-height: 1.45;
}

.status-live {
  color: var(--accent-2);
}

/* Alternative precedente gardee dans le HTML en commentaire:
   .system-scene, .system-core, .system-card, etc. */

.math-scene {
  position: relative;
  min-height: 360px;
  margin: 24px auto;
  border-radius: 32px;
  border: 1px solid rgba(123, 180, 255, 0.18);
  background:
    radial-gradient(circle at 18% 18%, rgba(123, 180, 255, 0.07), transparent 24%),
    radial-gradient(circle at 82% 24%, rgba(52, 245, 197, 0.05), transparent 20%),
    linear-gradient(180deg, rgba(4, 12, 25, 0.98), rgba(7, 18, 35, 0.9));
  overflow: hidden;
}

.math-scene::before {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 24px;
  border: 1px solid rgba(123, 180, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.01);
  pointer-events: none;
}

.math-binary {
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: 0.1;
  pointer-events: none;
}

.math-binary::before {
  content: "010011010110010101110100011100100110100101100011001000000011000100110000010011110111001101100011011010010110110001101100011011110111001101100011011011110111000001100101010011100110010001101001011001100110011001100101011100100110010101101110011101000011000000110001";
  position: absolute;
  inset: 8% 6%;
  color: rgba(140, 205, 255, 0.22);
  font-family: "Orbitron", sans-serif;
  font-size: 0.58rem;
  line-height: 1.9;
  letter-spacing: 0.34em;
  word-break: break-all;
  transform: rotate(-8deg);
}

.math-grid {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(123, 180, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(123, 180, 255, 0.04) 1px, transparent 1px),
    linear-gradient(rgba(123, 180, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(123, 180, 255, 0.02) 1px, transparent 1px);
  background-size: 72px 72px, 72px 72px, 18px 18px, 18px 18px;
  mask-image: radial-gradient(circle at center, black 72%, transparent 100%);
}

.math-beam {
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  background: linear-gradient(180deg, transparent, rgba(17, 255, 173, 0.03), rgba(17, 255, 173, 0.08));
  filter: blur(14px);
}

.math-axis {
  position: absolute;
  background: linear-gradient(90deg, transparent, rgba(123, 180, 255, 0.24), transparent);
}

.math-axis-x {
  left: 8%;
  right: 8%;
  top: 50%;
  height: 1px;
}

.math-axis-y {
  top: 10%;
  bottom: 10%;
  left: 50%;
  width: 1px;
  background: linear-gradient(180deg, transparent, rgba(123, 180, 255, 0.24), transparent);
}

.math-waves {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.math-wave-path {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.math-wave-track {
  will-change: contents;
}

.math-wave-path-a {
  stroke: #1cff9a;
  stroke-width: 2.8;
  filter: drop-shadow(0 0 10px rgba(28, 255, 154, 0.3));
}

.math-wave-path-b {
  stroke: #5db8ff;
  stroke-width: 2.2;
  opacity: 0.9;
  filter: drop-shadow(0 0 9px rgba(93, 184, 255, 0.28));
}

.math-wave-path-c {
  stroke: #ff4fd8;
  stroke-width: 2;
  opacity: 0.88;
  filter: drop-shadow(0 0 10px rgba(255, 79, 216, 0.28));
}

.math-wave-path-sum {
  stroke: #ffd84a;
  stroke-width: 3.6;
  opacity: 1;
  filter: drop-shadow(0 0 14px rgba(255, 216, 74, 0.5));
}

.math-now-line {
  stroke: rgba(125, 252, 255, 0.65);
  stroke-width: 1.8;
  filter: drop-shadow(0 0 4px rgba(125, 252, 255, 0.28))
    drop-shadow(0 0 8px rgba(125, 252, 255, 0.16));
}

.math-wave-point {
  stroke: rgba(7, 18, 36, 0.95);
  stroke-width: 3;
}

.math-wave-point-a {
  fill: #1cff9a;
  filter: drop-shadow(0 0 12px rgba(28, 255, 154, 0.55));
}

.math-wave-point-b {
  fill: #5db8ff;
  filter: drop-shadow(0 0 12px rgba(93, 184, 255, 0.55));
}

.math-wave-point-c {
  fill: #ff4fd8;
  filter: drop-shadow(0 0 12px rgba(255, 79, 216, 0.55));
}

.math-wave-point-sum {
  fill: #ffd84a;
  filter: drop-shadow(0 0 14px rgba(255, 216, 74, 0.7));
}

.math-scanline {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 16%;
  background: linear-gradient(90deg, transparent, rgba(28, 255, 154, 0.08), rgba(93, 184, 255, 0.2), rgba(255, 79, 216, 0.14), transparent);
  filter: blur(10px);
  animation: scan-sweep 7s ease-in-out infinite;
}

.phasor-stage {
  position: absolute;
  left: 50%;
  top: 38%;
  width: 220px;
  height: 220px;
  overflow: visible;
  transform: translate(-50%, -50%);
}

.phasor-link {
  fill: none;
  stroke-linecap: round;
}

.phasor-link-a {
  stroke: #1cff9a;
  stroke-width: 3;
  filter: drop-shadow(0 0 8px rgba(28, 255, 154, 0.28));
}

.phasor-link-b {
  stroke: #5db8ff;
  stroke-width: 2.5;
  filter: drop-shadow(0 0 7px rgba(93, 184, 255, 0.24));
}

.phasor-link-c {
  stroke: #ff4fd8;
  stroke-width: 2;
  filter: drop-shadow(0 0 7px rgba(255, 79, 216, 0.24));
}

.phasor-guide {
  fill: none;
  stroke: rgba(123, 180, 255, 0.14);
  stroke-width: 1;
}

.phasor-guide-inner {
  stroke-opacity: 0.7;
}

.phasor-joint,
.phasor-tip {
  fill: #ecf5ff;
}

.phasor-joint {
  filter: drop-shadow(0 0 6px rgba(93, 184, 255, 0.24));
}

.phasor-joint-a {
  fill: #1cff9a;
  filter: drop-shadow(0 0 8px rgba(28, 255, 154, 0.38));
}

.phasor-joint-b {
  fill: #5db8ff;
  filter: drop-shadow(0 0 8px rgba(93, 184, 255, 0.38));
}

.phasor-joint-c {
  fill: #ff4fd8;
  filter: drop-shadow(0 0 8px rgba(255, 79, 216, 0.38));
}

.phasor-tip {
  fill: #ffd84a;
  filter: drop-shadow(0 0 10px rgba(255, 216, 74, 0.5));
}

.harmonic-clocks {
  position: absolute;
  left: 16%;
  right: 16%;
  bottom: 14%;
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.harmonic-clock {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(5, 15, 30, 0.72);
  backdrop-filter: blur(10px);
}

.harmonic-clock-ring {
  fill: none;
  stroke: rgba(123, 180, 255, 0.22);
  stroke-width: 1.5;
}

.harmonic-clock-center {
  fill: #ecf5ff;
}

.harmonic-hand {
  stroke-linecap: round;
}

.harmonic-hand-a {
  stroke: #1cff9a;
  stroke-width: 2.5;
}

.harmonic-hand-b {
  stroke: #5db8ff;
  stroke-width: 2.5;
}

.harmonic-hand-c {
  stroke: #ff4fd8;
  stroke-width: 2.5;
}

.harmonic-labels {
  position: absolute;
  inset: 0;
  pointer-events: none;
  font-family: "Orbitron", sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.harmonic-label {
  position: absolute;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(7, 18, 36, 0.76);
  border: 1px solid rgba(123, 180, 255, 0.14);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
}

.harmonic-label-a {
  top: calc(18% + 20px);
  left: 6%;
  color: #1cff9a;
}

.harmonic-label-b {
  top: calc(33% + 20px);
  left: 6%;
  color: #5db8ff;
}

.harmonic-label-c {
  top: calc(48% + 20px);
  left: 6%;
  color: #ff4fd8;
}

.harmonic-label-sum {
  top: calc(3% + 20px);
  left: 6%;
  color: #ffd84a;
}

.stream-scene {
  position: relative;
  min-height: 360px;
  margin: 24px auto;
  border-radius: 32px;
  border: 1px solid rgba(123, 180, 255, 0.16);
  background:
    radial-gradient(circle at 20% 20%, rgba(123, 180, 255, 0.08), transparent 24%),
    radial-gradient(circle at 80% 80%, rgba(52, 245, 197, 0.06), transparent 26%),
    linear-gradient(180deg, rgba(5, 15, 30, 0.96), rgba(7, 20, 39, 0.82));
  overflow: hidden;
}

.stream-scene::before {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 24px;
  border: 1px solid rgba(123, 180, 255, 0.08);
  pointer-events: none;
}

.stream-ambient {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(circle at 50% 50%, rgba(116, 215, 255, 0.12), transparent 30%),
    conic-gradient(from 0deg, transparent, rgba(123, 180, 255, 0.08), transparent 58%);
  filter: blur(26px);
  animation: stream-rotate 18s linear infinite;
}

.stream-line {
  position: absolute;
  left: -12%;
  right: -12%;
  height: 76px;
  border-radius: 999px;
  border: 1px solid rgba(123, 180, 255, 0.14);
  background:
    linear-gradient(90deg, transparent 0%, rgba(123, 180, 255, 0.08) 26%, rgba(116, 215, 255, 0.22) 50%, rgba(123, 180, 255, 0.08) 74%, transparent 100%);
  filter: blur(0.2px);
  opacity: 0.88;
}

.stream-line::after {
  content: "";
  position: absolute;
  inset: 18px 12%;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
  filter: blur(10px);
}

.stream-line-a {
  top: 14%;
  transform: rotate(-10deg);
  animation: stream-flow-a 10s ease-in-out infinite;
}

.stream-line-b {
  top: 32%;
  transform: rotate(7deg);
  animation: stream-flow-b 12s ease-in-out infinite;
}

.stream-line-c {
  top: 52%;
  transform: rotate(-6deg);
  animation: stream-flow-c 11s ease-in-out infinite;
}

.stream-line-d {
  top: 72%;
  transform: rotate(9deg);
  animation: stream-flow-d 13s ease-in-out infinite;
}

.stream-chip {
  position: absolute;
  min-width: 132px;
  padding: 14px 16px;
  border-radius: 20px;
  border: 1px solid rgba(116, 215, 255, 0.16);
  background: linear-gradient(180deg, rgba(12, 30, 58, 0.88), rgba(7, 18, 36, 0.82));
  box-shadow:
    0 18px 34px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(14px);
}

.stream-chip-k {
  display: block;
  font-family: "Orbitron", sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.stream-chip strong {
  display: block;
  margin-top: 8px;
  color: #f4f8ff;
  line-height: 1.3;
}

.stream-chip-a {
  top: 18%;
  left: 10%;
  animation: chip-float-a 9s ease-in-out infinite;
}

.stream-chip-b {
  top: 40%;
  right: 10%;
  animation: chip-float-b 10s ease-in-out infinite;
}

.stream-chip-c {
  bottom: 12%;
  left: 26%;
  animation: chip-float-c 8s ease-in-out infinite;
}

.flux-scene {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  min-height: 360px;
  margin: 24px auto;
  padding: 26px;
  border-radius: 32px;
  border: 1px solid rgba(123, 180, 255, 0.18);
  background:
    radial-gradient(circle at 50% 22%, rgba(116, 215, 255, 0.12), transparent 28%),
    linear-gradient(180deg, rgba(5, 15, 30, 0.96), rgba(7, 20, 39, 0.8));
  overflow: hidden;
}

.flux-scene::before {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 24px;
  border: 1px solid rgba(123, 180, 255, 0.08);
  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: 42px 42px;
  pointer-events: none;
}

.flux-glow {
  position: absolute;
  inset: -30% -10%;
  background:
    conic-gradient(from 180deg, transparent, rgba(123, 180, 255, 0.08), transparent 60%);
  filter: blur(24px);
  animation: flux-rotate 16s linear infinite;
  pointer-events: none;
}

.flux-column {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-end;
  gap: 12px;
  padding: 18px 16px;
  border-radius: 24px;
  border: 1px solid rgba(116, 215, 255, 0.16);
  background:
    linear-gradient(180deg, rgba(10, 25, 49, 0.72), rgba(6, 16, 32, 0.92));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  overflow: hidden;
}

.flux-column::before {
  content: "";
  position: absolute;
  inset: -35% 0 auto;
  height: 70%;
  background: linear-gradient(180deg, rgba(123, 180, 255, 0.22), transparent);
  animation: flux-fall 5.6s linear infinite;
}

.flux-column::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 45%;
  background: linear-gradient(180deg, transparent, rgba(4, 11, 24, 0.86));
  pointer-events: none;
}

.flux-column-a::before {
  animation-delay: -2.2s;
}

.flux-column-b::before {
  animation-duration: 4.8s;
}

.flux-column-c::before {
  animation-delay: -1.1s;
  animation-duration: 6.2s;
}

.flux-column-main {
  transform: translateY(-8px);
  box-shadow:
    0 0 0 1px rgba(116, 215, 255, 0.08),
    0 18px 40px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.flux-label,
.flux-title {
  position: relative;
  z-index: 1;
}

.flux-label {
  display: block;
  font-family: "Orbitron", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.flux-title {
  position: relative;
  z-index: 1;
  display: block;
  margin-bottom: 6px;
  color: #f4f8ff;
  font-family: "Orbitron", sans-serif;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.flux-node {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  width: fit-content;
  border-radius: 999px;
  border: 1px solid rgba(123, 180, 255, 0.14);
  background: rgba(8, 20, 39, 0.76);
  color: #eef5ff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
  animation: flux-node-drift 5s ease-in-out infinite;
}

.flux-column .flux-node:nth-child(2) {
  animation-delay: -1.4s;
}

.flux-column .flux-node:nth-child(3) {
  animation-delay: -2.6s;
}

.flux-column .flux-node:nth-child(4) {
  animation-delay: -0.8s;
}

.flux-orbit {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 90px;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(52, 245, 197, 0.16);
  background: rgba(7, 20, 39, 0.78);
  color: #eef7ff;
  font-family: "Orbitron", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(10px);
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.18);
}

.flux-orbit-a {
  top: 10%;
  left: 50%;
  animation: orbit-a 10s ease-in-out infinite;
}

.flux-orbit-b {
  right: 10%;
  bottom: 18%;
  animation: orbit-b 12s ease-in-out infinite;
}

.flux-orbit-c {
  left: 8%;
  bottom: 12%;
  animation: orbit-c 11s ease-in-out infinite;
}

.system-scene {
  position: relative;
  aspect-ratio: 1;
  width: 100%;
  margin: 24px auto;
  border-radius: 32px;
  border: 1px solid rgba(123, 180, 255, 0.18);
  background:
    radial-gradient(circle at 50% 50%, rgba(116, 215, 255, 0.14), transparent 28%),
    radial-gradient(circle at 12% 18%, rgba(52, 245, 197, 0.1), transparent 22%),
    linear-gradient(180deg, rgba(5, 15, 30, 0.96), rgba(7, 20, 39, 0.8));
  overflow: hidden;
}

.system-scene::before,
.system-scene::after {
  content: "";
  position: absolute;
  inset: 18px;
  border-radius: 24px;
  pointer-events: none;
}

.system-scene::before {
  border: 1px solid rgba(123, 180, 255, 0.08);
  background:
    linear-gradient(rgba(255, 255, 255, 0.02) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.02) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(circle at center, black 56%, transparent 100%);
}

.system-scene::after {
  background:
    linear-gradient(135deg, transparent 18%, rgba(123, 180, 255, 0.08) 50%, transparent 82%);
  filter: blur(8px);
  opacity: 0.9;
  animation: scene-glow 9s ease-in-out infinite;
}

.system-grid {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 50%, rgba(123, 180, 255, 0.18), transparent 40%),
    linear-gradient(rgba(123, 180, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(123, 180, 255, 0.04) 1px, transparent 1px);
  background-size: auto, 72px 72px, 72px 72px;
  opacity: 0.9;
  animation: grid-drift 18s linear infinite;
}

.system-beam,
.system-pulse,
.system-dot {
  position: absolute;
  pointer-events: none;
}

.system-beam {
  inset: -30%;
  background: linear-gradient(
    135deg,
    transparent 35%,
    rgba(116, 215, 255, 0.04) 44%,
    rgba(116, 215, 255, 0.28) 50%,
    rgba(116, 215, 255, 0.04) 56%,
    transparent 65%
  );
  mix-blend-mode: screen;
  animation: beam-scan 7s linear infinite;
}

.system-pulse {
  top: 50%;
  left: 50%;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  border: 1px solid rgba(116, 215, 255, 0.16);
  transform: translate(-50%, -50%);
  animation: pulse-ring 4.2s ease-out infinite;
}

.system-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 18px rgba(116, 215, 255, 0.8);
}

.system-dot-a {
  top: 24%;
  left: 26%;
  animation: dot-a 8s ease-in-out infinite;
}

.system-dot-b {
  top: 66%;
  right: 18%;
  animation: dot-b 11s ease-in-out infinite;
}

.system-dot-c {
  bottom: 18%;
  left: 42%;
  animation: dot-c 9s ease-in-out infinite;
}

.system-core,
.system-card {
  position: absolute;
  border: 1px solid rgba(116, 215, 255, 0.18);
  background: linear-gradient(180deg, rgba(11, 31, 61, 0.92), rgba(7, 18, 36, 0.84));
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(14px);
}

.system-core {
  top: 50%;
  left: 50%;
  width: 144px;
  height: 144px;
  border-radius: 28px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 20px;
  z-index: 2;
  transform: translate(-50%, -50%);
  animation: core-breathe 5s ease-in-out infinite;
  box-shadow:
    0 0 0 1px rgba(116, 215, 255, 0.08),
    0 0 42px rgba(116, 215, 255, 0.12),
    0 24px 50px rgba(0, 0, 0, 0.28);
}

.system-core::before {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 20px;
  border: 1px solid rgba(116, 215, 255, 0.14);
  pointer-events: none;
}

.system-core-label,
.system-card-k {
  display: block;
  font-family: "Orbitron", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.system-core strong,
.system-card strong {
  display: block;
  margin-top: 8px;
  color: #f3f8ff;
  line-height: 1.35;
}

.system-card {
  min-width: 150px;
  padding: 16px 18px;
  border-radius: 20px;
  z-index: 1;
}

.system-card::before {
  content: "";
  position: absolute;
  inset: auto auto -26px 50%;
  width: 1px;
  height: 36px;
  background: linear-gradient(180deg, rgba(116, 215, 255, 0.3), transparent);
}

.system-card-a {
  top: 14%;
  left: 10%;
  animation: float-a 8s ease-in-out infinite;
}

.system-card-b {
  top: 18%;
  right: 8%;
  animation: float-b 9s ease-in-out infinite;
}

.system-card-c {
  left: 18%;
  bottom: 12%;
  animation: float-c 10s ease-in-out infinite;
}

.panel-metrics {
  display: grid;
  gap: 18px;
}

.metric-k {
  display: block;
  font-size: 0.96rem;
  color: var(--accent);
  text-transform: uppercase;
}

.metric-v {
  display: block;
  margin-top: 6px;
  color: #f0f6ff;
  font-size: 1rem;
  line-height: 1.6;
}

.math-explainer-line {
  position: absolute;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgba(198, 214, 238, 0.56);
  font-family: "Orbitron", sans-serif;
  font-size: 0.56rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  z-index: 5;
  pointer-events: auto;
}

.math-explainer-link {
  color: #7dfcff;
  text-decoration: underline;
  text-decoration-color: rgba(125, 252, 255, 0.55);
  text-underline-offset: 3px;
  border-bottom: none;
  padding-bottom: 0;
}

.math-explainer-link:hover {
  color: #ffffff;
  text-decoration-color: rgba(255, 255, 255, 0.8);
}


.section {
  padding: 36px 0;
}

.section[id] {
  scroll-margin-top: 48px;
}

.section-intro {
  padding-top: 10px;
}

.section-title,
.section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

.section-title {
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

h2 {
  font-family: "Orbitron", sans-serif;
  font-size: clamp(1.4rem, 3vw, 2.15rem);
  line-height: 1.05;
  text-transform: uppercase;
}

.section-lead {
  max-width: 72ch;
  margin-top: 16px;
}

.lead-accent {
  color: #7dfcff;
}

.intro-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 20px;
}

.intro-summary p {
  margin: 0;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  line-height: 1.65;
}

.intro-details {
  margin-top: 18px;
}

.intro-details summary {
  width: fit-content;
  cursor: pointer;
  color: #7dfcff;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.intro-details[open] summary {
  margin-bottom: 12px;
}

.intro-details-body {
  display: grid;
  gap: 2px;
}

.chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
}

.project-layout {
  display: block;
  margin-top: 26px;
}

.project-grid {
  column-count: 2;
  column-gap: 22px;
}

.project-card {
  display: inline-block;
  align-self: start;
  position: relative;
  width: 100%;
  padding: 22px;
  margin: 0 0 22px;
  border-radius: 24px;
  overflow: hidden;
  text-align: left;
  color: var(--text);
  border: 2px solid rgba(116, 215, 255, 0.58);
  box-shadow: 0 20px 70px rgba(0, 0, 0, 0.38);
  transition: box-shadow 220ms ease, border-color 220ms ease;
  break-inside: avoid;
  page-break-inside: avoid;
}

.project-card:hover {
  border-color: rgba(116, 215, 255, 0.58);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.45);
}

.project-card::before {
  content: "";
  position: absolute;
  inset: auto -20% -45% 25%;
  height: 160px;
  background: radial-gradient(circle, rgba(123, 180, 255, 0.18), transparent 68%);
  pointer-events: none;
}

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

.project-domain {
  color: var(--accent-2);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.project-status {
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: var(--accent-2);
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.project-card h3 {
  font-size: 1.3rem;
  line-height: 1.15;
  color: var(--accent);
}

.project-summary {
  margin: 12px 0 18px;
}

.project-readmore {
  color: #7dfcff;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  white-space: nowrap;
  opacity: 1;
  transition: opacity 220ms ease;
}

.project-card.is-expanded .project-readmore {
  opacity: 0;
}

.project-footer {
  display: grid;
  gap: 16px;
}

.project-notes {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  font-size: 0.84rem;
  border-color: rgba(52, 245, 197, 0.52);
  background: rgba(52, 245, 197, 0.04);
  color: var(--text);
}

.detail-topline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: #d7e6fb;
  text-transform: uppercase;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}

.detail-status {
  color: var(--accent-2);
}

.detail-hook {
  margin: 12px 0 18px;
  font-size: inherit;
  color: var(--muted);
  line-height: 1.7;
}

.detail-section-title {
  margin-bottom: 8px;
  font-size: 0.94rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.detail-visual {
  margin-bottom: 18px;
}

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

.detail-gallery.has-rich-media {
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

.gallery-tile {
  min-height: 110px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background:
    linear-gradient(160deg, rgba(79, 134, 232, 0.16), rgba(123, 180, 255, 0.08)),
    linear-gradient(180deg, rgba(7, 20, 39, 0.92), rgba(10, 27, 50, 0.78));
  display: flex;
  align-items: end;
  font-family: "Orbitron", sans-serif;
  font-size: 0.78rem;
  color: var(--text);
}

.gallery-tile-media {
  display: flex;
  min-height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  align-items: stretch;
  flex-direction: column;
}

.gallery-tile-image {
  cursor: zoom-in;
}

.gallery-tile-media img,
.video-placeholder,
.gallery-tile-media iframe {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  min-height: 320px;
  border: 0;
  object-fit: cover;
  background: rgba(5, 14, 28, 0.88);
}

.gallery-tile-media.is-contain {
  background:
    linear-gradient(160deg, rgba(79, 134, 232, 0.1), rgba(123, 180, 255, 0.04)),
    linear-gradient(180deg, rgba(7, 20, 39, 0.94), rgba(10, 27, 50, 0.84));
}

.gallery-tile-media.is-contain img {
  object-fit: contain;
  padding: 18px;
}

.gallery-tile-media figcaption,
.gallery-tile-media span {
  display: block;
  padding: 10px 12px 12px;
  font-family: "Orbitron", sans-serif;
  font-size: 0.72rem;
  color: var(--text);
  line-height: 1.2;
}

.gallery-tile-video {
  background:
    linear-gradient(160deg, rgba(79, 134, 232, 0.12), rgba(123, 180, 255, 0.06)),
    linear-gradient(180deg, rgba(7, 20, 39, 0.92), rgba(10, 27, 50, 0.78));
}

.video-placeholder {
  position: relative;
  padding: 0;
  cursor: pointer;
  border: 0;
  overflow: hidden;
  background: rgba(5, 14, 28, 0.88);
}

.video-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-placeholder::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4, 12, 24, 0.08), rgba(4, 12, 24, 0.4));
}

.video-play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  width: 82px;
  height: 58px;
  border-radius: 18px;
  transform: translate(-50%, -50%);
  background: rgba(255, 68, 68, 0.92);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.4);
}

.video-play-button::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-38%, -50%);
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  border-left: 20px solid #fff;
}

.video-placeholder-fallback {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  font-family: "Orbitron", sans-serif;
  color: var(--text);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.image-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 14px;
  padding: 28px;
  background: rgba(3, 10, 22, 0.9);
  backdrop-filter: blur(10px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.image-lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.image-lightbox-media {
  display: block;
  max-width: min(92vw, 1600px);
  max-height: 82vh;
  width: auto;
  height: auto;
  border-radius: 20px;
  box-shadow: 0 30px 120px rgba(0, 0, 0, 0.55);
  background: rgba(5, 14, 28, 0.96);
}

.image-lightbox-caption {
  margin: 0;
  max-width: min(92vw, 1100px);
  text-align: center;
  color: var(--text);
  font-family: "Orbitron", sans-serif;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
}

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

.project-card-detail {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.project-card-detail-inner {
  opacity: 1;
}

.detail-reveal-step {
  opacity: 1;
  transform: none;
  animation: none;
}

.detail-block h4 {
  margin-bottom: 8px;
  font-size: 0.94rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.detail-list {
  margin: 0;
  padding-left: 18px;
}

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

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

.transversal-skills {
  position: relative;
}

.transversal-skills .section-lead {
  max-width: none;
  margin-top: 8px;
}

.transversal-card {
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(0, 1.22fr);
  gap: 26px;
  align-items: start;
  margin-top: 0;
  padding: 28px;
  border: 1px solid rgba(52, 245, 197, 0.32);
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(52, 245, 197, 0.08), transparent 32%),
    linear-gradient(180deg, rgba(10, 23, 46, 0.94), rgba(6, 16, 32, 0.9));
  box-shadow: var(--shadow);
}

.certificate-preview {
  margin: 0;
  align-self: start;
  line-height: 0;
}

.certificate-preview img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 20px;
  border: 1px solid rgba(116, 215, 255, 0.24);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.3);
  background: rgba(255, 255, 255, 0.96);
}

.transversal-content {
  display: grid;
  gap: 0;
}

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

.transversal-list {
  margin: 16px 0 18px;
  padding-left: 20px;
  color: var(--text);
  line-height: 1.8;
}

.transversal-list li + li {
  margin-top: 4px;
}

.transversal-bridge {
  margin-top: 18px !important;
}

.certificate-link {
  margin-top: 22px;
  width: fit-content;
}

.method-card,
.profile-card {
  min-height: 220px;
  padding: 24px;
  border-radius: 24px;
}

.method-index {
  display: inline-block;
  color: var(--accent-2);
  margin-bottom: 16px;
}

.method-card h3,
.profile-card h3 {
  margin-bottom: 12px;
}

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

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

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

@keyframes beam-scan {
  0% {
    transform: translate(-22%, -18%) rotate(0deg);
  }
  100% {
    transform: translate(22%, 18%) rotate(0deg);
  }
}

@keyframes pulse-ring {
  0% {
    transform: translate(-50%, -50%) scale(0.72);
    opacity: 0;
  }
  18% {
    opacity: 0.6;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.28);
    opacity: 0;
  }
}

@keyframes core-breathe {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.03);
  }
}

@keyframes scene-glow {
  0%,
  100% {
    opacity: 0.55;
  }
  50% {
    opacity: 0.95;
  }
}

@keyframes grid-drift {
  0% {
    transform: translate(0, 0);
  }
  100% {
    transform: translate(36px, 36px);
  }
}

@keyframes dot-a {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.65;
  }
  50% {
    transform: translate(18px, -10px) scale(1.25);
    opacity: 1;
  }
}

@keyframes dot-b {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.55;
  }
  50% {
    transform: translate(-14px, 12px) scale(1.15);
    opacity: 0.95;
  }
}

@keyframes dot-c {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
    opacity: 0.5;
  }
  50% {
    transform: translate(10px, -16px) scale(1.2);
    opacity: 0.9;
  }
}

@keyframes flux-fall {
  0% {
    transform: translateY(-100%);
    opacity: 0;
  }
  18% {
    opacity: 0.75;
  }
  100% {
    transform: translateY(230%);
    opacity: 0;
  }
}

@keyframes flux-node-drift {
  0%,
  100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(8px);
  }
}

@keyframes flux-rotate {
  0% {
    transform: rotate(0deg) scale(1);
  }
  50% {
    transform: rotate(180deg) scale(1.08);
  }
  100% {
    transform: rotate(360deg) scale(1);
  }
}

@keyframes orbit-a {
  0%,
  100% {
    transform: translate(-50%, 0);
  }
  50% {
    transform: translate(-42%, 12px);
  }
}

@keyframes orbit-b {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(-12px, -14px);
  }
}

@keyframes orbit-c {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(14px, -10px);
  }
}

@keyframes stream-rotate {
  0% {
    transform: rotate(0deg) scale(1);
  }
  50% {
    transform: rotate(180deg) scale(1.06);
  }
  100% {
    transform: rotate(360deg) scale(1);
  }
}

@keyframes stream-flow-a {
  0%,
  100% {
    transform: translateX(0) rotate(-10deg);
  }
  50% {
    transform: translateX(22px) rotate(-8deg);
  }
}

@keyframes stream-flow-b {
  0%,
  100% {
    transform: translateX(0) rotate(7deg);
  }
  50% {
    transform: translateX(-18px) rotate(10deg);
  }
}

@keyframes stream-flow-c {
  0%,
  100% {
    transform: translateX(0) rotate(-6deg);
  }
  50% {
    transform: translateX(16px) rotate(-9deg);
  }
}

@keyframes stream-flow-d {
  0%,
  100% {
    transform: translateX(0) rotate(9deg);
  }
  50% {
    transform: translateX(-24px) rotate(6deg);
  }
}

@keyframes chip-float-a {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

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

@keyframes chip-float-c {
  0%,
  100% {
    transform: translateY(0) translateX(0);
  }
  50% {
    transform: translateY(-8px) translateX(10px);
  }
}

@keyframes scan-sweep {
  0%,
  100% {
    transform: translateX(-24%);
    opacity: 0.35;
  }
  50% {
    transform: translateX(560%);
    opacity: 0.9;
  }
}

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

  .intro-summary {
    grid-template-columns: 1fr;
  }

  .project-grid {
    column-count: 2;
  }

  .hero-panel {
    justify-content: stretch;
  }

  .transversal-card {
    grid-template-columns: 1fr;
    padding: 24px;
  }
}

@media (max-width: 760px) {
  .topbar {
    border-radius: 24px;
    padding: 16px;
  }

  .topnav {
    display: none;
    margin-right: 0;
  }

  .signal-strip,
  .detail-grid,
  .detail-gallery {
    grid-template-columns: 1fr;
  }

  .hero-contact {
    justify-items: start;
    gap: 8px;
  }

  .hero-contact-row,
  .hero-contact-link {
    max-width: 100%;
  }

  .hero-contact-image {
    width: auto;
    height: 18px;
    max-width: 100%;
  }

  .project-grid {
    column-count: 1;
  }

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

  .filters {
    justify-content: flex-start;
  }

  .hero {
    padding-top: 78px;
  }

  .flux-scene {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .stream-scene {
    min-height: 300px;
  }

  .math-scene {
    min-height: 420px;
  }

  .phasor-stage {
    left: 6%;
    bottom: 8%;
    width: 156px;
    height: 156px;
  }

  .harmonic-clocks {
    right: 5%;
    bottom: 6%;
    gap: 8px;
  }

  .harmonic-clock {
    width: 58px;
    height: 58px;
  }

  .harmonic-labels {
    font-size: 0.6rem;
  }

  .harmonic-label-a,
  .harmonic-label-b,
  .harmonic-label-c,
  .harmonic-label-sum {
    left: 4%;
  }

  .stream-chip {
    min-width: 116px;
    padding: 12px 14px;
  }

  .stream-chip-a {
    top: 14%;
    left: 7%;
  }

  .stream-chip-b {
    top: 42%;
    right: 6%;
  }

  .stream-chip-c {
    bottom: 10%;
    left: 16%;
  }

  .flux-column-main {
    transform: none;
  }

  .flux-orbit {
    position: relative;
    top: auto;
    right: auto;
    bottom: auto;
    left: auto;
    margin-top: 6px;
  }

  h1 {
    max-width: none;
  }
}
