/* ==========================================================================
   callmesilva.com — Transaction Pulse Redesign
   High-contrast electric mint + magenta on deep navy-black.
   ========================================================================== */

:root {
  /* ------- Surfaces (deep dark with cool blue undertone) ------- */
  --bg-0: #04060d;
  --bg-1: #070b16;
  --bg-2: #0c1220;
  --bg-3: #131b2c;
  --bg-4: #1c2640;

  /* ------- Lines & dividers ------- */
  --line: rgba(255, 255, 255, 0.07);
  --line-2: rgba(255, 255, 255, 0.14);
  --line-3: rgba(255, 255, 255, 0.24);

  /* ------- Primary: electric mint (high-contrast evolution of the original sage) ------- */
  --primary: #00ffa3;
  --primary-bright: #5cffc4;
  --primary-deep: #00b56f;
  --primary-glow: rgba(0, 255, 163, 0.45);
  --primary-soft: rgba(0, 255, 163, 0.12);

  /* ------- Accent: transaction magenta ------- */
  --accent: #ff2d6e;
  --accent-bright: #ff6b96;
  --accent-glow: rgba(255, 45, 110, 0.5);
  --accent-soft: rgba(255, 45, 110, 0.12);

  /* ------- Tertiary: amber pulse ------- */
  --warn: #ffb800;
  --warn-glow: rgba(255, 184, 0, 0.5);

  /* ------- Type ------- */
  --text-1: #ffffff;
  --text-2: #d8dee9;
  --text-3: #8a96aa;
  --text-4: #5a6477;
  --text-5: #3a4357;

  /* ------- Fonts ------- */
  --f-display: 'Space Grotesk', 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --f-body: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --f-mono: 'JetBrains Mono', 'SF Mono', Menlo, Consolas, monospace;

  /* ------- Spacing ------- */
  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4rem;
  --s-9: 6rem;
  --s-10: 8rem;

  /* ------- Radii ------- */
  --r-1: 4px;
  --r-2: 8px;
  --r-3: 14px;
  --r-4: 22px;
  --r-pill: 999px;

  /* ------- Easing ------- */
  --e-out: cubic-bezier(0.22, 1, 0.36, 1);
  --e-soft: cubic-bezier(0.4, 0, 0.2, 1);
  --e-bounce: cubic-bezier(0.68, -0.55, 0.265, 1.55);

  /* ------- Containers ------- */
  --content-w: 1240px;
  --content-narrow: 880px;

  /* ------- Shadows ------- */
  --shadow-glow: 0 0 60px var(--primary-glow);
  --shadow-card: 0 20px 60px -20px rgba(0, 0, 0, 0.6);
}

/* Optional theme: light mode keeps the same accent, inverts surfaces */
[data-theme="light"] {
  --bg-0: #f5f6f8;
  --bg-1: #ffffff;
  --bg-2: #f0f2f6;
  --bg-3: #e6eaf0;
  --bg-4: #d6dde6;
  --line: rgba(0, 0, 0, 0.08);
  --line-2: rgba(0, 0, 0, 0.16);
  --line-3: rgba(0, 0, 0, 0.28);
  --primary: #00b56f;
  --primary-bright: #00d488;
  --primary-deep: #009a5d;
  --primary-glow: rgba(0, 181, 111, 0.35);
  --primary-soft: rgba(0, 181, 111, 0.1);
  --text-1: #04060d;
  --text-2: #1a2030;
  --text-3: #4a5468;
  --text-4: #6a7488;
  --text-5: #aab2c0;
}

/* ==========================================================================
   Reset / base
   ========================================================================== */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-size-adjust: 100%;
}

body {
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-2);
  background: var(--bg-0);
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
}

img,
video,
picture {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s var(--e-out);
}

button {
  font-family: inherit;
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
}

input,
textarea {
  font-family: inherit;
}

ul {
  list-style: none;
}

::selection {
  background: var(--primary);
  color: var(--bg-0);
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-1);
}

::-webkit-scrollbar-thumb {
  background: var(--bg-4);
  border-radius: 999px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--primary-deep);
}

/* ==========================================================================
   Backdrop layers — animated grid, particles, aurora
   ========================================================================== */

.fx-backdrop {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: var(--bg-0);
  overflow: hidden;
}

.fx-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  background-position: -1px -1px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, black 30%, transparent 75%);
  opacity: 0.6;
  animation: gridDrift 60s linear infinite;
}

.fx-aurora {
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(ellipse 40% 30% at 20% 30%, rgba(0, 255, 163, 0.18), transparent 60%),
    radial-gradient(ellipse 35% 25% at 80% 70%, rgba(255, 45, 110, 0.12), transparent 65%),
    radial-gradient(ellipse 30% 20% at 50% 50%, rgba(0, 184, 255, 0.08), transparent 70%);
  filter: blur(60px);
  animation: auroraShift 28s ease-in-out infinite alternate;
}

#particle-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

@keyframes gridDrift {
  from { background-position: -1px -1px; }
  to { background-position: 64px 64px; }
}

@keyframes auroraShift {
  0%   { transform: translate3d(0, 0, 0) rotate(0deg); }
  50%  { transform: translate3d(-3%, 2%, 0) rotate(2deg); }
  100% { transform: translate3d(2%, -2%, 0) rotate(-1deg); }
}

/* ==========================================================================
   Custom cursor (desktop only)
   ========================================================================== */

.cursor-dot,
.cursor-ring {
  position: fixed;
  top: 0;
  left: 0;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%);
  will-change: transform;
}

.cursor-dot {
  width: 6px;
  height: 6px;
  background: var(--primary);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--primary-glow);
  transition: transform 0.05s linear, opacity 0.2s;
}

.cursor-ring {
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--primary);
  border-radius: 50%;
  transition: width 0.25s var(--e-out), height 0.25s var(--e-out),
    background 0.25s var(--e-out), border-color 0.25s var(--e-out),
    opacity 0.2s;
  mix-blend-mode: difference;
}

.cursor-ring.is-hover {
  width: 60px;
  height: 60px;
  background: var(--primary-soft);
  border-color: var(--primary-bright);
}

.cursor-ring.is-magnetic {
  width: 80px;
  height: 80px;
  border-color: var(--accent);
  background: var(--accent-soft);
}

@media (max-width: 991px), (pointer: coarse) {
  .cursor-dot,
  .cursor-ring {
    display: none;
  }
}

/* ==========================================================================
   Loading screen
   ========================================================================== */

#loading-screen {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--bg-0);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: var(--s-5);
  transition: opacity 0.6s var(--e-out), visibility 0.6s var(--e-out);
}

#loading-screen.hidden {
  opacity: 0;
  visibility: hidden;
}

#loading-screen .loader {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background:
    conic-gradient(from 0deg, transparent 0deg, var(--primary) 80deg, transparent 280deg);
  -webkit-mask: radial-gradient(circle, transparent 32px, black 33px);
  mask: radial-gradient(circle, transparent 32px, black 33px);
  animation: loaderSpin 1.1s linear infinite;
  box-shadow: 0 0 40px var(--primary-glow);
}

#loading-screen .loader-label {
  font-family: var(--f-mono);
  font-size: 0.75rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--text-3);
  animation: loaderPulse 1.6s ease-in-out infinite;
}

@keyframes loaderSpin {
  to { transform: rotate(360deg); }
}

@keyframes loaderPulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; color: var(--primary); }
}

/* ==========================================================================
   Top navigation
   ========================================================================== */

.main-navigation {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  padding: var(--s-4) var(--s-6);
  transition: background 0.3s var(--e-out), backdrop-filter 0.3s var(--e-out),
    border-color 0.3s var(--e-out), padding 0.3s var(--e-out);
  border-bottom: 1px solid transparent;
}

.main-navigation.is-stuck {
  background: rgba(7, 11, 22, 0.65);
  backdrop-filter: blur(18px) saturate(160%);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  border-bottom-color: var(--line);
  padding-top: var(--s-3);
  padding-bottom: var(--s-3);
}

[data-theme="light"] .main-navigation.is-stuck {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border-bottom-color: rgba(0, 0, 0, 0.08);
  box-shadow: 0 8px 24px -16px rgba(0, 0, 0, 0.18);
}

[data-theme="light"] .nav-link {
  color: var(--text-2);
}

[data-theme="light"] .nav-link .nav-link-num {
  color: var(--text-4);
}

[data-theme="light"] .nav-brand-text {
  color: var(--text-2);
}

[data-theme="light"] .theme-toggle {
  color: var(--text-2);
  border-color: var(--line-2);
}

.nav-container {
  max-width: var(--content-w);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-5);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  font-family: var(--f-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  position: relative;
}

.nav-brand a {
  color: var(--text-1);
  display: flex;
  align-items: center;
  gap: var(--s-3);
}

.nav-brand-mark {
  width: 36px;
  height: 36px;
  border-radius: var(--r-2);
  background: linear-gradient(135deg, var(--primary), var(--primary-deep));
  display: grid;
  place-items: center;
  font-family: var(--f-mono);
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--bg-0);
  box-shadow: 0 0 20px var(--primary-glow);
  position: relative;
  overflow: hidden;
}

.nav-brand-mark::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(45deg, transparent 30%, rgba(255, 255, 255, 0.4) 50%, transparent 70%);
  transform: translateX(-100%);
  animation: shine 4s ease-in-out infinite;
}

@keyframes shine {
  0%, 70%, 100% { transform: translateX(-100%); }
  85% { transform: translateX(100%); }
}

.nav-brand-text {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-3);
  font-weight: 500;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--s-2);
}

.nav-link {
  position: relative;
  font-family: var(--f-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
  padding: var(--s-2) var(--s-4);
  border-radius: var(--r-pill);
  transition: color 0.2s var(--e-out), background 0.2s var(--e-out);
}

.nav-link:hover,
.nav-link.is-active {
  color: var(--primary);
  background: var(--primary-soft);
}

.nav-link .nav-link-num {
  color: var(--text-5);
  margin-right: var(--s-2);
  font-weight: 500;
}

.nav-link:hover .nav-link-num,
.nav-link.is-active .nav-link-num {
  color: var(--primary-deep);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--s-3);
}

.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line-2);
  display: grid;
  place-items: center;
  color: var(--text-3);
  transition: color 0.2s, border-color 0.2s, background 0.2s, transform 0.3s var(--e-out);
}

.theme-toggle:hover {
  color: var(--primary);
  border-color: var(--primary);
  background: var(--primary-soft);
  transform: rotate(20deg);
}

.nav-cta {
  font-family: var(--f-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: var(--s-2) var(--s-5);
  border-radius: var(--r-pill);
  background: var(--primary);
  color: var(--bg-0);
  font-weight: 600;
  transition: all 0.2s var(--e-out);
  box-shadow: 0 0 0 0 var(--primary-glow);
}

.nav-cta:hover {
  background: var(--primary-bright);
  box-shadow: 0 0 0 6px var(--primary-soft);
  transform: translateY(-1px);
}

@media (max-width: 991px) {
  .nav-links,
  .nav-cta {
    display: none;
  }
}

/* ==========================================================================
   Section progress rail (right edge)
   ========================================================================== */

.section-rail {
  position: fixed;
  top: 50%;
  right: var(--s-5);
  transform: translateY(-50%);
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
}

.section-rail a {
  position: relative;
  display: block;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
}

.section-rail a::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-5);
  transition: all 0.3s var(--e-out);
}

.section-rail a.is-active::before {
  width: 18px;
  border-radius: 99px;
  background: var(--primary);
  box-shadow: 0 0 10px var(--primary-glow);
}

.section-rail a::after {
  content: attr(data-label);
  position: absolute;
  right: 100%;
  top: 50%;
  transform: translateY(-50%) translateX(-12px);
  font-family: var(--f-mono);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-3);
  opacity: 0;
  white-space: nowrap;
  transition: opacity 0.2s, transform 0.2s var(--e-out);
}

.section-rail a:hover::after {
  opacity: 1;
  transform: translateY(-50%) translateX(-18px);
}

@media (max-width: 991px) {
  .section-rail {
    display: none;
  }
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  padding: 0.95rem 1.6rem;
  border-radius: var(--r-pill);
  font-family: var(--f-mono);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s var(--e-out);
  border: 1px solid transparent;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background: var(--primary);
  color: var(--bg-0);
  box-shadow: 0 0 0 0 var(--primary-glow);
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.4) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.6s var(--e-out);
}

.btn-primary:hover {
  background: var(--primary-bright);
  box-shadow: 0 0 0 8px var(--primary-soft), 0 10px 40px var(--primary-glow);
  transform: translateY(-2px);
}

.btn-primary:hover::before {
  transform: translateX(100%);
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}

.btn-outline:hover {
  background: var(--primary-soft);
  box-shadow: 0 0 0 6px var(--primary-soft);
  transform: translateY(-2px);
}

.btn-ghost {
  background: var(--bg-2);
  color: var(--text-2);
  border-color: var(--line-2);
}

.btn-ghost:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--bg-3);
}

.btn-sm {
  padding: 0.55rem 1.1rem;
  font-size: 0.7rem;
}

.btn i {
  transition: transform 0.25s var(--e-out);
}

.btn:hover i {
  transform: translateX(4px);
}

/* ==========================================================================
   Section primitives
   ========================================================================== */

section {
  position: relative;
  padding: clamp(4rem, 9vw, 8rem) var(--s-6);
}

.container {
  max-width: var(--content-w);
  margin: 0 auto;
  position: relative;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: var(--s-4);
}

.eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--primary);
}

.eyebrow .eyebrow-num {
  color: var(--text-5);
  font-weight: 500;
}

.section-title {
  font-family: var(--f-display);
  font-size: clamp(2rem, 4.5vw, 3.5rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.025em;
  color: var(--text-1);
  margin-bottom: var(--s-4);
  max-width: 18ch;
}

.section-title em {
  font-style: normal;
  background: linear-gradient(120deg, var(--primary), var(--primary-bright) 60%, var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.section-title-row {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: var(--s-6);
  margin-bottom: var(--s-8);
}

.section-description {
  color: var(--text-3);
  font-size: 1.0625rem;
  max-width: 56ch;
  line-height: 1.7;
}

/* Reveal animation utility (controlled by JS via IntersectionObserver) */
[data-reveal] {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--e-out), transform 0.8s var(--e-out);
  transition-delay: var(--reveal-delay, 0s);
}

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

[data-reveal="left"] {
  transform: translateX(-40px);
}

[data-reveal="left"].is-visible {
  transform: translateX(0);
}

[data-reveal="right"] {
  transform: translateX(40px);
}

[data-reveal="right"].is-visible {
  transform: translateX(0);
}

[data-reveal="scale"] {
  transform: scale(0.92);
}

[data-reveal="scale"].is-visible {
  transform: scale(1);
}

/* ==========================================================================
   Hero
   ========================================================================== */

.hero {
  min-height: 100vh;
  padding-top: clamp(8rem, 15vh, 11rem);
  padding-bottom: clamp(4rem, 8vh, 6rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-2) 30%, var(--line-2) 70%, transparent);
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  margin-bottom: var(--s-6);
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-3);
}

.hero-meta .pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 12px var(--primary-glow);
  position: relative;
  flex-shrink: 0;
}

.hero-meta .pulse-dot::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 50%;
  border: 1.5px solid var(--primary);
  animation: pulseRing 2s cubic-bezier(0.22, 1, 0.36, 1) infinite;
}

@keyframes pulseRing {
  0% { transform: scale(0.6); opacity: 1; }
  100% { transform: scale(2.2); opacity: 0; }
}

.hero-meta-divider {
  color: var(--text-5);
  font-weight: 300;
}

.hero-title {
  font-family: var(--f-display);
  font-size: clamp(3.5rem, 11vw, 9.5rem);
  font-weight: 600;
  line-height: 0.92;
  letter-spacing: -0.045em;
  color: var(--text-1);
  margin-bottom: var(--s-6);
}

.hero-title .word {
  display: inline-block;
  perspective: 800px;
}

.hero-title .char {
  display: inline-block;
  transform-origin: 50% 100%;
}

.hero-title .accent-word {
  position: relative;
  background: linear-gradient(120deg, var(--primary), var(--primary-bright) 50%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 30px var(--primary-glow));
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  margin-bottom: var(--s-6);
  font-family: var(--f-display);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 500;
  color: var(--text-2);
  letter-spacing: -0.01em;
}

.hero-tag .tag-bracket {
  color: var(--primary);
  font-weight: 400;
}

.hero-description {
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text-3);
  max-width: 56ch;
  margin-bottom: var(--s-7);
}

.hero-description strong {
  color: var(--text-1);
  font-weight: 500;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-4);
  margin-bottom: var(--s-9);
}

/* Hero stats strip - terminal-style */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-5);
  padding-top: var(--s-7);
  border-top: 1px solid var(--line);
}

.hero-stat {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}

.hero-stat-value {
  font-family: var(--f-display);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 600;
  color: var(--text-1);
  line-height: 1;
  letter-spacing: -0.02em;
}

.hero-stat-value .stat-suffix {
  color: var(--primary);
  margin-left: 2px;
}

.hero-stat-label {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-3);
}

@media (max-width: 768px) {
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }
}

/* Scroll cue */
.hero-scroll {
  position: absolute;
  bottom: var(--s-7);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-2);
  font-family: var(--f-mono);
  font-size: 0.65rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--text-3);
}

.hero-scroll .scroll-line {
  width: 1px;
  height: 56px;
  background: linear-gradient(to bottom, var(--primary), transparent);
  position: relative;
  overflow: hidden;
}

.hero-scroll .scroll-line::after {
  content: '';
  position: absolute;
  top: -56px;
  left: 0;
  right: 0;
  height: 56px;
  background: linear-gradient(to bottom, transparent, var(--primary));
  animation: scrollCue 2.5s cubic-bezier(0.4, 0, 0.2, 1) infinite;
}

@keyframes scrollCue {
  0% { transform: translateY(0); }
  60% { transform: translateY(112px); }
  100% { transform: translateY(112px); opacity: 0; }
}

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

/* ==========================================================================
   About — asymmetric profile
   ========================================================================== */

.about {
  background: var(--bg-1);
  border-top: 1px solid var(--line);
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

@media (max-width: 991px) {
  .about-grid {
    grid-template-columns: 1fr;
  }
}

.profile-card {
  position: relative;
  perspective: 1500px;
}

.profile-frame {
  position: relative;
  border-radius: var(--r-4);
  overflow: hidden;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  transform-style: preserve-3d;
  transition: transform 0.4s var(--e-out);
  will-change: transform;
}

.profile-frame::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, transparent 30%, var(--primary-soft) 65%, transparent 100%);
  z-index: 2;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0;
  transition: opacity 0.4s var(--e-out);
}

.profile-card:hover .profile-frame::before {
  opacity: 1;
}

.profile-frame img {
  width: 100%;
  height: auto;
  display: block;
  transform: translateZ(0);
}

.profile-corner {
  position: absolute;
  width: 28px;
  height: 28px;
  border: 2px solid var(--primary);
  z-index: 3;
}

.profile-corner.tl {
  top: -8px; left: -8px;
  border-right: 0; border-bottom: 0;
}
.profile-corner.tr {
  top: -8px; right: -8px;
  border-left: 0; border-bottom: 0;
}
.profile-corner.bl {
  bottom: -8px; left: -8px;
  border-right: 0; border-top: 0;
}
.profile-corner.br {
  bottom: -8px; right: -8px;
  border-left: 0; border-top: 0;
}

.profile-badge {
  position: absolute;
  bottom: -24px;
  right: -24px;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--bg-0);
  display: grid;
  place-items: center;
  text-align: center;
  font-family: var(--f-display);
  z-index: 3;
  box-shadow: 0 0 60px var(--primary-glow);
  animation: badgeFloat 5s ease-in-out infinite;
}

.profile-badge .badge-num {
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1;
}

.profile-badge .badge-text {
  font-family: var(--f-mono);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-top: 4px;
}

@keyframes badgeFloat {
  0%, 100% { transform: translate(0, 0) rotate(-6deg); }
  50% { transform: translate(0, -10px) rotate(2deg); }
}

@media (max-width: 991px) {
  .profile-badge {
    width: 100px;
    height: 100px;
    bottom: -20px;
    right: -20px;
  }
  .profile-badge .badge-num { font-size: 2rem; }
}

.about-content {
  max-width: 56ch;
}

.about-content p {
  color: var(--text-3);
  margin-bottom: var(--s-5);
  font-size: 1.0625rem;
  line-height: 1.75;
}

.about-content p strong {
  color: var(--text-1);
  font-weight: 500;
}

.about-info {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-3) var(--s-5);
  margin: var(--s-6) 0;
  padding: var(--s-5);
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  background: var(--bg-2);
  position: relative;
}

.about-info::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 24px;
  width: 36px;
  height: 2px;
  background: var(--primary);
}

.about-info-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.about-info-key {
  font-family: var(--f-mono);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-3);
}

.about-info-value {
  font-size: 0.95rem;
  color: var(--text-1);
  font-weight: 500;
}

@media (max-width: 540px) {
  .about-info { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Tech marquee
   ========================================================================== */

.tech-marquee {
  padding: var(--s-8) 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-1);
  overflow: hidden;
  position: relative;
}

.tech-marquee-label {
  text-align: center;
  font-family: var(--f-mono);
  font-size: 0.7rem;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: var(--s-6);
}

.tech-marquee-label span {
  color: var(--primary);
}

.marquee-row {
  display: flex;
  gap: var(--s-4);
  width: max-content;
  padding-block: var(--s-2);
}

.marquee-row.row-a {
  animation: marqueeMove 40s linear infinite;
}

.marquee-row.row-b {
  animation: marqueeMove 50s linear infinite reverse;
  margin-top: var(--s-4);
}

.tech-marquee:hover .marquee-row {
  animation-play-state: paused;
}

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

.tech-pill {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-3) var(--s-5);
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: var(--r-pill);
  white-space: nowrap;
  flex-shrink: 0;
  transition: all 0.3s var(--e-out);
  position: relative;
  cursor: default;
}

.tech-pill:hover {
  border-color: var(--primary);
  background: var(--bg-3);
  box-shadow: 0 0 0 4px var(--primary-soft), 0 8px 24px var(--primary-glow);
  transform: translateY(-2px);
  color: var(--primary);
}

.tech-pill i {
  font-size: 1.2rem;
  color: var(--primary);
  transition: transform 0.3s var(--e-out);
}

.tech-pill:hover i {
  transform: rotate(360deg);
}

.tech-pill span {
  font-family: var(--f-mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  font-weight: 500;
  color: var(--text-2);
}

.marquee-fade {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 200px;
  pointer-events: none;
  z-index: 2;
}

.marquee-fade.left {
  left: 0;
  background: linear-gradient(to right, var(--bg-1), transparent);
}

.marquee-fade.right {
  right: 0;
  background: linear-gradient(to left, var(--bg-1), transparent);
}

/* ==========================================================================
   Experience timeline — alternating cards
   ========================================================================== */

.experience-section {
  background: var(--bg-0);
}

.timeline {
  position: relative;
  margin-top: var(--s-8);
}

.timeline::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--line-2) 5%, var(--line-2) 95%, transparent);
  transform: translateX(-0.5px);
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: var(--s-5);
  margin-bottom: var(--s-7);
  align-items: start;
}

.timeline-item:last-child {
  margin-bottom: 0;
}

.timeline-marker {
  position: relative;
  z-index: 2;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  display: grid;
  place-items: center;
  color: var(--primary);
  font-size: 1.1rem;
  margin-top: var(--s-5);
  transition: all 0.4s var(--e-out);
  flex-shrink: 0;
}

.timeline-item.is-visible .timeline-marker {
  border-color: var(--primary);
  background: var(--bg-3);
  box-shadow: 0 0 0 6px var(--primary-soft);
}

.timeline-marker::before {
  content: '';
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 1px dashed var(--line-2);
  animation: spin 18s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.timeline-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  padding: var(--s-6);
  transition: all 0.4s var(--e-out);
  position: relative;
  overflow: hidden;
}

.timeline-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transition: width 0.6s var(--e-out);
}

.timeline-card:hover {
  border-color: var(--line-2);
  background: var(--bg-3);
  transform: translateY(-4px);
}

.timeline-card:hover::before {
  width: 100%;
}

.timeline-item:nth-child(odd) .timeline-card {
  grid-column: 1;
}

.timeline-item:nth-child(odd) .timeline-marker {
  grid-column: 2;
}

.timeline-item:nth-child(odd) .timeline-spacer {
  grid-column: 3;
}

.timeline-item:nth-child(even) .timeline-spacer {
  grid-column: 1;
}

.timeline-item:nth-child(even) .timeline-marker {
  grid-column: 2;
}

.timeline-item:nth-child(even) .timeline-card {
  grid-column: 3;
}

.timeline-spacer {
  display: block;
}

.timeline-date {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-family: var(--f-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: var(--s-3);
}

.timeline-date::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
}

.timeline-card h3 {
  font-family: var(--f-display);
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-1);
  margin-bottom: var(--s-2);
  line-height: 1.2;
}

.timeline-card h4 {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-3);
  margin-bottom: var(--s-4);
}

.timeline-card h4::before {
  content: '@ ';
  color: var(--primary);
  font-family: var(--f-mono);
}

.timeline-description {
  color: var(--text-3);
  font-size: 0.95rem;
  line-height: 1.7;
}

.timeline-description ul {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}

.timeline-description li {
  position: relative;
  padding-left: var(--s-5);
}

.timeline-description li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.6rem;
  width: 12px;
  height: 1px;
  background: var(--primary);
}

.timeline-description li strong {
  color: var(--text-1);
  font-weight: 500;
}

.timeline-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
  margin-top: var(--s-5);
  padding-top: var(--s-4);
  border-top: 1px dashed var(--line);
}

.timeline-tag {
  font-family: var(--f-mono);
  font-size: 0.65rem;
  letter-spacing: 0.1em;
  padding: 4px 10px;
  border-radius: var(--r-1);
  background: var(--bg-3);
  color: var(--text-3);
  border: 1px solid var(--line);
  transition: all 0.2s var(--e-out);
}

.timeline-tag:hover {
  color: var(--primary);
  border-color: var(--primary);
}

.timeline-toggle {
  margin-top: var(--s-4);
  font-family: var(--f-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  cursor: pointer;
  transition: gap 0.2s var(--e-out);
}

.timeline-toggle:hover {
  gap: var(--s-3);
}

.timeline-toggle i {
  transition: transform 0.3s var(--e-out);
}

.timeline-card.is-collapsed .timeline-description {
  max-height: 96px;
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
}

.timeline-card.is-collapsed .timeline-tags {
  display: none;
}

.timeline-card:not(.is-collapsed) .timeline-toggle i {
  transform: rotate(180deg);
}

@media (max-width: 768px) {
  .timeline::before {
    left: 28px;
  }
  .timeline-item {
    grid-template-columns: 56px 1fr;
    gap: var(--s-4);
  }
  .timeline-item:nth-child(odd) .timeline-card,
  .timeline-item:nth-child(even) .timeline-card {
    grid-column: 2;
  }
  .timeline-item:nth-child(odd) .timeline-marker,
  .timeline-item:nth-child(even) .timeline-marker {
    grid-column: 1;
  }
  .timeline-spacer { display: none; }
}

/* ==========================================================================
   Stats / Competencies grid
   ========================================================================== */

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-4);
}

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

.stat-tile {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  padding: var(--s-6);
  position: relative;
  overflow: hidden;
  transition: all 0.4s var(--e-out);
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.stat-tile::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--r-3);
  padding: 1px;
  background: linear-gradient(135deg, var(--primary), transparent 30%, transparent 70%, var(--accent));
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.4s var(--e-out);
  pointer-events: none;
}

.stat-tile:hover {
  background: var(--bg-3);
  transform: translateY(-4px);
}

.stat-tile:hover::before {
  opacity: 1;
}

.stat-tile-num {
  position: absolute;
  top: var(--s-4);
  right: var(--s-5);
  font-family: var(--f-mono);
  font-size: 0.7rem;
  letter-spacing: 0.2em;
  color: var(--text-5);
}

.stat-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--r-2);
  display: grid;
  place-items: center;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 1.4rem;
  margin-bottom: var(--s-5);
  transition: all 0.4s var(--e-out);
}

.stat-tile:hover .stat-icon {
  background: var(--primary);
  color: var(--bg-0);
  box-shadow: 0 0 30px var(--primary-glow);
  transform: rotate(-6deg) scale(1.05);
}

.stat-label {
  font-family: var(--f-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text-1);
  margin-bottom: var(--s-3);
  letter-spacing: -0.01em;
}

.stat-description {
  color: var(--text-3);
  font-size: 0.9rem;
  line-height: 1.6;
}

@media (max-width: 991px) {
  .stats-grid,
  .stats-grid.cols-3 {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 540px) {
  .stats-grid,
  .stats-grid.cols-3 {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Skills — categorized badges with proficiency rings
   ========================================================================== */

.skills-section {
  background: var(--bg-1);
  border-top: 1px solid var(--line);
}

.skills-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-5);
}

@media (max-width: 768px) {
  .skills-grid { grid-template-columns: 1fr; }
}

.skill-group {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  padding: var(--s-6);
  transition: all 0.3s var(--e-out);
}

.skill-group:hover {
  border-color: var(--line-2);
  background: var(--bg-3);
}

.skill-group-header {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  margin-bottom: var(--s-5);
  padding-bottom: var(--s-4);
  border-bottom: 1px dashed var(--line);
}

.skill-group-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--r-2);
  display: grid;
  place-items: center;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 0.9rem;
}

.skill-group-title {
  font-family: var(--f-display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text-1);
  letter-spacing: -0.01em;
  margin: 0;
}

.skill-group-count {
  margin-left: auto;
  font-family: var(--f-mono);
  font-size: 0.7rem;
  color: var(--text-5);
  letter-spacing: 0.18em;
}

.skill-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-2);
}

.skill-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: 0.45rem 0.9rem;
  border-radius: var(--r-pill);
  font-size: 0.8rem;
  font-weight: 500;
  background: var(--bg-3);
  color: var(--text-2);
  border: 1px solid var(--line-2);
  transition: all 0.2s var(--e-out);
  cursor: default;
}

.skill-badge:hover {
  transform: translateY(-1px);
}

.skill-badge[data-level="expert"] {
  border-color: rgba(0, 255, 163, 0.6);
  background: linear-gradient(135deg, rgba(0, 255, 163, 0.18), rgba(0, 255, 163, 0.04));
  color: var(--primary-bright);
}

.skill-badge[data-level="expert"]:hover {
  background: linear-gradient(135deg, rgba(0, 255, 163, 0.3), rgba(0, 255, 163, 0.08));
  box-shadow: 0 0 0 4px var(--primary-soft);
}

.skill-badge[data-level="advanced"] {
  border-color: rgba(255, 184, 0, 0.5);
  background: rgba(255, 184, 0, 0.08);
  color: var(--warn);
}

.skill-badge[data-level="advanced"]:hover {
  background: rgba(255, 184, 0, 0.16);
  box-shadow: 0 0 0 4px rgba(255, 184, 0, 0.1);
}

.skill-badge[data-level="intermediate"] {
  color: var(--text-3);
}

.skill-badge::before {
  content: '';
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}

.skill-legend {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-4);
  justify-content: center;
  margin-top: var(--s-7);
  padding-top: var(--s-5);
  border-top: 1px solid var(--line);
}

.skill-legend-item {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  font-family: var(--f-mono);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
}

.skill-legend-item::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.skill-legend-item.expert::before { background: var(--primary); box-shadow: 0 0 8px var(--primary-glow); }
.skill-legend-item.advanced::before { background: var(--warn); box-shadow: 0 0 8px var(--warn-glow); }
.skill-legend-item.intermediate::before { background: var(--text-4); }

/* ==========================================================================
   Education
   ========================================================================== */

.education-section {
  background: var(--bg-0);
  position: relative;
  overflow: hidden;
}

.education-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 40% at 80% 20%, rgba(0, 255, 163, 0.06), transparent 60%),
    radial-gradient(ellipse 40% 30% at 20% 80%, rgba(255, 45, 110, 0.04), transparent 65%);
  pointer-events: none;
}

.education-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-6);
}

@media (max-width: 768px) {
  .education-grid { grid-template-columns: 1fr; }
}

.edu-card {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  padding: var(--s-7);
  position: relative;
  overflow: hidden;
  transition: all 0.4s var(--e-out);
}

.edu-card::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, var(--primary-soft) 0%, transparent 60%);
  transform: translate(40%, -40%);
  pointer-events: none;
}

.edu-card:hover {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: 0 30px 60px -30px var(--primary-glow);
}

.edu-icon {
  width: 60px;
  height: 60px;
  border-radius: var(--r-3);
  background: linear-gradient(135deg, var(--primary), var(--primary-deep));
  color: var(--bg-0);
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  margin-bottom: var(--s-5);
  position: relative;
  z-index: 1;
}

.edu-date {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: var(--s-2);
}

.edu-card h3 {
  font-family: var(--f-display);
  font-size: 1.4rem;
  font-weight: 600;
  color: var(--text-1);
  margin-bottom: var(--s-2);
  letter-spacing: -0.02em;
}

.edu-card h4 {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-3);
  margin-bottom: var(--s-3);
}

.edu-honors {
  display: inline-block;
  font-family: var(--f-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 4px 10px;
  margin-bottom: var(--s-4);
  background: rgba(255, 184, 0, 0.12);
  color: var(--warn);
  border: 1px solid rgba(255, 184, 0, 0.4);
  border-radius: var(--r-1);
}

.edu-description {
  color: var(--text-3);
  font-size: 0.95rem;
  line-height: 1.7;
}

/* ==========================================================================
   Certifications — 3D flip cards
   ========================================================================== */

.certifications-section {
  background: var(--bg-1);
  border-top: 1px solid var(--line);
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-5);
  perspective: 1500px;
}

@media (max-width: 991px) {
  .cert-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 540px) {
  .cert-grid { grid-template-columns: 1fr; }
}

.cert-card {
  position: relative;
  min-height: 380px;
  cursor: pointer;
  transform-style: preserve-3d;
  transition: transform 0.7s var(--e-out);
  perspective: 1500px;
}

.cert-card.is-flipped {
  transform: rotateY(180deg);
}

.cert-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: var(--r-3);
  border: 1px solid var(--line-2);
  background: var(--bg-2);
  padding: var(--s-7) var(--s-6);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  overflow: hidden;
}

.cert-face::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(45deg, transparent 0, transparent 14px, rgba(255, 255, 255, 0.015) 14px, rgba(255, 255, 255, 0.015) 28px);
  pointer-events: none;
}

.cert-face.front .cert-watermark {
  position: absolute;
  bottom: -20px;
  right: -20px;
  font-size: 12rem;
  color: rgba(255, 255, 255, 0.025);
  pointer-events: none;
  line-height: 1;
}

.cert-icon {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-deep));
  color: var(--bg-0);
  display: grid;
  place-items: center;
  font-size: 2rem;
  margin-bottom: var(--s-5);
  box-shadow: 0 0 50px var(--primary-glow);
  position: relative;
}

.cert-icon::after {
  content: '';
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  animation: spin 14s linear infinite;
}

.cert-face h3 {
  font-family: var(--f-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text-1);
  margin-bottom: var(--s-2);
  letter-spacing: -0.01em;
}

.cert-code {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: var(--s-3);
  min-height: 1em;
}

.cert-meta {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-top: auto;
}

.cert-meta-divider {
  width: 12px;
  height: 1px;
  background: var(--line-2);
}

.cert-flip-cue {
  position: absolute;
  bottom: var(--s-4);
  left: 50%;
  transform: translateX(-50%);
  font-family: var(--f-mono);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-4);
}

.cert-face.back {
  transform: rotateY(180deg);
  background: linear-gradient(160deg, var(--bg-3), var(--bg-2));
  border-color: var(--primary);
  align-items: flex-start;
  text-align: left;
  justify-content: space-between;
}

.cert-face.back h4 {
  font-family: var(--f-display);
  font-size: 1.1rem;
  color: var(--text-1);
  margin-bottom: var(--s-3);
  letter-spacing: -0.01em;
}

.cert-face.back p {
  color: var(--text-3);
  font-size: 0.875rem;
  line-height: 1.65;
  margin-bottom: var(--s-4);
}

.cert-link {
  align-self: flex-start;
  font-family: var(--f-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary);
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  padding: var(--s-2) var(--s-4);
  border: 1px solid var(--primary);
  border-radius: var(--r-pill);
  transition: all 0.2s var(--e-out);
}

.cert-link:hover {
  background: var(--primary);
  color: var(--bg-0);
}

.cert-link i {
  transition: transform 0.2s var(--e-out);
}

.cert-link:hover i {
  transform: translate(2px, -2px);
}

/* ==========================================================================
   Industry pillars
   ========================================================================== */

.industry-section {
  background: var(--bg-0);
}

.industry-list {
  display: flex;
  flex-direction: column;
  gap: var(--s-5);
}

.industry-item {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: var(--s-6);
  padding: var(--s-7);
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  background: var(--bg-2);
  transition: all 0.4s var(--e-out);
  align-items: start;
  position: relative;
  overflow: hidden;
}

.industry-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: linear-gradient(to bottom, var(--primary), var(--accent));
  transform: scaleY(0);
  transform-origin: top;
  transition: transform 0.6s var(--e-out);
}

.industry-item:hover {
  border-color: var(--line-2);
  background: var(--bg-3);
  transform: translateX(8px);
}

.industry-item:hover::before {
  transform: scaleY(1);
}

.industry-icon {
  width: 88px;
  height: 88px;
  border-radius: var(--r-3);
  background: var(--bg-3);
  border: 1px solid var(--line-2);
  display: grid;
  place-items: center;
  color: var(--primary);
  font-size: 2rem;
  transition: all 0.3s var(--e-out);
}

.industry-item:hover .industry-icon {
  background: var(--primary);
  color: var(--bg-0);
  border-color: var(--primary);
  box-shadow: 0 0 30px var(--primary-glow);
}

.industry-content h3 {
  font-family: var(--f-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-1);
  margin-bottom: var(--s-3);
  letter-spacing: -0.02em;
}

.industry-content p {
  color: var(--text-3);
  font-size: 0.97rem;
  line-height: 1.75;
}

@media (max-width: 768px) {
  .industry-item {
    grid-template-columns: 1fr;
    gap: var(--s-4);
  }
  .industry-icon { width: 64px; height: 64px; font-size: 1.5rem; }
}

/* ==========================================================================
   Contact
   ========================================================================== */

.contact-section {
  background: var(--bg-1);
  border-top: 1px solid var(--line);
  position: relative;
  overflow: hidden;
}

.contact-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 40% at 50% 0%, rgba(0, 255, 163, 0.08), transparent 60%);
  pointer-events: none;
}

.contact-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.4fr;
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
  margin-top: var(--s-7);
}

@media (max-width: 991px) {
  .contact-grid { grid-template-columns: 1fr; }
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}

.contact-card {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: var(--s-4);
  align-items: center;
  padding: var(--s-5);
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  transition: all 0.3s var(--e-out);
}

.contact-card:hover {
  border-color: var(--primary);
  background: var(--bg-3);
  transform: translateY(-2px);
}

.contact-card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--r-2);
  background: var(--primary-soft);
  color: var(--primary);
  display: grid;
  place-items: center;
  font-size: 1.1rem;
}

.contact-card-label {
  font-family: var(--f-mono);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 2px;
}

.contact-card-value {
  font-size: 0.95rem;
  color: var(--text-1);
  font-weight: 500;
  line-height: 1.3;
  word-break: break-word;
}

.contact-card-value a:hover {
  color: var(--primary);
}

.contact-form {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-3);
  padding: clamp(1.5rem, 3vw, 2.5rem);
  position: relative;
}

.contact-form::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 24px;
  width: 60px;
  height: 2px;
  background: var(--primary);
  box-shadow: 0 0 12px var(--primary-glow);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-4);
}

.form-group.full {
  grid-column: 1 / -1;
}

@media (max-width: 540px) {
  .form-grid { grid-template-columns: 1fr; }
  .form-group.full { grid-column: auto; }
}

.form-group {
  position: relative;
}

.form-label {
  display: block;
  font-family: var(--f-mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: var(--s-2);
}

.form-label .required {
  color: var(--accent);
  margin-left: 4px;
}

.form-control {
  width: 100%;
  padding: 0.85rem 1rem;
  font-size: 0.95rem;
  background: var(--bg-3);
  border: 1px solid var(--line-2);
  border-radius: var(--r-2);
  color: var(--text-1);
  transition: all 0.2s var(--e-out);
  font-family: inherit;
}

.form-control::placeholder {
  color: var(--text-4);
}

.form-control:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--bg-2);
  box-shadow: 0 0 0 3px var(--primary-soft);
}

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

.form-honeypot {
  position: absolute;
  left: -9999px;
  opacity: 0;
  pointer-events: none;
}

.btn-submit {
  width: 100%;
  margin-top: var(--s-4);
}

.form-status {
  margin-top: var(--s-4);
  padding: var(--s-3) var(--s-4);
  border-radius: var(--r-2);
  font-size: 0.875rem;
  display: none;
}

.form-status.success {
  display: block;
  background: var(--primary-soft);
  color: var(--primary);
  border: 1px solid var(--primary);
}

.form-status.error {
  display: block;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid var(--accent);
}

/* ==========================================================================
   Footer
   ========================================================================== */

.footer {
  background: var(--bg-0);
  border-top: 1px solid var(--line);
  padding: var(--s-9) var(--s-6) var(--s-5);
}

.footer-grid {
  max-width: var(--content-w);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: var(--s-6);
  margin-bottom: var(--s-7);
}

@media (max-width: 768px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 540px) {
  .footer-grid { grid-template-columns: 1fr; }
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  margin-bottom: var(--s-4);
}

.footer-brand .nav-brand-mark {
  width: 44px;
  height: 44px;
}

.footer-greeting {
  font-family: var(--f-display);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-1);
  margin-bottom: var(--s-3);
  letter-spacing: -0.02em;
}

.footer-tagline {
  color: var(--text-3);
  font-size: 0.9rem;
  margin-bottom: var(--s-4);
  line-height: 1.6;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}

.footer-contact a,
.footer-contact span {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  color: var(--text-3);
  font-size: 0.9rem;
  transition: color 0.2s;
}

.footer-contact a:hover {
  color: var(--primary);
}

.footer-contact i {
  color: var(--primary);
  width: 14px;
}

.footer-widget-title {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: var(--s-4);
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
}

.footer-widget-title::before {
  content: '';
  width: 16px;
  height: 1px;
  background: var(--primary);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
}

.footer-links a {
  color: var(--text-3);
  font-size: 0.9rem;
  transition: color 0.2s, padding-left 0.2s;
  display: inline-block;
}

.footer-links a:hover {
  color: var(--primary);
  padding-left: 4px;
}

.footer-social {
  display: flex;
  gap: var(--s-3);
  margin-top: var(--s-3);
}

.footer-social a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  color: var(--text-3);
  display: grid;
  place-items: center;
  transition: all 0.3s var(--e-out);
}

.footer-social a:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-soft);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px var(--primary-glow);
}

.footer-bottom {
  max-width: var(--content-w);
  margin: 0 auto;
  padding-top: var(--s-5);
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-4);
}

.footer-copyright {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  color: var(--text-4);
}

.footer-bottom-links {
  display: flex;
  gap: var(--s-5);
}

.footer-bottom-links a {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-4);
  transition: color 0.2s;
}

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

/* ==========================================================================
   Mobile floating navigation
   ========================================================================== */

.mobile-floating-nav {
  position: fixed;
  bottom: var(--s-4);
  left: 50%;
  transform: translateX(-50%);
  z-index: 200;
  display: none;
}

@media (max-width: 991px) {
  .mobile-floating-nav { display: block; }
}

.mobile-nav-menu {
  display: flex;
  align-items: center;
  gap: var(--s-1);
  padding: var(--s-2);
  background: rgba(7, 11, 22, 0.85);
  backdrop-filter: blur(18px) saturate(180%);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  border: 1px solid var(--line-2);
  border-radius: var(--r-pill);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.mobile-nav-item {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--text-3);
  font-size: 1rem;
  position: relative;
  transition: all 0.3s var(--e-out);
}

.mobile-nav-item span {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-4px);
  font-family: var(--f-mono);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-3);
  background: var(--bg-2);
  padding: 4px 8px;
  border-radius: var(--r-1);
  border: 1px solid var(--line-2);
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  transition: opacity 0.2s, transform 0.2s var(--e-out);
}

.mobile-nav-item.is-active {
  background: var(--primary);
  color: var(--bg-0);
  box-shadow: 0 0 20px var(--primary-glow);
}

.mobile-nav-item:active span {
  opacity: 1;
  transform: translateX(-50%) translateY(-8px);
}

/* ==========================================================================
   Cookie banner
   ========================================================================== */

.cookie-banner {
  position: fixed;
  left: 50%;
  bottom: var(--s-5);
  transform: translateX(-50%) translateY(150%);
  z-index: 9998;
  width: calc(100% - 2 * var(--s-4));
  max-width: 720px;
  padding: var(--s-5);
  background: rgba(7, 11, 22, 0.95);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid var(--line-2);
  border-radius: var(--r-3);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
  transition: transform 0.5s var(--e-out);
}

.cookie-banner.is-visible {
  transform: translateX(-50%) translateY(0);
}

.cookie-content {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: var(--s-5);
  align-items: center;
}

@media (max-width: 600px) {
  .cookie-content { grid-template-columns: 1fr; }
}

.cookie-title {
  font-family: var(--f-mono);
  font-size: 0.7rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: var(--s-2);
}

.cookie-description {
  color: var(--text-3);
  font-size: 0.85rem;
  line-height: 1.5;
}

.cookie-buttons {
  display: flex;
  gap: var(--s-2);
  flex-shrink: 0;
}

.btn-cookie-accept,
.btn-cookie-reject {
  font-family: var(--f-mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: var(--s-3) var(--s-5);
  border-radius: var(--r-pill);
  border: 1px solid var(--line-2);
  cursor: pointer;
  transition: all 0.2s var(--e-out);
  font-weight: 600;
}

.btn-cookie-accept {
  background: var(--primary);
  color: var(--bg-0);
  border-color: var(--primary);
}

.btn-cookie-accept:hover {
  background: var(--primary-bright);
  box-shadow: 0 0 0 4px var(--primary-soft);
}

.btn-cookie-reject {
  background: transparent;
  color: var(--text-3);
}

.btn-cookie-reject:hover {
  color: var(--text-1);
  border-color: var(--text-3);
}

/* ==========================================================================
   Misc utilities & responsive cleanup
   ========================================================================== */

@media (max-width: 768px) {
  section {
    padding-left: var(--s-4);
    padding-right: var(--s-4);
  }
  .main-navigation {
    padding-left: var(--s-4);
    padding-right: var(--s-4);
  }
  .nav-brand-text { display: none; }
  .hero-title { letter-spacing: -0.03em; }
}

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

/* Print friendly */
@media print {
  .fx-backdrop,
  .cursor-dot,
  .cursor-ring,
  .section-rail,
  .mobile-floating-nav,
  .cookie-banner,
  #loading-screen,
  .hero-scroll {
    display: none !important;
  }
  body {
    background: white;
    color: black;
  }
}
