:root {
  --bg: #070a10;
  --panel: rgba(18, 24, 34, 0.76);
  --panel-strong: rgba(255, 255, 255, 0.09);
  --ink: #f7f4eb;
  --muted: #a8b0bd;
  --gold: #c8a247;
  --gold-light: #f1dc9c;
  --blue: #0e4f88;
  --cyan: #8bd9ff;
  --line: rgba(255, 255, 255, 0.13);
  --shadow: 0 28px 90px rgba(0, 0, 0, 0.38);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at 18% 8%, rgba(200, 162, 71, 0.22), transparent 30%),
    radial-gradient(circle at 86% 12%, rgba(14, 79, 136, 0.34), transparent 36%),
    linear-gradient(135deg, #070a10 0%, #101723 48%, #080b11 100%);
  font-family: Inter, Arial, sans-serif;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.82), transparent 82%);
}

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

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

.site-shell {
  overflow: hidden;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 16px clamp(18px, 4vw, 64px);
  border-bottom: 1px solid var(--line);
  background: rgba(7, 10, 16, 0.68);
  backdrop-filter: blur(24px);
}

.brand,
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
}

.brand img,
.footer-brand img {
  width: 42px;
  height: 42px;
  object-fit: contain;
  filter: drop-shadow(0 10px 22px rgba(200, 162, 71, 0.24));
}

nav {
  display: flex;
  gap: 24px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

nav a {
  transition: color 180ms ease;
}

nav a:hover {
  color: var(--gold-light);
}

.header-cta,
.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-weight: 900;
}

.header-cta {
  padding: 10px 18px;
  color: #0a0d12;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
}

.hero,
.studio-panel,
.product-lab,
.industries,
.contact {
  padding: clamp(74px, 9vw, 136px) clamp(18px, 5vw, 76px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(430px, 1.18fr);
  min-height: calc(100vh - 75px);
  gap: clamp(40px, 6vw, 92px);
  align-items: center;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--gold-light);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

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

h1 {
  max-width: 820px;
  margin-bottom: 24px;
  font-size: clamp(48px, 7.4vw, 96px);
  line-height: 0.92;
  letter-spacing: 0;
}

h2 {
  max-width: 860px;
  margin-bottom: 18px;
  font-size: clamp(34px, 4.6vw, 64px);
  line-height: 1;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 21px;
}

p {
  color: var(--muted);
  line-height: 1.72;
}

.hero-lede,
.section-heading p {
  max-width: 690px;
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 34px;
}

.button {
  padding: 14px 22px;
  border: 1px solid var(--line);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.button:hover,
.product-card:hover,
.tile:hover,
.metrics-grid article:hover {
  transform: translateY(-6px);
}

.primary {
  color: #080b11;
  border: 0;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  box-shadow: 0 18px 44px rgba(200, 162, 71, 0.2);
}

.ghost {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.07);
}

.liquid-stage {
  position: relative;
  min-height: 660px;
  overflow: hidden;
  perspective: 1300px;
}

.liquid-metal {
  position: absolute;
  inset: 5% 4% 8%;
  border-radius: 46% 54% 58% 42% / 42% 38% 62% 58%;
  background:
    radial-gradient(circle at 28% 24%, rgba(255, 255, 255, 0.95), transparent 9%),
    radial-gradient(circle at 62% 30%, rgba(241, 220, 156, 0.9), transparent 18%),
    radial-gradient(circle at 72% 70%, rgba(139, 217, 255, 0.42), transparent 24%),
    linear-gradient(135deg, #f7f1df 0%, #95876d 28%, #1b2532 54%, #e6d5a4 100%);
  filter: blur(0.2px) saturate(1.1);
  opacity: 0.9;
  box-shadow: inset 0 0 70px rgba(255, 255, 255, 0.48), 0 40px 120px rgba(14, 79, 136, 0.32);
  animation: liquidShift 9s ease-in-out infinite alternate;
}

.stage-card {
  position: absolute;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: var(--shadow);
  transform-style: preserve-3d;
  transition: transform 600ms cubic-bezier(0.2, 0.8, 0.2, 1), opacity 600ms ease;
}

.stage-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stage-card.active {
  inset: 10% 10% 16% 18%;
  transform: rotateY(-10deg) rotateX(5deg) translateZ(80px);
}

.stage-card.next {
  pointer-events: none;
  visibility: hidden;
  opacity: 0;
  transform: translateX(24%) scale(0.92);
}

.stage-card.back {
  display: none;
}

.stage-control,
.rail-button {
  position: absolute;
  z-index: 5;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.11);
  font-size: 32px;
  cursor: pointer;
  backdrop-filter: blur(16px);
}

.stage-control.previous {
  left: 2%;
  top: 48%;
}

.stage-control.next-btn {
  right: 2%;
  top: 48%;
}

.stage-caption {
  position: absolute;
  right: 8%;
  bottom: 5%;
  z-index: 4;
  width: min(330px, 82%);
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(8, 11, 17, 0.7);
  backdrop-filter: blur(18px);
}

.contact-details a,
.footer-contact a {
  transition: color 180ms ease, transform 180ms ease;
}

.contact-details a:hover,
.footer-contact a:hover {
  color: var(--gold-light);
}

.stage-caption span {
  display: block;
  margin-bottom: 6px;
  color: var(--gold-light);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.stage-caption strong {
  font-size: 22px;
}

.studio-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(420px, 1fr);
  gap: 36px;
  align-items: stretch;
  border-block: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.035);
}

.metrics-grid,
.industry-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.metrics-grid article,
.tile,
.contact-details article,
.quote-form {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 16px 46px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(22px);
}

.metrics-grid article,
.tile {
  min-height: 236px;
  padding: 24px;
  transition: transform 180ms ease, border-color 180ms ease;
}

.metrics-grid span,
.tile span,
.product-card span,
.contact-details span {
  display: block;
  margin-bottom: 26px;
  color: var(--gold-light);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.metrics-grid strong {
  display: block;
  margin-bottom: 10px;
  font-size: 22px;
}

.section-heading {
  max-width: 920px;
  margin-bottom: 40px;
}

.showcase-frame {
  position: relative;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 54px;
  gap: 14px;
  align-items: center;
}

.rail-button {
  position: static;
}

.product-rail {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  padding: 12px 0 28px;
  cursor: grab;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.product-rail.dragging {
  cursor: grabbing;
  scroll-behavior: auto;
}

.product-card {
  flex: 0 0 min(430px, 82vw);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  scroll-snap-align: center;
  box-shadow: var(--shadow);
  transition: transform 220ms ease, border-color 220ms ease;
}

.product-card.hero-product {
  flex-basis: min(560px, 88vw);
}

.product-card:hover {
  border-color: rgba(241, 220, 156, 0.34);
}

.product-card > img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  background: #fff;
}

.product-card div {
  padding: 22px;
}

.logo-swap {
  position: relative;
}

.logo-swap i {
  position: absolute;
  top: 26%;
  left: 46%;
  display: grid;
  width: 70px;
  height: 70px;
  place-items: center;
  border-radius: 8px;
  background: rgba(7, 10, 16, 0.75);
  backdrop-filter: blur(12px);
}

.logo-swap i img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  background: transparent;
}

.industries {
  background: rgba(255, 255, 255, 0.025);
}

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

.contact {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(430px, 1fr);
  gap: clamp(34px, 5vw, 76px);
  align-items: start;
}

.contact-details {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.contact-details article {
  padding: 18px;
}

.contact-details span {
  margin-bottom: 8px;
}

.contact-details p {
  margin: 0;
  font-size: 15px;
}

.contact-details a {
  color: #fff;
  font-weight: 850;
}

.quote-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding: 24px;
}

label {
  display: grid;
  gap: 8px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 13px;
  font-weight: 850;
}

input,
select,
textarea {
  width: 100%;
  min-height: 46px;
  padding: 12px 13px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  font: inherit;
}

select option {
  color: #0d1118;
}

textarea {
  resize: vertical;
}

.full {
  grid-column: 1 / -1;
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
  padding: 32px clamp(18px, 5vw, 76px);
  border-top: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.28);
}

footer p {
  margin: 0;
}

footer a {
  color: var(--gold-light);
  font-weight: 900;
}

.footer-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: flex-end;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 760ms ease, transform 760ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

@keyframes liquidShift {
  0% {
    border-radius: 46% 54% 58% 42% / 42% 38% 62% 58%;
    transform: rotate(-4deg) scale(0.98);
  }

  100% {
    border-radius: 58% 42% 43% 57% / 54% 52% 48% 46%;
    transform: rotate(5deg) scale(1.04);
  }
}

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

  .liquid-stage {
    min-height: 560px;
  }

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

@media (max-width: 760px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  nav {
    width: 100%;
    overflow-x: auto;
    gap: 18px;
    padding-bottom: 4px;
  }

  .header-cta {
    display: none;
  }

  .hero {
    min-height: auto;
  }

  h1 {
    font-size: 42px;
  }

  h2 {
    font-size: 34px;
  }

  .liquid-stage {
    min-height: 480px;
  }

  .stage-card.active {
    inset: 12% 4% 22%;
  }

  .stage-card.next,
  .stage-card.back {
    display: none;
  }

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

  .rail-button {
    display: none;
  }

  .metrics-grid,
  .industry-grid,
  .quote-form {
    grid-template-columns: 1fr;
  }

  .product-card > img {
    height: 310px;
  }

  footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .footer-contact {
    justify-content: flex-start;
  }
}
