/* VEIL — The development. A scent read down a timeline (v3 rebuild) */

@font-face {
  font-family: "Clash Display";
  src: url("../assets/fonts/ClashDisplay-Variable.woff2") format("woff2");
  font-weight: 200 700;
  font-display: swap;
}
@font-face {
  font-family: "Chillax";
  src: url("../assets/fonts/Chillax-Variable.woff2") format("woff2");
  font-weight: 200 700;
  font-display: swap;
}

:root {
  --night: #14101d;
  --night-2: #1b1626;
  --ink: #efe9f4;
  --ink-2: #b3a8c2;
  --ink-3: #7d7290;
  --lilac: #b79ae0;
  --rose: #e6a3b8;
  --hair: rgba(239, 233, 244, 0.12);
  --display: "Clash Display", "Helvetica Neue", sans-serif;
  --body: "Chillax", "Helvetica Neue", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--night);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.68;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--lilac); color: var(--night); }

.tag {
  font-family: var(--body);
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 clamp(20px, 4.5vw, 60px);
  position: relative;
  z-index: 2;
}

/* ---------- Atmosphere: the only site here that keeps heavy motion ---------- */
.aurora {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}
.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.5;
  will-change: transform;
}
.orb-a { width: 46vw; height: 46vw; left: -8vw; top: -6vw; background: radial-gradient(circle, rgba(183, 154, 224, 0.55), transparent 68%); }
.orb-b { width: 40vw; height: 40vw; right: -6vw; top: 32vh; background: radial-gradient(circle, rgba(230, 163, 184, 0.42), transparent 68%); }
.orb-c { width: 52vw; height: 52vw; left: 18vw; bottom: -18vw; background: radial-gradient(circle, rgba(124, 116, 196, 0.36), transparent 70%); }

/* Mist cursor — kept here and nowhere else */
.mist {
  position: fixed;
  top: 0; left: 0;
  width: 260px; height: 260px;
  margin: -130px 0 0 -130px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(183, 154, 224, 0.16), transparent 62%);
  pointer-events: none;
  z-index: 40;
  opacity: 0;
  transition: opacity 0.6s ease;
  will-change: transform;
}
.mist.is-on { opacity: 1; }

/* ---------- Header ---------- */
.top {
  position: relative;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: clamp(18px, 3vw, 30px) 0;
  flex-wrap: wrap;
}
.top-links { display: flex; gap: clamp(14px, 2.6vw, 30px); flex-wrap: wrap; }
.top-links a { transition: color 0.3s ease; }
.top-links a:hover { color: var(--lilac); }
.brand {
  font-family: var(--display);
  font-weight: 400;
  font-size: 22px;
  letter-spacing: 0.02em;
}

/* ---------- Opening ---------- */
.opening {
  min-height: 86svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: clamp(14px, 2.4vh, 26px);
  padding: clamp(30px, 6vh, 70px) 0 clamp(40px, 8vh, 90px);
}
.opening h1 {
  font-family: var(--display);
  font-weight: 200;
  font-size: clamp(3.4rem, 15vw, 11rem);
  line-height: 0.9;
  letter-spacing: -0.02em;
}
.flacon { width: clamp(140px, 20vw, 250px); }
.flacon img { width: 100%; filter: drop-shadow(0 24px 60px rgba(20, 16, 29, 0.7)); }
.opening .line {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(1.1rem, 2.4vw, 1.7rem);
  color: var(--ink-2);
}
.opening .meta { display: flex; gap: 22px; flex-wrap: wrap; justify-content: center; }

/* ---------- Section head ---------- */
.head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: clamp(46px, 8vw, 110px) 0 clamp(20px, 3vw, 34px);
  flex-wrap: wrap;
}
.head h2 {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(1.8rem, 4.4vw, 3.3rem);
  line-height: 1.06;
  letter-spacing: -0.015em;
}

/* ---------- The development: the timeline (signature) ---------- */
.development { position: relative; padding-left: clamp(30px, 6vw, 96px); }

.spine {
  position: absolute;
  left: clamp(8px, 1.6vw, 26px);
  top: 6px;
  bottom: 6px;
  width: 1px;
  background: var(--hair);
}
.spine-fill {
  position: absolute;
  left: 0; top: 0;
  width: 1px;
  height: 0;
  background: linear-gradient(to bottom, var(--lilac), var(--rose));
  transition: height 0.15s linear;
}

.phase {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: clamp(20px, 4vw, 56px);
  align-items: center;
  padding: clamp(28px, 5vw, 62px) 0;
}
.phase::before {
  content: "";
  position: absolute;
  left: calc(clamp(8px, 1.6vw, 26px) - clamp(30px, 6vw, 96px) - 4px);
  top: 50%;
  width: 9px; height: 9px;
  margin-top: -4.5px;
  border-radius: 50%;
  background: var(--night);
  border: 1px solid var(--ink-3);
  transition: background 0.5s ease, border-color 0.5s ease, box-shadow 0.5s ease;
}
.phase.is-lit::before {
  background: var(--lilac);
  border-color: var(--lilac);
  box-shadow: 0 0 0 6px rgba(183, 154, 224, 0.16);
}

.phase-clock {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(1.7rem, 3.6vw, 2.8rem);
  line-height: 1;
  letter-spacing: -0.01em;
  color: var(--lilac);
  margin-bottom: 10px;
  font-variant-numeric: tabular-nums;
}
.phase h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(1.3rem, 2.6vw, 2rem);
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}
.phase p { color: var(--ink-2); max-width: 46ch; margin-bottom: 16px; }

.materials { display: flex; flex-wrap: wrap; gap: 8px; }
.materials span {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 5px 12px;
  border: 1px solid var(--hair);
  border-radius: 999px;
  color: var(--ink-2);
  background: rgba(239, 233, 244, 0.03);
  backdrop-filter: blur(6px);
}

.phase figure { overflow: hidden; border-radius: 2px; }
.phase figure img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  transition: transform 1.4s cubic-bezier(0.22, 1, 0.36, 1), filter 0.8s ease;
  filter: saturate(0.92) brightness(0.94);
}
.phase:hover figure img { transform: scale(1.04); filter: saturate(1) brightness(1); }

/* ---------- Three weathers ---------- */
.weathers {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 2.6vw, 34px);
}
.weather {
  border: 1px solid var(--hair);
  border-radius: 3px;
  padding: clamp(18px, 2.6vw, 30px);
  background: rgba(27, 22, 38, 0.5);
  backdrop-filter: blur(10px);
  transition: border-color 0.45s ease, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.weather:hover { border-color: rgba(183, 154, 224, 0.45); transform: translateY(-5px); }
.weather img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: contain;
  margin-bottom: 18px;
  filter: drop-shadow(0 18px 40px rgba(20, 16, 29, 0.6));
}
.weather h3 {
  font-family: var(--display);
  font-weight: 400;
  font-size: 1.5rem;
  margin-bottom: 6px;
}
.weather .mood { color: var(--ink-2); font-size: 14.5px; margin-bottom: 14px; min-height: 3em; }
.weather .price {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  padding-top: 13px;
  border-top: 1px solid var(--hair);
}
.weather .price b { font-family: var(--display); font-weight: 400; font-size: 1.16rem; }

/* ---------- Raw matter ---------- */
.matter {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: clamp(14px, 2.6vw, 30px);
}
.matter figure { position: relative; overflow: hidden; border-radius: 2px; }
.matter img {
  width: 100%; height: 100%;
  object-fit: cover;
  min-height: 200px;
  transition: transform 1.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.matter figure:hover img { transform: scale(1.045); }
.matter figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 14px 16px;
  background: linear-gradient(to top, rgba(20, 16, 29, 0.9), transparent);
}
.matter-note {
  grid-column: 1 / -1;
  border: 1px solid var(--hair);
  border-radius: 3px;
  padding: clamp(20px, 3vw, 34px);
  background: rgba(27, 22, 38, 0.45);
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  flex-wrap: wrap;
}
.matter-note p {
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(1.15rem, 2.4vw, 1.8rem);
  line-height: 1.32;
  max-width: 32ch;
}

/* ---------- Campaign ---------- */
.campaign {
  position: relative;
  margin-top: clamp(44px, 7vw, 96px);
  border-radius: 3px;
  overflow: hidden;
}
.campaign img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  filter: saturate(0.9) brightness(0.8);
}
.campaign p {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: clamp(20px, 4vw, 50px);
  font-family: var(--display);
  font-weight: 300;
  font-size: clamp(1.2rem, 3.2vw, 2.6rem);
  line-height: 1.24;
  max-width: 22ch;
  background: linear-gradient(to top, rgba(20, 16, 29, 0.86), transparent);
}

/* ---------- Discovery set ---------- */
.closing {
  text-align: center;
  padding: clamp(60px, 10vw, 130px) 0 clamp(30px, 5vw, 56px);
}
.closing p {
  font-family: var(--display);
  font-weight: 200;
  font-size: clamp(2rem, 6vw, 4.6rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}
.closing p em { font-style: italic; color: var(--lilac); }
.closing .get {
  display: inline-block;
  margin-top: 12px;
  border: 1px solid var(--hair);
  border-radius: 999px;
  padding: 15px 34px;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-2);
  transition: border-color 0.4s ease, color 0.4s ease, background 0.4s ease;
}
.closing .get:hover { border-color: var(--lilac); color: var(--ink); background: rgba(183, 154, 224, 0.1); }

.colophon {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 22px 0 34px;
  border-top: 1px solid var(--hair);
}
.colophon nav { display: flex; gap: 20px; flex-wrap: wrap; }
.colophon a:hover { color: var(--lilac); }

/* ---------- Entrance ---------- */
.fade { opacity: 0; transform: translateY(20px); transition: opacity 1s ease, transform 1s cubic-bezier(0.22, 1, 0.36, 1); }
.fade.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .fade { opacity: 1; transform: none; transition: none; }
  .orb { display: none; }
  .mist { display: none; }
  .phase figure img, .matter img, .weather { transition: none; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .phase { grid-template-columns: 1fr; }
  .phase figure { order: -1; }
  .weathers { grid-template-columns: 1fr; }
  .matter { grid-template-columns: 1fr; }
  .mist { display: none; }
}

@media (max-width: 600px) {
  .development { padding-left: 26px; }
  .spine { left: 4px; }
  .phase::before { left: -26px; }
  .opening { min-height: auto; padding-top: 20px; }
}
