@font-face { font-family: "Cinzel"; src: url("./Cinzel-Variable-latin.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; }

:root {
  --ink: #050505;
  --ivory: #f0ece2;
  --gold: #c4a36c;
  --line: rgba(240, 236, 226, 0.24);
  --mx: 0px;
  --my: 0px;
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--ink); }
body { color: var(--ivory); font-family: "Inter", ui-sans-serif, system-ui, sans-serif; }
a { color: inherit; text-decoration: none; }

.stage {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  isolation: isolate;
  background: #0a0a0a;
}

.looks { position: absolute; inset: 0; z-index: -3; overflow: hidden; transform: translate(var(--mx), var(--my)); transition: transform .8s cubic-bezier(.2,.8,.2,1); }
.look-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center top; opacity: 0; filter: saturate(.78) contrast(1.04); transition: opacity 1.1s ease; }
.look-image.is-active { opacity: 1; }

.veil { position: absolute; inset: 0; z-index: -2; background: linear-gradient(90deg, rgba(3,3,3,.93) 0%, rgba(3,3,3,.74) 40%, rgba(3,3,3,.1) 69%, rgba(3,3,3,.28) 100%); }
.grain { position: absolute; inset: -50%; z-index: 8; pointer-events: none; opacity: .055; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.9'/%3E%3C/svg%3E"); animation: grain .24s steps(2) infinite; }

header { position: absolute; z-index: 3; inset: 0 0 auto; height: 90px; padding: 0 clamp(22px, 5vw, 78px); display: flex; justify-content: space-between; align-items: center; border-bottom: 1px solid var(--line); }
.logo { display: flex; align-items: center; gap: 14px; }
.logo img { width: 54px; height: 44px; object-fit: contain; }
.logo strong { font-family: "Cinzel", "Playfair Display", ui-serif, Georgia, serif; font-size: 21px; font-weight: 400; letter-spacing: .02em; }
.edition { margin: 0; font-size: 11px; letter-spacing: .17em; text-transform: uppercase; color: rgba(240,236,226,.6); }

.content { position: absolute; left: clamp(22px, 8vw, 124px); top: 50%; width: min(740px, 61vw); transform: translateY(-45%); z-index: 2; }
.overline { display: flex; align-items: center; gap: 13px; margin: 0 0 19px; color: rgba(240,236,226,.68); font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: .21em; }
.overline span { width: 34px; height: 1px; background: var(--gold); }
h1 { margin: 0; font-family: "Playfair Display", ui-serif, Georgia, serif; font-size: clamp(4rem, 8.3vw, 8.7rem); font-weight: 400; line-height: 1.06; letter-spacing: -.045em; }
h1 em { color: var(--gold); font-style: italic; }

.look-title { display: grid; grid-template-columns: 58px 1fr; margin: 25px 0 27px; min-height: 49px; }
.look-title > span { grid-row: 1 / 3; padding-top: 4px; color: var(--gold); font-size: 10px; letter-spacing: .12em; }
.look-title strong { font-family: "Playfair Display", ui-serif, Georgia, serif; font-size: 19px; font-weight: 400; letter-spacing: .03em; transition: opacity .25s ease, transform .25s ease; }
.look-title small { color: rgba(240,236,226,.55); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; transition: opacity .25s ease, transform .25s ease; }
.look-title.is-changing strong, .look-title.is-changing small { opacity: 0; transform: translateY(6px); }

.instagram { width: min(400px, 100%); min-height: 68px; padding: 11px 16px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 14px; border: 1px solid rgba(240,236,226,.38); background: rgba(7,7,7,.2); backdrop-filter: blur(8px); transition: background .25s ease, color .25s ease, border-color .25s ease; }
.instagram:hover { background: var(--ivory); color: var(--ink); border-color: var(--ivory); }
.instagram-icon { position: relative; width: 38px; height: 38px; border: 1.5px solid currentColor; border-radius: 12px; }
.instagram-icon::before { content: ""; position: absolute; width: 12px; height: 12px; border: 1.5px solid currentColor; border-radius: 50%; inset: 0; margin: auto; }
.instagram-icon i { position: absolute; width: 4px; height: 4px; right: 7px; top: 7px; border-radius: 50%; background: var(--gold); }
.instagram-copy { display: flex; flex-direction: column; line-height: 1.35; }
.instagram-copy small { font-size: 10px; letter-spacing: .17em; text-transform: uppercase; opacity: .62; }
.instagram-copy strong { font-size: 16px; font-weight: 500; }
.instagram b { color: var(--gold); font-size: 20px; font-weight: 400; }

.customizer { position: absolute; z-index: 4; right: clamp(54px, 8vw, 126px); bottom: 96px; width: 236px; padding: 18px; border: 1px solid var(--line); background: rgba(5,5,5,.46); backdrop-filter: blur(12px); }
.customizer p { margin: 0 0 16px; color: rgba(240,236,226,.62); font-size: 10px; letter-spacing: .17em; text-transform: uppercase; }
.swatches { display: flex; gap: 12px; }
.swatch { width: 31px; height: 31px; padding: 0; border: 1px solid rgba(255,255,255,.35); border-radius: 50%; background: #111; cursor: pointer; box-shadow: inset 0 0 0 4px rgba(5,5,5,.75); transition: transform .25s ease, border-color .25s ease; }
.swatch:hover { transform: scale(1.08); }
.swatch.is-active { border-color: var(--ivory); transform: scale(1.12); }
.swatch.navy { background: #1b2740; }
.swatch.burgundy { background: #4b1019; }
.progress { height: 1px; margin-top: 20px; background: rgba(240,236,226,.18); overflow: hidden; }
.progress i { display: block; width: 100%; height: 100%; background: var(--gold); transform-origin: left; animation: progress 5s linear infinite; }
.progress.restart i { animation: none; }

.side-copy { position: absolute; right: 24px; top: 50%; z-index: 2; writing-mode: vertical-rl; transform: translateY(-50%); font-size: 10px; letter-spacing: .27em; text-transform: uppercase; color: rgba(240,236,226,.55); }
footer { position: absolute; z-index: 3; inset: auto 0 0; min-height: 64px; padding: 0 clamp(22px, 5vw, 78px); display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); color: rgba(240,236,226,.5); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; }
footer p { margin: 0; }
footer b { font-weight: 400; }

@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: translateY(0); } }
@keyframes appear { from { opacity: 0; } to { opacity: 1; } }
@keyframes progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes grain { 0% { transform: translate(0,0); } 25% { transform: translate(2%,-3%); } 50% { transform: translate(-3%,2%); } 75% { transform: translate(3%,3%); } 100% { transform: translate(-2%,-2%); } }

@media (min-aspect-ratio: 8/5) {
  .look-image { object-fit: contain; object-position: center center; }
}

@media (max-width: 760px) {
  .look-image { object-position: 78% center; }
  .look-image[data-image="0"] { object-position: 63% center; }
  .veil { background: linear-gradient(0deg, rgba(3,3,3,.97) 0%, rgba(3,3,3,.73) 54%, rgba(3,3,3,.08) 100%); }
  header { height: 74px; }
  .edition { display: none; }
  .logo strong { font-size: 18px; }
  .content { left: 22px; right: 22px; top: auto; bottom: 88px; width: auto; transform: none; }
  h1 { font-size: clamp(3.7rem, 18vw, 6rem); line-height: 1.06; }
  .overline { margin-bottom: 15px; }
  .look-title { margin: 19px 0 20px; }
  .instagram { min-height: 62px; }
  .customizer { top: 92px; left: 22px; right: auto; bottom: auto; width: auto; padding: 10px; }
  .customizer p, .progress { display: none; }
  .swatch { width: 27px; height: 27px; }
  .side-copy { display: none; }
  footer { min-height: 52px; }
  footer p { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .progress i { animation: none; }
}
