:root {
  color-scheme: dark;
  --ink: #f7f2ea;
  --muted: rgba(247, 242, 234, 0.74);
  --panel: rgba(251, 246, 238, 0.91);
  --rose: #d8a59f;
  --mint: #8ec8b8;
  --gold: #d7bd79;
  --deep: #070707;
  --line: rgba(255, 255, 255, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--deep);
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #070707;
}

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

a {
  color: inherit;
}

.coming-soon {
  min-height: 100vh;
  isolation: isolate;
}

.scene {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  perspective: 1300px;
  background:
    radial-gradient(circle at 12% 18%, rgba(142, 200, 184, 0.18), transparent 26%),
    radial-gradient(circle at 84% 18%, rgba(216, 165, 159, 0.2), transparent 31%),
    linear-gradient(145deg, #050505 0%, #11100f 43%, #1b1714 100%);
}

.scene-bg {
  position: absolute;
  inset: -3%;
  z-index: -5;
  pointer-events: none;
  background:
    linear-gradient(105deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.44) 46%, rgba(0, 0, 0, 0.86)),
    url("../assets/generated/ambiente-laboratorio-modda.webp") center / cover;
  filter: saturate(1.02) contrast(1.05);
  opacity: 0;
  transform: translate3d(var(--px, 0), var(--py, 0), -130px) scale(1.08);
  animation: revealAmbient 1100ms ease-out 80ms both, ambientDrift 18s ease-in-out 1.2s infinite alternate;
}

.scene::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -3;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 118px 118px;
  mask-image: linear-gradient(to bottom, transparent, black 14%, black 66%, transparent);
  opacity: 0.26;
  transform: rotateX(60deg) translateY(-14%);
  transform-origin: top;
}

.depth-item {
  --px: 0px;
  --py: 0px;
  will-change: transform;
}

.ambient,
.light-grid,
.particle-field {
  position: absolute;
  pointer-events: none;
}

.ambient {
  z-index: -2;
  border: 1px solid var(--line);
  box-shadow: 0 0 42px rgba(255, 255, 255, 0.12), inset 0 0 30px rgba(255, 255, 255, 0.08);
  opacity: 0;
}

.ambient-a {
  width: min(42vw, 560px);
  aspect-ratio: 1;
  right: -10vw;
  top: 7vh;
  border-radius: 50%;
  transform: translate3d(var(--px), var(--py), -90px);
  animation: revealAmbient 900ms ease-out 180ms both, slowSpin 30s linear 1s infinite;
}

.ambient-b {
  width: min(27vw, 360px);
  aspect-ratio: 1 / 1.35;
  left: 51vw;
  bottom: 12vh;
  border-radius: 999px;
  transform: translate3d(var(--px), var(--py), -20px) rotate(18deg);
  animation: revealAmbient 900ms ease-out 260ms both, floatSoft 9s ease-in-out 1s infinite;
}

.light-grid {
  inset: auto -10vw 7rem;
  height: 24vh;
  z-index: -1;
  background:
    linear-gradient(90deg, transparent 0 12%, rgba(142, 200, 184, 0.5) 12.2%, transparent 12.8% 42%, rgba(216, 165, 159, 0.34) 42.3%, transparent 43%),
    linear-gradient(0deg, transparent, rgba(255, 255, 255, 0.16), transparent);
  opacity: 0;
  transform: translate3d(var(--px), var(--py), -70px) rotate(-4deg) skewX(-18deg);
  animation: revealAmbient 1000ms ease-out 220ms both, lightSlide 16s ease-in-out 1s infinite alternate;
}

.particle-field {
  inset: 0;
  z-index: 0;
  opacity: 0;
  background:
    radial-gradient(circle at 18% 28%, rgba(255, 255, 255, 0.45) 0 1px, transparent 2px),
    radial-gradient(circle at 74% 32%, rgba(215, 189, 121, 0.46) 0 1px, transparent 2px),
    radial-gradient(circle at 63% 68%, rgba(142, 200, 184, 0.38) 0 1px, transparent 2px),
    radial-gradient(circle at 42% 16%, rgba(216, 165, 159, 0.35) 0 1px, transparent 2px);
  background-size: 220px 220px, 300px 300px, 260px 260px, 340px 340px;
  transform: translate3d(var(--px), var(--py), 0);
  animation: revealAmbient 900ms ease-out 380ms both, particleDrift 22s linear 1s infinite;
}

.hero {
  width: min(1180px, calc(100% - 32px));
  min-height: calc(100svh - 118px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(280px, 0.82fr) minmax(430px, 1.18fr);
  align-items: center;
  gap: clamp(1.5rem, 4vw, 4.5rem);
  padding: clamp(1.3rem, 4vh, 3rem) 0 1rem;
}

.copy-panel {
  position: relative;
  z-index: 8;
  max-width: 520px;
  transform-style: preserve-3d;
  transform: translate3d(var(--px), var(--py), 150px);
  animation: revealCopy 900ms ease-out 460ms both;
}

.brand-logo {
  width: clamp(152px, 18vw, 228px);
  padding: 0.75rem 1rem;
  margin-bottom: clamp(1.5rem, 4vh, 2.5rem);
  border-radius: 6px;
  background: var(--panel);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

.eyebrow {
  margin: 0 0 0.8rem;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1 {
  max-width: 11ch;
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.1rem, 8vw, 6.9rem);
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: 0;
  text-wrap: balance;
}

.lead {
  max-width: 34rem;
  margin: 1.25rem 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.5vw, 1.18rem);
  line-height: 1.65;
}

.instagram-link {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 44px;
  margin-top: 1.7rem;
  padding: 0.72rem 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--ink);
  font-size: 0.94rem;
  font-weight: 650;
  text-decoration: none;
  backdrop-filter: blur(14px);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.instagram-link svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.instagram-link:hover,
.instagram-link:focus-visible {
  border-color: rgba(215, 189, 121, 0.68);
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-2px);
}

.instagram-link:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

.visual-stage {
  position: relative;
  z-index: 2;
  min-height: clamp(520px, 68vh, 740px);
  transform-style: preserve-3d;
}

.back-glow,
.holo-panel,
.model-shadow,
.model-layer,
.product-shadow,
.product,
.glass-orbit {
  position: absolute;
  pointer-events: none;
  transform-style: preserve-3d;
}

.back-glow {
  inset: 3% -2% 7% 3%;
  opacity: 0;
  filter: blur(0.2px);
  transform: translate3d(var(--px), var(--py), -90px) scale(1.06);
  animation: revealStage 900ms ease-out 250ms both, glowBreath 10s ease-in-out 1.2s infinite;
}

.back-glow img,
.model-shadow img,
.product-shadow img,
.model-layer img,
.product img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.holo-panel {
  border: 1px solid rgba(142, 200, 184, 0.24);
  background:
    linear-gradient(115deg, rgba(142, 200, 184, 0.13), rgba(255, 255, 255, 0.05), rgba(216, 165, 159, 0.1)),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 12px);
  box-shadow: inset 0 0 24px rgba(255, 255, 255, 0.06), 0 24px 76px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(4px);
  opacity: 0;
}

.holo-panel-a {
  width: min(32vw, 310px);
  aspect-ratio: 1.45;
  right: 9%;
  top: 12%;
  transform: translate3d(var(--px), var(--py), -54px) rotateY(-18deg) rotateX(7deg);
  animation: revealStage 840ms ease-out 320ms both, panelFloatA 11s ease-in-out 1s infinite;
}

.holo-panel-b {
  width: min(22vw, 210px);
  aspect-ratio: 1.1;
  left: 5%;
  top: 28%;
  border-radius: 50%;
  transform: translate3d(var(--px), var(--py), 12px) rotateY(20deg);
  animation: revealStage 840ms ease-out 420ms both, panelFloatB 8.5s ease-in-out 1.4s infinite;
}

.model-shadow {
  width: min(48vw, 560px);
  height: 132px;
  left: 17%;
  bottom: 1%;
  opacity: 0;
  transform: translate3d(var(--px), var(--py), 56px) rotateX(72deg);
  animation: revealStage 800ms ease-out 580ms both;
}

.model-layer {
  width: min(42vw, 500px);
  aspect-ratio: 527 / 675;
  left: 19%;
  bottom: 4%;
  z-index: 3;
  opacity: 0;
  filter: drop-shadow(0 38px 56px rgba(0, 0, 0, 0.5));
  transform: translate3d(var(--px), var(--py), 90px) rotateY(-5deg);
  animation: revealModel 980ms ease-out 520ms both;
}

.float-model {
  animation: modelFloat 8.5s ease-in-out 1.4s infinite;
}

.product-shadow {
  z-index: 4;
  opacity: 0;
  mix-blend-mode: multiply;
}

.shadow-color {
  width: 190px;
  height: 64px;
  left: 4%;
  bottom: 7%;
  transform: translate3d(var(--px), var(--py), 170px) rotateX(70deg) rotateZ(-11deg);
  animation: revealStage 740ms ease-out 840ms both;
}

.shadow-sachet {
  width: 320px;
  height: 105px;
  right: 1%;
  bottom: 3%;
  transform: translate3d(var(--px), var(--py), 210px) rotateX(70deg) rotateZ(7deg);
  animation: revealStage 740ms ease-out 900ms both;
}

.product {
  z-index: 6;
  opacity: 0;
  filter: drop-shadow(0 28px 34px rgba(0, 0, 0, 0.44));
}

.product-color {
  width: clamp(92px, 11vw, 138px);
  aspect-ratio: 137 / 384;
  left: 3%;
  bottom: 12%;
  transform: translate3d(var(--px), var(--py), 220px) rotateY(12deg) rotateZ(-5deg);
  animation: revealProduct 850ms cubic-bezier(0.2, 0.8, 0.2, 1) 820ms both;
}

.product-sachet {
  width: clamp(178px, 21vw, 260px);
  aspect-ratio: 255 / 364;
  right: 3%;
  bottom: 8%;
  transform: translate3d(var(--px), var(--py), 250px) rotateY(-13deg) rotateZ(3deg);
  animation: revealProduct 900ms cubic-bezier(0.2, 0.8, 0.2, 1) 920ms both;
}

.product-shine {
  width: clamp(210px, 25vw, 310px);
  aspect-ratio: 235 / 81;
  left: 35%;
  bottom: 4%;
  transform: translate3d(var(--px), var(--py), 238px) rotateX(10deg) rotateZ(-4deg);
  animation: revealProduct 900ms cubic-bezier(0.2, 0.8, 0.2, 1) 1040ms both;
}

.float-product-a {
  animation: productFloatA 6.8s ease-in-out 1.8s infinite;
}

.float-product-b {
  animation: productFloatB 7.6s ease-in-out 2s infinite;
}

.float-product-c {
  animation: productFloatC 8.2s ease-in-out 1.6s infinite;
}

.glass-orbit {
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  box-shadow: 0 0 30px rgba(142, 200, 184, 0.16), inset 0 0 24px rgba(255, 255, 255, 0.08);
  opacity: 0;
}

.orbit-one {
  width: 170px;
  aspect-ratio: 1;
  right: 20%;
  bottom: 19%;
  transform: translate3d(var(--px), var(--py), 130px);
  animation: revealStage 800ms ease-out 760ms both, slowSpin 20s linear 1s infinite reverse;
}

.orbit-two {
  width: 96px;
  aspect-ratio: 1;
  left: 16%;
  top: 9%;
  transform: translate3d(var(--px), var(--py), 30px);
  animation: revealStage 800ms ease-out 620ms both, floatSoft 7.5s ease-in-out 1.2s infinite;
}

.brand-strip {
  width: 100%;
  padding: 0.6rem 0 1.4rem;
  opacity: 0;
  animation: revealStrip 850ms ease-out 1220ms both;
}

.brand-strip__viewport {
  overflow: hidden;
  border-block: 1px solid rgba(255, 255, 255, 0.12);
  background: linear-gradient(90deg, rgba(5, 5, 5, 0.68), rgba(255, 255, 255, 0.08), rgba(5, 5, 5, 0.68));
  backdrop-filter: blur(18px);
  mask-image: linear-gradient(90deg, transparent, black 9%, black 91%, transparent);
}

.brand-track {
  display: flex;
  width: max-content;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  margin: 0;
  padding: 1rem clamp(1.2rem, 4vw, 3rem);
  list-style: none;
  animation: marquee var(--marquee-duration, 38s) linear infinite;
}

.brand-track:hover {
  animation-duration: 58s;
}

.brand-track li {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: clamp(120px, 13vw, 210px);
  height: 48px;
  animation: logoPulse 6s ease-in-out infinite;
}

.brand-track li:nth-child(3n + 2) {
  animation-delay: -1.6s;
}

.brand-track li:nth-child(3n + 3) {
  animation-delay: -3.1s;
}

.brand-track img {
  width: auto;
  max-width: 100%;
  max-height: 42px;
  object-fit: contain;
  filter: drop-shadow(0 12px 18px rgba(0, 0, 0, 0.38));
  opacity: 0.84;
}

.noscript-note {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 10;
  margin: 0;
  padding: 0.8rem 1rem;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.78);
  color: #fff;
  text-align: center;
}

.is-paused *,
.is-paused *::before,
.is-paused *::after {
  animation-play-state: paused !important;
}

@keyframes revealAmbient {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes revealCopy {
  from {
    opacity: 0;
    transform: translate3d(calc(var(--px) - 24px), calc(var(--py) + 18px), 150px);
  }
  to {
    opacity: 1;
    transform: translate3d(var(--px), var(--py), 150px);
  }
}

@keyframes revealStage {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes revealModel {
  from {
    opacity: 0;
    transform: translate3d(calc(var(--px) + 18px), calc(var(--py) + 28px), 80px) scale(0.98) rotateY(-8deg);
  }
  to {
    opacity: 1;
    transform: translate3d(var(--px), var(--py), 90px) scale(1) rotateY(-5deg);
  }
}

@keyframes revealProduct {
  from {
    opacity: 0;
    translate: 0 22px;
    scale: 0.96;
  }
  to {
    opacity: 1;
    translate: 0 0;
    scale: 1;
  }
}

@keyframes revealStrip {
  from {
    opacity: 0;
    transform: translate3d(0, 18px, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes marquee {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(-50%, 0, 0);
  }
}

@keyframes logoPulse {
  0%, 100% {
    opacity: 0.78;
    filter: brightness(0.92);
  }
  50% {
    opacity: 1;
    filter: brightness(1.22);
  }
}

@keyframes ambientDrift {
  from {
    background-position: 48% 50%;
  }
  to {
    background-position: 53% 48%;
  }
}

@keyframes particleDrift {
  to {
    background-position: 160px 80px, -120px 90px, 80px -110px, -150px -100px;
  }
}

@keyframes lightSlide {
  from {
    opacity: 0.42;
  }
  to {
    opacity: 0.72;
  }
}

@keyframes slowSpin {
  to {
    rotate: 360deg;
  }
}

@keyframes floatSoft {
  0%, 100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -18px;
  }
}

@keyframes glowBreath {
  0%, 100% {
    opacity: 0.52;
  }
  50% {
    opacity: 0.82;
  }
}

@keyframes panelFloatA {
  0%, 100% {
    translate: 0 0;
    rotate: 0deg;
  }
  50% {
    translate: 14px -10px;
    rotate: 1.5deg;
  }
}

@keyframes panelFloatB {
  0%, 100% {
    translate: 0 0;
  }
  50% {
    translate: -10px 14px;
  }
}

@keyframes modelFloat {
  0%, 100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -12px;
  }
}

@keyframes productFloatA {
  0%, 100% {
    translate: 0 0;
    rotate: 0deg;
  }
  48% {
    translate: -8px -18px;
    rotate: -1.8deg;
  }
}

@keyframes productFloatB {
  0%, 100% {
    translate: 0 0;
    rotate: 0deg;
  }
  52% {
    translate: 10px -14px;
    rotate: 1.4deg;
  }
}

@keyframes productFloatC {
  0%, 100% {
    translate: 0 0;
    rotate: 0deg;
  }
  50% {
    translate: 12px 8px;
    rotate: -1.2deg;
  }
}

@media (max-width: 920px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 0.25rem;
    min-height: auto;
    padding-top: 1.4rem;
  }

  .copy-panel {
    max-width: 680px;
    padding-top: 0.2rem;
  }

  h1 {
    max-width: 12ch;
  }

  .visual-stage {
    min-height: 500px;
    margin-top: -1rem;
  }

  .model-layer {
    width: min(58vw, 430px);
    left: 23%;
  }

  .model-shadow {
    width: min(58vw, 500px);
    left: 17%;
  }

  .product-color {
    left: 5%;
    bottom: 13%;
  }

  .product-sachet {
    right: 5%;
    bottom: 8%;
  }

  .product-shine {
    left: 30%;
    bottom: 3%;
  }
}

@media (max-width: 560px) {
  .scene {
    min-height: 100svh;
  }

  .scene::after,
  .ambient-b,
  .holo-panel-b,
  .particle-field {
    display: none;
  }

  .hero {
    width: min(100% - 24px, 520px);
    min-height: calc(100svh - 104px);
    align-content: start;
    padding-top: 1rem;
  }

  .copy-panel {
    transform: none;
  }

  .brand-logo {
    width: 148px;
    margin-bottom: 1.1rem;
  }

  .eyebrow {
    margin-bottom: 0.55rem;
  }

  h1 {
    max-width: 9.5ch;
    font-size: clamp(2.65rem, 17vw, 4.5rem);
  }

  .lead {
    max-width: 22rem;
    margin-top: 0.9rem;
    font-size: 0.98rem;
    line-height: 1.48;
  }

  .instagram-link {
    margin-top: 1rem;
    padding-inline: 0.86rem;
  }

  .visual-stage {
    min-height: 380px;
    margin-top: -0.3rem;
  }

  .back-glow {
    inset: 10% -24% 8% -18%;
    opacity: 0.48;
  }

  .holo-panel-a {
    width: 190px;
    right: -10%;
    top: 14%;
  }

  .model-layer {
    width: min(72vw, 305px);
    left: 18%;
    bottom: 8%;
  }

  .model-shadow {
    width: 280px;
    height: 82px;
    left: 14%;
    bottom: 5%;
  }

  .product-color {
    width: 72px;
    left: 1%;
    bottom: 14%;
  }

  .product-sachet {
    width: 132px;
    right: -2%;
    bottom: 10%;
  }

  .product-shine,
  .shadow-color,
  .shadow-sachet,
  .orbit-two {
    display: none;
  }

  .orbit-one {
    width: 112px;
    right: 6%;
    bottom: 24%;
  }

  .brand-track {
    gap: 1.6rem;
    padding-block: 0.85rem;
    animation-duration: 46s;
  }

  .brand-track li {
    width: 118px;
    height: 42px;
  }
}

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

  .depth-item {
    --px: 0px !important;
    --py: 0px !important;
  }

  .brand-track {
    transform: none !important;
  }
}
