/* ============================================================
   LugoNation revamp — shared layout, four palettes
   ============================================================ */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background:
    radial-gradient(1200px 760px at 50% -14%, var(--bg-alt), transparent 62%),
    var(--bg);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection {
  background: var(--select-bg);
  color: var(--select-ink);
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--a1);
  outline-offset: 3px;
}

.skip-link {
  position: absolute;
  top: -40px;
  left: 12px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--panel-solid);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: var(--radius-btn);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
}

.skip-link:focus {
  top: 12px;
}

/* ---------- fog canvas + grain ---------- */

#fog {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  display: block;
}

.grain {
  position: fixed;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  opacity: var(--grain);
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}

.page {
  position: relative;
  z-index: 1;
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
  pointer-events: none;
}

.shell {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

/* ============================================================
   Palette tokens
   ============================================================ */

html[data-theme="cyberpunk"] {
  --bg: #060912;
  --bg-alt: #0b1220;
  --panel: rgba(13, 20, 32, 0.78);
  --panel-solid: #0d1420;
  --band-bg: rgba(10, 16, 26, 0.5);
  --ink: #e8f3ff;
  --muted: #8fa3b9;
  --line: rgba(120, 190, 235, 0.18);
  --a1: #2fe6ff;
  --a2: #9a6bff;
  --a3: #ff5fa8;
  --btn-bg: linear-gradient(135deg, #2fe6ff, #9a6bff 110%);
  --btn-ink: #061019;
  --nav-bg: rgba(6, 9, 18, 0.58);
  --nav-line: rgba(120, 190, 235, 0.14);
  --input-bg: rgba(7, 12, 20, 0.7);
  --card-shadow: 0 18px 44px rgba(0, 0, 0, 0.38);
  --focus-ring: rgba(47, 230, 255, 0.16);
  --select-bg: rgba(47, 230, 255, 0.3);
  --select-ink: #ffffff;
  --grain: 0.05;
  --radius-card: 12px;
  --radius-btn: 8px;
  --radius-pill: 999px;
  --font-display: "Orbitron", "Space Grotesk", sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
}

html[data-theme="elegant"] {
  --bg: #f2ebdd;
  --bg-alt: #e9dfcc;
  --panel: #fbf7ee;
  --panel-solid: #fbf7ee;
  --band-bg: rgba(233, 223, 204, 0.55);
  --ink: #1f2933;
  --muted: #6d675b;
  --line: #d3c4aa;
  --a1: #a9824c;
  --a2: #2c4b52;
  --a3: #8a6a3e;
  --btn-bg: #1f2933;
  --btn-ink: #f8f2e5;
  --nav-bg: rgba(242, 235, 221, 0.82);
  --nav-line: #d3c4aa;
  --input-bg: #fdfaf3;
  --card-shadow: 0 16px 38px rgba(70, 52, 32, 0.1);
  --focus-ring: rgba(169, 130, 76, 0.18);
  --select-bg: rgba(169, 130, 76, 0.28);
  --select-ink: #1f2933;
  --grain: 0.07;
  --radius-card: 2px;
  --radius-btn: 2px;
  --radius-pill: 2px;
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
}

html[data-theme="web3"] {
  --bg: #090d14;
  --bg-alt: #101823;
  --panel: rgba(24, 31, 43, 0.52);
  --panel-solid: #151d28;
  --band-bg: rgba(16, 22, 30, 0.5);
  --ink: #eaf2fa;
  --muted: #93a7bc;
  --line: rgba(150, 175, 205, 0.22);
  --a1: #7b61ff;
  --a2: #22d3c5;
  --a3: #4aa6ff;
  --btn-bg: linear-gradient(135deg, #7b61ff, #22d3c5 115%);
  --btn-ink: #071018;
  --nav-bg: rgba(9, 13, 20, 0.52);
  --nav-line: rgba(150, 175, 205, 0.18);
  --input-bg: rgba(12, 18, 26, 0.65);
  --card-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
  --focus-ring: rgba(123, 97, 255, 0.22);
  --select-bg: rgba(123, 97, 255, 0.35);
  --select-ink: #ffffff;
  --grain: 0.035;
  --radius-card: 20px;
  --radius-btn: 999px;
  --radius-pill: 999px;
  --font-display: "Space Grotesk", "Inter", sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
}

html[data-theme="retro"] {
  --bg: #f0dfc0;
  --bg-alt: #e5d0a9;
  --panel: #faf0dd;
  --panel-solid: #faf0dd;
  --band-bg: rgba(230, 209, 170, 0.6);
  --ink: #39291c;
  --muted: #6a5138;
  --line: #b99772;
  --a1: #c8552c;
  --a2: #2f6f66;
  --a3: #d9a232;
  --btn-bg: #39291c;
  --btn-ink: #f5e6c9;
  --nav-bg: rgba(240, 223, 192, 0.85);
  --nav-line: #b99772;
  --input-bg: #fbf1df;
  --card-shadow: 6px 6px 0 rgba(58, 42, 28, 0.14), 0 14px 28px rgba(58, 42, 28, 0.1);
  --focus-ring: rgba(200, 85, 44, 0.18);
  --select-bg: rgba(200, 85, 44, 0.25);
  --select-ink: #39291c;
  --grain: 0.12;
  --radius-card: 4px;
  --radius-btn: 3px;
  --radius-pill: 3px;
  --font-display: "Bebas Neue", "Space Grotesk", sans-serif;
  --font-body: "Space Grotesk", "Inter", sans-serif;
  --font-mono: "Space Mono", ui-monospace, monospace;
}

/* ============================================================
   Navigation
   ============================================================ */

.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: var(--nav-bg);
  border-bottom: 1px solid var(--nav-line);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 22px;
  height: 74px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--ink);
  flex-shrink: 0;
}

.brand-mark {
  display: inline-flex;
  color: var(--a1);
}

.brand-mark svg {
  display: block;
}

.brand-type {
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-family: var(--font-display);
  font-size: 1.02rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1;
}

.brand-type strong {
  font-weight: 700;
}

.brand-type span {
  color: var(--a1);
  font-weight: 600;
}

.brand-type.small {
  font-size: 0.85rem;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: auto;
}

.nav-links a {
  position: relative;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
  padding-bottom: 4px;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 1px;
  background: var(--a1);
  transition: width 0.28s ease;
}

.nav-links a:hover {
  color: var(--ink);
}

.nav-links a:hover::after {
  width: 100%;
}

.nav-side {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.theme-widget {
  position: relative;
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.theme-trigger {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px 12px;
  border: 1px solid var(--a1);
  border-radius: 8px 8px 4px 4px;
  background: linear-gradient(135deg, var(--a1), var(--a2));
  color: var(--btn-ink);
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.18);
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.theme-trigger::before,
.theme-trigger::after {
  content: "";
  position: absolute;
  bottom: -8px;
  width: 15px;
  height: 11px;
  background: var(--a2);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
}

.theme-trigger::before {
  left: 12px;
}

.theme-trigger::after {
  right: 12px;
}

.theme-trigger:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
}

.theme-trigger:active {
  transform: translateY(0);
}

.theme-arrow {
  display: inline-flex;
  align-items: center;
  color: var(--btn-ink);
  opacity: 0.75;
  animation: theme-arrow-bob 1.4s ease-in-out infinite;
}

.theme-arrow svg {
  display: block;
  width: 18px;
  height: 12px;
}

@keyframes theme-arrow-bob {
  0%,
  100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(2px);
  }
}

.theme-panel {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  width: 218px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-8px) scaleY(0.95);
  transform-origin: top right;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--card-shadow);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: max-height 0.45s cubic-bezier(0.2, 0.8, 0.25, 1), opacity 0.25s ease, transform 0.35s ease;
  z-index: 80;
  pointer-events: none;
}

.theme-widget.open .theme-panel {
  max-height: 240px;
  opacity: 1;
  transform: translateY(0) scaleY(1);
  pointer-events: auto;
}

.theme-panel a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 13px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease;
}

.theme-panel a:last-child {
  border-bottom: 0;
}

.theme-panel a:hover {
  color: var(--ink);
  background: var(--focus-ring);
}

.theme-panel a[aria-current="page"] {
  color: var(--btn-ink);
  background: var(--a2);
}

.theme-swatch {
  width: 13px;
  height: 13px;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  flex: 0 0 13px;
}

.theme-swatch.cyberpunk {
  background: linear-gradient(135deg, #2fe6ff, #9a6bff);
}

.theme-swatch.elegant {
  background: linear-gradient(135deg, #f2ebdd, #a9824c);
}

.theme-swatch.web3 {
  background: linear-gradient(135deg, #7b61ff, #22d3c5);
}

.theme-swatch.retro {
  background: linear-gradient(135deg, #f0dfc0, #c8552c);
}

.nav-toggle {
  display: none;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-btn);
  background: transparent;
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  width: 16px;
  height: 1.5px;
  margin: 4px auto;
  background: var(--ink);
}

.nav-mobile {
  display: grid;
  gap: 10px;
  padding: 12px 24px 18px;
  border-top: 1px solid var(--nav-line);
}

.nav-mobile[hidden] {
  display: none;
}

.nav-mobile a {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  text-decoration: none;
}

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.9rem 1.4rem;
  border: 1px solid transparent;
  border-radius: var(--radius-btn);
  background: var(--btn-bg);
  color: var(--btn-ink);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s var(--ease, ease), box-shadow 0.25s ease, filter 0.25s ease;
}

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

.btn:active {
  transform: translateY(0);
}

.btn-sm {
  padding: 0.55rem 1rem;
  font-size: 0.6rem;
}

.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}

.btn-full {
  width: 100%;
}

.btn svg {
  width: 16px;
  height: 16px;
}

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

.hero {
  position: relative;
  min-height: 94vh;
  display: flex;
  align-items: center;
  padding: 140px 0 80px;
  overflow: hidden;
}

.hero-inner {
  position: relative;
  z-index: 2;
}

.hero-art {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.hero-halo {
  position: absolute;
  inset: -20% -20% 0;
  filter: blur(46px);
}

.hero-rings {
  position: absolute;
  left: 50%;
  top: 52%;
  width: 720px;
  height: 720px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
}

.kicker {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0 0 1.4rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--muted);
}

.kicker::before {
  content: "";
  width: 34px;
  height: 1px;
  background: var(--a1);
  opacity: 0.75;
}

.hero h1 {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-size: clamp(2.7rem, 7vw, 5.6rem);
  font-weight: 600;
  line-height: 1.04;
  letter-spacing: -0.012em;
}

.hero h1 .accent {
  color: var(--a1);
}

.lede {
  max-width: 640px;
  margin: 0;
  font-size: 1.05rem;
  font-weight: 300;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 1.9rem;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem;
  max-width: 660px;
  margin: 2.2rem 0 0;
  padding-top: 1.15rem;
  border-top: 1px solid var(--line);
}

.hero-meta div {
  display: flex;
  flex-direction: column;
  gap: 0.18rem;
}

.hero-meta dt {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.hero-meta dd {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--ink);
}

/* ---------- theme-specific hero art ---------- */

html[data-theme="cyberpunk"] .hero-halo {
  background:
    radial-gradient(600px 420px at 18% 28%, rgba(47, 230, 255, 0.2), transparent 66%),
    radial-gradient(760px 520px at 82% 18%, rgba(154, 107, 255, 0.2), transparent 66%),
    radial-gradient(540px 400px at 52% 88%, rgba(255, 95, 168, 0.14), transparent 68%);
  animation: halo-drift 20s ease-in-out infinite alternate;
}

html[data-theme="cyberpunk"] .hero-rings {
  border: 1px solid rgba(47, 230, 255, 0.18);
  background: conic-gradient(from 0deg, transparent 0 52%, rgba(47, 230, 255, 0.12) 66%, transparent 82%);
  animation: spin 44s linear infinite;
}

html[data-theme="cyberpunk"] .hero-rings::before {
  content: "";
  position: absolute;
  inset: 78px;
  border: 1px dashed rgba(154, 107, 255, 0.25);
  border-radius: 50%;
}

html[data-theme="elegant"] .hero-halo {
  background:
    radial-gradient(700px 480px at 25% 25%, rgba(255, 250, 236, 0.9), transparent 70%),
    radial-gradient(640px 420px at 80% 40%, rgba(212, 188, 145, 0.35), transparent 72%);
  animation: halo-drift 26s ease-in-out infinite alternate;
}

html[data-theme="elegant"] .hero-rings {
  border: 1px solid rgba(169, 130, 76, 0.28);
}

html[data-theme="elegant"] .hero-rings::before,
html[data-theme="elegant"] .hero-rings::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(169, 130, 76, 0.22);
}

html[data-theme="elegant"] .hero-rings::before {
  inset: 70px;
  border-style: dashed;
  animation: spin 60s linear infinite;
}

html[data-theme="elegant"] .hero-rings::after {
  inset: 170px;
  border-color: rgba(44, 75, 82, 0.22);
}

html[data-theme="web3"] .hero-halo {
  background:
    radial-gradient(700px 500px at 22% 30%, rgba(123, 97, 255, 0.36), transparent 65%),
    radial-gradient(760px 560px at 78% 25%, rgba(34, 211, 197, 0.28), transparent 68%),
    radial-gradient(520px 420px at 50% 90%, rgba(74, 166, 255, 0.2), transparent 68%);
  animation: halo-drift 24s ease-in-out infinite alternate;
}

html[data-theme="web3"] .hero-rings {
  border: 1px solid rgba(123, 97, 255, 0.28);
  background: conic-gradient(from 30deg, transparent 0 48%, rgba(34, 211, 197, 0.14) 60%, transparent 78%);
  animation: spin 52s linear infinite;
}

html[data-theme="web3"] .hero-rings::before {
  content: "";
  position: absolute;
  inset: 70px;
  border: 1px dashed rgba(34, 211, 197, 0.3);
  border-radius: 50%;
}

html[data-theme="retro"] .hero-halo {
  background:
    radial-gradient(760px 520px at 70% 20%, rgba(200, 85, 44, 0.22), transparent 62%),
    radial-gradient(520px 420px at 25% 70%, rgba(217, 162, 50, 0.2), transparent 66%);
  animation: halo-drift 28s ease-in-out infinite alternate;
}

html[data-theme="retro"] .hero-rings {
  background: repeating-conic-gradient(from 0deg at 50% 50%, rgba(58, 42, 28, 0.09) 0deg 7deg, transparent 7deg 14deg);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, #000 0 58%, transparent 74%);
  mask-image: radial-gradient(circle at 50% 50%, #000 0 58%, transparent 74%);
  animation: spin 90s linear infinite;
}

/* ============================================================
   Ticker
   ============================================================ */

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

.ticker-track {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  width: max-content;
  padding: 12px 0;
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  animation: ticker-scroll 44s linear infinite;
}

.ticker-track span {
  opacity: 0.9;
}

/* ============================================================
   Sections / cards
   ============================================================ */

.section {
  padding: 92px 0;
  border-top: 1px solid var(--line);
}

.section-alt {
  background: var(--band-bg);
}

.section-head {
  max-width: 820px;
  margin-bottom: 26px;
}

.section-title {
  margin: 0.1rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3.2vw, 2.5rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: 0.01em;
}

.section-note {
  margin: 12px 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.card {
  position: relative;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--panel);
  box-shadow: var(--card-shadow);
  transition: transform 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  will-change: transform;
}

.card:hover {
  transform: translateY(-5px);
  border-color: var(--a1);
}

.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 16px;
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  color: var(--a1);
  border: 1px solid var(--line);
  border-radius: var(--radius-btn);
  background: rgba(255, 255, 255, 0.04);
}

.card-icon svg {
  width: 25px;
  height: 25px;
}

.card-num {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  color: var(--muted);
}

.card h3 {
  margin: 0 0 8px;
  font-family: var(--font-display);
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

/* ---------- metrics ---------- */

.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.metric {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--panel);
  box-shadow: var(--card-shadow);
}

.metric-value {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.6vw, 2.6rem);
  line-height: 1;
  color: var(--a1);
}

.metric-label {
  display: block;
  margin-top: 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.waveform {
  margin-top: 34px;
  opacity: 0.65;
}

.waveform svg {
  display: block;
  width: 100%;
  height: 62px;
}

.wave-line {
  fill: none;
  stroke: var(--a1);
  stroke-width: 1.3;
  stroke-linecap: round;
  stroke-dasharray: 3 9;
  animation: wave-dash 26s linear infinite;
}

/* ============================================================
   About
   ============================================================ */

.about-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 42px;
  align-items: center;
}

.body-copy {
  max-width: 620px;
  margin: 1.1rem 0 0;
  color: var(--muted);
  font-size: 1rem;
}

.principles {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.principles li {
  padding-left: 12px;
  border-left: 1px solid var(--line);
  font-size: 0.92rem;
  color: var(--muted);
}

.principles strong {
  color: var(--ink);
  font-weight: 600;
}

.monogram-wrap {
  display: flex;
  justify-content: center;
}

.monogram {
  position: relative;
  width: 320px;
  height: 320px;
}

.ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid var(--line);
}

.ring-1 {
  inset: 0;
  border-color: var(--a1);
  opacity: 0.5;
  animation: spin 38s linear infinite;
}

.ring-2 {
  inset: 24px;
  border-style: dashed;
  opacity: 0.7;
  animation: spin 26s linear infinite reverse;
}

.ring-3 {
  inset: 52px;
  border-color: var(--a2);
  opacity: 0.5;
  animation: spin 44s linear infinite;
}

.monogram-core {
  position: absolute;
  inset: 96px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--panel-solid);
  border: 1px solid var(--line);
  border-radius: 50%;
  box-shadow: var(--card-shadow);
}

.monogram-initials {
  font-family: var(--font-display);
  font-size: 2.35rem;
  letter-spacing: 0.1em;
  color: var(--a1);
  line-height: 1;
}

.monogram-label {
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--muted);
}

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

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 24px;
  align-items: start;
}

.contact-info {
  display: grid;
  gap: 12px;
}

.channel {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--panel);
  text-decoration: none;
  color: var(--ink);
}

a.channel:hover {
  border-color: var(--a1);
}

.channel-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  color: var(--a1);
  border: 1px solid var(--line);
  border-radius: var(--radius-btn);
}

.channel-icon svg {
  width: 20px;
  height: 20px;
}

.channel-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.53rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--muted);
}

.channel-value {
  display: block;
  font-size: 0.92rem;
}

.contact-form {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: var(--panel);
  box-shadow: var(--card-shadow);
}

.field {
  margin-bottom: 14px;
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

label {
  display: block;
  margin-bottom: 6px;
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.optional {
  opacity: 0.55;
  text-transform: none;
  letter-spacing: 0.04em;
}

input,
textarea {
  width: 100%;
  padding: 0.74rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-btn);
  background: var(--input-bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 0.95rem;
}

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

input:focus,
textarea:focus {
  outline: none;
  border-color: var(--a1);
  box-shadow: 0 0 0 3px var(--focus-ring);
}

.hp {
  display: none;
}

.form-status {
  margin: 0 0 12px;
  padding: 10px 12px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-btn);
  color: var(--ink);
}

.form-status[data-kind="error"] {
  border-color: var(--a1);
}

.form-status[data-kind="ok"] {
  border-color: var(--a2);
}

.form-note {
  margin: 10px 0 0;
  font-size: 0.72rem;
  color: var(--muted);
}

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

.footer {
  padding: 44px 0 22px;
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 24px;
}

.footer-brand p {
  max-width: 340px;
  margin: 10px 0 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.footer-col {
  display: grid;
  gap: 8px;
  align-content: start;
}

.footer-col a,
.footer-col span {
  font-size: 0.8rem;
  color: var(--muted);
  text-decoration: none;
}

.footer-col a:hover {
  color: var(--ink);
}

.footer-heading {
  font-family: var(--font-mono);
  font-size: 0.55rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink);
}

.footer-social .social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 2px;
}

.social-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 31px;
  height: 31px;
  border: 1px solid var(--line);
  border-radius: var(--radius-btn);
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.social-link:hover {
  color: var(--ink);
  border-color: var(--a1);
  background: var(--focus-ring);
}

.social-link svg {
  display: block;
  width: 16px;
  height: 16px;
}

.footer-social-mail {
  margin-top: 2px;
  font-size: 0.78rem;
  color: var(--muted);
  text-decoration: none;
}

.footer-social-mail:hover {
  color: var(--ink);
}

.footer-base {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.58rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.status i {
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--a2);
  animation: pulse 2s ease-in-out infinite;
}

/* ============================================================
   Motion / reveal
   ============================================================ */

.reveal {
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.is-hidden {
  opacity: 0;
  transform: translateY(26px);
}

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

@keyframes halo-drift {
  from {
    transform: translate3d(0, 0, 0) scale(1);
  }
  to {
    transform: translate3d(2%, -2%, 0) scale(1.07);
  }
}

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

@keyframes wave-dash {
  to {
    stroke-dashoffset: -360;
  }
}

@keyframes pulse {
  0%,
  100% {
    opacity: 0.45;
  }
  50% {
    opacity: 1;
  }
}

/* ============================================================
   Theme-specific typography and surfaces
   ============================================================ */

/* --- Cyberpunk --- */

html[data-theme="cyberpunk"] .hero h1 {
  text-transform: uppercase;
  font-weight: 900;
  letter-spacing: 0.015em;
}

html[data-theme="cyberpunk"] .hero h1 .accent {
  color: transparent;
  background: linear-gradient(90deg, var(--a1), var(--a2), var(--a3), var(--a1));
  background-size: 260% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  animation: gradient-shift 9s linear infinite;
  filter: drop-shadow(0 0 18px rgba(47, 230, 255, 0.35));
}

html[data-theme="cyberpunk"] .card::before,
html[data-theme="cyberpunk"] .card::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  opacity: 0.55;
  pointer-events: none;
}

html[data-theme="cyberpunk"] .card::before {
  top: -1px;
  left: -1px;
  border-top: 2px solid var(--a1);
  border-left: 2px solid var(--a1);
  border-radius: var(--radius-card) 0 0 0;
}

html[data-theme="cyberpunk"] .card::after {
  right: -1px;
  bottom: -1px;
  border-right: 2px solid var(--a1);
  border-bottom: 2px solid var(--a1);
  border-radius: 0 0 var(--radius-card) 0;
}

html[data-theme="cyberpunk"] .btn {
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  filter: drop-shadow(0 0 12px rgba(47, 230, 255, 0.22));
}

html[data-theme="cyberpunk"] .btn:hover {
  filter: drop-shadow(0 0 18px rgba(47, 230, 255, 0.45)) drop-shadow(0 0 32px rgba(154, 107, 255, 0.3));
}

html[data-theme="cyberpunk"] .btn-ghost {
  color: var(--a1);
  border-color: rgba(47, 230, 255, 0.55);
  background: rgba(47, 230, 255, 0.06);
}

html[data-theme="cyberpunk"] .metric-value {
  text-shadow: 0 0 18px rgba(47, 230, 255, 0.45);
}

html[data-theme="cyberpunk"] .section-title {
  text-shadow: 0 0 26px rgba(47, 230, 255, 0.16);
}

@keyframes gradient-shift {
  to {
    background-position: 260% 0;
  }
}

/* --- Elegant --- */

html[data-theme="elegant"] .hero h1 {
  font-weight: 400;
  letter-spacing: 0.005em;
  line-height: 1;
}

html[data-theme="elegant"] .hero h1 .accent {
  font-style: italic;
  color: var(--a1);
}

html[data-theme="elegant"] .kicker {
  letter-spacing: 0.32em;
}

html[data-theme="elegant"] .section-title {
  font-weight: 400;
  font-style: italic;
}

html[data-theme="elegant"] .card {
  background: var(--panel);
  border-color: var(--line);
}

html[data-theme="elegant"] .card:hover {
  transform: translateY(-3px);
  border-color: var(--a1);
  box-shadow: 0 20px 44px rgba(70, 52, 32, 0.14);
}

html[data-theme="elegant"] .card h3 {
  font-weight: 600;
  letter-spacing: 0.02em;
}

html[data-theme="elegant"] .btn {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
  box-shadow: none;
}

html[data-theme="elegant"] .btn:hover {
  background: var(--ink);
  color: var(--btn-ink);
  box-shadow: 0 8px 20px rgba(31, 41, 51, 0.18);
}

html[data-theme="elegant"] .btn-ghost {
  background: transparent;
  color: var(--a1);
  border-color: var(--a1);
}

html[data-theme="elegant"] .btn-ghost:hover {
  background: var(--a1);
  color: var(--bg);
}

html[data-theme="elegant"] .ticker-track {
  color: var(--ink);
  opacity: 0.55;
}

html[data-theme="elegant"] .metric-value {
  color: var(--a2);
}

html[data-theme="elegant"] .monogram-initials {
  color: var(--a2);
  font-style: italic;
}

/* --- Web 3.0 --- */

html[data-theme="web3"] .hero h1 {
  font-weight: 600;
  letter-spacing: -0.035em;
}

html[data-theme="web3"] .hero h1 .accent {
  color: transparent;
  background: linear-gradient(100deg, var(--a1), var(--a2) 70%, var(--a3));
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  animation: gradient-shift 11s linear infinite;
}

html[data-theme="web3"] .card {
  background:
    radial-gradient(420px 260px at 20% 0%, rgba(123, 97, 255, 0.14), transparent 70%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02));
  border-color: rgba(150, 175, 205, 0.22);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

html[data-theme="web3"] .card:hover {
  transform: translateY(-6px);
  border-color: rgba(123, 97, 255, 0.6);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.5), 0 0 30px rgba(34, 211, 197, 0.12);
}

html[data-theme="web3"] .card-icon {
  background: rgba(123, 97, 255, 0.12);
  border-color: rgba(123, 97, 255, 0.4);
  border-radius: 12px;
}

html[data-theme="web3"] .btn {
  box-shadow: 0 10px 30px rgba(123, 97, 255, 0.25);
}

html[data-theme="web3"] .btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(150, 175, 205, 0.3);
}

html[data-theme="web3"] .metric {
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.015));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

html[data-theme="web3"] .channel {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

/* --- Retro --- */

html[data-theme="retro"] .hero h1 {
  text-transform: uppercase;
  font-weight: 400;
  font-size: clamp(3rem, 8vw, 6.2rem);
  line-height: 0.88;
  letter-spacing: 0.02em;
}

html[data-theme="retro"] .hero h1 .accent {
  color: var(--a1);
  text-shadow: 4px 4px 0 rgba(58, 42, 28, 0.22);
}

html[data-theme="retro"] .section-title {
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

html[data-theme="retro"] .card {
  border-width: 2px;
  border-color: var(--ink);
  box-shadow: 6px 6px 0 rgba(58, 42, 28, 0.16), 0 14px 28px rgba(58, 42, 28, 0.1);
}

html[data-theme="retro"] .card:hover {
  transform: translate(-2px, -4px);
  box-shadow: 8px 8px 0 rgba(58, 42, 28, 0.2), 0 18px 34px rgba(58, 42, 28, 0.12);
}

html[data-theme="retro"] .card-icon {
  border-width: 2px;
  border-color: var(--ink);
  background: var(--a3);
  color: var(--ink);
}

html[data-theme="retro"] .btn {
  border: 2px solid var(--ink);
  box-shadow: 4px 4px 0 rgba(58, 42, 28, 0.22);
}

html[data-theme="retro"] .btn-ghost {
  background: transparent;
  border: 2px solid var(--ink);
  color: var(--ink);
}

html[data-theme="retro"] .metric {
  border-width: 2px;
  border-color: var(--ink);
}

html[data-theme="retro"] .channel {
  border-width: 2px;
  border-color: var(--ink);
}

html[data-theme="retro"] .contact-form {
  border-width: 2px;
  border-color: var(--ink);
}

html[data-theme="retro"] .monogram-core {
  border-width: 2px;
  border-color: var(--ink);
}

html[data-theme="retro"] .footer {
  border-top-width: 2px;
}

/* ============================================================
   Responsive
   ============================================================ */

@media (max-width: 1040px) {
  .nav-links {
    gap: 16px;
  }

  .theme-trigger {
    padding: 8px 11px 10px;
    font-size: 0.55rem;
  }
}

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

  .monogram {
    width: 260px;
    height: 260px;
  }

  .monogram-core {
    inset: 78px;
  }
}

@media (max-width: 760px) {
  .nav-links,
  .nav-side .btn {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  .nav-side {
    margin-left: auto;
  }

  .theme-trigger {
    padding: 7px 9px 9px;
    font-size: 0.52rem;
    letter-spacing: 0.11em;
  }

  .theme-panel {
    width: 195px;
  }

  .nav-mobile[hidden] {
    display: none;
  }

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

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 120px;
  }
}

@media (max-width: 560px) {
  .nav-inner {
    gap: 14px;
  }

  .brand {
    gap: 8px;
  }

  .brand-mark svg {
    width: 32px;
    height: 32px;
  }

  .brand-type {
    font-size: 0.8rem;
    letter-spacing: 0.1em;
  }

  .nav-side {
    gap: 8px;
  }

  .theme-trigger {
    padding: 6px 8px 8px;
    font-size: 0.48rem;
    letter-spacing: 0.1em;
  }

  .theme-arrow svg {
    width: 15px;
    height: 10px;
  }

  .hero h1 {
    font-size: clamp(2.3rem, 11vw, 3.4rem);
  }

  html[data-theme="retro"] .hero h1 {
    font-size: clamp(2.6rem, 12vw, 3.8rem);
  }

  .services-grid,
  .metrics,
  .field-row {
    grid-template-columns: 1fr;
  }

  .hero-meta {
    gap: 1rem;
  }

  .footer-base {
    flex-direction: column;
  }
}

/* ============================================================
   Reduced motion
   ============================================================ */

@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;
  }

  .reveal.is-hidden {
    opacity: 1;
    transform: none;
  }
}
