@font-face {
  font-family: Outfit;
  src: url("./assets/outfit-medium.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: Outfit;
  src: url("./assets/outfit-extrabold.ttf") format("truetype");
  font-weight: 800;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --accent: #e5393b;
  --ambient: #702534;
  --secondary: #20273f;
  font-family: Outfit, system-ui, sans-serif;
  color: #f3eff4;
  background: #0b0a10;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100svh;
  isolation: isolate;
  display: grid;
  place-items: center;
}

.atmosphere {
  position: fixed;
  z-index: -1;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  background: linear-gradient(148deg, #0b0c15 2%, #15101b 51%, #0b080e 100%);
}

.atmosphere::before,
.atmosphere::after {
  content: "";
  position: absolute;
  inset: -24%;
  will-change: transform;
}

.atmosphere::before {
  background:
    radial-gradient(ellipse at 68% 58%, var(--ambient), transparent 48%),
    radial-gradient(ellipse at 24% 32%, var(--secondary), transparent 50%);
  opacity: .58;
  animation: drift 36s ease-in-out infinite;
}

.atmosphere::after {
  background: radial-gradient(ellipse at 73% 38%, #977d9c38, transparent 41%);
  animation: drift 48s ease-in-out infinite reverse;
}

@keyframes drift {
  0%, 100% { transform: translate3d(-3%, 2%, 0) rotate(-5deg) scale(1); }
  32% { transform: translate3d(4%, -4%, 0) rotate(5deg) scale(1.1); }
  68% { transform: translate3d(0, 5%, 0) rotate(-1deg) scale(1.04); }
}

.hero {
  width: min(100%, 1540px);
  padding: clamp(2.5rem, 6.1vw, 6rem);
  display: grid;
  grid-template-columns: minmax(0, .84fr) minmax(0, 1.16fr);
  align-items: center;
  gap: clamp(1rem, 4vw, 4rem);
}

.identity { padding-block-end: clamp(2rem, 5vw, 4rem); }

.brand {
  width: min(100%, 480px);
  display: flex;
  align-items: center;
  gap: 0.24em;
  font-size: clamp(2.5rem, 5vw, 5.5rem);
  line-height: 1;
  letter-spacing: -.055em;
  font-weight: 800;
}

.brand img {
  display: block;
  max-width: 100%;
  height: auto;
}

.brand .brand-icon { width: .98em; }
.brand .suffix { color: var(--accent); }

h1 {
  margin: clamp(1.15rem, 2.4vw, 2rem) 0 0 .12em;
  color: #d4c9d6;
  font-size: clamp(1rem, 1.8vw, 1.35rem);
  font-weight: 500;
  letter-spacing: .09em;
}

.family {
  display: grid;
  width: 100%;
  min-width: 0;
  justify-items: center;
}

.stage {
  isolation: isolate;
  position: relative;
  width: 100%;
  height: clamp(225px, 29vw, 450px);
  overflow: clip;
}

@property --stage-glow {
  syntax: "<color>";
  inherits: true;
  initial-value: #a8354138;
}

.stage-light {
  position: absolute;
  inset: 10% 5% 1%;
  background: radial-gradient(ellipse at 50% 55%, var(--stage-glow, #a8354138), transparent 65%);
  filter: blur(18px);
  transition: --stage-glow .65s ease;
  opacity: .86;
}

#models {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.wordmarks {
  display: grid;
  position: relative;
  place-items: center;
  min-height: 2.3rem;
  margin-top: clamp(-1.1rem, -1.5vw, -.35rem);
  font-size: clamp(1.35rem, 2.7vw, 2.75rem);
  line-height: 1.1;
  letter-spacing: -.04em;
  font-weight: 800;
}

.wordmark {
  grid-area: 1 / 1;
  white-space: nowrap;
}

.wordmark span { color: var(--wordmark-accent, var(--accent)); }

.controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  margin-top: clamp(.65rem, 1.9vw, 1.5rem);
}

.controls[hidden] { display: none; }
.pagination { display: flex; align-items: center; }

.controls button {
  display: grid;
  place-items: center;
  border: 0;
  background: transparent;
  color: #d5c9d6;
  cursor: pointer;
  padding: 0;
}

.pagination button { width: 26px; height: 44px; border-radius: 20px; }

.pagination button::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 100px;
  background: #a998ad;
  opacity: .55;
  transition: width .28s, background-color .28s, opacity .28s;
}

.pagination button[aria-pressed="true"]::before {
  width: 14px;
  background: #f3eff4;
  opacity: 1;
}

.controls .motion { width: 44px; height: 44px; border-radius: 50%; }
.controls button:hover { color: #fff; background: #ece0f015; }
.controls button:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.motion .play, .motion[aria-label="Resume animation"] .pause { display: none; }
.motion[aria-label="Resume animation"] .play { display: initial; }

.is-paused .atmosphere::before,
.is-paused .atmosphere::after { animation-play-state: paused; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (max-width: 720px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: .45rem;
    width: min(100%, 530px);
    padding: clamp(2rem, 8vw, 3.5rem) clamp(1.35rem, 6vw, 3.4rem);
  }
  .identity { padding: 0; text-align: center; }
  .brand { justify-content: center; width: min(78%, 342px); margin-inline: auto; }
  .brand img { flex-shrink: 0; }
  h1 { margin: .85rem 0 0; }
  .stage { height: clamp(215px, 67vw, 342px); }
  .wordmarks { margin-top: -.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  .atmosphere::before, .atmosphere::after, .pagination button::before {
    animation: none;
    transition: none;
  }
}

/* Studio lighting and responsive product composition. */
.atmosphere {
  background: radial-gradient(ellipse at 20% 11%, #141827, transparent 53%),
    radial-gradient(ellipse at 78% 52%, color-mix(in srgb, var(--ambient) 20%, #0a0a11), #07070c 72%);
}
.atmosphere::before {
  inset: -12%;
  background: linear-gradient(112deg, var(--secondary) 4%, var(--ambient) 48%,
    color-mix(in srgb, var(--accent) 70%, #e5b7cf) 81%, var(--ambient));
  mask: url("./assets/light-fold.webp") center / 100% 100% no-repeat;
  opacity: .85;
  animation: sweep 30s ease-in-out infinite alternate;
}
.atmosphere::after {
  inset: -12%;
  background: radial-gradient(ellipse at 71% 70%, var(--ambient), transparent 48%);
  opacity: .28;
  animation: sweep 43s ease-in-out infinite alternate-reverse;
}
@keyframes sweep {
  from { transform: translate3d(-2.5%, 3%, 0) rotate(-4deg) scale(1.03); }
  to { transform: translate3d(3%, -4%, 0) rotate(3deg) scale(1.065); }
}
.hero {
  width: min(100%, 1670px);
  padding-inline: clamp(1.5rem, 6.8vw, 7rem);
  grid-template-columns: minmax(0,.8fr) minmax(0,1.2fr);
  gap: clamp(1rem, 3.8vw, 4rem);
}
.brand { width: min(100%, 414px); }
.identity { padding-bottom: 1.4rem; }
h1 {
  margin: clamp(.9rem,1.45vw,1.4rem) 0 0 .08em;
  color: #d9d2da;
  letter-spacing: .045em;
  font-size: clamp(1rem,1.4vw,1.24rem);
}
.stage { height: clamp(200px,25.5vw,410px); }
.stage-light {
  inset: 34% 19% 0;
  opacity: .65;
  filter: blur(25px);
}
.contact-shadow {
  position: absolute;
  left: 26%; right: 26%; bottom: 4%;
  height: 7%;
  border-radius: 50%;
  background: radial-gradient(ellipse, #0a050a8f 0%, #0a050a30 35%, transparent 70%);
  filter: blur(5px);
  animation: pool 5.5s ease-in-out infinite alternate;
}
@keyframes pool {
  from { transform: scaleX(.88); opacity: .6; }
  to { transform: scaleX(1.08); opacity: .96; }
}
.is-paused .contact-shadow { animation-play-state: paused; }
.wordmarks { margin-top: .4rem; font-size: clamp(1.35rem,2.35vw,2.3rem); }
.controls {
  position: fixed;
  bottom: max(1.2rem,env(safe-area-inset-bottom));
  right: clamp(1.5rem,4.8vw,5.15rem);
  gap: .4rem;
}
.controls .motion { opacity: .77; }
@media(max-width:720px) {
  .hero { width:min(100%,540px); grid-template-columns:minmax(0,1fr); gap:clamp(.8rem,3vh,2.6rem); padding:2rem 5vw 4rem; }
  .identity { padding:0; }
  .brand { width:min(69%,315px); }
  h1 { margin-top:.9rem; }
  .stage { height:clamp(192px,55vw,280px); }
  .wordmarks { margin-top:.2rem; }
  .controls { position:static; margin-top:1rem; }
}
@media (prefers-reduced-motion:reduce) {
  .atmosphere::before,.atmosphere::after,.contact-shadow { animation:none; }
}
