:root {
  --ink: #171b3f;
  --ink-soft: rgba(23, 27, 63, 0.72);
  --living-green: #2f8f5b;
  --luminous-cyan: #54dce3;
  --warm-sun: #f4c76a;
  --paper: #f8fbf8;
  --paper-strong: #ffffff;
  --line: rgba(47, 143, 91, 0.18);
  --line-cyan: rgba(84, 220, 227, 0.28);
  --image-wash-rgb: 255, 255, 255;
  --shadow: 0 18px 52px rgba(23, 27, 63, 0.12);
  --header-height: 5rem;
  --gutter: max(1rem, calc((100vw - 76rem) / 2));
  --font-system: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --ink-2: var(--living-green);
  --ink-3: var(--luminous-cyan);
}

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

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  font-family: var(--font-system);
  color: var(--ink);
  background:
    linear-gradient(115deg, rgba(84, 220, 227, 0.12), transparent 32%),
    linear-gradient(245deg, rgba(47, 143, 91, 0.1), transparent 38%),
    var(--paper);
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

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

button,
input,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.75rem 1rem;
  border-radius: 8px;
  background: var(--paper-strong);
  box-shadow: var(--shadow);
}

.skip-link:focus {
  top: 1rem;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(248, 251, 248, 0.86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.header-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
  gap: 1rem;
  min-width: 0;
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
}

.brand-logo {
  width: 2.8rem;
  height: 2.8rem;
  flex: none;
}

.brand-text {
  display: grid;
  line-height: 1;
}

.brand-text strong,
.brand-text span {
  text-transform: uppercase;
}

.brand-text strong {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.brand-text span {
  color: var(--ink-soft);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.34em;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link,
.mobile-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding-inline: 0.9rem;
  color: var(--ink-soft);
  font-size: 0.92rem;
  font-weight: 700;
}

.nav-link:hover,
.nav-link:focus-visible,
.mobile-link:hover,
.mobile-link:focus-visible,
.nav-link.is-current {
  color: var(--ink);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.85rem 1.2rem;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease, color 180ms ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button.primary {
  color: var(--ink);
  background: linear-gradient(135deg, var(--luminous-cyan), var(--living-green));
  box-shadow: 0 14px 30px rgba(47, 143, 91, 0.2);
}

.button.secondary {
  color: var(--ink);
  border-color: var(--line-cyan);
  background: rgba(255, 255, 255, 0.72);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.mobile-menu-toggle {
  display: none;
  width: 3rem;
  height: 3rem;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--paper-strong);
  cursor: pointer;
}

.mobile-menu-toggle span {
  display: block;
  width: 1.25rem;
  height: 2px;
  margin: 0.18rem auto;
  background: var(--ink);
}

.mobile-panel {
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.mobile-panel-inner {
  display: grid;
  gap: 0.25rem;
  width: min(100% - 2rem, 76rem);
  margin: 0 auto;
  padding: 0.8rem 0 1rem;
}

.section {
  position: relative;
  padding: clamp(4rem, 8vw, 7rem) var(--gutter);
}

.section-heading {
  max-width: 46rem;
  margin-bottom: clamp(1.8rem, 4vw, 3rem);
}

.section-heading.center {
  margin-inline: auto;
  text-align: center;
}

.section-kicker {
  margin: 0 0 0.85rem;
  color: var(--living-green);
  font-size: clamp(0.78rem, 1.2vw, 0.9rem);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--ink);
  letter-spacing: 0;
}

h1 {
  max-width: 12ch;
  margin-bottom: 1.25rem;
  font-size: clamp(2.75rem, 7vw, 5rem);
  line-height: 0.98;
  font-weight: 800;
}

h2 {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.06;
  font-weight: 760;
}

h3 {
  margin-bottom: 0.65rem;
  font-size: clamp(1.35rem, 2.4vw, 1.9rem);
  line-height: 1.12;
  font-weight: 750;
}

p {
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.5vw, 1.12rem);
  line-height: 1.6;
  overflow-wrap: break-word;
}

.hero-section {
  --hero-x: 52%;
  --hero-y: 50%;
  --hero-radius: 20rem;
  min-height: calc(100svh - var(--header-height));
  display: grid;
  align-items: center;
  padding-top: clamp(2rem, 5vw, 4rem);
  padding-bottom: clamp(3.5rem, 6vw, 5rem);
  overflow: hidden;
  isolation: isolate;
  background: #dceee9;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(16rem, 1fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
  min-width: 0;
}

.hero-copy {
  position: relative;
  z-index: 4;
  max-width: 43rem;
  text-shadow: 0 1px 18px rgba(248, 251, 248, 0.62);
}

.hero-lead {
  max-width: 36rem;
  margin-bottom: 1.5rem;
  font-size: clamp(1.16rem, 2vw, 1.48rem);
  line-height: 1.45;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1.5rem 0 1.8rem;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  max-width: 44rem;
  margin: 0;
}

.hero-metrics div,
.service-item,
.prototype-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.hero-metrics div {
  padding: 0.9rem;
}

.hero-metrics dt {
  margin-bottom: 0.35rem;
  color: var(--ink);
  font-weight: 800;
}

.hero-metrics dd {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.9rem;
  line-height: 1.45;
  overflow-wrap: break-word;
}

.hero-visual {
  position: absolute;
  inset: 0;
  z-index: 0;
  min-height: 0;
  overflow: hidden;
  border-radius: 0;
  border: 0;
  background: #dceee9;
  box-shadow: none;
}

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

.hero-reveal {
  -webkit-mask-image: radial-gradient(circle var(--hero-radius) at var(--hero-x) var(--hero-y), #000 0 64%, rgba(0, 0, 0, 0.72) 72%, transparent 100%);
  mask-image: radial-gradient(circle var(--hero-radius) at var(--hero-x) var(--hero-y), #000 0 64%, rgba(0, 0, 0, 0.72) 72%, transparent 100%);
  will-change: mask-image, -webkit-mask-image;
}

.hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(90deg, rgba(var(--image-wash-rgb), 1) 0%, rgba(var(--image-wash-rgb), 0) 45%);
  pointer-events: none;
}

.hero-spotlight {
  position: absolute;
  left: var(--hero-x);
  top: var(--hero-y);
  z-index: 3;
  width: clamp(8rem, 24vw, 18rem);
  height: clamp(8rem, 24vw, 18rem);
  transform: translate(-50%, -50%);
  border-radius: 999px;
  background: radial-gradient(circle, rgba(244, 199, 106, 0.18), rgba(84, 220, 227, 0.14) 42%, transparent 72%);
  filter: blur(18px);
  pointer-events: none;
  will-change: left, top;
}

.hero-spacer {
  min-height: clamp(24rem, 50vw, 42rem);
}

.hologram-rise {
  animation: hologram-rise 1100ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.aurora-word {
  color: var(--ink);
  background: linear-gradient(90deg, var(--ink), var(--living-green), var(--luminous-cyan), var(--ink));
  background-size: 260% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  animation: aurora-sheen 8s ease-in-out infinite;
}

.experience-section {
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(232, 245, 238, 0.74)),
    var(--paper);
}

.experience-stage {
  position: relative;
  min-height: clamp(34rem, 52vw, 42rem);
  padding-bottom: clamp(12rem, 24vw, 18rem);
  touch-action: pan-y;
}

.experience-track {
  position: relative;
  min-height: clamp(27rem, 43vw, 34rem);
  outline: none;
  perspective: 1400px;
  transform-style: preserve-3d;
}

.experience-item {
  position: absolute;
  top: 0;
  left: 50%;
  width: min(26rem, 76vw);
  height: clamp(27rem, 43vw, 34rem);
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  opacity: 0;
  transform-origin: center center;
  transform-style: preserve-3d;
  transform: translateX(-50%) scale(0.82);
  transition: transform 460ms cubic-bezier(0.22, 1, 0.36, 1), opacity 260ms ease, filter 260ms ease;
}

.experience-surface {
  display: grid;
  grid-template-rows: auto 1fr;
  height: 100%;
  overflow: hidden;
  border: 1px solid rgba(84, 220, 227, 0.22);
  border-radius: 8px;
  background: var(--ink);
  box-shadow: 0 22px 58px rgba(23, 27, 63, 0.24);
  text-align: left;
  backface-visibility: hidden;
  transform-style: preserve-3d;
}

.experience-media {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #dfeee8;
}

.experience-media video,
.experience-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.experience-media::after,
.prototype-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(23, 27, 63, 0.38));
  pointer-events: none;
}

.experience-body {
  display: grid;
  align-content: start;
  gap: 0.55rem;
  min-height: 13.5rem;
  padding: 1.2rem;
  background: var(--ink);
}

.experience-type,
.prototype-type {
  color: var(--warm-sun);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.experience-body strong {
  color: #fff;
  font-size: 1.45rem;
  line-height: 1.12;
}

.experience-copy {
  color: rgba(255, 255, 255, 0.76);
  line-height: 1.48;
}

.experience-card-cta {
  display: none;
  width: fit-content;
  margin-top: 0.35rem;
}

.experience-body.cta-only {
  place-content: center;
  min-height: 13.5rem;
}

.experience-item.is-active .experience-card-cta {
  display: inline-flex;
}

.experience-item.is-active {
  z-index: 5;
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1.1);
}

.experience-item.is-prev,
.experience-item.is-next {
  z-index: 4;
  opacity: 1;
  filter: grayscale(0.72) saturate(0.42);
}

.experience-item.is-prev {
  transform: translateX(calc(-50% - 74%)) translateY(1.9rem) rotateY(28deg) scale(0.84);
}

.experience-item.is-next {
  transform: translateX(calc(-50% + 74%)) translateY(1.9rem) rotateY(-28deg) scale(0.84);
}

.experience-item.is-far-prev,
.experience-item.is-far-next {
  z-index: 3;
  opacity: 1;
  filter: grayscale(0.9) saturate(0.3);
}

.experience-item.is-far-prev {
  transform: translateX(calc(-50% - 112%)) translateY(2.7rem) scale(0.72);
}

.experience-item.is-far-next {
  transform: translateX(calc(-50% + 112%)) translateY(2.7rem) scale(0.72);
}

.experience-item:not(.is-active) .experience-type,
.experience-item:not(.is-active) .experience-body strong,
.experience-item:not(.is-active) .experience-copy {
  color: rgba(227, 232, 234, 0.78);
}

.hand-support {
  position: absolute;
  left: 50%;
  bottom: -4rem;
  z-index: 1;
  width: 100vw;
  height: clamp(24rem, 43vw, 34rem);
  max-width: none;
  object-fit: cover;
  object-position: center 76%;
  pointer-events: none;
  transform: translateX(-50%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 24%, #000 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 24%, #000 100%);
}

.carousel-nav {
  position: relative;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  margin-top: 1.2rem;
}

.carousel-button {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  padding: 0;
  border: 1px solid var(--line-cyan);
  border-radius: 999px;
  background: var(--paper-strong);
  color: var(--ink);
  font-size: 1.2rem;
  font-weight: 800;
  box-shadow: 0 12px 30px rgba(23, 27, 63, 0.1);
  cursor: pointer;
}

.carousel-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
}

.carousel-dot {
  width: 0.7rem;
  height: 0.7rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(23, 27, 63, 0.22);
  cursor: pointer;
}

.carousel-dot.is-active {
  width: 1.75rem;
  background: var(--living-green);
}

.services-section {
  overflow: hidden;
  color: var(--ink);
  background: #dceee9;
}

.services-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.62fr) minmax(18rem, 0.38fr);
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
  min-height: 42rem;
  min-width: 0;
}

.services-section .section-kicker,
.services-section h2,
.services-section p {
  color: var(--ink);
}

.services-section h2.fx-scanner {
  color: transparent;
}

.service-list {
  display: grid;
  gap: 0.85rem;
  margin-top: 1.6rem;
}

.service-item {
  padding: 1rem;
  background: var(--ink);
  border-color: rgba(84, 220, 227, 0.34);
  box-shadow: 0 18px 42px rgba(23, 27, 63, 0.2);
}

.service-item h3 {
  margin: 0 0 0.35rem;
  color: var(--warm-sun);
  font-size: 1.15rem;
}

.service-item p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.98rem;
}

.head-stage {
  position: absolute;
  inset: 0;
  z-index: 0;
  min-height: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #dceee9;
  pointer-events: none;
}

.head-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 4;
  background: linear-gradient(90deg, rgba(var(--image-wash-rgb), 1) 0%, rgba(var(--image-wash-rgb), 0) 45%);
  pointer-events: none;
}

.head-stage-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.head-stage-bg {
  object-fit: cover;
  object-position: center bottom;
  opacity: 1;
}

.head-character,
.head-stage-fg {
  position: absolute;
  left: auto;
  right: 0;
  transform-origin: right bottom;
}

.head-character {
  z-index: 2;
  bottom: 0;
  height: min(44rem, 76%);
  aspect-ratio: 9 / 16;
  filter: drop-shadow(0 22px 30px rgba(5, 10, 25, 0.22));
}

.head-body,
.head-sprite {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.head-body {
  object-fit: contain;
  object-position: right bottom;
}

.head-sprite {
  --head-col: 2;
  --head-row: 2;
  background-image: var(--sprite-url);
  background-repeat: no-repeat;
  background-size: 500% 500%;
  background-position: calc(var(--head-col) * 25%) calc(var(--head-row) * 25%);
  pointer-events: none;
}

.head-stage-fg {
  z-index: 3;
  bottom: 0;
  width: min(32.4rem, 32.4vw);
  height: 81%;
  object-fit: contain;
  object-position: right bottom;
  pointer-events: none;
}

.contact-section {
  overflow: hidden;
  min-height: clamp(34rem, 58vw, 46rem);
  background: var(--paper);
}

.contact-wave {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  opacity: 1;
}

.contact-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1fr);
  gap: clamp(1.25rem, 4vw, 2.5rem);
  min-width: 0;
}

.contact-form {
  display: grid;
  gap: 1rem;
  padding: clamp(1rem, 2vw, 1.4rem);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
}

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

.form-field label {
  font-weight: 800;
}

.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0.92rem 1rem;
  border: 1px solid rgba(23, 27, 63, 0.16);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}

.form-field textarea {
  min-height: 9rem;
  resize: vertical;
}

.field-error,
.form-status {
  min-height: 1rem;
  margin: 0;
  font-size: 0.9rem;
}

.field-error,
.form-status.is-error {
  color: #a22d50;
}

.form-status.is-success {
  color: var(--living-green);
}

.site-footer {
  padding: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.88);
  overflow-x: clip;
}

.footer-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(18rem, auto);
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  width: 100vw;
  margin-inline: calc(50% - 50vw);
  padding: 2.4rem var(--gutter) 2.5rem;
  background: linear-gradient(135deg, rgba(23, 43, 90, 0.98), rgba(48, 84, 150, 0.96));
}

.footer-intro p,
.footer-intro strong {
  margin: 0;
}

.footer-intro p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.05rem;
}

.footer-intro strong {
  display: block;
  margin-top: 0.45rem;
  color: #fff;
  font-size: 1.15rem;
}

.footer-email {
  display: inline-block;
  margin-top: 1.1rem;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 600;
}

.footer-brand img {
  width: 3.2rem;
  height: 3.2rem;
}

.footer-brand {
  justify-self: end;
}

.footer-brand-meta {
  display: grid;
  gap: 0.2rem;
}

.footer-brand-wordmark strong,
.footer-brand-wordmark span {
  color: rgba(255, 255, 255, 0.94);
}

.footer-brand-meta em {
  margin-top: 0.3rem;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.95rem;
  font-style: normal;
}

.prototype-hero {
  padding-top: clamp(3rem, 6vw, 5rem);
  padding-bottom: clamp(1.6rem, 3.2vw, 2.4rem);
}

#prototype-list {
  padding-top: clamp(3.2rem, 6.4vw, 5.6rem);
}

.prototype-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(18rem, 0.9fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3rem);
  min-width: 0;
}

.prototype-hero-simple {
  grid-template-columns: minmax(0, 44rem);
  justify-content: center;
  text-align: center;
}

.prototype-hero-simple h1 {
  max-width: none;
}

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

.prototype-reference {
  overflow: hidden;
  border: 1px solid var(--line-cyan);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.prototype-reference img {
  width: 100%;
  height: 100%;
  min-height: 18rem;
  object-fit: cover;
}

.prototype-stack {
  display: grid;
  gap: 0;
  max-width: 58rem;
  margin-inline: auto;
  padding-bottom: 18vh;
}

.prototype-card {
  position: sticky;
  top: calc(var(--header-height) + 1.25rem + var(--stack-index) * 1.85rem);
  display: grid;
  grid-template-rows: minmax(8rem, 20%) minmax(0, 1fr);
  align-items: stretch;
  overflow: hidden;
  min-height: min(72vh, 38rem);
  margin-bottom: 26vh;
  color: #fff;
  background: var(--ink);
  border: 2px solid rgba(84, 220, 227, 0.5);
  box-shadow: 0 30px 78px rgba(23, 27, 63, 0.34);
}

.prototype-media {
  position: relative;
  min-height: 100%;
  overflow: hidden;
  background: #0f1432;
}

.prototype-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.prototype-body {
  display: grid;
  align-content: center;
  gap: 0.42rem;
  min-height: 8rem;
  padding: clamp(1.45rem, 2.8vw, 2rem) clamp(1rem, 2vw, 1.45rem) clamp(1rem, 2vw, 1.45rem);
}

.prototype-body p {
  margin-bottom: 0.4rem;
  color: rgba(255, 255, 255, 0.76);
  font-size: 1rem;
}

.prototype-body h3 {
  color: #fff;
}

.prototype-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 0.2rem;
}

.fx-aurora {
  background: linear-gradient(115deg, var(--ink), #35bd77, #69fbff, #ffd978, #f8fff8, #54dce3, #f4c76a, var(--ink)) 0 0 / 340% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: saturate(1.18) brightness(1.08);
  animation: fx-aurora 7s linear infinite;
}

.fx-scanner {
  position: relative;
  display: inline-block;
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--ink) 30%, transparent) 0 40%,
    var(--ink) 50%,
    color-mix(in srgb, var(--ink) 30%, transparent) 60% 100%
  ) 0 0 / 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: fx-scan-glow 2.6s ease-in-out infinite alternate;
}

.services-section h2.fx-scanner,
.services-section h2.fx-scanner::after {
  --ink-2: var(--luminous-cyan);
  --ink-3: var(--warm-sun);
}

.fx-scanner::after {
  content: "";
  position: absolute;
  top: -0.15em;
  bottom: -0.15em;
  left: 0;
  width: 3px;
  background: var(--ink-2);
  box-shadow: 0 0 14px var(--ink-2);
  animation: fx-scan-bar 2.6s ease-in-out infinite alternate;
}

.fx-hologram {
  position: relative;
  color: color-mix(in srgb, var(--ink-3) 72%, var(--ink));
  text-shadow:
    0 0 6px color-mix(in srgb, var(--ink-3) 60%, transparent),
    0 0 22px color-mix(in srgb, var(--ink-3) 45%, transparent);
  isolation: isolate;
  animation: fx-hologram-float 3.8s ease-in-out infinite;
}

.fx-hologram::before,
.fx-hologram::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.fx-hologram::before {
  color: var(--ink-2);
  clip-path: inset(0 0 52% 0);
  opacity: 0.58;
  animation: fx-hologram-split 2.8s steps(1) infinite;
}

.fx-hologram::after {
  color: transparent;
  background: repeating-linear-gradient(
    0deg,
    color-mix(in srgb, var(--ink) 70%, transparent) 0 1px,
    transparent 1px 4px
  );
  -webkit-background-clip: text;
  background-clip: text;
  opacity: 0.48;
  animation: fx-hologram-lines 1.2s linear infinite;
}

.text-reveal {
  opacity: 0;
  filter: blur(8px);
  transform: translateY(0.75rem);
}

.text-reveal.is-visible {
  animation: scanline-resolve 650ms ease forwards;
}

:focus-visible {
  outline: 3px solid rgba(244, 199, 106, 0.72);
  outline-offset: 3px;
}

@keyframes hologram-rise {
  from {
    opacity: 0;
    filter: blur(12px);
    transform: translateY(1rem);
  }
  55% {
    text-shadow: 0 0 22px rgba(84, 220, 227, 0.24);
  }
  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

@keyframes aurora-sheen {
  0%,
  100% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}

@keyframes fx-aurora {
  0% {
    background-position: 0% 50%;
    filter: saturate(1.18) brightness(1.08) hue-rotate(0deg);
  }
  100% {
    background-position: 300% 50%;
    filter: saturate(1.18) brightness(1.08) hue-rotate(360deg);
  }
}

@keyframes fx-hologram-float {
  0%,
  100% {
    transform: translateY(2px) skewX(0deg);
    filter: brightness(1);
  }
  50% {
    transform: translateY(-4px) skewX(-3deg);
    filter: brightness(1.35);
  }
}

@keyframes fx-hologram-split {
  0%,
  14%,
  40%,
  72%,
  100% {
    transform: translateX(0);
    opacity: 0.22;
  }
  15% {
    transform: translateX(-5px);
    opacity: 0.8;
  }
  17% {
    transform: translateX(4px);
    opacity: 0.6;
  }
  74% {
    transform: translateX(3px);
    opacity: 0.7;
  }
}

@keyframes fx-hologram-lines {
  to {
    background-position: 0 12px;
  }
}

@keyframes fx-scan-glow {
  0% {
    background-position: 100% 0;
  }
  100% {
    background-position: 0% 0;
  }
}

@keyframes fx-scan-bar {
  0% {
    left: 0;
    transform: translateX(0);
  }
  100% {
    left: 100%;
    transform: translateX(-100%);
  }
}

@keyframes scanline-resolve {
  0% {
    opacity: 0;
    filter: blur(8px);
    transform: translateY(0.75rem);
  }
  65% {
    opacity: 1;
    filter: blur(1px);
  }
  100% {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

@media (max-width: 68rem) {
  .hero-grid,
  .contact-grid,
  .prototype-hero-grid {
    grid-template-columns: 1fr;
  }

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

  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .primary-nav,
  .desktop-only {
    display: none;
  }

  .mobile-menu-toggle {
    display: block;
  }

  .services-grid {
    min-height: auto;
  }
}

@media (max-width: 48rem) {
  .shell {
    width: min(100% - 1rem, 76rem);
  }

  .brand-text strong {
    font-size: 0.92rem;
  }

  .brand-text span {
    font-size: 0.62rem;
    letter-spacing: 0.28em;
  }

  .section {
    padding-inline: max(0.75rem, var(--gutter));
  }

  .hero-section {
    align-items: start;
  }

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

  .hero-copy {
    padding: 0;
    background: transparent;
  }

  .hero-spacer {
    min-height: 20rem;
  }

  .hero-visual::after {
    background: linear-gradient(180deg, rgba(var(--image-wash-rgb), 1) 0%, rgba(var(--image-wash-rgb), 1) 15%, rgba(var(--image-wash-rgb), 0) 60%);
  }
  .experience-stage {
    min-height: 31rem;
    padding-bottom: 7rem;
  }

  .experience-track,
  .experience-item {
    height: 28rem;
    min-height: 28rem;
  }

  .experience-item {
    width: min(21rem, 86vw);
  }

  .experience-item.is-prev {
    opacity: 1;
    transform: translateX(calc(-50% - 60%)) translateY(2rem) rotateY(20deg) scale(0.8);
  }

  .experience-item.is-next {
    opacity: 1;
    transform: translateX(calc(-50% + 60%)) translateY(2rem) rotateY(-20deg) scale(0.8);
  }

  .experience-item.is-far-prev,
  .experience-item.is-far-next {
    display: none;
  }

  .prototype-stack {
    padding-bottom: 10vh;
  }

  .prototype-card {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(9rem, auto) auto;
    min-height: auto;
    margin-bottom: 18vh;
  }

  .prototype-media {
    aspect-ratio: 16 / 9;
    min-height: 0;
  }

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

  .footer-brand {
    justify-self: start;
  }
}

@media (orientation: portrait) {
  .services-section {
    padding-bottom: clamp(22rem, 50vh, 28rem);
  }

  .hero-visual img {
    inset: auto 0 auto auto;
    top: -50%;
    width: 121.5%;
    height: 117%;
    max-width: none;
    object-position: 72% 50%;
    transform: translateY(50%);
  }

  .hero-reveal {
    opacity: 0;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .hero-section.is-mobile-reveal-loop .hero-reveal {
    animation: mobile-hero-reveal-loop 13s ease-in-out infinite;
  }

  .hero-visual::after {
    background: linear-gradient(180deg, rgba(var(--image-wash-rgb), 1) 0%, rgba(var(--image-wash-rgb), 1) 15%, rgba(var(--image-wash-rgb), 0) 60%);
  }

  .head-stage::after {
    background: linear-gradient(180deg, rgba(var(--image-wash-rgb), 1) 0%, rgba(var(--image-wash-rgb), 1) 15%, rgba(var(--image-wash-rgb), 0) 60%);
  }

  .head-stage-bg {
    inset: auto auto auto -30%;
    top: -100%;
    width: 160%;
    height: 200%;
    max-width: none;
    transform: translateY(70%);
  }

  .head-character {
    right: -0.75rem;
    transform: translateY(35%);
  }

  .head-stage-fg {
    right: 0;
    max-width: none;
    transform: translateY(45%);
  }
}

@keyframes mobile-hero-reveal-loop {
  0% {
    opacity: 0;
  }
  15.385% {
    opacity: 1;
  }
  46.154% {
    opacity: 1;
  }
  61.538% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .text-reveal {
    opacity: 1;
    filter: none;
    transform: none;
  }

  .fx-aurora,
  .fx-scanner,
  .fx-scanner::after,
  .fx-hologram,
  .fx-hologram::before,
  .fx-hologram::after {
    animation: none !important;
    filter: none;
  }
}
