:root {
  --bg: #02040a;
  --bg-soft: #050812;
  --panel: rgba(10, 15, 30, 0.3);
  --neon: #00e5ff;
  --blue: #0066ff;
  --violet: #7b2cff;
  --sand: #f0d28a;
  --text: #ffffff;
  --muted: #b0b0c0;
  --line: rgba(0, 229, 255, 0.2);
  --display: "Montserrat", sans-serif;
  --hero-display: "Orbitron", "Sora", sans-serif;
  --body: "Inter", sans-serif;
}

@media (max-width: 768px) {
  .hero-copy {
    max-width: 100% !important; /* Libera el ancho en móviles */
    width: 100%;
    padding: 0 1.5rem;
    z-index: 10;
    text-align: center; /* Opcional, para que luzca mejor en móvil */
  }
  
  .hero-copy h1 {
    font-size: clamp(2rem, 12vw, 3.5rem) !important; /* Escala dinámica extrema para móviles */
    word-break: break-word; /* Evita que la palabra rompa el contenedor */
    hyphens: auto;
    line-height: 1.1;
  }

  /* En móvil, la K debe irse al fondo y bajar opacidad para no estorbar la lectura */
  .hero-art, .hero-image-container, .hero-right {
    position: absolute !important;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 0.15 !important; 
    z-index: 1;
    pointer-events: none;
  }
}

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

html {
  width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  width: 100%;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 14% 10%, rgba(0, 102, 255, 0.16), transparent 34rem),
    radial-gradient(circle at 88% 18%, rgba(123, 44, 255, 0.14), transparent 30rem),
    linear-gradient(180deg, var(--bg), #02040a 48%, var(--bg-soft));
  color: var(--text);
  font-family: var(--body);
}

body.modal-open {
  overflow: hidden;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

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

::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #02040a;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(#00e5ff, #0066ff);
  border-radius: 999px;
}

.site-noise {
  position: fixed;
  inset: 0;
  z-index: -6;
  opacity: 0.18;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.018) 1px, transparent 1px);
  background-size: 44px 44px;
}

.cursor-glow {
  position: fixed;
  left: -12rem;
  top: -12rem;
  z-index: 200;
  width: 24rem;
  height: 24rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 229, 255, 0.14), transparent 60%);
  mix-blend-mode: screen;
  pointer-events: none;
  transform: translate(-100vw, -100vh);
}

.kroma-glass {
  background: rgba(10, 15, 30, 0.3);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(0, 229, 255, 0.2);
  box-shadow: inset 0 0 20px rgba(0, 229, 255, 0.05), 0 20px 40px rgba(0, 0, 0, 0.5);
  border-radius: 16px;
  overflow: visible;
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease, background 0.3s ease;
}

.blend-asset {
  mix-blend-mode: screen;
  filter: drop-shadow(0 0 22px rgba(0, 229, 255, 0.35));
  pointer-events: none;
  user-select: none;
}

.section-pad {
  position: relative;
  padding: clamp(5rem, 8vw, 8rem) clamp(1.25rem, 5vw, 5rem);
}

.eyebrow {
  margin: 0;
  color: var(--neon);
  font-family: var(--display);
  font-size: clamp(0.72rem, 1vw, 0.84rem);
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.04em;
  text-transform: uppercase;
}

p {
  color: var(--muted);
}

.kroma-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.15rem;
  padding: 0.9rem 1.22rem;
  border: 1px solid var(--neon);
  border-radius: 12px;
  background: rgba(3, 5, 10, 0.85);
  color: #fff;
  box-shadow: inset 0 0 20px rgba(0, 229, 255, 0.08);
  font-family: var(--display);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-align: center;
  text-transform: uppercase;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background 0.25s ease;
}

.kroma-btn:hover {
  background: rgba(0, 229, 255, 0.1);
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.4);
}

.kroma-btn-soft {
  border-color: rgba(0, 229, 255, 0.32);
  color: var(--muted);
}

.site-header {
  position: fixed;
  top: 1rem;
  left: clamp(1rem, 4vw, 4rem);
  right: clamp(1rem, 4vw, 4rem);
  z-index: 90;
  display: grid;
  grid-template-columns: minmax(120px, 1fr) auto minmax(120px, 1fr);
  align-items: center;
  gap: 1rem;
  min-height: 4.2rem;
  padding: 0.75rem 0.9rem 0.75rem 1.2rem;
  border-bottom-color: rgba(0, 229, 255, 0.28);
}

.site-header.is-scrolled {
  background: rgba(5, 8, 18, 0.72);
  box-shadow: inset 0 0 20px rgba(0, 229, 255, 0.08), 0 18px 50px rgba(0, 0, 0, 0.55);
}

.brand {
  justify-self: start;
  display: grid;
  gap: 0.08rem;
  font-family: var(--display);
  line-height: 1;
  text-transform: uppercase;
}

.brand span {
  font-size: 1.28rem;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.brand small {
  color: var(--muted);
  font-size: 0.53rem;
  font-weight: 800;
  letter-spacing: 0.52em;
}

.main-nav {
  justify-self: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(1rem, 2.4vw, 2.4rem);
  color: var(--muted);
  font-family: var(--display);
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
}

.main-nav a {
  position: relative;
  padding: 0.45rem 0;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.16rem;
  height: 1px;
  transform: scaleX(0);
  transform-origin: right;
  background: var(--neon);
  transition: transform 0.25s ease;
}

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

.main-nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.nav-cta {
  justify-self: end;
  min-height: 2.65rem;
}

.nav-toggle {
  display: none;
  justify-self: end;
  width: 2.8rem;
  height: 2.8rem;
  border: 1px solid rgba(0, 229, 255, 0.35);
  border-radius: 12px;
  background: rgba(3, 5, 10, 0.84);
}

.nav-toggle span {
  display: block;
  width: 1.2rem;
  height: 2px;
  margin: 0.28rem auto;
  background: var(--neon);
}

.hero-section {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: clamp(7rem, 10vw, 9.5rem) clamp(1.25rem, 4.4vw, 4.5rem) clamp(5.6rem, 10vh, 9.4rem);
  overflow: visible;
  background:
    radial-gradient(circle at 42% 43%, rgba(0, 229, 255, 0.18), transparent 36%),
    radial-gradient(circle at 56% 36%, rgba(0, 102, 255, 0.18), transparent 34rem),
    linear-gradient(90deg, rgba(2, 4, 10, 0.98), rgba(2, 10, 24, 0.86) 48%, rgba(2, 4, 10, 0.98));
  isolation: isolate;
}

.hero-layers,
.hero-layers::after {
  position: absolute;
  inset: 0;
  z-index: -2;
  overflow: hidden;
}

.hero-layers::after {
  content: "";
  z-index: 3;
  background:
    linear-gradient(90deg, rgba(2, 4, 10, 0.92), rgba(2, 10, 24, 0.38) 48%, rgba(2, 4, 10, 0.9)),
    radial-gradient(circle at 45% 48%, rgba(0, 229, 255, 0.2), transparent 34rem);
}

.hero-layers img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-streams {
  opacity: 0.58;
  object-position: 58% 50%;
}

.hero-nodes {
  opacity: 0.34;
}

.hero-shards {
  opacity: 0.42;
  transform: scale(1.34);
}

.hero-hex {
  opacity: 0.18;
}

.particles i {
  position: absolute;
  z-index: -1;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--neon);
  box-shadow: 0 0 18px rgba(0, 229, 255, 0.8);
  opacity: 0.45;
}

.particles i:nth-child(1) { left: 12%; top: 24%; }
.particles i:nth-child(2) { left: 38%; top: 18%; }
.particles i:nth-child(3) { left: 68%; top: 22%; }
.particles i:nth-child(4) { left: 82%; top: 58%; }
.particles i:nth-child(5) { left: 24%; top: 74%; }
.particles i:nth-child(6) { left: 54%; top: 82%; }

.hero-copy {
  position: relative;
  width: min(980px, 90vw);
  max-width: 980px;
  min-width: 0;
  justify-self: center;
  align-self: center;
  z-index: 3;
  margin: 0 auto;
  text-align: center;
}

.hero-copy .eyebrow {
  font-family: "Sora", var(--body);
  font-size: clamp(0.64rem, 0.78vw, 0.78rem);
  font-weight: 700;
  letter-spacing: 0.28em;
  text-shadow: 0 0 24px rgba(0, 229, 255, 0.38);
}

.hero-copy h1 {
  max-width: 100%;
  margin: 1.08rem auto 0;
  color: #f7fbff;
  font-family: var(--hero-display);
  font-size: clamp(2.7rem, 5.35vw, 5.85rem);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: 0.018em;
  overflow: visible;
  text-wrap: balance;
  background: linear-gradient(180deg, #ffffff 0%, #dff7ff 32%, #8bdfff 68%, #ffffff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  text-shadow: 0 0 18px rgba(0, 229, 255, 0.18), 0 0 52px rgba(0, 102, 255, 0.2);
  -webkit-text-fill-color: transparent;
}

.hero-copy p:not(.eyebrow) {
  max-width: 34.5rem;
  margin: 1.45rem auto 2.15rem;
  color: rgba(220, 245, 255, 0.86);
  font-family: "Sora", var(--body);
  font-size: clamp(0.95rem, 1.08vw, 1.08rem);
  font-weight: 300;
  line-height: 1.72;
  letter-spacing: 0.01em;
  text-shadow: 0 0 18px rgba(0, 229, 255, 0.18);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.1rem;
  align-items: center;
  justify-content: center;
}

.hero-visual {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 100%;
  overflow: visible;
  perspective: 1200px;
  pointer-events: none;
}

.hero-k {
  position: absolute;
  left: 8%;
  top: 10%;
  width: min(720px, 46vw);
  max-width: none;
  max-height: none;
  height: auto;
  object-fit: contain;
  opacity: 0.72;
  mix-blend-mode: screen;
  transform: none;
  transform-style: preserve-3d;
  filter: drop-shadow(0 0 32px rgba(0, 229, 255, 0.38)) drop-shadow(0 0 86px rgba(0, 102, 255, 0.28));
}

.orbit {
  position: absolute;
  aspect-ratio: 1;
  border: 1px solid rgba(0, 229, 255, 0.18);
  border-radius: 50%;
  transform: rotateX(68deg) rotateZ(-24deg);
  box-shadow: inset 0 0 80px rgba(0, 102, 255, 0.08), 0 0 80px rgba(0, 229, 255, 0.1);
}

.orbit-a {
  width: min(62vw, 44rem);
  left: 17%;
  top: 18%;
}

.orbit-b {
  width: min(46vw, 32rem);
  left: 27%;
  top: 25%;
  border-color: rgba(123, 44, 255, 0.2);
  transform: rotateX(70deg) rotateZ(18deg);
}

.pillars-section {
  min-height: 38vh;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.pillars-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.2;
}

.pillar-panel {
  position: relative;
  width: min(100%, 78rem);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  overflow: visible;
}

.pillar-panel button {
  min-height: 8.8rem;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 0.85rem;
  padding: 1.25rem;
  border: 0;
  border-right: 1px solid rgba(0, 229, 255, 0.14);
  background: transparent;
  color: var(--text);
  text-align: center;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.pillar-panel button:hover {
  background: rgba(0, 229, 255, 0.06);
  border-color: rgba(0, 229, 255, 0.42);
  box-shadow: inset 0 0 24px rgba(0, 229, 255, 0.08), 0 0 28px rgba(0, 229, 255, 0.18);
  transform: translateY(-4px);
}

.pillar-panel button:last-child {
  border-right: 0;
}

.pillar-panel i,
.process-card i {
  width: 0.78rem;
  height: 0.78rem;
  display: block;
  border-radius: 50%;
  background: var(--neon);
  box-shadow: 0 0 18px rgba(0, 229, 255, 0.8);
}

.pillar-panel span {
  font-family: var(--display);
  font-size: clamp(0.78rem, 1vw, 1rem);
  font-weight: 800;
  line-height: 1.35;
  text-transform: uppercase;
}

.pillar-panel small {
  color: var(--neon);
  font-family: var(--display);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  opacity: 0.78;
  text-transform: uppercase;
}

.section-heading {
  width: min(100%, 64rem);
  margin: 0 auto 4.8rem;
  text-align: center;
}

.section-heading h2,
.contact-copy h2 {
  margin-top: 0.8rem;
  font-size: clamp(2rem, 4.7vw, 4.7rem);
  line-height: 0.98;
}

.services-section,
.services-grid {
  overflow: visible;
}

.services-grid {
  width: min(100%, 78rem);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(1.2rem, 2vw, 1.75rem);
  margin: 0 auto;
}

.service-card {
  position: relative;
  min-height: 27rem;
  padding: 10.4rem clamp(1.2rem, 2vw, 2rem) 2rem;
  overflow: visible;
  transform-style: preserve-3d;
}

.service-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background:
    radial-gradient(circle at 50% -5%, rgba(0, 229, 255, 0.16), transparent 14rem),
    linear-gradient(180deg, rgba(0, 229, 255, 0.07), rgba(123, 44, 255, 0.025));
}

.service-card:hover {
  border-color: rgba(0, 229, 255, 0.42);
  box-shadow: inset 0 0 24px rgba(0, 229, 255, 0.08), 0 30px 70px rgba(0, 0, 0, 0.58), 0 0 34px rgba(0, 229, 255, 0.24);
}

.service-render {
  position: absolute;
  top: -4.2rem;
  left: 50%;
  z-index: 2;
  width: min(82%, 18.5rem);
  max-width: 100%;
  height: auto;
  object-fit: contain;
  background: transparent;
  opacity: 1;
  transform: translate(-50%, -35px);
}

.card-index {
  color: var(--neon);
  font-family: var(--display);
  font-size: 0.84rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.service-card h3 {
  margin-top: 0.8rem;
  font-size: clamp(1.35rem, 2vw, 1.85rem);
  line-height: 1.05;
}

.service-card p {
  min-height: 5rem;
  margin: 1rem 0 1.5rem;
  line-height: 1.68;
}

.process-grid {
  position: relative;
  width: min(100%, 80rem);
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
  margin: 0 auto;
  overflow: visible;
}

.process-grid::before {
  content: "";
  position: absolute;
  top: 2.25rem;
  left: 5%;
  right: 5%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--neon), var(--blue), transparent);
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.34);
}

.process-card {
  position: relative;
  display: grid;
  gap: 0.72rem;
  min-height: 13.5rem;
  padding: 1.35rem;
  border: 1px solid rgba(0, 229, 255, 0.18);
  color: var(--text);
  text-align: left;
}

.process-card:hover {
  border-color: rgba(0, 229, 255, 0.52);
  box-shadow: inset 0 0 24px rgba(0, 229, 255, 0.08), 0 0 28px rgba(0, 229, 255, 0.22), 0 24px 50px rgba(0, 0, 0, 0.48);
}

.process-card span {
  color: var(--neon);
  font-family: var(--display);
  font-size: 0.75rem;
  font-weight: 900;
}

.process-card strong {
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 900;
}

.process-card p {
  margin: 0;
  line-height: 1.55;
}

.contact-section {
  display: grid;
  place-items: center;
}

.contact-panel {
  width: min(100%, 78rem);
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.78fr);
  gap: clamp(2rem, 5vw, 5rem);
  padding: clamp(1.35rem, 4vw, 3rem);
}

.contact-copy p:not(.eyebrow) {
  max-width: 40rem;
  line-height: 1.7;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.contact-form label {
  display: grid;
  gap: 0.55rem;
}

.full-field,
.contact-form button {
  grid-column: 1 / -1;
}

.contact-form span {
  color: var(--muted);
  font-family: var(--display);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

input,
select,
textarea {
  width: 100%;
  min-height: 3.2rem;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(0, 229, 255, 0.18);
  border-radius: 12px;
  outline: none;
  background: rgba(3, 5, 10, 0.75);
  color: #fff;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

select option {
  background: #050812;
  color: #fff;
}

textarea {
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(0, 229, 255, 0.65);
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.18);
}

.site-footer {
  padding-top: clamp(3rem, 5vw, 5rem);
  background:
    linear-gradient(180deg, rgba(2, 4, 10, 0.1), rgba(2, 4, 10, 0.92)),
    url("./kroma-assets/light-streams.png") center / cover;
}

.footer-panel {
  width: min(100%, 78rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin: 0 auto;
  padding: clamp(1rem, 2.4vw, 1.5rem);
}

.footer-link {
  border: 0;
  background: transparent;
  color: var(--neon);
  font-family: var(--display);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.paypal-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9rem;
  padding: 0.78rem 1rem;
  border: 1px solid rgba(240, 210, 138, 0.85);
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(240, 210, 138, 0.18), rgba(0, 229, 255, 0.06));
  color: #fff3c7;
  box-shadow: 0 0 22px rgba(240, 210, 138, 0.16);
  font-family: var(--display);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-align: center;
  text-transform: uppercase;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 140;
  display: grid;
  place-items: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.76);
  backdrop-filter: blur(16px);
}

.modal-shell,
.legal-shell {
  position: relative;
  z-index: 2;
  width: min(100%, 94rem);
  max-height: 92vh;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  background:
    radial-gradient(circle at 16% 0%, rgba(0, 229, 255, 0.12), transparent 24rem),
    radial-gradient(circle at 84% 14%, rgba(123, 44, 255, 0.12), transparent 28rem),
    rgba(5, 8, 18, 0.92);
  overflow: visible;
}

.modal-shell {
  height: min(92vh, 56rem);
}

.legal-shell {
  width: min(100%, 62rem);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: clamp(1.1rem, 2.4vw, 2rem);
  border-bottom: 1px solid rgba(0, 229, 255, 0.16);
}

.modal-header h2 {
  margin-top: 0.45rem;
  font-size: clamp(1.7rem, 3.6vw, 3.6rem);
  line-height: 0.95;
}

.modal-close,
.showreel-panel button {
  flex: 0 0 auto;
  width: 3rem;
  height: 3rem;
  border: 1px solid rgba(0, 229, 255, 0.36);
  border-radius: 50%;
  background: rgba(3, 5, 10, 0.86);
  color: #fff;
  font-size: 1.8rem;
  line-height: 1;
}

.modal-grid {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(300px, 0.76fr) minmax(0, 1.12fr);
  gap: 1rem;
  padding: clamp(0.9rem, 2vw, 1.45rem);
  overflow: visible;
}

.modal-viewer {
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.9rem;
  padding: 1rem;
  overflow: visible;
}

.viewer-title span {
  color: var(--neon);
  font-family: var(--display);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.viewer-frame {
  position: relative;
  min-height: 12rem;
  max-height: 20rem;
  overflow: auto;
  border: 1px solid rgba(0, 229, 255, 0.16);
  border-radius: 14px;
  background:
    radial-gradient(circle at 28% 18%, rgba(0, 229, 255, 0.13), transparent 12rem),
    rgba(255, 255, 255, 0.025);
}

.viewer-frame img {
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 78vh;
  display: block;
  object-fit: contain;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s ease, visibility 0.28s ease;
}

.modal-visual img,
.service-preview img,
.catalog-preview img {
  width: 100%;
  height: auto;
  max-height: 78vh;
  object-fit: contain;
  display: block;
}

.viewer-frame img.is-loaded {
  opacity: 1;
  visibility: visible;
}

.modal-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  background:
    linear-gradient(135deg, rgba(0, 229, 255, 0.12), rgba(123, 44, 255, 0.1)),
    rgba(10, 15, 30, 0.42);
  color: var(--muted);
  font-family: var(--display);
  font-size: 0.85rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

.modal-placeholder.is-visible {
  opacity: 1;
  visibility: visible;
}

.modal-accordion,
.legal-accordion {
  min-height: 0;
  overflow: auto;
  padding-right: 0.4rem;
}

.modal-accordion > details,
.legal-accordion > details {
  border-bottom: 1px solid rgba(0, 229, 255, 0.14);
}

.modal-accordion > details > summary,
.legal-accordion > details > summary {
  padding: 1.12rem 0;
  color: var(--text);
  font-family: var(--display);
  font-size: clamp(0.95rem, 1.45vw, 1.16rem);
  font-weight: 900;
  list-style: none;
  text-transform: uppercase;
  cursor: pointer;
}

.modal-accordion summary::-webkit-details-marker,
.legal-accordion summary::-webkit-details-marker {
  display: none;
}

.modal-accordion > details > summary::after,
.legal-accordion > details > summary::after {
  content: "+";
  float: right;
  color: var(--neon);
}

.modal-accordion > details[open] > summary::after,
.legal-accordion > details[open] > summary::after {
  content: "-";
}

.modal-accordion > details.is-active-level > summary {
  color: var(--neon);
}

.level-body,
.legal-accordion p {
  padding-bottom: 1.15rem;
}

.level-copy {
  display: grid;
  gap: 0.55rem;
  margin-bottom: 0.9rem;
}

.level-copy p,
.legal-accordion p {
  margin: 0;
  line-height: 1.6;
}

.service-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.68rem;
  padding-bottom: 1rem;
}

.service-item {
  width: 100%;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.35rem 0.85rem;
  align-items: start;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(0, 229, 255, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.025);
  color: #fff;
  text-align: left;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.service-item:hover,
.service-item.is-active {
  background: rgba(0, 229, 255, 0.08);
  border-color: rgba(0, 229, 255, 0.45);
  box-shadow: 0 0 24px rgba(0, 229, 255, 0.18);
  transform: translateX(4px);
}

.service-item span {
  grid-row: span 2;
  color: var(--neon);
  font-family: var(--display);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.service-item strong {
  font-weight: 600;
  line-height: 1.25;
}

.service-item small {
  color: var(--muted);
  line-height: 1.45;
}

.level-cta {
  margin-bottom: 0.4rem;
}

.legal-accordion {
  padding: 0 clamp(1.1rem, 2.4vw, 2rem) clamp(1.1rem, 2.4vw, 2rem);
}

.showreel-panel {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 160;
  width: min(92vw, 34rem);
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -46%) scale(0.96);
  transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease;
}

.showreel-panel.is-open {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%) scale(1);
}

.showreel-panel button {
  position: absolute;
  top: 1rem;
  right: 1rem;
}

.showreel-panel h2 {
  margin-top: 0.75rem;
  font-size: clamp(1.8rem, 5vw, 3rem);
}

@media (max-width: 1120px) {
  .hero-section,
  .modal-grid,
  .contact-panel {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    justify-self: center;
    max-width: 100%;
    min-width: 0;
    text-align: center;
  }

  .hero-copy p:not(.eyebrow) {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-visual {
    min-height: 24rem;
  }

  .hero-k {
    left: 8%;
    top: 10%;
    width: min(620px, 68vw);
    opacity: 0.5;
  }

  .orbit-a {
    left: 16%;
    width: min(76vw, 38rem);
  }

  .orbit-b {
    left: 25%;
    width: min(54vw, 28rem);
  }

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

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

  .process-grid::before {
    top: 0;
    bottom: 0;
    left: 1.7rem;
    right: auto;
    width: 1px;
    height: auto;
  }

  .process-card {
    min-height: auto;
    padding-left: 3.2rem;
  }

  .process-card i {
    position: absolute;
    left: 1.32rem;
    top: 1.55rem;
  }

  .modal-shell {
    height: 94vh;
  }
}

@media (max-width: 880px) {
  .site-header {
    grid-template-columns: auto 1fr auto;
  }

  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    top: calc(100% + 0.6rem);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    border: 1px solid rgba(0, 229, 255, 0.18);
    border-radius: 16px;
    background: rgba(3, 5, 10, 0.95);
    backdrop-filter: blur(20px);
  }

  .main-nav.is-open {
    display: flex;
  }

  .nav-cta {
    display: none;
  }

  .pillar-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pillar-panel button:nth-child(2) {
    border-right: 0;
  }

  .pillar-panel button {
    border-bottom: 1px solid rgba(0, 229, 255, 0.14);
  }

  .pillar-panel button:nth-last-child(-n + 2) {
    border-bottom: 0;
  }

  .service-list,
  .contact-form {
    grid-template-columns: 1fr;
  }

  .paypal-link {
    justify-self: stretch;
  }
}

@media (max-width: 620px) {
  .site-header {
    top: 0.75rem;
    left: 0.75rem;
    right: 0.75rem;
    min-height: 3.8rem;
  }

  .brand span {
    font-size: 1rem;
  }

  .brand small {
    font-size: 0.48rem;
  }

  .hero-section {
    min-height: 92vh;
    padding: 6.5rem 1rem 5rem;
  }

  .hero-copy h1 {
    font-size: clamp(2.05rem, 10.4vw, 3.35rem);
    letter-spacing: 0.01em;
    line-height: 1.08;
  }

  .hero-copy .eyebrow {
    letter-spacing: 0.18em;
  }

  .hero-actions,
  .hero-actions .kroma-btn,
  .contact-form .kroma-btn,
  .paypal-link {
    width: 100%;
  }

  .hero-visual {
    min-height: 100%;
  }

  .hero-k {
    left: -6%;
    top: 10%;
    width: min(96vw, 28rem);
    opacity: 0.34;
  }

  .orbit-a {
    left: -4%;
    top: 20%;
    width: 112vw;
  }

  .orbit-b {
    left: 14%;
    top: 28%;
    width: 76vw;
  }

  .section-pad {
    padding-inline: 1rem;
  }

  .pillar-panel {
    grid-template-columns: 1fr;
  }

  .pillar-panel button,
  .pillar-panel button:nth-child(2) {
    border-right: 0;
  }

  .pillar-panel button:not(:last-child) {
    border-bottom: 1px solid rgba(0, 229, 255, 0.14);
  }

  .pillar-panel button:last-child {
    border-bottom: 0;
  }

  .section-heading {
    margin-bottom: 4rem;
    text-align: left;
  }

  .service-card {
    min-height: 25rem;
    padding-top: 9.6rem;
  }

  .service-render {
    width: min(86%, 17rem);
  }

  .modal {
    padding: 0;
  }

  .modal-shell,
  .legal-shell {
    width: 100vw;
    height: 100vh;
    max-height: 100vh;
    border-radius: 0;
  }

  .modal-grid {
    padding: 0.8rem;
  }

  .viewer-frame {
    max-height: 17rem;
  }

  .service-item:hover,
  .service-item.is-active {
    transform: translateX(0);
  }
}

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