:root {
  --bg: #070816;
  --bg-deep: #050611;
  --surface: #101329;
  --surface-strong: #171a36;
  --text: #f8fafc;
  --muted: #aeb6c7;
  --light: #f5f7fb;
  --light-2: #e9edf5;
  --ink: #101225;
  --ink-muted: #626b7f;
  --violet: #7c3cff;
  --blue: #32b7ff;
  --gold: #f5c451;
  --line: rgba(255, 255, 255, 0.12);
  --line-dark: rgba(16, 18, 37, 0.12);
  --shadow: 0 24px 80px rgba(10, 12, 30, 0.22);
  --section-light-bg: #0b0d1f;
  --section-light-text: #f8fafc;
  --section-light-muted: #aeb6c7;
  --section-light-line: rgba(255, 255, 255, 0.12);
  --card-bg: rgba(255, 255, 255, 0.07);
  --card-border: rgba(255, 255, 255, 0.12);
  --card-text: #f8fafc;
  --card-muted: #aeb6c7;
  --card-shadow: 0 24px 80px rgba(0, 0, 0, 0.22);
  --radius: 24px;
  --radius-sm: 16px;
  --container: 1160px;
  --header-height: 76px;
  color-scheme: dark;
}

[data-theme="light"] {
  --bg: #f4f7ff;
  --bg-deep: #e8eef9;
  --surface: #ffffff;
  --surface-strong: #eef3fb;
  --text: #11152b;
  --muted: #4e5b72;
  --line: rgba(24, 32, 64, 0.16);
  --section-light-bg: #f7f9fe;
  --section-light-text: #11152b;
  --section-light-muted: #536078;
  --section-light-line: rgba(24, 32, 64, 0.16);
  --card-bg: rgba(255, 255, 255, 0.94);
  --card-border: rgba(30, 42, 82, 0.16);
  --card-text: #11152b;
  --card-muted: #536078;
  --card-shadow: 0 18px 50px rgba(30, 42, 82, 0.12);
  --violet: #6738e8;
  --blue: #0879cf;
  --gold: #9b6100;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 1rem);
}

body {
  margin: 0;
  overflow-x: hidden;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
}

body.nav-open {
  overflow: hidden;
}

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

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(245, 196, 81, 0.72);
  outline-offset: 3px;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.skip-link {
  position: fixed;
  left: 1rem;
  top: 1rem;
  z-index: 200;
  transform: translateY(-150%);
  border-radius: 999px;
  background: var(--text);
  color: var(--bg);
  padding: 0.75rem 1rem;
  font-weight: 700;
  transition: transform 0.2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.container {
  width: min(100% - 2rem, var(--container));
  margin-inline: auto;
}

.section {
  padding: clamp(4.5rem, 9vw, 8rem) 0;
}

.section-dark {
  background:
    radial-gradient(circle at 12% 20%, rgba(124, 60, 255, 0.26), transparent 34rem),
    radial-gradient(circle at 86% 12%, rgba(50, 183, 255, 0.18), transparent 28rem),
    var(--bg);
  color: var(--text);
}

.section-light {
  background:
    radial-gradient(circle at 10% 10%, rgba(124, 60, 255, 0.08), transparent 26rem),
    var(--section-light-bg);
  color: var(--section-light-text);
  transition: background 0.25s ease, color 0.25s ease;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  min-height: var(--header-height);
  overflow: visible;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(7, 8, 22, 0.76);
  backdrop-filter: blur(22px);
  transition: box-shadow 0.25s ease, background 0.25s ease;
}

[data-theme="light"] .site-header {
  background: rgba(255, 255, 255, 0.84);
  border-bottom-color: rgba(24, 32, 64, 0.12);
}

[data-theme="light"] a:focus-visible,
[data-theme="light"] button:focus-visible,
[data-theme="light"] input:focus-visible,
[data-theme="light"] textarea:focus-visible {
  outline-color: rgba(103, 56, 232, 0.62);
}

.site-header.is-scrolled {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
}

.nav {
  position: relative;
  min-height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  overflow: visible;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0;
}

.brand-mark {
  position: relative;
  width: 2.25rem;
  height: 2.25rem;
  display: grid;
  place-items: center;
  border-radius: 0.8rem;
  background: linear-gradient(135deg, var(--violet), var(--blue), var(--violet));
  background-size: 220% 220%;
  background-position: 0% 50%;
  color: #ffffff;
  box-shadow: 0 12px 30px rgba(124, 60, 255, 0.32);
  overflow: hidden;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), background-position 0.8s ease, box-shadow 0.4s ease;
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg,
    transparent 0%,
    transparent 35%,
    rgba(255, 255, 255, 0.45) 50%,
    transparent 65%,
    transparent 100%);
  transform: translateX(-110%);
  transition: transform 0.8s ease;
}

.brand:hover .brand-mark {
  transform: rotate(-8deg) scale(1.08);
  background-position: 100% 50%;
  box-shadow: 0 16px 38px rgba(50, 183, 255, 0.4);
}

.brand:hover .brand-mark::after {
  transform: translateX(110%);
}

.nav-toggle {
  width: 2.75rem;
  height: 2.75rem;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.34rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: transparent;
  color: currentColor;
}

.nav-toggle span {
  width: 1.1rem;
  height: 2px;
  margin-inline: auto;
  border-radius: 99px;
  background: currentColor;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translateY(0.46rem) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translateY(-0.46rem) rotate(-45deg);
}

.nav-panel {
  position: fixed;
  inset: var(--header-height) 1rem auto;
  display: grid;
  gap: 1rem;
  max-height: calc(100svh - var(--header-height) - 2rem);
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(11, 13, 30, 0.96);
  padding: 1rem;
  box-shadow: var(--shadow);
  transform: translateY(-1rem);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.24s ease, opacity 0.24s ease;
}

[data-theme="light"] .nav-panel {
  background: rgba(255, 255, 255, 0.98);
}

.nav-panel.is-open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.nav-links {
  display: grid;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nav-links a {
  position: relative;
  display: block;
  border-radius: 0.9rem;
  padding: 0.8rem 0.9rem;
  color: var(--muted);
  font-weight: 700;
  transition: color 0.25s ease, background 0.25s ease, transform 0.25s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0.45rem;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--violet), var(--blue));
  transform: translateX(-50%);
  transition: width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.nav-links a:hover,
.nav-links a:focus-visible {
  background: rgba(124, 60, 255, 0.12);
  color: var(--text);
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  width: calc(100% - 1.8rem);
}

[data-theme="light"] .nav-links a:hover,
[data-theme="light"] .nav-links a:focus-visible {
  color: var(--ink);
}

[data-theme="light"] .theme-toggle {
  background: rgba(255, 255, 255, 0.86);
  border-color: rgba(30, 42, 82, 0.18);
  box-shadow: 0 8px 24px rgba(30, 42, 82, 0.08);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.theme-toggle {
  position: relative;
  width: 2.75rem;
  height: 2.75rem;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: currentColor;
  overflow: hidden;
  transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.theme-toggle:hover {
  transform: translateY(-2px) rotate(8deg);
  background: rgba(124, 60, 255, 0.16);
  border-color: rgba(245, 196, 81, 0.4);
  box-shadow: 0 8px 22px rgba(124, 60, 255, 0.2);
}

.theme-icon {
  position: absolute;
  width: 1.15rem;
  height: 1.15rem;
  transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

[data-theme="dark"] .theme-icon-moon {
  opacity: 1;
  transform: rotate(0deg) scale(1);
}

[data-theme="dark"] .theme-icon-sun {
  opacity: 0;
  transform: rotate(-90deg) scale(0.4);
}

[data-theme="light"] .theme-icon-moon {
  opacity: 0;
  transform: rotate(90deg) scale(0.4);
}

[data-theme="light"] .theme-icon-sun {
  opacity: 1;
  transform: rotate(0deg) scale(1);
  color: var(--gold);
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.15rem;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.9rem 1.25rem;
  font-weight: 800;
  line-height: 1;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.3s ease,
              background 0.3s ease,
              border-color 0.3s ease,
              letter-spacing 0.3s ease;
}

.btn:hover,
.btn:focus-visible {
  transform: translateY(-3px);
  letter-spacing: 0.01em;
}

.btn:active {
  transform: translateY(-1px) scale(0.98);
}

.btn-primary {
  background: linear-gradient(135deg, var(--violet), var(--blue), var(--violet));
  background-size: 220% 220%;
  background-position: 0% 50%;
  color: #ffffff;
  box-shadow: 0 18px 40px rgba(124, 60, 255, 0.32);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.4s ease,
              background-position 0.7s ease,
              letter-spacing 0.3s ease;
}

.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(120deg,
    transparent 0%,
    transparent 35%,
    rgba(255, 255, 255, 0.32) 50%,
    transparent 65%,
    transparent 100%);
  transform: translateX(-120%);
  transition: transform 0.85s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary:hover,
.btn-primary:focus-visible {
  background-position: 100% 50%;
  box-shadow: 0 26px 60px rgba(50, 183, 255, 0.38);
}

.btn-primary:hover::after,
.btn-primary:focus-visible::after {
  transform: translateX(120%);
}

.btn-secondary {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.07);
  color: var(--text);
}

[data-theme="light"] .btn-secondary {
  border-color: rgba(30, 42, 82, 0.2);
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
  box-shadow: 0 12px 30px rgba(30, 42, 82, 0.1);
}

.btn-secondary:hover,
.btn-secondary:focus-visible {
  border-color: rgba(245, 196, 81, 0.55);
  background: rgba(245, 196, 81, 0.1);
}

[data-theme="light"] .btn-secondary:hover,
[data-theme="light"] .btn-secondary:focus-visible {
  border-color: rgba(155, 97, 0, 0.42);
  background: rgba(155, 97, 0, 0.1);
}

.btn-small {
  min-height: 2.75rem;
  padding: 0.75rem 1rem;
  font-size: 0.9rem;
}

.hero {
  position: relative;
  min-height: calc(100svh - var(--header-height));
  overflow: hidden;
  display: grid;
  align-items: center;
  padding: clamp(4rem, 8vw, 6rem) 0;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 4rem 4rem;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent 92%);
}

[data-theme="light"] .hero-bg {
  background-image:
    linear-gradient(rgba(24, 32, 64, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24, 32, 64, 0.045) 1px, transparent 1px);
}

.hero-star {
  position: absolute;
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 32px 12px rgba(245, 196, 81, 0.28);
  animation: twinkle 3s ease-in-out infinite;
}

.hero-star-one {
  left: 10%;
  top: 26%;
}

.hero-star-two {
  right: 18%;
  top: 18%;
  animation-delay: 0.7s;
}

.hero-star-three {
  right: 38%;
  bottom: 20%;
  animation-delay: 1.4s;
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  align-items: center;
  gap: clamp(2.5rem, 7vw, 6rem);
}

.hero-content {
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 0.98;
  letter-spacing: 0;
  overflow-wrap: break-word;
  hyphens: none;
  text-wrap: balance;
}

h1 {
  max-width: 820px;
  font-size: clamp(3.15rem, 7.2vw, 5.5rem);
}

h2 {
  font-size: clamp(2.3rem, 6vw, 5rem);
}

h3 {
  font-size: clamp(1.25rem, 3vw, 1.65rem);
  line-height: 1.1;
}

.hero-copy {
  max-width: 650px;
  margin: 1.45rem 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2rem;
}

.spell-stage {
  position: relative;
  min-height: 22rem;
  display: grid;
  place-items: center;
}

.spell-stage::before {
  content: "";
  position: absolute;
  width: min(88vw, 32rem);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.18) 0 2px, transparent 3px 100%),
    conic-gradient(from 90deg, rgba(124, 60, 255, 0.12), rgba(50, 183, 255, 0.3), rgba(245, 196, 81, 0.16), rgba(124, 60, 255, 0.12));
  box-shadow: inset 0 0 70px rgba(255, 255, 255, 0.08), 0 40px 120px rgba(50, 183, 255, 0.18);
  animation: rotate-slow 18s linear infinite;
}

.orbital {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  animation: orbital-pulse 6s ease-in-out infinite;
}

.orbital-one {
  width: min(78vw, 25rem);
  aspect-ratio: 1;
  animation: orbital-spin 28s linear infinite;
}

.orbital-two {
  width: min(68vw, 20rem);
  aspect-ratio: 1;
  transform: rotate(28deg);
  border-color: rgba(245, 196, 81, 0.22);
  animation: orbital-spin-rev 22s linear infinite;
}

.orbital::before {
  content: "";
  position: absolute;
  width: 0.6rem;
  height: 0.6rem;
  top: -0.3rem;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 16px 4px rgba(245, 196, 81, 0.55);
}

.orbital-two::before {
  background: var(--blue);
  box-shadow: 0 0 16px 4px rgba(50, 183, 255, 0.55);
}

.magic-core {
  position: relative;
  z-index: 1;
  width: 11.5rem;
  height: 11.5rem;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0.25rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: rgba(9, 11, 28, 0.72);
  box-shadow: inset 0 0 36px rgba(124, 60, 255, 0.18), 0 24px 70px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(18px);
  animation: core-breathe 5s ease-in-out infinite;
}

[data-theme="light"] .magic-core {
  border-color: rgba(30, 42, 82, 0.14);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: inset 0 0 36px rgba(103, 56, 232, 0.12), 0 24px 70px rgba(30, 42, 82, 0.12);
  animation-name: core-breathe-light;
}

.magic-core strong {
  font-size: 2rem;
}

.magic-core span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
  text-transform: uppercase;
}

.magic-core .core-label {
  color: var(--gold);
}

.floating-note {
  position: absolute;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  padding: 0.65rem 0.9rem;
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 800;
  backdrop-filter: blur(12px);
  animation: float 5s ease-in-out infinite;
}

[data-theme="light"] .floating-note {
  border-color: rgba(30, 42, 82, 0.14);
  background: rgba(255, 255, 255, 0.74);
  color: var(--text);
  box-shadow: 0 12px 28px rgba(30, 42, 82, 0.1);
}

.note-one {
  top: 12%;
  left: 7%;
}

.note-two {
  right: 1%;
  top: 35%;
  animation-delay: 0.8s;
}

.note-three {
  bottom: 10%;
  left: 18%;
  animation-delay: 1.5s;
}

.stats-band {
  border-bottom: 1px solid var(--section-light-line);
  padding: 1.4rem 0;
}

.stats-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, 1fr);
}

.stats-grid div {
  border-left: 1px solid var(--section-light-line);
  padding-left: 1rem;
}

.stats-grid strong {
  display: block;
  font-size: clamp(1.8rem, 5vw, 3rem);
  line-height: 1;
}

.stats-grid span {
  color: var(--section-light-muted);
  font-weight: 700;
}

.split-heading,
.section-header {
  display: grid;
  gap: 1rem;
  margin-bottom: clamp(2.25rem, 5vw, 4rem);
}

.split-heading p:not(.eyebrow),
.section-header p:not(.eyebrow) {
  max-width: 620px;
  margin: 0;
  color: var(--section-light-muted);
  font-size: 1.05rem;
}

.section-dark .section-header p:not(.eyebrow),
.section-dark .split-heading p:not(.eyebrow) {
  color: var(--muted);
}

.services-intro {
  display: grid;
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: end;
  margin-bottom: clamp(2rem, 5vw, 4rem);
}

.services-intro-copy {
  display: grid;
  gap: 1rem;
  max-width: 780px;
}

.services-intro-copy .eyebrow {
  margin-bottom: 0;
}

.services-intro-copy h2 {
  font-size: clamp(2.25rem, 6vw, 4.75rem);
  line-height: 1.02;
}

.services-intro-copy p:not(.eyebrow) {
  max-width: 680px;
  margin: 0;
  color: var(--section-light-muted);
  font-size: clamp(1.05rem, 2vw, 1.18rem);
  font-weight: 600;
}

.service-signals {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.service-signals li {
  border: 1px solid var(--section-light-line);
  border-radius: 999px;
  background: var(--card-bg);
  color: var(--section-light-text);
  padding: 0.72rem 1rem;
  font-size: 0.9rem;
  font-weight: 900;
  box-shadow: var(--card-shadow);
}

.preview-grid,
.services-grid,
.project-grid,
.values-grid {
  display: grid;
  gap: 1rem;
}

.feature-tile,
.service-card,
.project-card,
.value-item,
.quote {
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  background: var(--card-bg);
  box-shadow: var(--card-shadow);
  color: var(--card-text);
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.feature-tile,
.service-card,
.project-card,
.value-item {
  padding: 1.35rem;
  transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.feature-tile {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 1.2rem;
  min-height: 20rem;
  padding: clamp(1.25rem, 3vw, 1.75rem);
}

.feature-tile,
.service-card,
.project-card,
.value-item {
  position: relative;
  isolation: isolate;
}

.feature-tile::before,
.service-card::before,
.project-card::before,
.value-item::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%),
    rgba(124, 60, 255, 0.18),
    rgba(50, 183, 255, 0.08) 30%,
    transparent 55%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}

.feature-tile:hover,
.service-card:hover,
.project-card:hover,
.value-item:hover {
  transform: translateY(-8px);
  border-color: rgba(124, 60, 255, 0.32);
  box-shadow:
    var(--shadow),
    0 0 0 1px rgba(124, 60, 255, 0.16);
}

.feature-tile:hover::before,
.service-card:hover::before,
.project-card:hover::before,
.value-item:hover::before {
  opacity: 1;
}

.tile-icon,
.service-icon {
  position: relative;
  width: 3.4rem;
  height: 3.4rem;
  display: grid;
  place-items: center;
  margin-bottom: 1.2rem;
  border-radius: 1.1rem;
  background:
    radial-gradient(circle at 30% 30%, rgba(124, 60, 255, 0.45), rgba(50, 183, 255, 0.18) 55%, rgba(245, 196, 81, 0.12) 100%);
  background-size: 220% 220%;
  background-position: 0% 50%;
  color: #ffffff;
  font-size: 1.4rem;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 12px 28px rgba(124, 60, 255, 0.22);
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1),
              box-shadow 0.4s ease,
              background-position 0.6s ease;
}

.tile-icon::before,
.service-icon::before {
  content: "";
  position: absolute;
  inset: -2px;
  z-index: -1;
  border-radius: inherit;
  background: conic-gradient(from 0deg,
    rgba(124, 60, 255, 0.0),
    rgba(124, 60, 255, 0.65),
    rgba(50, 183, 255, 0.65),
    rgba(245, 196, 81, 0.55),
    rgba(124, 60, 255, 0.0));
  opacity: 0;
  transition: opacity 0.4s ease;
  animation: spin-conic 6s linear infinite;
  filter: blur(10px);
}

.tile-icon::after,
.service-icon::after {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(20, 22, 50, 0.92), rgba(11, 13, 30, 0.78));
  z-index: -1;
}

.feature-tile:hover .tile-icon,
.service-card:hover .service-icon {
  transform: translateY(-3px) rotate(-3deg) scale(1.06);
  background-position: 100% 50%;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 18px 38px rgba(50, 183, 255, 0.32);
}

.feature-tile:hover .tile-icon::before,
.service-card:hover .service-icon::before {
  opacity: 1;
}

.service-icon svg {
  width: 1.6rem;
  height: 1.6rem;
  color: #ffffff;
  filter: drop-shadow(0 2px 6px rgba(124, 60, 255, 0.35));
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.service-card:hover .service-icon svg {
  transform: scale(1.08) rotate(3deg);
}

.feature-tile .tile-icon {
  width: 3rem;
  height: 3rem;
  margin-bottom: 0;
  border-radius: 1rem;
  color: var(--gold);
  font-size: 0.95rem;
  font-weight: 900;
}

.tile-icon-num {
  position: relative;
  z-index: 1;
  color: var(--gold);
  font-size: 0.95rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  transition: opacity 0.35s ease, transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.tile-icon-svg {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 1.55rem;
  height: 1.55rem;
  z-index: 1;
  color: #ffffff;
  opacity: 0;
  transform: scale(0.7) rotate(-12deg);
  transition: opacity 0.35s ease, transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
  filter: drop-shadow(0 2px 6px rgba(245, 196, 81, 0.35));
}

.feature-tile:hover .tile-icon-num {
  opacity: 0;
  transform: scale(0.7);
}

.feature-tile:hover .tile-icon-svg {
  opacity: 1;
  transform: scale(1) rotate(0deg);
}

.feature-tile p,
.service-card p,
.project-card p,
.value-item p {
  margin: 0.9rem 0 0;
  color: var(--card-muted);
}

.feature-tile p {
  max-width: 34rem;
  line-height: 1.65;
}

.feature-tile > strong {
  display: inline-flex;
  width: fit-content;
  border-top: 1px solid var(--card-border);
  padding-top: 1rem;
  color: var(--card-text);
  font-size: 0.9rem;
  font-weight: 900;
}

.service-card a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 1.25rem;
  color: var(--violet);
  font-weight: 800;
  transition: color 0.25s ease, gap 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card a .link-arrow {
  display: inline-block;
  transform: translateX(-2px);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.service-card:hover a {
  color: var(--blue);
  gap: 0.7rem;
}

.service-card:hover a .link-arrow {
  transform: translateX(4px);
}

.showcase-grid {
  display: grid;
  gap: 1rem;
}

.showcase-large,
.showcase-small {
  overflow: hidden;
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  background: var(--card-bg);
  box-shadow: var(--card-shadow);
  transition: transform 0.24s ease, border-color 0.24s ease;
}

.showcase-large:hover,
.showcase-small:hover {
  transform: translateY(-6px);
  border-color: rgba(245, 196, 81, 0.36);
}

.showcase-large div:last-child,
.showcase-small {
  padding: 1.2rem;
}

.showcase-large .project-photo,
.showcase-small .project-photo {
  margin: 0;
}

.showcase-large span,
.showcase-small span,
.project-card span {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.showcase-large p {
  margin: 0.8rem 0 0;
  color: var(--card-muted);
}

.project-visual {
  min-height: 13rem;
  border-radius: calc(var(--radius) - 0.45rem);
  overflow: hidden;
  position: relative;
}

.project-card .project-visual {
  margin-bottom: 1.2rem;
}

.project-photo {
  background: var(--surface);
}

.project-photo img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  transform: scale(1.01);
  transition: filter 0.7s ease, transform 0.7s ease;
}

.project-photo::before,
.project-photo::after {
  display: none;
}

.showcase-large:hover .project-photo img,
.showcase-small:hover .project-photo img,
.project-card:hover .project-photo img {
  filter: saturate(1.08) contrast(1.04);
  transform: scale(1.06);
}

.project-visual::before,
.project-visual::after {
  content: "";
  position: absolute;
  border-radius: 999px;
}

.project-visual::before {
  width: 9rem;
  height: 9rem;
  right: -2rem;
  top: -2rem;
  background: rgba(255, 255, 255, 0.22);
}

.project-visual::after {
  width: 74%;
  height: 0.7rem;
  left: 13%;
  bottom: 18%;
  background: rgba(255, 255, 255, 0.3);
  box-shadow: 0 1.7rem 0 rgba(255, 255, 255, 0.22), 0 3.4rem 0 rgba(255, 255, 255, 0.15);
}

.process-list {
  display: grid;
  border-top: 1px solid var(--section-light-line);
}

.process-step {
  display: grid;
  gap: 0.8rem;
  border-bottom: 1px solid var(--section-light-line);
  padding: 1.4rem 0;
}

.process-step span {
  color: var(--violet);
  font-weight: 900;
}

.process-step p {
  margin: 0;
  color: var(--section-light-muted);
}

.testimonial-layout {
  display: grid;
  gap: 2rem;
}

.testimonial-copy {
  align-self: start;
}

.quote-stack {
  display: grid;
  gap: 1rem;
}

.quote {
  margin: 0;
  padding: 1.4rem;
}

.quote p {
  margin: 0;
  color: var(--card-text);
  font-size: 1.05rem;
  font-weight: 700;
}

.quote cite {
  display: block;
  margin-top: 1rem;
  color: var(--card-muted);
  font-style: normal;
  font-weight: 700;
}

.about-grid {
  display: grid;
  gap: clamp(1.5rem, 5vw, 4rem);
  align-items: start;
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 12% 12%, rgba(124, 60, 255, 0.22), transparent 24rem),
    radial-gradient(circle at 92% 8%, rgba(50, 183, 255, 0.13), transparent 22rem),
    rgba(255, 255, 255, 0.045);
  padding: clamp(1.4rem, 5vw, 3rem);
  box-shadow: var(--card-shadow);
}

.about-heading {
  display: grid;
  gap: 1rem;
}

.about-heading .eyebrow {
  margin-bottom: 0;
}

.about-heading h2 {
  max-width: 720px;
  font-size: clamp(2.35rem, 6vw, 4.75rem);
  line-height: 1.02;
}

.about-lede {
  max-width: 620px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  font-weight: 600;
}

.about-copy {
  display: grid;
  gap: 1.25rem;
  max-width: 660px;
}

.about-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.about-points {
  display: grid;
  gap: 0.85rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.about-points li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.25rem 0.85rem;
  border-top: 1px solid var(--card-border);
  padding-top: 0.95rem;
}

.about-points li > span {
  grid-row: span 2;
  width: 2.2rem;
  height: 2.2rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(245, 196, 81, 0.12);
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
}

.about-points strong {
  color: var(--text);
  font-size: 1.08rem;
  line-height: 1.15;
}

.about-points p {
  font-size: 0.98rem;
  line-height: 1.55;
}

.about-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 0.25rem;
}

.about-proof span {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
  border: 1px solid var(--card-border);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.055);
  padding: 0.85rem;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.about-proof strong {
  color: var(--text);
  font-size: clamp(1.5rem, 4vw, 2rem);
  line-height: 1;
}

.about-media-grid {
  position: relative;
  display: grid;
  gap: 1rem;
  margin-top: clamp(2rem, 5vw, 4rem);
}

.about-photo {
  position: relative;
  min-height: 18rem;
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  background: var(--card-bg);
  box-shadow: var(--card-shadow);
  isolation: isolate;
}

.about-visual {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: inherit;
  display: block;
  object-fit: cover;
  object-position: center;
  transform: scale(1.01);
  transition: transform 0.7s ease, filter 0.7s ease;
}

.about-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, rgba(5, 6, 17, 0.82), transparent 56%);
  pointer-events: none;
}

.about-photo:hover .about-visual {
  filter: saturate(1.08) contrast(1.04);
  transform: scale(1.07);
}

.about-photo-main {
  min-height: clamp(24rem, 54vw, 38rem);
}

.about-photo figcaption {
  position: absolute;
  left: clamp(1rem, 4vw, 2rem);
  right: clamp(1rem, 4vw, 2rem);
  bottom: clamp(1rem, 4vw, 2rem);
  z-index: 2;
  display: grid;
  gap: 0.55rem;
}

.about-photo figcaption span,
.about-insight span {
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.about-photo figcaption strong {
  max-width: 560px;
  font-size: clamp(1.45rem, 4vw, 2.55rem);
  line-height: 1;
}

.about-photo-stack {
  display: grid;
  gap: 1rem;
}

.about-photo-stack .about-photo {
  min-height: 14rem;
}

.about-insight {
  display: grid;
  gap: 0.8rem;
  align-content: end;
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 82% 18%, rgba(245, 196, 81, 0.18), transparent 16rem),
    var(--card-bg);
  padding: clamp(1.25rem, 4vw, 2rem);
  box-shadow: var(--card-shadow);
}

.about-insight strong {
  font-size: clamp(1.45rem, 3.5vw, 2.25rem);
  line-height: 1.03;
}

.about-insight p {
  margin: 0;
  color: var(--card-muted);
}

.values-grid {
  margin-top: clamp(2.5rem, 6vw, 5rem);
}

.section-dark .value-item {
  border-color: var(--card-border);
  background: var(--card-bg);
  box-shadow: var(--card-shadow);
}

.section-dark .value-item p {
  color: var(--card-muted);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-bottom: 1.5rem;
}

.filter-btn {
  border: 1px solid var(--card-border);
  border-radius: 999px;
  background: var(--card-bg);
  color: var(--card-text);
  padding: 0.75rem 1rem;
  font-weight: 800;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.filter-btn:hover,
.filter-btn:focus-visible,
.filter-btn.active {
  transform: translateY(-2px);
  border-color: rgba(245, 196, 81, 0.55);
  background: rgba(245, 196, 81, 0.12);
}

.project-card {
  background: var(--card-bg);
  border-color: var(--card-border);
  color: var(--card-text);
}

.project-card p {
  color: var(--card-muted);
}

.project-card.is-hidden {
  display: none;
}

.final-cta {
  padding-top: 0;
}

.cta-panel {
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 88% 18%, rgba(50, 183, 255, 0.22), transparent 18rem),
    linear-gradient(135deg, #101225, #201247 58%, #11162d);
  color: #ffffff;
  padding: clamp(2rem, 6vw, 4.5rem);
  box-shadow: var(--shadow);
}

.cta-panel h2 {
  max-width: 850px;
  margin-bottom: 1.5rem;
}

.contact-grid {
  display: grid;
  gap: 2rem;
}

.contact-copy p:not(.eyebrow) {
  max-width: 560px;
  color: var(--muted);
}

.contact-info,
.social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.contact-info a,
.contact-info span,
.social-links a {
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.7rem 0.95rem;
  color: var(--muted);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.social-links a:hover,
.contact-info a:hover {
  color: var(--text);
  border-color: rgba(245, 196, 81, 0.45);
}

.contact-form {
  display: grid;
  gap: 1rem;
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  background: var(--card-bg);
  padding: clamp(1.1rem, 4vw, 2rem);
  box-shadow: var(--card-shadow);
}

.form-row {
  display: grid;
  gap: 0.45rem;
}

.form-honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-row label {
  color: var(--card-text);
  font-weight: 800;
}

.form-row input,
.form-row textarea {
  width: 100%;
  border: 1px solid var(--card-border);
  border-radius: 1rem;
  background: var(--surface);
  color: var(--text);
  padding: 0.9rem 1rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.form-row textarea {
  resize: vertical;
}

.form-row input:focus,
.form-row textarea:focus {
  border-color: rgba(50, 183, 255, 0.72);
  box-shadow: 0 0 0 4px rgba(50, 183, 255, 0.12);
  background: var(--surface-strong);
}

.form-row.has-error input,
.form-row.has-error textarea {
  border-color: #ff8c8c;
}

.error-message {
  min-height: 1.2rem;
  color: #ffb4b4;
  font-size: 0.85rem;
  font-weight: 700;
}

.form-submit {
  width: 100%;
}

.form-submit:disabled {
  cursor: wait;
  opacity: 0.72;
}

.form-success {
  min-height: 1.4rem;
  margin: 0;
  color: #a7f3d0;
  font-weight: 800;
}

.form-success.is-error {
  color: #ffb4b4;
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0;
}

.footer-grid {
  display: grid;
  gap: 1rem;
}

.footer-grid p {
  margin: 0;
  color: var(--muted);
}

.footer-grid > a:last-child {
  color: var(--gold);
  font-weight: 900;
}

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

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

@keyframes rotate-slow {
  to {
    transform: rotate(1turn);
  }
}

@keyframes twinkle {
  0%,
  100% {
    opacity: 0.45;
    transform: scale(0.82);
  }
  50% {
    opacity: 1;
    transform: scale(1.18);
  }
}

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

@keyframes spin-conic {
  to {
    transform: rotate(1turn);
  }
}

@keyframes orbital-spin {
  to {
    transform: rotate(1turn);
  }
}

@keyframes orbital-spin-rev {
  from {
    transform: rotate(28deg);
  }
  to {
    transform: rotate(-332deg);
  }
}

@keyframes orbital-pulse {
  0%,
  100% {
    opacity: 0.85;
  }
  50% {
    opacity: 1;
  }
}

@keyframes core-breathe {
  0%,
  100% {
    box-shadow: inset 0 0 36px rgba(124, 60, 255, 0.18), 0 24px 70px rgba(0, 0, 0, 0.3);
  }
  50% {
    box-shadow: inset 0 0 56px rgba(50, 183, 255, 0.28), 0 30px 80px rgba(124, 60, 255, 0.32);
  }
}

@keyframes core-breathe-light {
  0%,
  100% {
    box-shadow: inset 0 0 36px rgba(103, 56, 232, 0.12), 0 24px 70px rgba(30, 42, 82, 0.12);
  }
  50% {
    box-shadow: inset 0 0 52px rgba(8, 121, 207, 0.16), 0 28px 78px rgba(103, 56, 232, 0.16);
  }
}

@keyframes shimmer {
  0% {
    background-position: -200% 50%;
  }
  100% {
    background-position: 200% 50%;
  }
}

@keyframes float-soft {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  33% {
    transform: translateY(-8px) rotate(0.6deg);
  }
  66% {
    transform: translateY(4px) rotate(-0.4deg);
  }
}

.floating-note {
  animation: float-soft 6s ease-in-out infinite;
}

.floating-note:hover {
  background: rgba(124, 60, 255, 0.22);
  border-color: rgba(245, 196, 81, 0.45);
  transform: translateY(-4px) scale(1.05);
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.3s ease, border-color 0.3s ease;
}

.hero-star {
  filter: drop-shadow(0 0 12px rgba(245, 196, 81, 0.55));
}

.eyebrow {
  background: linear-gradient(90deg, var(--gold), #ffd97a, var(--gold));
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 4.5s linear infinite;
}

[data-theme="light"] .eyebrow {
  background-image: linear-gradient(90deg, #7f4e00, #b76f00, #7f4e00);
}

.stats-grid strong,
.about-proof strong {
  background: linear-gradient(135deg, var(--text), var(--text) 60%, var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum";
}

.section-light .stats-grid strong {
  background: linear-gradient(135deg, var(--section-light-text), var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.filter-btn {
  position: relative;
  overflow: hidden;
}

.filter-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(124, 60, 255, 0.18), rgba(245, 196, 81, 0.18));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.filter-btn.active::before,
.filter-btn:hover::before {
  opacity: 1;
}

.filter-btn span,
.filter-btn {
  z-index: 1;
}

.contact-info a:hover,
.social-links a:hover {
  transform: translateY(-2px);
  background: rgba(245, 196, 81, 0.08);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.reveal {
  opacity: 0;
  transform: translateY(32px) scale(0.985);
  transition: opacity 0.85s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
}

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

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

@media (min-width: 680px) {
  .container {
    width: min(100% - 3rem, var(--container));
  }

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

  .process-step {
    grid-template-columns: 4rem minmax(10rem, 0.6fr) 1fr;
    align-items: start;
  }

  .showcase-grid {
    grid-template-columns: 1.4fr 1fr;
  }

  .showcase-large {
    grid-row: span 2;
  }

  .showcase-large .project-visual {
    min-height: 24rem;
    border-radius: 0;
  }

  .about-media-grid {
    grid-template-columns: 1.35fr 0.8fr;
    align-items: stretch;
  }

  .about-photo-main {
    grid-row: span 2;
  }

  .about-photo-stack {
    grid-template-rows: repeat(2, minmax(0, 1fr));
  }

  .about-photo-stack .about-photo {
    min-height: 0;
  }

  .about-insight {
    grid-column: 1 / -1;
  }

  .footer-grid {
    grid-template-columns: 1fr auto auto;
    align-items: center;
  }
}

@media (min-width: 900px) {
  .nav-toggle {
    display: none;
  }

  .nav-panel,
  [data-theme="light"] .nav-panel {
    position: static;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    max-height: none;
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
    backdrop-filter: none;
    padding: 0;
    box-shadow: none;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .nav-links {
    display: flex;
    align-items: center;
    gap: 0.15rem;
  }

  .nav-links a {
    padding: 0.65rem 0.8rem;
    font-size: 0.93rem;
  }

  .hero-grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(22rem, 0.92fr);
  }

  .spell-stage {
    min-height: 34rem;
  }

  .split-heading {
    grid-template-columns: 1fr 0.68fr;
    align-items: end;
  }

  .split-heading .eyebrow {
    grid-column: 1 / -1;
  }

  .services-intro {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .service-signals {
    justify-content: flex-end;
    max-width: 18rem;
  }

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

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

  .testimonial-layout,
  .about-grid,
  .contact-grid {
    grid-template-columns: 0.85fr 1.15fr;
  }

  .about-media-grid {
    grid-template-columns: 1.35fr 0.78fr 0.72fr;
  }

  .about-photo-main {
    grid-row: span 2;
  }

  .about-photo-stack {
    grid-row: span 2;
  }

  .about-insight {
    grid-column: auto;
    min-height: 100%;
  }

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

@media (max-width: 430px) {
  .hero {
    min-height: auto;
    padding-top: 3rem;
  }

  h1 {
    font-size: clamp(2.65rem, 17vw, 4rem);
  }

  h2 {
    font-size: clamp(2rem, 13vw, 3.2rem);
  }

  .btn {
    width: 100%;
  }

  .hero-actions,
  .contact-info,
  .social-links,
  .filter-bar {
    display: grid;
    grid-template-columns: 1fr;
  }

  .nav-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .theme-toggle {
    width: 100%;
  }

  .spell-stage {
    min-height: 18rem;
  }

  .spell-stage::before {
    width: min(82vw, 19rem);
  }

  .orbital-one {
    width: min(76vw, 18rem);
  }

  .orbital-two {
    width: min(66vw, 15rem);
  }

  .magic-core {
    width: 8.75rem;
    height: 8.75rem;
  }

  .magic-core strong {
    font-size: 1.55rem;
  }

  .floating-note {
    padding: 0.5rem 0.65rem;
    font-size: 0.72rem;
  }

  .note-two {
    right: 0;
  }

  .note-three {
    left: 4%;
  }

  .about-grid {
    padding: 1.15rem;
  }

  .about-proof {
    grid-template-columns: 1fr;
  }

  .service-signals {
    display: grid;
    grid-template-columns: 1fr;
  }

  .feature-tile {
    min-height: auto;
  }

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

  .project-visual {
    min-height: 10rem;
  }

  .about-photo {
    min-height: 13rem;
  }

  .about-photo-main {
    min-height: 22rem;
  }
}

/* ============================================================
   Light theme refinements — readability & contrast on light bg
   (dark theme is intentionally left untouched)
   ============================================================ */

[data-theme="light"] {
  --bg: #f4f6fc;
  --bg-deep: #e8ecf6;
  --surface: #ffffff;
  --surface-strong: #f3f5fb;
  --text: #0f1226;
  --muted: #4d566c;
  --line: rgba(15, 18, 38, 0.14);
  --section-light-bg: #f4f6fc;
  --section-light-text: #0f1226;
  --section-light-muted: #4d566c;
  --section-light-line: rgba(15, 18, 38, 0.14);
  --card-bg: #ffffff;
  --card-border: rgba(15, 18, 38, 0.1);
  --card-text: #0f1226;
  --card-muted: #4d566c;
  --card-shadow: 0 18px 50px rgba(15, 18, 38, 0.08);
  --gold: #c2891b;
  --violet: #6d2bf0;
  --blue: #1e8fe6;
}

/* Dark gradient overlays of section-dark are too purple on white —
   soften them just for light mode */
[data-theme="light"] .section-dark {
  background:
    radial-gradient(circle at 12% 20%, rgba(109, 43, 240, 0.07), transparent 32rem),
    radial-gradient(circle at 86% 12%, rgba(30, 143, 230, 0.06), transparent 28rem),
    var(--bg);
  color: var(--text);
}

[data-theme="light"] .section-light {
  background:
    radial-gradient(circle at 10% 10%, rgba(109, 43, 240, 0.05), transparent 26rem),
    var(--section-light-bg);
}

/* Hero grid lines visible on light */
[data-theme="light"] .hero-bg {
  background-image:
    linear-gradient(rgba(15, 18, 38, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 18, 38, 0.05) 1px, transparent 1px);
}

/* Hero spell-stage core: was dark-on-dark in light mode */
[data-theme="light"] .spell-stage::before {
  background:
    radial-gradient(circle, rgba(15, 18, 38, 0.08) 0 2px, transparent 3px 100%),
    conic-gradient(from 90deg, rgba(109, 43, 240, 0.18), rgba(30, 143, 230, 0.32),
      rgba(194, 137, 27, 0.22), rgba(109, 43, 240, 0.18));
  box-shadow: inset 0 0 70px rgba(255, 255, 255, 0.6),
    0 40px 120px rgba(30, 143, 230, 0.18);
}

[data-theme="light"] .orbital {
  border-color: rgba(15, 18, 38, 0.16);
}

[data-theme="light"] .orbital-two {
  border-color: rgba(194, 137, 27, 0.4);
}

[data-theme="light"] .magic-core {
  border-color: rgba(15, 18, 38, 0.12);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: inset 0 0 30px rgba(109, 43, 240, 0.1),
    0 24px 70px rgba(15, 18, 38, 0.14);
}

[data-theme="light"] .magic-core strong {
  color: var(--text);
}

[data-theme="light"] .magic-core span {
  color: var(--muted);
}

[data-theme="light"] .magic-core .core-label {
  color: var(--gold);
}

/* Floating notes need real bg/border on light */
[data-theme="light"] .floating-note {
  background: #ffffff;
  border-color: rgba(15, 18, 38, 0.12);
  color: var(--text);
  box-shadow: 0 10px 24px rgba(15, 18, 38, 0.08);
  backdrop-filter: none;
}

[data-theme="light"] .floating-note:hover {
  background: rgba(109, 43, 240, 0.08);
  border-color: rgba(109, 43, 240, 0.32);
}

/* Hero stars — keep gold but smaller halo on light */
[data-theme="light"] .hero-star {
  background: var(--gold);
  box-shadow: 0 0 22px 6px rgba(194, 137, 27, 0.35);
  filter: drop-shadow(0 0 8px rgba(194, 137, 27, 0.4));
}

/* Eyebrow shimmer — darken so it reads on white */
[data-theme="light"] .eyebrow {
  background: linear-gradient(90deg, var(--violet), var(--gold), var(--violet));
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Theme toggle, secondary button, nav-toggle — visible bg */
[data-theme="light"] .theme-toggle {
  background: rgba(15, 18, 38, 0.04);
  border-color: var(--line);
}

[data-theme="light"] .theme-toggle:hover {
  background: rgba(109, 43, 240, 0.08);
  border-color: rgba(109, 43, 240, 0.35);
  box-shadow: 0 8px 22px rgba(109, 43, 240, 0.14);
}

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

[data-theme="light"] .btn-secondary {
  background: #ffffff;
  border-color: var(--line);
  color: var(--text);
  box-shadow: 0 8px 22px rgba(15, 18, 38, 0.06);
}

[data-theme="light"] .btn-secondary:hover,
[data-theme="light"] .btn-secondary:focus-visible {
  background: rgba(109, 43, 240, 0.07);
  border-color: rgba(109, 43, 240, 0.35);
}

/* Nav links contrast */
[data-theme="light"] .nav-links a {
  color: var(--muted);
}

[data-theme="light"] .nav-links a:hover,
[data-theme="light"] .nav-links a:focus-visible {
  color: var(--text);
  background: rgba(109, 43, 240, 0.08);
}

/* About-grid — was nearly transparent white tint on white */
[data-theme="light"] .about-grid {
  background:
    radial-gradient(circle at 12% 12%, rgba(109, 43, 240, 0.1), transparent 24rem),
    radial-gradient(circle at 92% 8%, rgba(30, 143, 230, 0.08), transparent 22rem),
    #ffffff;
  border-color: var(--card-border);
  box-shadow: 0 24px 70px rgba(15, 18, 38, 0.08);
}

[data-theme="light"] .about-points li > span {
  background: rgba(194, 137, 27, 0.16);
  color: var(--gold);
}

[data-theme="light"] .about-proof span {
  background: rgba(15, 18, 38, 0.04);
  border-color: var(--card-border);
  color: var(--muted);
}

[data-theme="light"] .about-proof strong {
  background: linear-gradient(135deg, var(--text), var(--text) 60%, var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

[data-theme="light"] .about-insight {
  background:
    radial-gradient(circle at 82% 18%, rgba(194, 137, 27, 0.18), transparent 16rem),
    #ffffff;
}

/* About-photo overlay was a dark gradient — soften for light */
[data-theme="light"] .about-photo::after {
  background: linear-gradient(to top, rgba(15, 18, 38, 0.55), transparent 56%);
}

/* Cards inside section-dark: in light mode the whole section is light,
   so cards/value-items need a real surface contrast */
[data-theme="light"] .section-dark .value-item,
[data-theme="light"] .section-dark .quote {
  background: #ffffff;
  border-color: var(--card-border);
  color: var(--text);
  box-shadow: var(--card-shadow);
}

[data-theme="light"] .quote p {
  color: var(--text);
}

[data-theme="light"] .quote cite {
  color: var(--muted);
}

/* Filter buttons */
[data-theme="light"] .filter-btn {
  background: #ffffff;
  border-color: var(--card-border);
  color: var(--text);
  box-shadow: 0 6px 18px rgba(15, 18, 38, 0.04);
}

[data-theme="light"] .filter-btn:hover,
[data-theme="light"] .filter-btn:focus-visible,
[data-theme="light"] .filter-btn.active {
  border-color: rgba(194, 137, 27, 0.55);
  background: rgba(194, 137, 27, 0.1);
  color: var(--text);
}

/* Service / feature card hover glow uses dark accent — soften on light */
[data-theme="light"] .feature-tile::before,
[data-theme="light"] .service-card::before,
[data-theme="light"] .project-card::before,
[data-theme="light"] .value-item::before {
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%),
    rgba(109, 43, 240, 0.12),
    rgba(30, 143, 230, 0.06) 30%,
    transparent 55%);
}

/* Service-card link "Anfragen" — already violet, but stronger on light */
[data-theme="light"] .service-card a {
  color: var(--violet);
}

[data-theme="light"] .service-card:hover a {
  color: var(--blue);
}

/* Stats numbers: stronger gradient stops for light mode */
[data-theme="light"] .stats-grid strong,
[data-theme="light"] .about-proof strong {
  background: linear-gradient(135deg, var(--text), var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

[data-theme="light"] .stats-grid span {
  color: var(--muted);
}

/* Form fields */
[data-theme="light"] .form-row input,
[data-theme="light"] .form-row textarea {
  background: var(--surface-strong);
  color: var(--text);
  border-color: var(--card-border);
}

[data-theme="light"] .form-row input:focus,
[data-theme="light"] .form-row textarea:focus {
  border-color: rgba(30, 143, 230, 0.6);
  box-shadow: 0 0 0 4px rgba(30, 143, 230, 0.1);
  background: #ffffff;
}

[data-theme="light"] .form-row.has-error input,
[data-theme="light"] .form-row.has-error textarea {
  border-color: #d04646;
}

[data-theme="light"] .error-message {
  color: #c0392b;
}

[data-theme="light"] .form-success {
  color: #1f8b4c;
}

[data-theme="light"] .form-success.is-error {
  color: #c0392b;
}

/* Contact info / social pills */
[data-theme="light"] .contact-info a,
[data-theme="light"] .contact-info span,
[data-theme="light"] .social-links a {
  background: #ffffff;
  border-color: var(--card-border);
  color: var(--muted);
  box-shadow: 0 6px 18px rgba(15, 18, 38, 0.04);
}

[data-theme="light"] .contact-info a:hover,
[data-theme="light"] .social-links a:hover {
  color: var(--text);
  border-color: rgba(194, 137, 27, 0.5);
  background: rgba(194, 137, 27, 0.06);
}

/* Header scrolled shadow softened */
[data-theme="light"] .site-header.is-scrolled {
  box-shadow: 0 10px 30px rgba(15, 18, 38, 0.08);
}

/* Footer */
[data-theme="light"] .site-footer {
  border-top-color: var(--line);
}

[data-theme="light"] .footer-grid > a:last-child {
  color: var(--violet);
}

/* Service-icon ring glow — slightly tone down on light bg */
[data-theme="light"] .tile-icon,
[data-theme="light"] .service-icon {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.18),
    0 12px 24px rgba(109, 43, 240, 0.18);
}

[data-theme="light"] .feature-tile:hover .tile-icon,
[data-theme="light"] .service-card:hover .service-icon {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    0 18px 32px rgba(30, 143, 230, 0.22);
}

/* CTA-panel keeps its own dark gradient — leave intact */
