/* VARIUZ Studio — design tokens from Figma reference */
:root {
  --bg-deep: #05050a;
  --bg-black: #000000;
  --bg-panel: rgba(12, 10, 22, 0.72);
  --text: #f4f6ff;
  --text-muted: rgba(244, 246, 255, 0.62);
  --cyan: #00d2ff;
  --badge-cyan: #89cff0;
  --badge-cyan-bright: #00d2ff;
  --btn-radius: 10px;
  --btn-gradient: linear-gradient(90deg, #00c4e8 0%, #00d2ff 32%, #1e85ff 100%);
  --cyan-dim: #4facfe;
  --magenta: #bd00ff;
  --magenta-hot: #e040fb;
  --border: rgba(0, 210, 255, 0.28);
  --section-label-color: #5ec8e8;
  --frame-radius: 16px;
  --frame-radius-inner: 15px;
  --frame-gradient: linear-gradient(
    145deg,
    rgba(0, 210, 255, 0.7) 0%,
    rgba(90, 60, 200, 0.45) 38%,
    rgba(189, 0, 255, 0.75) 72%,
    rgba(120, 50, 180, 0.55) 100%
  );
  --frame-inner-bg: linear-gradient(
    165deg,
    rgba(8, 10, 18, 0.97) 0%,
    rgba(4, 4, 10, 0.98) 55%,
    rgba(6, 5, 14, 0.97) 100%
  );
  --frame-shadow:
    0 0 24px rgba(0, 210, 255, 0.08),
    0 0 40px rgba(189, 0, 255, 0.06),
    inset 0 0 60px rgba(0, 0, 0, 0.15);
  --frame-shadow-hover:
    0 0 28px rgba(0, 210, 255, 0.14),
    0 0 48px rgba(189, 0, 255, 0.1),
    0 12px 32px rgba(0, 0, 0, 0.4);
  --glass: rgba(255, 255, 255, 0.06);
  --glass-border: rgba(255, 255, 255, 0.12);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;
  --font-display: "Saira SemiExpanded", sans-serif;
  --font-body: "Saira SemiExpanded", sans-serif;
  /* Figma: headline "CREATIVE TECHNOLOGY" */
  --hero-title-size: 64px;
  --hero-title-leading: 56px;
  --hero-title-tracking: -0.08px;
  --hero-title-weight: 700;
  --hero-gradient: linear-gradient(
    90deg,
    #00c8ff 0%,
    #2d9cff 28%,
    #7b5cff 62%,
    #c026d3 100%
  );
  --header-h: 88px;
  --scroll-offset: calc(var(--header-h) + 1.25rem);
  --max: 1240px;
  --content-max: calc(var(--max) + 80px);
  --content-pad-x: clamp(1.25rem, 4vw, 2.5rem);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--scroll-offset);
}

.page-top {
  display: block;
  height: 0;
  margin: 0;
  padding: 0;
  overflow: hidden;
  scroll-margin-top: 0;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 400;
  font-synthesis: none;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg-black);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

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

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Page background — layered radials like Figma */
.page-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background: linear-gradient(
    165deg,
    #0a0812 0%,
    var(--bg-deep) 38%,
    #07060c 68%,
    var(--bg-black) 100%
  );
}

.page-bg__glow {
  position: absolute;
  pointer-events: none;
}

/* Main purple halo — centered, extra-wide, soft falloff */
.page-bg__glow--purple {
  width: min(180vw, 2400px);
  height: min(120vh, 1300px);
  top: 46%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(
    ellipse 88% 78% at 50% 50%,
    rgba(118, 48, 148, 0.27) 0%,
    rgba(80, 24, 104, 0.23) 18%,
    rgba(58, 20, 76, 0.19) 32%,
    rgba(45, 18, 64, 0.15) 48%,
    rgba(32, 12, 45, 0.1) 62%,
    rgba(22, 8, 30, 0.07) 76%,
    transparent 92%
  );
}

/* Subtle cool wash behind headline (left) */
.page-bg__glow--cyan {
  width: min(85vw, 900px);
  height: min(75vh, 780px);
  top: 12%;
  left: -18%;
  background: radial-gradient(
    ellipse 48% 44% at 58% 42%,
    rgba(0, 168, 220, 0.1) 0%,
    rgba(14, 52, 82, 0.18) 28%,
    rgba(8, 28, 48, 0.08) 48%,
    transparent 68%
  );
}

/* Edge vignette — corners fall to black */
.page-bg__vignette {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 95% 88% at 50% 42%,
    transparent 0%,
    transparent 42%,
    rgba(0, 0, 0, 0.35) 72%,
    rgba(0, 0, 0, 0.72) 100%
  );
}

/* Bottom anchor — projects section sits on pure black */
.page-bg__floor {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 48vh;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(0, 0, 0, 0.45) 28%,
    rgba(0, 0, 0, 0.82) 55%,
    var(--bg-black) 100%
  );
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1rem clamp(1.25rem, 4vw, 2.5rem);
  max-width: calc(var(--max) + 5rem);
  margin: 0 auto;
  backdrop-filter: blur(16px);
  background: linear-gradient(
    180deg,
    rgba(5, 5, 10, 0.88) 0%,
    rgba(5, 5, 10, 0.4) 100%
  );
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.logo__img {
  display: block;
  height: clamp(38px, 4.5vw, 54px);
  width: auto;
}

.logo--small .logo__img {
  height: 42px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(0.75rem, 2vw, 1.75rem);
  margin-left: auto;
  margin-right: auto;
}

.site-nav a {
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  transition: color 0.2s var(--ease);
}

.site-nav a:hover,
.site-nav a:focus-visible {
  color: var(--cyan);
}

.search {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.35rem 0.35rem 1rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.35);
  min-width: 160px;
  flex-shrink: 0;
}

.search-wrap {
  position: relative;
  flex-shrink: 0;
}

.search-results {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  z-index: 120;
  width: min(22rem, calc(100vw - 2rem));
  max-height: min(20rem, 50vh);
  overflow: auto;
  padding: 0.4rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--glass-border);
  background: rgba(8, 8, 16, 0.98);
  backdrop-filter: blur(20px);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.45),
    0 0 24px rgba(0, 210, 255, 0.06);
}

.search-results[hidden] {
  display: none;
}

.search-results__empty {
  margin: 0;
  padding: 0.85rem 0.75rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.search-results__item {
  display: block;
  width: 100%;
  padding: 0.7rem 0.75rem;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: background 0.2s var(--ease);
}

.search-results__item:hover,
.search-results__item:focus-visible,
.search-results__item.is-active {
  background: rgba(0, 210, 255, 0.08);
  outline: none;
}

.search-results__title {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.03em;
}

.search-results__meta {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.72rem;
  line-height: 1.45;
  color: var(--text-muted);
}

.search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  outline: none;
  font-size: 0.8rem;
}

.search input::placeholder {
  color: var(--text-muted);
}

.search button {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--cyan);
  cursor: pointer;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  margin-left: auto;
  padding: 0;
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-sm);
  background: var(--glass);
  cursor: pointer;
}

.nav-toggle__bar {
  display: block;
  width: 18px;
  height: 2px;
  margin: 0 auto;
  background: var(--text);
  border-radius: 2px;
}

/* Hero */
.hero {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: clamp(1rem, 3vw, 2rem);
  max-width: var(--content-max);
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 3.5rem) var(--content-pad-x) 2rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1.25rem;
  padding: 7px 14px;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  line-height: 1;
  text-transform: uppercase;
  color: var(--badge-cyan);
  border: 1px solid var(--badge-cyan);
  border-radius: 6px;
  background: transparent;
}

.eyebrow__dot {
  flex-shrink: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--badge-cyan);
  animation: eyebrow-dot-pulse 1.8s ease-in-out infinite;
}

@keyframes eyebrow-dot-pulse {
  0%,
  100% {
    background-color: var(--badge-cyan);
    transform: scale(1);
    box-shadow:
      0 0 5px rgba(137, 207, 240, 0.55),
      0 0 12px rgba(137, 207, 240, 0.28);
  }
  50% {
    background-color: var(--badge-cyan-bright);
    transform: scale(1.28);
    box-shadow:
      0 0 4px #00d2ff,
      0 0 12px rgba(0, 210, 255, 0.95),
      0 0 26px rgba(0, 210, 255, 0.65),
      0 0 44px rgba(137, 207, 240, 0.45);
  }
}

@media (prefers-reduced-motion: reduce) {
  .eyebrow__dot {
    animation: none;
    background-color: var(--badge-cyan);
    box-shadow: 0 0 12px rgba(137, 207, 240, 0.5);
  }
}

.hero__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: var(--hero-title-weight);
  letter-spacing: var(--hero-title-tracking);
  text-transform: uppercase;
}

.hero__line {
  display: block;
  font-size: clamp(2.25rem, 4.6vw, var(--hero-title-size));
  line-height: clamp(2rem, 4vw, var(--hero-title-leading));
  letter-spacing: var(--hero-title-tracking);
}

.hero__line--solid {
  color: var(--text);
}

.hero__line--gradient {
  background: var(--hero-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lead {
  max-width: 34rem;
  margin: 1.35rem 0 0;
  font-size: clamp(0.78rem, 1.4vw, 0.88rem);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  line-height: 1.7;
}

.hero__lead-accent {
  color: var(--cyan);
  font-weight: 600;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 12px 22px;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
  border-radius: var(--btn-radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition:
    transform 0.2s var(--ease),
    box-shadow 0.2s var(--ease),
    border-color 0.2s var(--ease),
    color 0.2s var(--ease);
}

.btn--primary {
  color: #ffffff;
  background: var(--btn-gradient);
  border-color: rgba(137, 207, 240, 0.55);
  box-shadow:
    0 0 18px rgba(0, 210, 255, 0.35),
    0 4px 16px rgba(0, 0, 0, 0.25);
}

.btn--primary:hover {
  transform: translateY(-1px);
  border-color: rgba(160, 220, 255, 0.75);
  box-shadow:
    0 0 26px rgba(0, 210, 255, 0.5),
    0 6px 20px rgba(0, 0, 0, 0.3);
}

.btn--ghost {
  overflow: hidden;
  color: var(--badge-cyan);
  background: rgba(6, 12, 22, 0.55);
  border-color: var(--badge-cyan);
  box-shadow: none;
}

.btn--ghost::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.14) 0%,
    rgba(255, 255, 255, 0.05) 46%,
    rgba(0, 0, 0, 0.08) 54%,
    rgba(0, 0, 0, 0.28) 100%
  );
  pointer-events: none;
}

.btn--ghost::after {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  top: 50%;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(137, 207, 240, 0.25) 25%,
    rgba(180, 230, 255, 0.55) 50%,
    rgba(137, 207, 240, 0.25) 75%,
    transparent 100%
  );
  pointer-events: none;
}

.btn--ghost > span,
.btn--ghost .btn__arrow {
  position: relative;
  z-index: 1;
}

.btn__arrow {
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 7px solid currentColor;
}

.btn--ghost:hover {
  color: var(--badge-cyan-bright);
  border-color: var(--badge-cyan-bright);
  transform: translateY(-1px);
}

/* Hero visual — Figma export */
.hero__visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-height: 280px;
}

.hero__visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 70% 60% at 55% 50%,
    rgba(120, 45, 155, 0.18) 0%,
    transparent 65%
  );
  z-index: 0;
  pointer-events: none;
}

.hero__image {
  position: relative;
  z-index: 1;
  width: min(118%, 640px);
  max-width: none;
  margin-right: clamp(-2rem, -4vw, -0.5rem);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.55));
}

/* Projects — same width as hero */
.projects {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--content-pad-x) 4.5rem;
  box-sizing: border-box;
  scroll-margin-top: var(--scroll-offset);
}

.projects .section-label {
  margin: 0 0 1rem;
}

.section-label {
  margin: 0 0 1.25rem;
  font-family: var(--font-display);
  font-size: clamp(0.78rem, 1.2vw, 0.92rem);
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--section-label-color);
  text-shadow: 0 0 18px rgba(0, 180, 230, 0.35);
}

.projects__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(0.65rem, 1.2vw, 1rem);
  width: 100%;
}

.project-card,
.project-card--featured {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 1px;
  border: none;
  border-radius: var(--frame-radius);
  color: inherit;
  text-decoration: none;
  background: var(--frame-gradient);
  box-shadow: var(--frame-shadow);
  transition:
    transform 0.2s var(--ease),
    box-shadow 0.25s var(--ease);
}

.project-card::before,
.project-card--featured::before {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: 0;
  border-radius: calc(var(--frame-radius-inner));
  background: var(--frame-inner-bg);
  pointer-events: none;
}

.project-card:hover,
.project-card--featured:hover {
  transform: translateY(-3px);
  box-shadow: var(--frame-shadow-hover);
}

.project-card > * {
  position: relative;
  z-index: 1;
}

.project-card__thumb {
  position: relative;
  display: flex;
  align-items: flex-start;
  aspect-ratio: 2 / 1;
  padding: 0.65rem 0.75rem;
  background-size: cover;
  background-position: center;
  overflow: hidden;
  border-radius: var(--frame-radius-inner) var(--frame-radius-inner) 0 0;
}

.project-card__cover {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.project-card__thumb--apps .project-card__cover {
  object-position: 52% 48%;
}

.project-card__thumb--music .project-card__cover {
  object-position: 50% 42%;
}

.project-card__thumb--store .project-card__cover {
  object-position: 54% 50%;
}

.project-card__thumb--games .project-card__cover {
  object-position: 48% 44%;
}

.project-card__tag {
  position: relative;
  z-index: 2;
  font-size: 0.55rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.85);
}

.project-card__thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    180deg,
    rgba(4, 4, 10, 0.72) 0%,
    transparent 38%,
    rgba(4, 4, 10, 0.2) 62%,
    rgba(4, 4, 10, 0.55) 100%
  );
  pointer-events: none;
}

.project-card__thumb--apps,
.project-card__thumb--music,
.project-card__thumb--store,
.project-card__thumb--games {
  background: #06060c;
}

.project-card__body {
  padding: 0.7rem 0.8rem 0.85rem;
  border-top: 1px solid rgba(0, 210, 255, 0.1);
  background: transparent;
}

.project-card__body h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.35;
  text-transform: uppercase;
  color: var(--text);
}

.project-card__body p {
  margin: 0.4rem 0 0;
  font-size: 0.62rem;
  font-weight: 400;
  line-height: 1.5;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--text-muted);
}

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

/* About */
.about {
  position: relative;
  z-index: 3;
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 1rem var(--content-pad-x) 5rem;
  box-sizing: border-box;
  scroll-margin-top: var(--scroll-offset);
}

.about > .section-label {
  margin-bottom: 0.65rem;
}

.about__stage {
  position: relative;
  margin-top: 0;
  padding-top: 0;
  padding-bottom: clamp(3rem, 12vw, 4.5rem);
  overflow: visible;
}

.about__frame {
  position: relative;
  z-index: 1;
  overflow: visible;
  padding: 1px;
  border-radius: var(--frame-radius);
  background: var(--frame-gradient);
  box-shadow: var(--frame-shadow);
}

.about__inner {
  position: relative;
  padding: clamp(1.75rem, 4vw, 2.5rem) clamp(1.5rem, 3vw, 2rem);
  padding-right: min(36%, 360px);
  border-radius: var(--frame-radius-inner);
  background: var(--frame-inner-bg);
}

.about__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 2.8vw, 2rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.about__text {
  max-width: 36rem;
  margin: 1rem 0 0;
  font-size: clamp(0.88rem, 1.5vw, 1rem);
  font-weight: 400;
  line-height: 1.65;
  color: var(--text-muted);
}

.about__text-line {
  display: block;
}

.about__text-line + .about__text-line {
  margin-top: 0.15rem;
}

.about__text-line--single {
  white-space: nowrap;
  max-width: 100%;
}

@media (max-width: 900px) {
  .about__text-line--single {
    white-space: normal;
  }
}

.about__products {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(1.25rem, 3vw, 2rem);
  margin-top: 1.75rem;
}

.about-product {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.about-product__media {
  position: relative;
  isolation: isolate;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: clamp(72px, 8.5vw, 88px);
  height: clamp(72px, 8.5vw, 88px);
  padding: 1px;
  overflow: hidden;
  border: none;
  border-radius: 10px;
  background: var(--frame-gradient);
  box-shadow: var(--frame-shadow);
}

.about-product__media::before {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: 0;
  border-radius: 9px;
  background: var(--frame-inner-bg);
  pointer-events: none;
}

.about-product__img {
  position: relative;
  z-index: 1;
  width: 128%;
  height: 128%;
  max-width: none;
  object-fit: contain;
  transform: translate(-4%, -10%);
  filter: drop-shadow(0 6px 18px rgba(0, 210, 255, 0.3));
}

.about-product--headphones {
  gap: 1rem;
}

.about-product--headphones .about-product__copy {
  min-width: 0;
  flex: 1;
}

.about-product__media--headphones {
  width: clamp(68px, 7.5vw, 84px);
  height: clamp(68px, 7.5vw, 84px);
}

.about-product__media--headphones .about-product__img {
  width: 112%;
  height: 112%;
  transform: translate(-14%, -12%);
}

.about-product__copy h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.about-product__copy p {
  margin: 0.5rem 0 0;
  font-size: 0.68rem;
  line-height: 1.55;
  color: rgba(244, 246, 255, 0.55);
}

/* Robo overlays the About frame on desktop; sits below the frame on mobile */
.about__robo {
  position: absolute;
  z-index: 2;
  right: -1%;
  top: -5%;
  bottom: -17%;
  width: min(38%, 336px);
  height: auto;
  max-height: 112%;
  object-fit: contain;
  object-position: bottom right;
  pointer-events: none;
  transform: scale(1.155) translateY(5%);
  transform-origin: 100% 100%;
  filter: drop-shadow(0 20px 48px rgba(0, 0, 0, 0.55));
}

/* Panels & extended sections */
.panel {
  position: relative;
  z-index: 1;
  padding: clamp(3rem, 8vw, 5rem) clamp(1.25rem, 4vw, 2.5rem);
}

.panel__inner {
  position: relative;
  isolation: isolate;
  max-width: var(--max);
  margin: 0 auto;
  padding: 1px;
  border: none;
  border-radius: var(--frame-radius);
  background: var(--frame-gradient);
  box-shadow: var(--frame-shadow);
  backdrop-filter: none;
}

.panel__inner::before {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: 0;
  border-radius: var(--frame-radius-inner);
  background: var(--frame-inner-bg);
  pointer-events: none;
}

.panel__inner > * {
  position: relative;
  z-index: 1;
}

.panel__title {
  margin: 0.5rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.text-gradient {
  background: linear-gradient(90deg, var(--cyan), var(--magenta-hot));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.panel__text {
  max-width: 42rem;
  margin: 1.25rem 0 0;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

.stats strong {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--cyan);
}

.stats span {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.platforms {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 var(--content-pad-x) 4.5rem;
  box-sizing: border-box;
  scroll-margin-top: var(--scroll-offset);
}

.platforms__lead {
  max-width: 36rem;
  margin: -0.5rem 0 0.6rem;
  font-size: clamp(0.82rem, 1.4vw, 0.95rem);
  line-height: 1.6;
  color: var(--text-muted);
}

.platforms__crosslink {
  margin: 0 0 1.5rem;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.platforms__crosslink a {
  color: var(--cyan);
  text-decoration: none;
  font-weight: 600;
}

.platforms__crosslink a:hover {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.platforms__cta {
  margin: 1.35rem 0 0;
  text-align: center;
}

.platforms__showcase {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(0, 1fr);
  gap: clamp(0.75rem, 1.5vw, 1rem);
  align-items: stretch;
}

.platforms__stack {
  display: flex;
  flex-direction: column;
  gap: clamp(0.65rem, 1.2vw, 0.85rem);
  min-height: 100%;
}

.platform-card {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: 1px;
  border: none;
  border-radius: var(--frame-radius);
  background: var(--frame-gradient);
  box-shadow: var(--frame-shadow);
  overflow: hidden;
  color: inherit;
  text-decoration: none;
  transition:
    transform 0.2s var(--ease),
    box-shadow 0.25s var(--ease);
}

.platform-card::before {
  content: "";
  position: absolute;
  inset: 1px;
  z-index: 0;
  border-radius: var(--frame-radius-inner);
  background: var(--frame-inner-bg);
  pointer-events: none;
}

.platform-card > * {
  position: relative;
  z-index: 1;
}

.platform-card:hover,
.platform-card:focus-visible {
  transform: translateY(-3px);
  box-shadow: var(--frame-shadow-hover);
}

.platform-card--compact {
  flex-direction: row;
  align-items: stretch;
  flex: 1;
  min-height: 0;
}

.platform-card__media {
  position: relative;
  overflow: hidden;
  background: #06060c;
}

.platform-card--featured .platform-card__media {
  aspect-ratio: 16 / 9;
  border-radius: var(--frame-radius-inner) var(--frame-radius-inner) 0 0;
}

.platform-card--compact .platform-card__media--compact {
  border-radius: var(--frame-radius-inner) 0 0 var(--frame-radius-inner);
}

.platform-card__media--compact {
  flex: 0 0 clamp(7.5rem, 32%, 9.5rem);
  aspect-ratio: auto;
  min-height: 100%;
}

.platform-card__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.platform-card--featured .platform-card__img {
  object-position: center 42%;
}

.platform-card--compact .platform-card__img {
  min-height: 100%;
}

.platform-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  gap: 0.35rem;
  padding: 0.85rem 0.95rem 0.95rem;
}

.platform-card--compact .platform-card__body {
  padding: 0.7rem 0.85rem 0.75rem;
  justify-content: center;
}

.platform-card__status {
  align-self: flex-start;
  padding: 0.2rem 0.45rem;
  font-size: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 4px;
  border: 1px solid transparent;
}

.platform-card__status--live {
  color: #8ee8ff;
  background: rgba(0, 210, 255, 0.12);
  border-color: rgba(0, 210, 255, 0.35);
}

.platform-card__status--beta {
  color: #e8b8ff;
  background: rgba(189, 0, 255, 0.12);
  border-color: rgba(189, 0, 255, 0.35);
}

.platform-card__status--soon {
  color: rgba(244, 246, 255, 0.55);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
}

.platform-card__status--demo {
  color: #ffd98a;
  background: rgba(255, 193, 70, 0.12);
  border-color: rgba(255, 193, 70, 0.35);
}

.platform-card__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(0.72rem, 1.2vw, 0.88rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.3;
  text-transform: uppercase;
}

.platform-card--featured .platform-card__title {
  font-size: clamp(0.85rem, 1.5vw, 1rem);
}

.platform-card__desc {
  margin: 0;
  flex: 1;
  font-size: clamp(0.62rem, 1.1vw, 0.72rem);
  line-height: 1.5;
  color: var(--text-muted);
}

.platform-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.25rem;
  font-size: 0.58rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--badge-cyan);
  transition: color 0.2s var(--ease);
}

.platform-card:hover .platform-card__cta,
.platform-card:focus-visible .platform-card__cta {
  color: var(--badge-cyan-bright);
}

.platform-card__cta-arrow {
  width: 0;
  height: 0;
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  border-left: 6px solid currentColor;
}

.platform-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(4, 4, 10, 0.35) 100%);
  pointer-events: none;
}

.contact.panel {
  scroll-margin-top: var(--scroll-offset);
}

.contact__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
  padding: clamp(2rem, 5vw, 3rem);
}

.contact__email {
  margin: 1rem 0 0;
}

.contact__email a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--badge-cyan-bright);
  transition: color 0.2s var(--ease);
}

.contact__email a:hover {
  color: var(--cyan);
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.contact-form label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.contact-form input,
.contact-form textarea {
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--glass-border);
  background: rgba(0, 0, 0, 0.35);
  outline: none;
  transition: border-color 0.2s var(--ease);
}

.contact-form input:focus,
.contact-form textarea:focus {
  border-color: var(--cyan);
}

/* Footer */
.site-footer {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem 2rem;
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem clamp(1.25rem, 4vw, 2.5rem) 3rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.site-footer__copy {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.site-footer__email {
  display: inline-block;
  margin-left: 0.65rem;
  color: var(--badge-cyan);
  transition: color 0.2s var(--ease);
}

.site-footer__email:hover {
  color: var(--badge-cyan-bright);
}

.site-footer__links {
  display: flex;
  gap: 1.25rem;
  margin-left: auto;
}

.site-footer__links a {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.site-footer__links a:hover {
  color: var(--cyan);
}

/* Responsive */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero__visual {
    order: -1;
    justify-content: center;
    max-width: 520px;
    margin: 0 auto;
  }

  .hero__image {
    width: 100%;
    margin-right: 0;
  }

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

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

  .platforms__featured .platform-card--featured {
    min-height: auto;
  }

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

  .about__inner {
    padding-right: clamp(1.5rem, 3vw, 2rem);
  }

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

  .about__stage {
    padding-top: 1.5rem;
    padding-bottom: 2rem;
  }

  .about__robo {
    position: relative;
    right: auto;
    top: auto;
    bottom: auto;
    display: block;
    width: min(260px, 72%);
    max-height: none;
    margin: 1.25rem auto 0;
    transform: none;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: flex;
  }

  .site-nav {
    position: fixed;
    inset: var(--header-h) 1rem auto 1rem;
    flex-direction: column;
    padding: 1.25rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--glass-border);
    background: rgba(8, 8, 16, 0.96);
    backdrop-filter: blur(20px);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
      opacity 0.25s var(--ease),
      transform 0.25s var(--ease),
      visibility 0.25s;
  }

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

  .search-wrap {
    display: none;
  }

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

  .platform-card--compact {
    flex-direction: column;
  }

  .platform-card__media--compact {
    flex: none;
    width: 100%;
    aspect-ratio: 2 / 1;
    min-height: 0;
  }
}
