/* Home page only. Shared tokens, header, buttons and footer live in styles.css. */

/* ---------- Welcome ---------- */
.welcome {
  --px: 0; --py: 0;
  position: relative; isolation: isolate; overflow: hidden;
  min-height: clamp(640px, calc(100svh - var(--header-h)), 900px);
  display: grid; align-items: center; padding: 72px 0 120px;
}
.welcome__bg {
  position: absolute; inset: -4%; z-index: -2;
  transform: translate3d(calc(var(--px) * -18px), calc(var(--py) * -12px), 0);
  transition: transform 0.5s ease-out;
}
.welcome__bg::before {
  content: ""; position: absolute; inset: 0;
  background: url("/assets/img/bg-silk-burgundy.webp") center / cover no-repeat;
}
.welcome::before { /* vignette keeps the headline legible and the edges deep plum */
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(70% 80% at 28% 50%, rgba(26, 7, 22, 0.78) 0%, rgba(26, 7, 22, 0.35) 60%, rgba(26, 7, 22, 0) 100%),
    linear-gradient(180deg, rgba(26, 7, 22, 0.35) 0%, rgba(26, 7, 22, 0) 25%, rgba(26, 7, 22, 0) 70%, var(--plum-950) 100%);
}
.welcome__grid { display: grid; grid-template-columns: 1.25fr 0.75fr; align-items: center; gap: clamp(24px, 5vw, 72px); }

.welcome h1 { font-size: clamp(2.7rem, 5.8vw, 5.2rem); font-style: italic; font-weight: 600; line-height: 1.04; letter-spacing: -0.012em; }
.line { display: block; white-space: nowrap; overflow: hidden; padding: 0.04em 0.1em 0.14em 0; margin-bottom: -0.1em; }
.line > span {
  display: block;
  background: linear-gradient(180deg, var(--ivory) 5%, var(--gold-200) 55%, var(--gold-400) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Floating golden-glow logo (approved). The original medallion is kept in assets/brand/. */
.logo-slot { position: relative; display: grid; place-items: center; justify-self: center; width: clamp(250px, 32vw, 410px); aspect-ratio: 1; }

.luminous { position: relative; width: 100%; aspect-ratio: 1; justify-self: stretch; transform: translate3d(calc(var(--px) * 12px), calc(var(--py) * 9px), 0); transition: transform 0.5s ease-out; }

/* Light that seems to come from the silk itself */
.luminous .aura {
  position: absolute; inset: -64%; border-radius: 50%; pointer-events: none; mix-blend-mode: screen;
  background: radial-gradient(closest-side, rgba(255, 224, 146, 0.66) 0%, rgba(255, 178, 74, 0.36) 24%, rgba(214, 53, 127, 0.22) 45%, rgba(109, 40, 184, 0.11) 64%, transparent 100%);
}

/* The badge: no hard shadow, a softened rim, a warm gold bloom. */
.luminous .luminous__logo {
  position: relative; display: block; width: 100%; height: 100%; border-radius: 50%; box-shadow: none;
  -webkit-mask-image: radial-gradient(circle closest-side, #000 95.5%, transparent 100%);
  mask-image: radial-gradient(circle closest-side, #000 95.5%, transparent 100%);
  filter: drop-shadow(0 0 16px rgba(255, 206, 112, 0.6)) drop-shadow(0 0 64px rgba(214, 53, 127, 0.5));
}

/* A slow band of light crossing the badge */
.luminous .sheen {
  position: absolute; inset: 0; border-radius: 50%; pointer-events: none; mix-blend-mode: soft-light;
  background: linear-gradient(115deg, transparent 32%, rgba(255, 246, 220, 0.95) 50%, transparent 68%) 120% 0 / 300% 100% no-repeat;
}

/* Silk ribbons that pass behind and across the badge (kept clear of the lettering). */
.luminous .ribbon { position: absolute; inset: -22%; width: 144%; height: 144%; overflow: visible; pointer-events: none; }
.luminous .ribbon--back { z-index: 0; }
.luminous .aura { z-index: 0; }
.luminous .luminous__logo { z-index: 1; }
.luminous .sheen { z-index: 2; }
.luminous .ribbon--front { z-index: 3; mix-blend-mode: screen; opacity: 0.75; }
.ribbon path { fill: none; stroke-linecap: round; }
.ribbon .glow { filter: blur(1.1px); }

@media (prefers-reduced-motion: no-preference) {
  .luminous .aura { animation: breathe 7s ease-in-out infinite alternate; }
  @keyframes breathe { from { opacity: 0.8; transform: scale(0.97); } to { opacity: 1; transform: scale(1.05); } }
  .luminous .sheen { animation: sheen 9s ease-in-out infinite; }
  @keyframes sheen { 0%, 52% { background-position: 120% 0; } 100% { background-position: -120% 0; } }
  .luminous .ribbon--back { animation: sway 14s ease-in-out infinite alternate; }
  .luminous .ribbon--front { animation: sway 17s ease-in-out infinite alternate-reverse; }
  @keyframes sway { from { transform: rotate(-3deg) scale(0.99); } to { transform: rotate(3deg) scale(1.02); } }
}



/* Gold dust rising through the scene (created in main.js). */
.sparks { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.sparks i { position: absolute; bottom: -10px; left: var(--x); width: var(--s); height: var(--s); border-radius: 50%; background: var(--gold-200); box-shadow: 0 0 10px 2px rgba(255, 217, 138, 0.7); opacity: 0; }

.cue { position: absolute; left: 50%; bottom: 28px; width: 44px; height: 64px; transform: translateX(-50%); display: block; }
.cue::before { content: ""; position: absolute; left: 50%; top: 0; width: 1px; height: 100%; background: linear-gradient(180deg, transparent, var(--gold-300)); }
.cue::after { content: ""; position: absolute; left: calc(50% - 3px); top: 0; width: 7px; height: 7px; border-radius: 50%; background: var(--gold-200); }

@media (prefers-reduced-motion: no-preference) {
  .logo-slot { animation: float 11s ease-in-out infinite alternate; }
  @keyframes float { from { transform: translateY(-7px); } to { transform: translateY(7px); } }
  .welcome__bg::before { animation: drift 46s ease-in-out infinite alternate; }
  @keyframes drift { from { transform: scale(1.02) translate3d(-1.5%, 0, 0); } to { transform: scale(1.12) translate3d(1.5%, -1.5%, 0); } }

  .line > span { animation: lineUp 1.2s cubic-bezier(0.2, 0.8, 0.2, 1) backwards; }
  .line:nth-child(1) > span { animation-delay: 0.15s; }
  .line:nth-child(2) > span { animation-delay: 0.35s; }
  .line:nth-child(3) > span { animation-delay: 0.55s; }
  @keyframes lineUp { from { transform: translateY(105%); } to { transform: none; } }


  .sparks i { animation: rise var(--t) linear infinite; animation-delay: var(--d); }
  @keyframes rise { 0% { transform: translate3d(0, 0, 0); opacity: 0; } 12% { opacity: 0.9; } 100% { transform: translate3d(var(--dx), -105vh, 0); opacity: 0; } }

  .cue::after { animation: drip 2.4s ease-in-out infinite; }
  @keyframes drip { 0% { transform: translateY(0); opacity: 0; } 25% { opacity: 1; } 100% { transform: translateY(57px); opacity: 0; } }
}
@media (prefers-reduced-motion: reduce) { .sparks { display: none; } }

@media (max-width: 860px) {
  .welcome { padding: 48px 0 110px; min-height: 0; }
  .welcome__grid { grid-template-columns: 1fr; gap: 56px; text-align: center; }
  .logo-slot { order: -1; width: 230px; }
  .welcome::before { background:
    radial-gradient(90% 70% at 50% 55%, rgba(26, 7, 22, 0.75), rgba(26, 7, 22, 0.25) 70%),
    linear-gradient(180deg, rgba(26, 7, 22, 0.3) 0%, rgba(26, 7, 22, 0) 25%, rgba(26, 7, 22, 0) 65%, var(--plum-950) 100%); }
  .welcome h1 { font-size: clamp(2.4rem, 10vw, 3.4rem); }
  .line { padding-right: 0; }
}

/* ---------- Entrances ---------- */
.doors {
  padding-block: clamp(80px, 11vw, 150px);
  background:
    radial-gradient(50% 45% at 24% 62%, rgba(214, 53, 127, 0.2), transparent 70%),
    radial-gradient(50% 45% at 76% 70%, rgba(109, 40, 184, 0.26), transparent 70%),
    var(--plum-950);
}
.doors__head { text-align: center; margin: 0 auto clamp(48px, 7vw, 88px); max-width: 52ch; }
.doors__head h2 { font-size: clamp(2.4rem, 4.6vw, 3.6rem); font-style: italic; margin-bottom: 14px; }
.doors__head p { color: var(--muted); font-size: 1.15rem; margin: 0; }

.doors__row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 6vw, 80px); max-width: 1000px; margin-inline: auto; align-items: start; }
.door {
  --glow: rgba(214, 53, 127, 0.28);
  position: relative; display: flex; align-items: flex-end; justify-content: center; text-align: center;
  aspect-ratio: 5 / 7.4; isolation: isolate; overflow: hidden; text-decoration: none;
  border-radius: 999px 999px 26px 26px;
  box-shadow: 0 0 0 1.5px rgba(245, 185, 66, 0.5), 0 0 0 9px rgba(26, 7, 22, 0.9), 0 0 0 10px rgba(245, 185, 66, 0.2), 0 30px 80px rgba(0, 0, 0, 0.55), 0 0 70px var(--glow);
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.5s ease;
}
.door--conversations { --glow: rgba(139, 77, 230, 0.34); margin-top: clamp(0px, 7vw, 88px); }
.door > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1); }
.door--collection > img { object-position: 52% 40%; }
.door::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(26, 7, 22, 0.05) 0%, rgba(26, 7, 22, 0.15) 38%, rgba(26, 7, 22, 0.9) 78%, rgba(26, 7, 22, 0.97) 100%); }
.door__text { padding: 0 clamp(18px, 3vw, 34px) clamp(30px, 4.5vw, 52px); }
.door h3 { font-size: clamp(2rem, 3.6vw, 2.9rem); font-style: italic; margin-bottom: 8px; }
.door p { margin: 0 auto 22px; max-width: 26ch; color: var(--text); }
.door__go { display: inline-flex; align-items: center; min-height: 46px; padding: 0.6em 1.4em; border-radius: 999px; border: 1.5px solid var(--gold-300); color: var(--gold-200); font-weight: 600; font-size: 0.95rem; transition: background-color 0.3s, color 0.3s; }
.door:hover, .door:focus-visible { transform: translateY(-10px); box-shadow: 0 0 0 1.5px var(--gold-300), 0 0 0 9px rgba(26, 7, 22, 0.9), 0 0 0 10px rgba(245, 185, 66, 0.4), 0 40px 90px rgba(0, 0, 0, 0.6), 0 0 110px var(--glow); }
.door:hover > img { transform: scale(1.07); }
.door:hover .door__go, .door:focus-visible .door__go { background: var(--gold-grad); color: var(--plum-900); border-color: transparent; }
.door:focus-visible { outline-offset: 14px; }

@media (max-width: 760px) {
  .doors__row { grid-template-columns: 1fr; max-width: 440px; gap: 56px; }
  .door--conversations { margin-top: 0; }
}

/* ---------- Quiet exits ---------- */
.threshold { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-bottom: clamp(64px, 9vw, 120px); }
.threshold a { display: block; text-decoration: none; padding: clamp(32px, 5vw, 56px) clamp(8px, 3vw, 40px); transition: background-color 0.3s; }
.threshold a + a { border-left: 1px solid var(--line); }
.threshold a:hover { background: rgba(255, 217, 138, 0.06); }
.threshold strong { display: block; font: italic 600 clamp(1.7rem, 3vw, 2.4rem)/1.1 var(--serif); color: var(--ivory); margin-bottom: 6px; }
.threshold span { color: var(--muted); }
.threshold a:hover strong { color: var(--gold-200); }
@media (max-width: 640px) { .threshold { grid-template-columns: 1fr; } .threshold a + a { border-left: 0; border-top: 1px solid var(--line); } }
