:root {
  --dark: #121115;
  --ink: #08090d;
  --orange: #f59e0b;
  --gold: #60a5fa;
  --light: #fefcf7;
  --coffee-light: #182133;
  --coffee-lighter: #f3f7ff;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--ink);
}

body {
  margin: 0;
  color: var(--light);
  background: var(--dark);
  font-family: "DM Sans", "Segoe UI", Arial, sans-serif;
  overflow-x: hidden;
}

body,
a,
button {
  cursor: none;
}

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

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

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

h1,
h2 {
  font-family: "Gotham", "Helvetica Neue", Arial, sans-serif;
  font-weight: 300;
  letter-spacing: 0;
  line-height: 1.04;
}

h1 {
  font-size: clamp(5rem, 13vw, 11rem);
}

h2 {
  font-size: clamp(2.5rem, 6vw, 5.7rem);
}

h3 {
  font-size: 1rem;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--gold);
}

p {
  line-height: 1.65;
}

.cursor {
  width: 1.4rem;
  height: 1.4rem;
  border: 1px solid rgba(255, 255, 255, .65);
  border-radius: 999px;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 99999;
  pointer-events: none;
  mix-blend-mode: exclusion;
  transform: translate(-50%, -50%);
}

.cursor::after {
  content: "";
  width: 35%;
  height: 35%;
  border-radius: inherit;
  background: rgba(255, 255, 255, .8);
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
}

.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: grid;
  grid-template-columns: 14rem 1fr 3rem;
  align-items: center;
  gap: 1.5rem;
  padding: 2rem 5vw;
  color: var(--light);
  mix-blend-mode: exclusion;
}

.brand,
.site-header nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: .7rem;
  font-size: 1.4rem;
  opacity: 0;
  animation: brandEntrance 1.2s var(--ease) 0.3s forwards;
}

.brand img {
  animation: glowPulse 3s ease-in-out 1.5s infinite;
}

.brand img {
  width: 2.8rem;
  height: 2.8rem;
  object-fit: contain;
  border-radius: 50%;
  background: rgba(255, 255, 255, .08);
}

.site-header nav {
  justify-content: center;
  gap: clamp(.8rem, 2vw, 2.4rem);
  font-size: .78rem;
  text-transform: uppercase;
}

.site-header nav a,
.lang,
footer a,
.text-link,
.icon-link {
  transition: color .45s var(--ease);
}

.site-header nav a:hover,
.lang:hover,
footer a:hover,
.text-link:hover,
.icon-link:hover {
  color: var(--gold);
}

.theme-toggle {
  justify-self: end;
  width: 3rem;
  height: 3rem;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(254, 252, 247, .34);
  border-radius: 999px;
  color: var(--light);
  background: rgba(255, 255, 255, .08);
  box-shadow: 0 .8rem 2rem rgba(0, 0, 0, .18);
  transition: color .35s var(--ease), background .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease);
}

.theme-toggle:hover {
  transform: translateY(-.12rem);
  border-color: rgba(96, 165, 250, .65);
  background: rgba(255, 255, 255, .14);
}

.theme-toggle-icon {
  font-size: 1.25rem;
  line-height: 1;
}

.lang {
  justify-self: end;
  font-size: 1.1rem;
}

.full-screen {
  min-height: 100svh;
}

.hero {
  position: relative;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.hero-bg,
.hero-shade {
  position: absolute;
  inset: 0;
}

.hero-bg {
  background-image: url("../ImageAI-720x540.gif");
  background-size: cover;
  background-position: center;
  transform: scale(1.08);
  animation: heroDrift 9s var(--ease) forwards;
}

.hero-shade {
  background:
    radial-gradient(circle at 52% 38%, rgba(96, 165, 250, .22), rgba(8, 9, 13, .72) 64%),
    linear-gradient(180deg, rgba(8, 9, 13, .38), rgba(8, 9, 13, .92));
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
}

.hero-content > * {
  opacity: 0;
  transform: translateY(30px);
}

.hero-content .eyebrow {
  animation: heroFadeSlide 0.8s var(--ease) 0.2s forwards;
}

.hero-content h1 {
  animation: heroFadeSlide 0.8s var(--ease) 0.5s forwards;
}

.hero-content h2 {
  animation: heroFadeSlide 0.8s var(--ease) 0.8s forwards;
}

.hero-content .hero-kicker {
  animation: heroFadeSlide 0.8s var(--ease) 1.1s forwards;
}

.hero-content .button {
  animation: heroFadeSlide 0.8s var(--ease) 1.4s forwards;
}

.eyebrow {
  color: var(--gold);
  font-size: .78rem;
  letter-spacing: .14em;
  line-height: 1.4;
  text-transform: uppercase;
}

.hero-kicker {
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: clamp(.9rem, 1.6vw, 1.3rem);
  max-width: 54rem;
  margin: 0 auto 2rem;
}

.scroll-orbit {
  position: absolute;
  right: 5vw;
  bottom: 4rem;
  width: 6rem;
  height: 6rem;
  border: 1px solid rgba(254, 252, 247, .35);
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--coffee-light);
  font-size: .72rem;
  text-transform: uppercase;
  overflow: hidden;
}

.scroll-orbit::before {
  content: "";
  position: absolute;
  width: .55rem;
  height: .55rem;
  top: -.28rem;
  border-radius: 50%;
  background: var(--orange);
}

.scroll-orbit img {
  width: 100%;
  height: 100%;
  padding: .7rem;
  object-fit: contain;
  border-radius: 50%;
  animation: scrollLogoSpin 8s linear infinite;
  transform-origin: center;
  will-change: transform;
}

.story-scroll {
  height: 420svh;
  background: var(--dark);
}

.story-pin {
  position: sticky;
  top: 0;
  min-height: 100svh;
  display: grid;
  place-items: center;
  overflow: hidden;
  isolation: isolate;
  background-image: url("../images/bg.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.story-pin::before,
.choice-section::before {
  content: "";
  position: absolute;
  inset: auto -10vw 0;
  height: 8rem;
  background:
    linear-gradient(135deg, transparent 25%, rgba(224, 193, 121, .28) 25% 35%, transparent 35% 60%, rgba(224, 193, 121, .2) 60% 70%, transparent 70%),
    linear-gradient(45deg, transparent 25%, rgba(255, 101, 45, .2) 25% 35%, transparent 35% 60%, rgba(255, 101, 45, .13) 60% 70%, transparent 70%);
  background-size: 4rem 4rem;
  opacity: .6;
  z-index: -1;
}

.story-canvas {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 70% 30%, rgba(255, 101, 45, .13), transparent 20rem),
    radial-gradient(circle at 26% 62%, rgba(224, 193, 121, .18), transparent 24rem);
  background-color: rgba(11, 12, 30, .55);
}

.tech-card {
  width: min(24rem, 54vw);
  aspect-ratio: 1;
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  place-items: center;
  color: var(--dark);
  background: linear-gradient(145deg, rgba(96, 165, 250, .32), rgba(245, 158, 11, .18));
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 30px;
  box-shadow: inset -1.5rem -2rem 3rem rgba(8, 9, 13, .22), 0 2rem 5rem rgba(0, 0, 0, .25);
  transform: translate(-50%, -50%) rotate(-7deg);
  overflow: hidden;
}

.tech-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .45;
}

.tech-card strong {
  position: absolute;
  font-size: clamp(2rem, 6vw, 5rem);
  font-weight: 300;
  color: rgba(254, 252, 247, .16);
}

.orbit-dot {
  position: absolute;
  width: 5.5rem;
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.08);
  border: 2px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25), inset 0 0 12px rgba(255, 255, 255, 0.05);
  opacity: .75;
  padding: 0.6rem;
  transition: translate 0.1s linear, rotate 0.1s linear, scale 0.4s cubic-bezier(.22, .61, .36, 1), opacity 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.dot-a { top: 18%; left: 17%; rotate: -22deg; scale: 0.85; }
.dot-b { top: 27%; right: 18%; rotate: 42deg; scale: 0.62; }
.dot-c { bottom: 20%; left: 26%; rotate: 68deg; scale: 0.5; }
.dot-d { bottom: 16%; right: 26%; rotate: -48deg; scale: 0.74; }

.orbit-dot.is-active-logo {
  scale: 1.55 !important;
  opacity: 1;
  z-index: 10;
  border-color: rgba(96, 165, 250, 0.6);
  box-shadow: 0 12px 32px rgba(96, 165, 250, 0.3), inset 0 0 12px rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.12);
}

.story-panel {
  position: absolute;
  width: min(34rem, calc(100vw - 3rem));
  text-align: center;
  opacity: 0;
  transform: translateY(4rem) scale(.98);
  transition: opacity .65s var(--ease), transform .65s var(--ease);
}

.story-panel.is-active {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.story-panel h2 {
  margin: .18em 0;
}

.choice-section {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-height: 90svh;
  background: var(--coffee-lighter);
  color: var(--dark);
  overflow: hidden;
}

.choice-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.4rem;
  padding: 8rem 9vw;
  min-height: 42rem;
}

.choice-card:first-child {
  background: var(--coffee-light);
  color: var(--light);
}

.choice-card img {
  width: min(18rem, 60vw);
  aspect-ratio: 1.2;
  object-fit: contain;
  margin-bottom: 1rem;
}

.mella-card {
  position: relative;
  background: linear-gradient(145deg, #07111f, #123047);
  color: var(--light);
  overflow: hidden;
}

.mella-card::before {
  content: "";
  position: absolute;
  inset: -50%;
  width: 200%;
  height: 200%;
  background: conic-gradient(from 0deg, transparent, rgba(59, 130, 246, .25), transparent, rgba(239, 68, 68, .2), transparent);
  animation: radarPulse 6s linear infinite;
  opacity: .4;
  z-index: 0;
}

.mella-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(145deg, #07111f, #123047);
  z-index: 1;
}

.mella-card > * {
  position: relative;
  z-index: 2;
}

.mella-card img {
  width: min(14rem, 52vw);
  aspect-ratio: 1;
  padding: 1.2rem;
  border-radius: 24px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .12);
  position: relative;
  overflow: hidden;
  transition: background .4s var(--ease), border-color .4s var(--ease), transform .4s var(--ease);
}

.mella-card:hover img {
  background: rgba(255, 255, 255, .14);
  border-color: rgba(96, 165, 250, .4);
  transform: scale(1.04);
}

.mella-card:hover {
  background: linear-gradient(145deg, #0a1a35, #1a3a5a);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  min-height: 3.35rem;
  padding: 0 1.5rem;
  color: var(--light);
  background: rgba(44, 23, 18, .92);
  text-transform: uppercase;
  font-size: .78rem;
  transition: transform .45s var(--ease), background .45s var(--ease), color .45s var(--ease);
}

.button:hover {
  transform: translateY(-.2rem);
  background: var(--orange);
  color: var(--light);
}

.button.outline {
  color: var(--dark);
  background: transparent;
  border: 1px solid currentColor;
}

.section-pad {
  padding: clamp(5rem, 10vw, 10rem) 5vw;
}

/* Projects scroll section */
.products-scroll-section {
  position: relative;
  height: 350vh; /* Scroll headroom to translate cards */
  background: #20100d;
}

.products-sticky-container {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
  padding: 6vh 5vw;
}

.product-track-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.product-track {
  display: flex;
  flex-wrap: nowrap;
  gap: 2rem;
  width: max-content;
  padding: 1.5rem 0;
  will-change: transform;
}

.product-card {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 2.2rem;
  width: min(46rem, 85vw);
  height: 19rem;
  padding: 2.2rem;
  overflow: hidden;
  background: linear-gradient(145deg, #181d26, #090a0f);
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition: border-color .3s ease, box-shadow .3s ease, filter .45s var(--ease), opacity .45s var(--ease);
  flex-shrink: 0;
  transform-style: preserve-3d;
  transform: perspective(1000px) rotateX(var(--tilt-x, 0deg)) rotateY(var(--tilt-y, 0deg)) translateY(var(--tilt-lift, 0));
  will-change: transform;
  border: 1px solid rgba(255, 255, 255, .08);
}

.product-card::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: inherit;
  background: conic-gradient(from var(--angle, 0deg), transparent, rgba(96, 165, 250, .5), transparent, rgba(245, 158, 11, .4), transparent);
  opacity: 0;
  z-index: -1;
  animation: borderSpin 3s linear infinite;
  transition: opacity .4s var(--ease);
}

.product-card:hover::before {
  opacity: 1;
}

.product-card::after {
  content: "→";
  position: absolute;
  bottom: 1.5rem;
  right: 2rem;
  font-size: 1.5rem;
  color: var(--gold);
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}

.product-card:hover::after {
  opacity: 1;
  transform: translateX(0);
}

.product-logo-container {
  width: 11rem; /* Bigger logo container on PC */
  height: 11rem;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 1rem;
}

.product-logo-container img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.4s var(--ease);
}

.product-info {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  flex-grow: 1;
}

.product-card span {
  font-size: 1.5rem; /* Bigger title on PC */
  font-weight: 600;
  color: var(--light);
  line-height: 1.3;
}

.product-card small {
  font-size: 1.02rem; /* Bigger description on PC */
  color: rgba(254, 252, 247, .75);
  line-height: 1.6;
}

.product-card:hover {
  --tilt-lift: -0.4rem;
  border-color: rgba(96, 165, 250, 0.4);
  box-shadow: 0 12px 36px rgba(96, 165, 250, 0.15);
}

.product-card:hover .product-logo-container img {
  transform: scale(1.08);
}

.product-track:hover .product-card:not(:hover) {
  filter: blur(2px);
  opacity: .5;
}

/* Mobile responsive fixes */
@media (max-width: 768px) {
  .products-scroll-section {
    height: 380vh; /* Extra scroll depth for mobile */
  }
  .product-card {
    width: 92vw; /* Takes full width of screen */
    height: auto;
    min-height: 18rem; /* Fit mobile height dynamically */
    flex-direction: row; /* KEEP LOGO LEFT, TEXT RIGHT ON MOBILE! */
    align-items: center;
    gap: 1.4rem;
    padding: 1.4rem;
  }
  .product-logo-container {
    width: 7.5rem; /* Large logo container on mobile */
    height: 7.5rem;
    padding: 0.6rem;
  }
  .product-card span {
    font-size: 1.25rem; /* Readable sizing on mobile */
  }
  .product-card small {
    font-size: 0.92rem;
    line-height: 1.5;
  }
}

.center-section {
  display: grid;
  grid-template-columns: 46% 1fr;
  min-height: 100svh;
  background: var(--coffee-lighter);
  color: var(--dark);
}

.center-media {
  min-height: 36rem;
  display: grid;
  place-items: center;
  padding: 3rem;
  background: #0f172a;
}

.center-media img {
  max-height: 70svh;
  object-fit: contain;
}

.center-details {
  align-self: center;
  padding: clamp(4rem, 9vw, 9rem);
}

.center-details > p {
  max-width: 33rem;
  margin: 1.5rem 0 2rem;
}

.detail-grid {
  display: grid;
  gap: 2rem;
  margin-top: 4rem;
}

.team-list {
  display: grid;
  gap: 1rem;
  margin-top: 3rem;
}

.team-list article {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: rgba(18, 17, 21, .07);
  border: 1px solid rgba(18, 17, 21, .12);
  border-radius: 8px;
  cursor: pointer;
  transition: background .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease);
}

.team-list article:hover {
  background: rgba(18, 17, 21, .1);
  border-color: rgba(96, 165, 250, .2);
}

.team-list article[data-expanded="true"] {
  border-color: rgba(96, 165, 250, .35);
  box-shadow: 0 4px 16px rgba(96, 165, 250, .1);
}

.team-photo {
  width: 4rem;
  height: 4rem;
  object-fit: cover;
  border-radius: 50%;
  position: relative;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}

.team-photo-wrapper {
  position: relative;
  flex-shrink: 0;
}

.team-photo-ring {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid transparent;
  background: conic-gradient(from 0deg, var(--gold), var(--orange), var(--gold)) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  opacity: 0;
  transition: opacity .4s var(--ease), transform .4s var(--ease);
  pointer-events: none;
}

.team-list article:hover .team-photo-ring {
  opacity: 1;
  animation: ringSpin 3s linear infinite;
}

.team-list article[data-expanded="true"] .team-photo {
  transform: scale(1.1);
  box-shadow: 0 0 0 3px rgba(96, 165, 250, .3);
}

.team-bio {
  font-size: .85rem;
  color: rgba(18, 17, 21, .6);
  line-height: 1.5;
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s var(--ease), margin .4s var(--ease), opacity .4s var(--ease);
  opacity: 0;
  margin-top: 0;
}

.team-list article[data-expanded="true"] .team-bio {
  max-height: 6rem;
  opacity: 1;
  margin-top: .5rem;
}

.team-list article > div {
  flex: 1;
  min-width: 0;
}

.member-actions .icon-link {
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease), color .3s var(--ease);
}

.member-actions .icon-link:hover {
  transform: translateY(-.2rem);
  box-shadow: 0 6px 16px rgba(96, 165, 250, .2);
  background: rgba(255, 255, 255, .12);
}

.member-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem;
  margin-top: .85rem;
}

.detail-grid p,
.detail-grid a {
  margin-top: .8rem;
}

.text-link {
  display: inline-flex;
  color: var(--orange);
  text-transform: uppercase;
}

.icon-link {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  min-height: 2.65rem;
  padding: 0 .85rem;
  border: 1px solid rgba(254, 252, 247, .18);
  border-radius: 999px;
  color: var(--light);
  background: rgba(255, 255, 255, .06);
  font-size: .78rem;
  text-transform: uppercase;
  line-height: 1;
}

.icon-link img {
  width: 1.15rem;
  height: 1.15rem;
  object-fit: contain;
  border-radius: 4px;
  flex: 0 0 auto;
}

.gallery {
  background: #21110d;
  overflow: hidden;
}

.gallery-marquee {
  width: 100%;
  overflow: hidden;
}

.gallery-track {
  display: flex;
  gap: 1rem;
  width: max-content;
  animation: galleryMarquee 52s linear infinite;
  will-change: transform;
}

.gallery-marquee:hover .gallery-track {
  animation-play-state: paused;
}

.gallery-track img {
  width: clamp(14rem, 22vw, 24rem);
  height: 14rem;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, .12);
  flex: 0 0 auto;
}

.contact-section {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 4rem;
  background: #0b0d12;
}

.contact-form {
  position: relative;
  display: grid;
  gap: 1.2rem;
  padding: 2.5rem;
  background: rgba(255, 255, 255, .04);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, .2), inset 0 1px 0 rgba(255, 255, 255, .06);
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease);
}

.contact-form:focus-within {
  border-color: rgba(96, 165, 250, .3);
  box-shadow: 0 8px 32px rgba(96, 165, 250, .08), inset 0 1px 0 rgba(255, 255, 255, .06);
}

.contact-form img {
  position: absolute;
  right: 2rem;
  top: 1rem;
  width: 9rem;
  opacity: .25;
  pointer-events: none;
  z-index: 0;
}

.contact-form > *:not(img) {
  z-index: 1;
  position: relative;
}

.float-label {
  position: relative;
  display: block;
}

.float-label input,
.float-label textarea {
  width: 100%;
  padding: 1.2rem 1rem .6rem;
  border: 1px solid rgba(254, 252, 247, .12);
  border-radius: 10px;
  color: var(--light);
  background: rgba(255, 255, 255, .06);
  resize: vertical;
  font-size: .95rem;
  transition: border-color .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease);
}

.float-label textarea {
  min-height: 7rem;
}

.float-label input:focus,
.float-label textarea:focus {
  outline: none;
  border-color: rgba(96, 165, 250, .5);
  box-shadow: 0 0 0 3px rgba(96, 165, 250, .12), inset 0 0 0 1px rgba(96, 165, 250, .15);
  background: rgba(255, 255, 255, .08);
}

.float-label span {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: .95rem;
  color: rgba(254, 252, 247, .5);
  pointer-events: none;
  transition: top .25s var(--ease), font-size .25s var(--ease), color .25s var(--ease);
}

.float-label textarea ~ span {
  top: 1.2rem;
  transform: none;
}

.float-label input:focus ~ span,
.float-label input:not(:placeholder-shown) ~ span,
.float-label textarea:focus ~ span,
.float-label textarea:not(:placeholder-shown) ~ span {
  top: .4rem;
  font-size: .7rem;
  color: var(--gold);
}

.float-label textarea:focus ~ span,
.float-label textarea:not(:placeholder-shown) ~ span {
  top: .5rem;
}

.form-note {
  text-align: center;
  font-size: .9rem;
  color: #4ade80;
  max-height: 0;
  overflow: hidden;
  transition: max-height .5s var(--ease), padding .5s var(--ease), opacity .5s var(--ease);
  opacity: 0;
  padding: 0;
}

.form-note.is-visible {
  max-height: 4rem;
  opacity: 1;
  padding: .5rem 0 0;
}

.contact-form.is-success .button {
  background: #16a34a;
  pointer-events: none;
}

footer {
  background: var(--ink);
  border-top: 1px solid rgba(224, 193, 121, .15);
  color: var(--light);
}

.footer-top {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 3rem;
  padding: 7rem 5vw;
}

.footer-logo {
  width: 6rem;
  height: auto;
  margin-bottom: 1rem;
  border-radius: 8px;
}

footer h2 {
  font-size: 2.6rem;
}

footer h3 {
  margin-bottom: 1.2rem;
}

footer a {
  display: table;
  margin: .8rem 0;
  color: rgba(254, 252, 247, .78);
}

footer .icon-link {
  display: inline-flex;
  margin: 0;
}

.newsletter-title {
  margin-top: 2.4rem;
}

form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: .8rem;
  border-bottom: 1px solid rgba(254, 252, 247, .22);
}

input,
button {
  min-width: 0;
  color: var(--light);
  background: transparent;
  border: 0;
  font: inherit;
  outline: 0;
}

input {
  padding: 1rem 0;
}

button {
  color: var(--gold);
  text-transform: uppercase;
}

.footer-bottom {
  display: flex;
  gap: 2rem;
  align-items: center;
  padding: 2rem 5vw 3rem;
  color: rgba(254, 252, 247, .65);
}

.footer-bottom > span {
  margin-right: auto;
}

.reveal {
  opacity: 0;
  transform: translateY(2.8rem);
  transition: opacity .9s var(--ease), transform .9s var(--ease);
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

html.theme-light {
  background: #f8fafc;
}

html.theme-light body {
  color: #121827;
  background: #ffffff;
}

html.theme-light .cursor {
  border-color: rgba(15, 23, 42, .5);
  mix-blend-mode: normal;
}

html.theme-light .cursor::after {
  background: rgba(15, 23, 42, .75);
}

html.theme-light .site-header {
  color: #111827;
  mix-blend-mode: normal;
  background: rgba(255, 255, 255, .82);
  border-bottom: 1px solid rgba(15, 23, 42, .08);
  backdrop-filter: blur(16px);
}

html.theme-light .brand img {
  background: rgba(15, 23, 42, .08);
}

html.theme-light .theme-toggle {
  color: #111827;
  background: #ffffff;
  border-color: rgba(15, 23, 42, .18);
  box-shadow: 0 .7rem 1.8rem rgba(15, 23, 42, .12);
}

html.theme-light .hero-shade {
  background:
    radial-gradient(circle at 52% 38%, rgba(96, 165, 250, .2), rgba(255, 255, 255, .34) 58%),
    linear-gradient(180deg, rgba(255, 255, 255, .2), rgba(255, 255, 255, .84));
}

html.theme-light .hero-content {
  color: #111827;
  text-shadow: 0 1px 16px rgba(255, 255, 255, .72);
}

html.theme-light .story-scroll {
  color: #111827;
  background: #ffffff;
}

html.theme-light .story-pin {
  background-image: url("../images/bg.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  color: #111827;
}

html.theme-light .products-scroll-section,
html.theme-light .gallery,
html.theme-light .contact-section,
html.theme-light footer {
  background: #ffffff;
  color: #111827;
}

html.theme-light .story-canvas {
  background:
    radial-gradient(circle at 70% 30%, rgba(245, 158, 11, .16), transparent 20rem),
    radial-gradient(circle at 26% 62%, rgba(96, 165, 250, .18), transparent 24rem);
  background-color: rgba(255, 255, 255, .72);
}

html.theme-light .story-pin::before,
html.theme-light .choice-section::before {
  opacity: .32;
}

html.theme-light .tech-card {
  color: #111827;
  background: linear-gradient(145deg, rgba(96, 165, 250, .18), rgba(245, 158, 11, .13));
  border-color: rgba(15, 23, 42, .12);
  box-shadow: inset -1rem -1.2rem 2.4rem rgba(15, 23, 42, .08), 0 2rem 5rem rgba(15, 23, 42, .12);
}

html.theme-light .tech-card strong {
  color: rgba(15, 23, 42, .16);
}

html.theme-light .orbit-dot {
  background: rgba(255, 255, 255, .72);
  border-color: rgba(15, 23, 42, .12);
  box-shadow: 0 8px 24px rgba(15, 23, 42, .12), inset 0 0 12px rgba(255, 255, 255, .5);
}

html.theme-light .choice-section,
html.theme-light .center-section {
  background: #f3f7ff;
  color: #111827;
}

html.theme-light .choice-card:first-child {
  background: #eaf1ff;
  color: #111827;
}

html.theme-light .choice-card:first-child.mella-card {
  background: linear-gradient(145deg, #07111f, #123047);
  color: #fefcf7;
}

html.theme-light .mella-card img {
  background: rgba(15, 23, 42, .04);
  border-color: rgba(15, 23, 42, .1);
}

html.theme-light .button {
  color: #ffffff;
  background: #111827;
}

html.theme-light .button:hover {
  color: #ffffff;
  background: var(--orange);
}

html.theme-light .button.outline {
  color: #111827;
  background: transparent;
}

html.theme-light .product-card {
  color: #111827;
  background: linear-gradient(145deg, #ffffff, #eef4ff);
  border-color: rgba(15, 23, 42, .1);
  box-shadow: 0 10px 30px rgba(15, 23, 42, .1);
}

html.theme-light .product-logo-container {
  background: #ffffff;
  border-color: rgba(15, 23, 42, .1);
}

html.theme-light .product-card span,
html.theme-light .product-card small {
  color: #111827;
}

html.theme-light .center-media {
  background: #eaf1ff;
}

html.theme-light .team-list article {
  background: rgba(15, 23, 42, .04);
  border-color: rgba(15, 23, 42, .1);
}

html.theme-light .icon-link {
  color: #111827;
  background: #ffffff;
  border-color: rgba(15, 23, 42, .14);
  box-shadow: 0 .45rem 1.2rem rgba(15, 23, 42, .08);
}

html.theme-light .gallery-track img {
  border-color: rgba(15, 23, 42, .12);
}

html.theme-light .contact-form {
  background: linear-gradient(145deg, #ffffff, #eef4ff);
  border-color: rgba(15, 23, 42, .1);
}

html.theme-light .contact-form label {
  color: #344054;
}

html.theme-light .contact-form input,
html.theme-light .contact-form textarea {
  color: #111827;
  background: #ffffff;
  border-color: rgba(15, 23, 42, .16);
}

html.theme-light .contact-form input::placeholder,
html.theme-light .contact-form textarea::placeholder {
  color: #667085;
}

html.theme-light footer {
  border-top-color: rgba(15, 23, 42, .1);
}

html.theme-light footer a,
html.theme-light .footer-bottom {
  color: #344054;
}

html.theme-light form {
  border-bottom-color: rgba(15, 23, 42, .2);
}

html.theme-light input,
html.theme-light button {
  color: #111827;
}

html.theme-light .mella-card::before {
  opacity: .15;
}

html.theme-light .product-card::after {
  color: #2563eb;
}

html.theme-light .team-list article {
  background: rgba(15, 23, 42, .04);
  border-color: rgba(15, 23, 42, .1);
}

html.theme-light .team-list article:hover {
  background: rgba(15, 23, 42, .07);
}

html.theme-light .team-list article[data-expanded="true"] {
  border-color: rgba(37, 99, 235, .3);
}

html.theme-light .team-bio {
  color: rgba(15, 23, 42, .6);
}

html.theme-light .member-actions .icon-link:hover {
  background: rgba(15, 23, 42, .08);
}

html.theme-light .contact-form {
  background: rgba(255, 255, 255, .7);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-color: rgba(15, 23, 42, .1);
}

html.theme-light .contact-form:focus-within {
  border-color: rgba(37, 99, 235, .3);
  box-shadow: 0 8px 32px rgba(37, 99, 235, .08), inset 0 1px 0 rgba(255, 255, 255, .06);
}

html.theme-light .float-label input,
html.theme-light .float-label textarea {
  color: #111827;
  background: rgba(15, 23, 42, .04);
  border-color: rgba(15, 23, 42, .14);
}

html.theme-light .float-label input:focus,
html.theme-light .float-label textarea:focus {
  border-color: rgba(37, 99, 235, .4);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .1);
  background: rgba(255, 255, 255, .8);
}

html.theme-light .float-label span {
  color: rgba(15, 23, 42, .45);
}

html.theme-light .float-label input:focus ~ span,
html.theme-light .float-label input:not(:placeholder-shown) ~ span,
html.theme-light .float-label textarea:focus ~ span,
html.theme-light .float-label textarea:not(:placeholder-shown) ~ span {
  color: #2563eb;
}

@keyframes heroDrift {
  to { transform: scale(1); }
}

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

@keyframes scrollLogoSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes galleryMarquee {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(calc(-50% - .5rem), 0, 0); }
}

@keyframes brandEntrance {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes glowPulse {
  0%, 100% { box-shadow: 0 0 8px rgba(96, 165, 250, 0.3); }
  50% { box-shadow: 0 0 20px rgba(96, 165, 250, 0.6), 0 0 40px rgba(96, 165, 250, 0.2); }
}

@keyframes heroFadeSlide {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes radarPulse {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes borderSpin {
  from { --angle: 0deg; }
  to { --angle: 360deg; }
}

@keyframes ringSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@property --angle {
  syntax: "<angle>";
  initial-value: 0deg;
  inherits: false;
}

@media (max-width: 980px) {
  body,
  a,
  button {
    cursor: auto;
  }

  .cursor {
    display: none;
  }

  .site-header {
    grid-template-columns: 1fr auto;
    padding: 1.4rem 1.25rem;
  }

  .site-header nav {
    display: none;
  }

  .choice-section,
  .center-section,
  .footer-top,
  .contact-section {
    grid-template-columns: 1fr;
  }

  .choice-card {
    min-height: auto;
    padding: 5rem 1.5rem;
  }

  .section-pad,
  .center-details {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }

  .story-panel {
    padding: 0 1rem;
  }

  .tech-card {
    width: min(19rem, 72vw);
    opacity: .55;
  }

  .center-media {
    min-height: 24rem;
  }

  .gallery-track {
    gap: .8rem;
    animation-duration: 42s;
  }

  .gallery-track img {
    width: clamp(12rem, 68vw, 18rem);
    height: 12rem;
  }

  .footer-bottom {
    flex-wrap: wrap;
  }

  .footer-bottom > span {
    width: 100%;
  }

  .member-actions,
  .footer-bottom {
    gap: .75rem;
  }

  .icon-link {
    min-height: 2.5rem;
  }
}
