/* ═══════════════════════════════════════════════
   MEMORY SITE — MAIN STYLESHEET
   ═══════════════════════════════════════════════ */

/* ── RESET & BASE ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --black:      #080808;
  --black-soft: #0e0e0e;
  --gold:       #c8a84b;
  --gold-light: #e2c97e;
  --gold-dim:   #8a7035;
  --cream:      #f5efe0;
  --cream-dim:  #c9bfa8;
  --white:      #ffffff;
  --paper:      #fdf6e3;

  --font-display:  'Playfair Display', Georgia, serif;
  --font-body:     'Lora', Georgia, serif;
  --font-script:   'Dancing Script', cursive;
  --font-ui:       'Inter', sans-serif;

  --nav-h: 84px;
  --radius: 4px;

  --transition: 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.7;
  min-height: 100dvh;
  overflow-x: hidden;
}

/* ── PARTICLE CANVAS ── */
#particles-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* ── NAV ── */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: var(--nav-h);
  z-index: 100;
  background: rgba(8,8,8,0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(200,168,75,0.12);
}

.nav__inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 32px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.nav__logo {
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 13px;
  height: 100%;
}

.nav__logo img {
  height: 60px;
  width: auto;
  display: block;
  filter: brightness(1.1) saturate(1.05) drop-shadow(0 1px 7px rgba(200,168,75,0.28));
  transition: filter var(--transition), transform var(--transition);
  order: 0;
}
.nav__logo:hover img {
  filter: brightness(1.22) saturate(1.1) drop-shadow(0 2px 11px rgba(200,168,75,0.45));
  transform: translateY(-1px);
}

.nav__logo-script {
  font-family: var(--font-script);
  font-size: 28px;
  color: var(--gold-light);
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: color var(--transition);
}
.nav__logo:hover .nav__logo-script { color: var(--white); }

.nav__links {
  list-style: none;
  display: flex;
  gap: 28px;
  align-items: center;
  margin-left: 64px;
  flex-shrink: 0;
}

.nav__links li {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.nav__link {
  text-decoration: none;
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: var(--cream-dim);
  position: relative;
  transition: color var(--transition);
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.nav__auth {
  margin-left: auto !important;
  flex-shrink: 0;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width var(--transition);
}

.nav__link:hover,
.nav__link--active {
  color: var(--gold-light);
}
.nav__link:hover::after,
.nav__link--active::after {
  width: 100%;
}

/* ── SECTIONS BASE ── */
section { position: relative; z-index: 1; }

/* ── HERO ── */
.hero {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: calc(var(--nav-h) + 60px) 32px 80px;
  overflow: hidden;
}

.hero__inner {
  max-width: 760px;
  text-align: center;
  position: relative;
  z-index: 2;
}

.hero__eyebrow {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
}

.hero__title {
  font-family: var(--font-display);
  font-size: clamp(38px, 5.5vw, 76px);
  font-weight: 400;
  line-height: 1.12;
  color: var(--cream);
  margin-bottom: 28px;
  letter-spacing: -0.01em;
}

.hero__title em {
  font-style: italic;
  color: var(--gold-light);
  font-family: var(--font-display);
  white-space: nowrap;
}

.qr-text {
  font-family: var(--font-ui);
  font-style: normal;
  font-weight: 500;
  letter-spacing: 0.03em;
  display: inline-block;
}

.hero__subtitle {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 300;
  color: var(--cream-dim);
  line-height: 1.8;
  max-width: 540px;
  margin: 0 auto 44px;
}

.hero__actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

/* Decorative polygons - soft, atmospheric, layered depth */
.hero__polygon {
  position: absolute;
  pointer-events: none;
  z-index: 1;
  filter: blur(50px);
  opacity: 0.35;
  mix-blend-mode: screen;
}

.hero__polygon--1 {
  width: 600px; height: 600px;
  background: linear-gradient(135deg, rgba(200, 168, 75, 0.25), rgba(138, 112, 53, 0.05));
  clip-path: polygon(10% 0, 100% 20%, 80% 100%, 0 80%);
  top: -10%; left: -15%;
  animation: polyFloat1 22s ease-in-out infinite alternate;
}

.hero__polygon--2 {
  width: 450px; height: 450px;
  background: linear-gradient(225deg, rgba(226, 201, 126, 0.2), rgba(138, 112, 53, 0.05));
  clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);
  bottom: 10%; right: -10%;
  animation: polyFloat2 28s ease-in-out infinite alternate;
}

.hero__polygon--3 {
  width: 350px; height: 350px;
  background: linear-gradient(45deg, rgba(138, 112, 53, 0.2), rgba(200, 168, 75, 0.05));
  clip-path: polygon(25% 0%, 100% 0, 75% 100%, 0% 100%);
  top: 40%; left: 55%;
  animation: polyFloat3 25s ease-in-out infinite alternate;
}

.hero__polygon--4 {
  width: 300px; height: 400px;
  background: linear-gradient(180deg, rgba(200, 168, 75, 0.15), transparent);
  clip-path: polygon(50% 0%, 0% 100%, 100% 100%);
  top: 20%; left: 25%;
  animation: polyFloat4 20s ease-in-out infinite alternate;
}

@keyframes polyFloat1 {
  0% { transform: translateY(0) translateX(0) rotate(0deg); }
  100% { transform: translateY(30px) translateX(20px) rotate(8deg); }
}
@keyframes polyFloat2 {
  0% { transform: translateY(0) translateX(0) rotate(0deg); }
  100% { transform: translateY(-40px) translateX(-30px) rotate(-10deg); }
}
@keyframes polyFloat3 {
  0% { transform: translateY(0) translateX(0) rotate(0deg); }
  100% { transform: translateY(20px) translateX(-40px) rotate(12deg); }
}
@keyframes polyFloat4 {
  0% { transform: translateY(0) translateX(0) scale(1); }
  100% { transform: translateY(-20px) translateX(10px) scale(1.1); }
}

/* ── BUTTONS ── */
.btn {
  display: inline-block;
  text-decoration: none;
  font-family: var(--font-ui);
  font-size: 15px;
  letter-spacing: 0.12em;
  padding: 14px 38px;
  border-radius: var(--radius);
  transition: all var(--transition);
  cursor: pointer;
  border: none;
  font-weight: 400;
}

.btn--primary {
  background: linear-gradient(135deg, var(--gold-dim) 0%, var(--gold) 50%, var(--gold-light) 100%);
  color: var(--black);
  box-shadow: 0 4px 30px rgba(200,168,75,0.25);
}
.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 40px rgba(200,168,75,0.4);
}

.btn--ghost {
  background: transparent;
  color: var(--gold-light);
  border: 1px solid rgba(200,168,75,0.45);
}
.btn--ghost:hover {
  background: rgba(200,168,75,0.08);
  border-color: var(--gold-light);
  transform: translateY(-2px);
}

/* ── SECTION TITLE ── */
.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 400;
  color: var(--cream);
  text-align: center;
  margin-bottom: 56px;
  position: relative;
  letter-spacing: -0.01em;
}
.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 18px auto 0;
}

/* ── FEATURES ── */
.features {
  padding: 100px 32px;
  position: relative;
  z-index: 2;
}

.features__inner {
  max-width: 1000px;
  margin: 0 auto;
}

.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

@media (max-width: 768px) {
  .features__grid { grid-template-columns: 1fr; }
}

.feature-card {
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(200,168,75,0.12);
  border-radius: 8px;
  padding: 42px 32px;
  text-align: center;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(200,168,75,0.04) 0%, transparent 60%);
  opacity: 0;
  transition: opacity var(--transition);
}
.feature-card:hover {
  border-color: rgba(200,168,75,0.3);
  transform: translateY(-4px);
  box-shadow: 0 16px 60px rgba(0,0,0,0.4);
}
.feature-card:hover::before { opacity: 1; }

.feature-card__icon {
  font-size: 24px;
  color: var(--gold);
  margin-bottom: 20px;
  display: block;
}

.feature-card__title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  color: var(--cream);
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}

.feature-card__text {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 300;
  color: var(--cream-dim);
  line-height: 1.75;
  margin-bottom: 24px;
}

.feature-card__link {
  text-decoration: none;
  font-family: var(--font-body);
  font-size: 13px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold);
  position: relative;
  transition: color var(--transition);
}
.feature-card__link::after {
  content: '  →';
  transition: margin-left var(--transition);
  display: inline-block;
  margin-left: 4px;
}
.feature-card__link:hover {
  color: var(--gold-light);
}
.feature-card__link:hover::after {
  margin-left: 10px;
}

/* ── PULL QUOTE ── */
.quote-section {
  padding: 40px 32px 80px;
  position: relative;
  z-index: 2;
}
.quote-section::before {
  content: '';
  position: absolute;
  top: 0; left: 50%; transform: translateX(-50%);
  width: 1px;
  height: 60px;
  background: linear-gradient(to bottom, transparent, rgba(200,168,75,0.3));
}

.quote-section__inner {
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
}

.pullquote {
  font-family: var(--font-script);
  font-size: clamp(26px, 4vw, 40px);
  color: var(--cream-dim);
  line-height: 1.5;
  font-style: normal;
}

.pullquote__mark {
  font-family: var(--font-display);
  font-size: 1.6em;
  color: var(--gold-dim);
  line-height: 0;
  vertical-align: -0.15em;
  display: inline-block;
  padding: 0 8px;
}

/* ── FOOTER ── */
.footer {
  padding: 40px 32px;
  border-top: 1px solid rgba(200,168,75,0.10);
  position: relative;
  z-index: 2;
}

.footer__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.footer__logo {
  font-family: var(--font-script);
  font-size: 24px;
  color: var(--gold-dim);
}

.footer__copy {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.08em;
  color: rgba(201,191,168,0.45);
}



/* ═══════════════════════════════════════════════
   STATS SECTION
   ═══════════════════════════════════════════════ */
.stats {
  padding: 40px 32px 40px;
  position: relative;
  z-index: 2;
}
.stats__inner {
  max-width: 1000px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 36px;
  flex-wrap: wrap;
  padding: 36px 40px;
  background: rgba(255,255,255,0.02);
  border: 1px solid rgba(200,168,75,0.12);
  border-radius: 8px;
}
.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
}
.stat__num {
  font-family: var(--font-display);
  font-size: clamp(34px, 5vw, 52px);
  font-weight: 400;
  color: var(--gold-light);
  font-style: italic;
  line-height: 1;
  letter-spacing: -0.01em;
}
.stat__label {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--cream-dim);
}
.stats__divider {
  width: 1px;
  height: 42px;
  background: linear-gradient(to bottom, transparent, rgba(200,168,75,0.3), transparent);
}
@media (max-width: 640px) {
  .stats__divider { display: none; }
  .stats__inner { gap: 28px; }
}

/* ═══════════════════════════════════════════════
   CANDLE SECTION
   ═══════════════════════════════════════════════ */
.candle-section {
  padding: 40px 32px 40px;
  text-align: center;
  position: relative;
  z-index: 2;
}
.candle-section__inner { max-width: 620px; margin: 0 auto; }
.candle-section__sub {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 17px;
  color: var(--cream-dim);
  margin: -30px 0 50px;
  line-height: 1.7;
  font-weight: 300;
}
.candle-section__counter {
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--cream-dim);
  margin-top: 40px;
  letter-spacing: 0.05em;
}
.candle-section__counter span {
  font-family: var(--font-display);
  font-size: 22px;
  font-style: italic;
  color: var(--gold-light);
  margin-left: 6px;
  display: inline-block;
  min-width: 40px;
  transition: transform 0.3s, color 0.3s;
}
.candle-section__counter span.is-bumped {
  animation: bump 0.5s ease;
  color: var(--gold-light);
}
@keyframes bump {
  0%, 100% { transform: scale(1); }
  40% { transform: scale(1.35); color: #ffe8a8; }
}
.candle-section__hint {
  font-family: var(--font-script);
  font-size: 16px;
  color: var(--gold-dim);
  margin-top: 4px;
  opacity: 0.7;
}

/* ═══════════════════════════════════════════════
   DETAILED REALISTIC CANDLE
   ═══════════════════════════════════════════════ */

.candle-scene {
  position: relative;
  width: 200px;
  height: 360px;
  margin: 0 auto;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  transform: scale(0.7); /* reduced size */
  transform-origin: bottom center;
}

/* Ambient halo — warm light that bathes the area around the candle */
.candle__halo {
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(255, 180, 90, 0.22) 0%,
    rgba(255, 140, 60, 0.09) 35%,
    rgba(255, 120, 40, 0) 70%
  );
  filter: blur(20px);
  pointer-events: none;
  opacity: 0;
  transition: opacity 1s ease;
  z-index: 0;
  animation: haloBreathe 5s ease-in-out infinite;
}
.candle-scene:has(.candle.is-lit) .candle__halo,
.candle.is-lit ~ .candle__halo,
.candle-scene .candle.is-lit ~ * .candle__halo { opacity: 1; }
/* fallback: since :has may vary, control via JS class on scene */
.candle-scene.is-lit .candle__halo { opacity: 1; }
@keyframes haloBreathe {
  0%, 100% { transform: translateX(-50%) scale(1);    opacity: 0.9; }
  50%      { transform: translateX(-50%) scale(1.08); opacity: 0.7; }
}

/* Candle wrapper */
.candle {
  position: relative;
  width: 90px;
  height: 340px;
  cursor: pointer;
  user-select: none;
  outline: none;
  z-index: 1;
  transition: transform 0.3s;
}
.candle:hover { transform: translateY(-2px); }
.candle:focus-visible { outline: 2px dashed rgba(200,168,75,0.5); outline-offset: 12px; border-radius: 4px; }

/* ── FLAME ── 5 layers for realistic depth */
.candle__flame {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 36px;
  height: 72px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.5s ease;
  transform-origin: 50% 100%;
}
.candle.is-lit .candle__flame {
  opacity: 1;
  animation: flameBreathe 3.2s ease-in-out infinite;
}
.candle.is-blowing .candle__flame {
  animation: flameBlowOut 0.7s cubic-bezier(0.4, 0, 0.6, 1) forwards;
}

.flame {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 50% 50% 40% 40% / 65% 65% 35% 35%;
  filter: blur(0.3px);
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}

.flame--glow {
  top: -28px;
  left: 50%;
  width: 100px;
  height: 130px;
  margin-left: -50px;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(255, 220, 140, 0.5) 0%,
    rgba(255, 180, 90, 0.3) 25%,
    rgba(255, 140, 50, 0.12) 55%,
    rgba(255, 120, 30, 0) 75%);
  filter: blur(12px);
  animation: flameGlow 1.9s infinite;
  z-index: 0;
}

.flame--outer {
  bottom: 0;
  width: 36px;
  height: 72px;
  background: radial-gradient(ellipse at 50% 85%,
    rgba(255, 160, 70, 0.85) 0%,
    rgba(255, 120, 40, 0.6) 50%,
    rgba(255, 80, 20, 0.2) 85%,
    rgba(255, 60, 10, 0) 100%);
  box-shadow: 0 0 18px rgba(255, 150, 60, 0.55);
  filter: blur(1.5px);
  animation: flameDance1 1.1s infinite;
  z-index: 1;
}

.flame--middle {
  bottom: 2px;
  width: 26px;
  height: 58px;
  background: radial-gradient(ellipse at 50% 80%,
    rgba(255, 200, 110, 0.95) 0%,
    rgba(255, 160, 60, 0.85) 50%,
    rgba(255, 120, 40, 0.5) 90%,
    rgba(255, 100, 30, 0) 100%);
  filter: blur(0.8px);
  animation: flameDance2 1.3s infinite;
  z-index: 2;
}

.flame--inner {
  bottom: 5px;
  width: 16px;
  height: 42px;
  background: radial-gradient(ellipse at 50% 75%,
    #fff2b8 0%,
    #ffd880 40%,
    #ffa84a 75%,
    rgba(255, 140, 50, 0) 100%);
  filter: blur(0.3px);
  animation: flameDance3 0.9s infinite;
  z-index: 3;
}

/* Core — white-hot center */
.flame--core {
  bottom: 6px;
  width: 6px;
  height: 18px;
  background: radial-gradient(ellipse at 50% 60%,
    #ffffff 0%,
    #fff7d0 40%,
    #ffd080 80%,
    rgba(255, 200, 100, 0) 100%);
  border-radius: 50%;
  filter: blur(0.5px);
  animation: flameCore 0.7s infinite;
  z-index: 4;
  box-shadow: 0 0 8px rgba(255, 240, 180, 0.9);
}

/* Flame animations */
@keyframes flameBreathe {
  0%, 100% { transform: translateX(-50%) scaleY(1)    skewX(0deg); }
  50%      { transform: translateX(-50%) scaleY(1.04) skewX(0.5deg); }
}
@keyframes flameDance1 {
  0%, 100% { transform: translateX(-50%) scale(1, 1)      rotate(-1.5deg) translateY(0); }
  20%      { transform: translateX(-52%) scale(0.95, 1.08) rotate(2.5deg) translateY(-1px); }
  40%      { transform: translateX(-48%) scale(1.07, 0.94) rotate(-3deg)  translateY(1px); }
  60%      { transform: translateX(-50%) scale(1.02, 1.03) rotate(1.5deg) translateY(-0.5px); }
  80%      { transform: translateX(-51%) scale(0.98, 1.05) rotate(-2deg)  translateY(0.5px); }
}
@keyframes flameDance2 {
  0%, 100% { transform: translateX(-50%) scale(1, 1)       rotate(0.5deg)  translateY(0); }
  25%      { transform: translateX(-47%) scale(0.9, 1.1)   rotate(-2.5deg) translateY(-1.5px); }
  50%      { transform: translateX(-53%) scale(1.1, 0.92)  rotate(2deg)    translateY(1px); }
  75%      { transform: translateX(-49%) scale(0.95, 1.06) rotate(-1deg)   translateY(-0.5px); }
}
@keyframes flameDance3 {
  0%, 100% { transform: translateX(-50%) scale(1, 1)     rotate(0deg); }
  33%      { transform: translateX(-51%) scale(1.03, 0.96) rotate(-3deg); }
  66%      { transform: translateX(-49%) scale(0.97, 1.05) rotate(3deg); }
}
@keyframes flameCore {
  0%, 100% { transform: translateX(-50%) scale(1, 1); opacity: 1; }
  50%      { transform: translateX(-50%) scale(0.85, 1.15); opacity: 0.85; }
}
@keyframes flameGlow {
  0%, 100% { opacity: 1;   transform: translateX(-50%) scale(1); }
  50%      { opacity: 0.75; transform: translateX(-50%) scale(1.12); }
}
@keyframes flameBlowOut {
  0%   { opacity: 1; transform: translateX(-50%) scale(1, 1) rotate(0deg); }
  20%  { opacity: 1; transform: translateX(-30%) scale(0.6, 1.3) rotate(-35deg); }
  50%  { opacity: 0.7; transform: translateX(-20%) scale(0.3, 0.5) rotate(-55deg); }
  100% { opacity: 0; transform: translateX(-15%) scale(0.1, 0.1) rotate(-70deg); }
}

/* ── SMOKE (only when blowing out) ── */
.candle__smoke {
  position: absolute;
  top: 60px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 120px;
  pointer-events: none;
  opacity: 0;
}
.candle.is-blowing .candle__smoke { opacity: 1; }

.smoke {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(220, 220, 220, 0.55) 0%,
    rgba(180, 180, 180, 0.3) 50%,
    rgba(150, 150, 150, 0) 100%);
  filter: blur(4px);
  transform: translateX(-50%);
  opacity: 0;
}
.candle.is-blowing .smoke--1 { animation: smokeRise 2.4s ease-out 0s   forwards; }
.candle.is-blowing .smoke--2 { animation: smokeRise 2.6s ease-out 0.25s forwards; }
.candle.is-blowing .smoke--3 { animation: smokeRise 2.8s ease-out 0.5s  forwards; }
.candle.is-blowing .smoke--4 { animation: smokeRise 2.5s ease-out 0.8s  forwards; }

@keyframes smokeRise {
  0%   { opacity: 0;    transform: translateX(-50%) translateY(0) scale(0.5); }
  15%  { opacity: 0.75; transform: translateX(-48%) translateY(-15px) scale(0.8); }
  50%  { opacity: 0.5;  transform: translateX(-55%) translateY(-60px) scale(1.8); }
  80%  { opacity: 0.2;  transform: translateX(-45%) translateY(-100px) scale(2.5); }
  100% { opacity: 0;    transform: translateX(-52%) translateY(-130px) scale(3); }
}

/* ── SPARKS — occasional embers rising */
.candle__sparks {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 80px;
  pointer-events: none;
}
.spark {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff3b0 0%, #ffb060 60%, rgba(255,150,60,0) 100%);
  box-shadow: 0 0 6px #ffcb6a;
  opacity: 0;
}
.candle.is-lit .spark--1 { animation: sparkFly 3.5s linear infinite 0.2s; }
.candle.is-lit .spark--2 { animation: sparkFly 4.2s linear infinite 1.6s; }
.candle.is-lit .spark--3 { animation: sparkFly 5.1s linear infinite 3.0s; }

@keyframes sparkFly {
  0%   { opacity: 0; transform: translate(-50%, 0) scale(0.5); }
  10%  { opacity: 1; transform: translate(-52%, -15px) scale(1); }
  50%  { opacity: 0.8; transform: translate(-38%, -45px) scale(0.8); }
  90%  { opacity: 0.1; transform: translate(-60%, -75px) scale(0.3); }
  100% { opacity: 0; transform: translate(-55%, -85px) scale(0.2); }
}

/* ── WICK ── */
.candle__wick {
  position: absolute;
  top: 72px;
  left: 50%;
  transform: translateX(-50%);
  width: 3px;
  height: 16px;
  background: linear-gradient(to bottom, #1a0f05 0%, #2a1a08 50%, #1a0f05 100%);
  border-radius: 1px;
  z-index: 2;
  box-shadow: 0 0 2px rgba(0,0,0,0.5);
}
.candle__wick-ember {
  position: absolute;
  top: -1px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: radial-gradient(circle, #ffcb6a 0%, #ff7030 70%, transparent 100%);
  box-shadow: 0 0 6px #ff9040;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.candle.is-lit .candle__wick-ember {
  opacity: 1;
  animation: emberPulse 1.5s ease-in-out infinite;
}
@keyframes emberPulse {
  0%, 100% { opacity: 0.9; transform: translateX(-50%) scale(1); }
  50%      { opacity: 0.6; transform: translateX(-50%) scale(0.7); }
}

/* ── CANDLE BODY ── */
.candle__body {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  width: 66px;
  height: 240px;
  background:
    /* side shading */
    linear-gradient(to right,
      rgba(0,0,0,0.32) 0%,
      rgba(0,0,0,0.12) 12%,
      rgba(255,255,255,0.08) 35%,
      rgba(255,255,255,0.15) 50%,
      rgba(255,255,255,0.08) 65%,
      rgba(0,0,0,0.12) 88%,
      rgba(0,0,0,0.32) 100%),
    /* vertical color gradient */
    linear-gradient(to bottom,
      #efe6d0 0%,
      #e4d9bd 20%,
      #d6c9a3 55%,
      #c0b188 100%);
  border-radius: 6px 6px 3px 3px;
  box-shadow:
    inset 0 4px 10px rgba(255,255,255,0.35),
    inset 0 -18px 26px rgba(90,70,30,0.2),
    0 20px 40px rgba(0,0,0,0.5),
    0 0 30px rgba(255,160,80,0.05);
  overflow: hidden;
  transition: box-shadow 1s ease;
}
.candle.is-lit .candle__body {
  box-shadow:
    inset 0 4px 10px rgba(255,255,255,0.35),
    inset 0 -18px 26px rgba(90,70,30,0.2),
    0 20px 40px rgba(0,0,0,0.5),
    0 0 60px rgba(255,160,80,0.28),
    0 0 120px rgba(255,150,60,0.12);
}

/* Top rim — where wax pools */
.candle__body-rim {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 54px;
  height: 12px;
  background: radial-gradient(ellipse at center,
    #b8a777 0%,
    #8a7850 50%,
    #5a4a2d 100%);
  border-radius: 50%;
  box-shadow: inset 0 3px 4px rgba(0,0,0,0.5), inset 0 -1px 2px rgba(255,255,255,0.15);
  z-index: 1;
}

/* Melted wax pool glow */
.candle__wax-pool {
  position: absolute;
  top: 3px;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 8px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(255,170,80,0.6) 0%, rgba(180,110,40,0) 80%);
  filter: blur(2px);
  opacity: 0;
  transition: opacity 0.8s;
}
.candle.is-lit .candle__wax-pool {
  opacity: 1;
  animation: waxShimmer 2.5s ease-in-out infinite;
}
@keyframes waxShimmer {
  0%, 100% { opacity: 0.9; transform: translateX(-50%) scale(1); }
  50%      { opacity: 0.5; transform: translateX(-50%) scale(1.08); }
}

/* Texture — vertical streaks */
.candle__body-texture {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(90deg,
      transparent 0, transparent 6px,
      rgba(255,255,255,0.03) 6px, rgba(255,255,255,0.03) 7px,
      transparent 7px, transparent 16px,
      rgba(0,0,0,0.035) 16px, rgba(0,0,0,0.035) 17px),
    radial-gradient(ellipse at 30% 40%, rgba(255,255,255,0.08) 0%, transparent 40%);
  pointer-events: none;
  mix-blend-mode: overlay;
  opacity: 0.8;
}

/* Subtle vertical highlight strip */
.candle__highlight {
  position: absolute;
  top: 8%;
  left: 22%;
  width: 6px;
  height: 60%;
  background: linear-gradient(to bottom,
    rgba(255,255,255,0) 0%,
    rgba(255,255,255,0.28) 20%,
    rgba(255,255,255,0.18) 50%,
    rgba(255,255,255,0) 100%);
  border-radius: 50%;
  filter: blur(2px);
  pointer-events: none;
}

/* ── DRIPS — realistic wax streaks */
.candle__drip {
  position: absolute;
  background: linear-gradient(to bottom,
    #f0e6cd 0%,
    #dfd1a8 60%,
    #c0ae7e 100%);
  border-radius: 50% 50% 10px 10px / 40% 40% 10px 10px;
  box-shadow:
    inset -2px -1px 3px rgba(0,0,0,0.2),
    inset 2px 1px 2px rgba(255,255,255,0.25);
}
.candle__drip::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  height: 3px;
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(0,0,0,0.2) 0%, transparent 70%);
}

.candle__drip--1 {
  top: 14px;
  left: 6px;
  width: 8px;
  height: 52px;
}
.candle__drip--2 {
  top: 10px;
  right: 12px;
  width: 7px;
  height: 38px;
}
.candle__drip--3 {
  top: 18px;
  left: 28px;
  width: 6px;
  height: 28px;
}

/* ── BASE (candle holder) ── */
.candle__base {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 120px;
  height: 28px;
  background:
    radial-gradient(ellipse at 50% 10%,
      #4a3620 0%,
      #2e1f0f 55%,
      #120a04 100%);
  border-radius: 6px 6px 4px 4px;
  box-shadow:
    inset 0 3px 8px rgba(255,190,90,0.18),
    inset 0 -3px 6px rgba(0,0,0,0.65),
    0 6px 18px rgba(0,0,0,0.65);
  overflow: hidden;
}
.candle__base-shine {
  position: absolute;
  top: 2px;
  left: 10%;
  width: 80%;
  height: 4px;
  background: linear-gradient(to right,
    transparent,
    rgba(200,140,60,0.3) 30%,
    rgba(255,180,90,0.5) 50%,
    rgba(200,140,60,0.3) 70%,
    transparent);
  border-radius: 50%;
  filter: blur(1px);
  opacity: 0;
  transition: opacity 0.8s;
}
.candle.is-lit .candle__base-shine { opacity: 1; }

/* ── GROUND LIGHT — illuminates the floor around the candle */
.candle__ground-light {
  position: absolute;
  bottom: -40px;
  left: 50%;
  transform: translateX(-50%);
  width: 260px;
  height: 60px;
  border-radius: 50%;
  background: radial-gradient(ellipse,
    rgba(255, 180, 80, 0.4) 0%,
    rgba(255, 140, 50, 0.18) 35%,
    rgba(255, 120, 30, 0) 70%);
  filter: blur(14px);
  opacity: 0;
  transition: opacity 0.8s;
  pointer-events: none;
}
.candle.is-lit .candle__ground-light {
  opacity: 1;
  animation: groundLightPulse 2.6s ease-in-out infinite;
}
@keyframes groundLightPulse {
  0%, 100% { opacity: 1;   transform: translateX(-50%) scale(1); }
  50%      { opacity: 0.72; transform: translateX(-50%) scale(0.92); }
}

/* Candle body casts a long shadow on the ground */
.candle__shadow {
  position: absolute;
  bottom: -24px;
  left: 50%;
  transform: translateX(-50%);
  width: 180px;
  height: 14px;
  border-radius: 50%;
  background: radial-gradient(ellipse,
    rgba(0,0,0,0.55) 0%,
    rgba(0,0,0,0.25) 50%,
    rgba(0,0,0,0) 80%);
  filter: blur(3px);
  pointer-events: none;
  z-index: -1;
}

/* Subtle swaying of the whole candle like in a draft */
.candle.is-lit {
  animation: candleSway 7s ease-in-out infinite;
}
@keyframes candleSway {
  0%, 100% { transform: translateX(0) rotate(0deg); }
  25%      { transform: translateX(-0.5px) rotate(-0.15deg); }
  75%      { transform: translateX(0.5px)  rotate(0.15deg); }
}

/* Reduced-motion respect */
@media (prefers-reduced-motion: reduce) {
  .candle,
  .candle__flame,
  .flame,
  .candle__ground-light,
  .candle__halo,
  .candle__wax-pool { animation: none !important; }
}

/* ═══════════════════════════════════════════════
   LAST ADDED SECTION
   ═══════════════════════════════════════════════ */
.last-added {
  padding: 80px 32px 80px;
  position: relative;
  z-index: 2;
}
.last-added__inner {
  max-width: 1060px;
  margin: 0 auto;
}
.last-added__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-bottom: 40px;
}
@media (max-width: 860px) {
  .last-added__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .last-added__grid { grid-template-columns: 1fr; }
}
.last-added__more {
  text-align: center;
  padding-top: 10px;
}

/* Minimal card copy — reuse person-card from memory.css is optional,
   but we provide here to make index self-sufficient */
.last-added .person-card {
  display: block;
  text-decoration: none;
  background: rgba(255,255,255,0.028);
  border: 1px solid rgba(200,168,75,0.13);
  border-radius: 10px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.4,0,0.2,1);
  cursor: pointer;
  color: inherit;
}
.last-added .person-card:hover {
  border-color: rgba(200,168,75,0.34);
  transform: translateY(-6px) rotate(-0.5deg);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.last-added .person-card__photo {
  width: 100%;
  aspect-ratio: 4/5;
  background: #f5f0e8;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.last-added .person-card__photo-inner {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: rgba(200,168,75,0.18);
  border: 2px solid rgba(200,168,75,0.35);
  display: flex; align-items: center; justify-content: center;
}
.last-added .person-card__photo-inner svg {
  width: 36px; height: 36px; opacity: 0.5; fill: var(--gold-dim);
}
.last-added .person-card__body { padding: 22px 24px 26px; }
.last-added .person-card__name {
  font-family: var(--font-display);
  font-size: 20px; color: var(--cream);
  margin-bottom: 8px; line-height: 1.3; font-weight: 400;
  letter-spacing: -0.01em;
}
.last-added .person-card__dates {
  font-family: var(--font-ui);
  font-size: 12px; letter-spacing: 0.1em;
  color: var(--gold); margin-bottom: 6px; font-weight: 300;
}
.last-added .person-card__city {
  font-family: var(--font-body);
  font-size: 14px; color: var(--cream-dim); font-weight: 300;
}
.last-added .person-card__city::before {
  content: '◎ '; color: var(--gold-dim); font-size: 10px;
}



/* ═══════════════════════════════════════════════
   SITE-WIDE ANIMATIONS
   ═══════════════════════════════════════════════ */

/* Fade / rise in on scroll */
.fx-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s cubic-bezier(0.4,0,0.2,1),
              transform 0.9s cubic-bezier(0.4,0,0.2,1);
  will-change: opacity, transform;
}
.fx-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered children (applied to a parent) */
.fx-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.4,0,0.2,1);
}
.fx-stagger.is-visible > * { opacity: 1; transform: translateY(0); }
.fx-stagger.is-visible > *:nth-child(1) { transition-delay: 0.05s; }
.fx-stagger.is-visible > *:nth-child(2) { transition-delay: 0.18s; }
.fx-stagger.is-visible > *:nth-child(3) { transition-delay: 0.31s; }
.fx-stagger.is-visible > *:nth-child(4) { transition-delay: 0.44s; }
.fx-stagger.is-visible > *:nth-child(5) { transition-delay: 0.57s; }
.fx-stagger.is-visible > *:nth-child(6) { transition-delay: 0.70s; }

/* Hero initial entrance */
.hero__eyebrow,
.hero__title,
.hero__subtitle,
.hero__actions {
  opacity: 0;
  transform: translateY(16px);
  animation: heroEnter 1.1s cubic-bezier(0.2, 0.8, 0.2, 1) forwards;
}
.hero__eyebrow  { animation-delay: 0.15s; }
.hero__title    { animation-delay: 0.35s; }
.hero__subtitle { animation-delay: 0.7s;  }
.hero__actions  { animation-delay: 1.0s;  }

@keyframes heroEnter {
  to { opacity: 1; transform: translateY(0); }
}

/* Title shimmer — subtle golden sweep once per view */
.hero__title em {
  background: linear-gradient(
    90deg,
    var(--gold-light)  0%,
    #fff3c8             35%,
    var(--gold-light)  50%,
    var(--gold-light)  100%);
  background-size: 200% 100%;
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: shimmer 5s ease-in-out infinite;
}
@keyframes shimmer {
  0%   { background-position: 200% 50%; }
  50%  { background-position: 0% 50%; }
  100% { background-position: -200% 50%; }
}

/* Nav scroll state — background darkens on scroll */
.nav.is-scrolled {
  background: rgba(8,8,8,0.88);
  border-bottom-color: rgba(200,168,75,0.22);
  box-shadow: 0 6px 24px rgba(0,0,0,0.4);
}

/* Button ripple on hover */
.btn {
  position: relative;
  overflow: hidden;
}
.btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%),
    rgba(255,255,255,0.18) 0%,
    rgba(255,255,255,0) 40%);
  opacity: 0;
  transition: opacity 0.4s;
  pointer-events: none;
}
.btn:hover::before { opacity: 1; }

/* Pullquote breathing */
.pullquote {
  animation: quoteBreathe 6s ease-in-out infinite;
}
@keyframes quoteBreathe {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.85; }
}

/* Feature-card icon dance on hover */
.feature-card__icon {
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1.3), color 0.4s;
}
.feature-card:hover .feature-card__icon {
  transform: scale(1.25) rotate(8deg);
  color: var(--gold-light);
}

/* Pagination button click ripple */
.pagination__btn { position: relative; overflow: hidden; }
.pagination__btn:active { transform: scale(0.94); }

@media (prefers-reduced-motion: reduce) {
  .fx-reveal, .fx-stagger > * { opacity: 1; transform: none; transition: none; }
  .hero__eyebrow, .hero__title, .hero__subtitle, .hero__actions {
    opacity: 1; transform: none; animation: none;
  }
}



/* ═══════════════════════════════════════════════
   SKELETON LOADING STATES
   ═══════════════════════════════════════════════ */
@keyframes skelShimmer {
  0%   { background-position: -400px 0; }
  100% { background-position:  400px 0; }
}

.skel-block,
.skel-line {
  background: linear-gradient(
    90deg,
    rgba(200,168,75,0.06) 25%,
    rgba(200,168,75,0.13) 50%,
    rgba(200,168,75,0.06) 75%
  );
  background-size: 800px 100%;
  animation: skelShimmer 1.6s infinite linear;
  border-radius: 4px;
}

.skel-block {
  width: 100%;
  aspect-ratio: 4/5;
  background-color: rgba(255,255,255,0.04);
}

.skel-line {
  height: 16px;
  margin-bottom: 10px;
  width: 80%;
}
.skel-line--lg { height: 22px; width: 90%; }
.skel-line--sm { height: 12px; width: 55%; }

.person-card--skeleton {
  pointer-events: none;
  opacity: 0.6;
}
.person-card--skeleton .person-card__body { padding: 18px 20px 22px; }

/* ── Upload section ── */
.upload-section {
  margin-bottom: 60px;
}

.upload-form {
  max-width: 420px;
  margin: 0 auto;
  text-align: center;
}

.upload-label {
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  justify-content: center;
}

.upload-btn {
  display: inline-block;
  padding: 10px 24px;
  border: 1px solid rgba(200,168,75,0.35);
  border-radius: 4px;
  font-family: var(--font-body);
  font-size: 14px;
  letter-spacing: 0.08em;
  color: var(--gold-light);
  transition: all var(--transition);
  white-space: nowrap;
}
.upload-label:hover .upload-btn {
  background: rgba(200,168,75,0.08);
  border-color: var(--gold);
}

.upload-filename {
  font-family: var(--font-body);
  font-size: 13px;
  font-style: italic;
  color: var(--cream-dim);
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── Auth modal ── */
.auth-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(6px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.auth-modal {
  background: #111;
  border: 1px solid rgba(200,168,75,0.22);
  border-radius: 10px;
  padding: 48px 44px;
  width: min(420px, 92vw);
  position: relative;
  box-shadow: 0 30px 80px rgba(0,0,0,0.7);
}

.auth-modal__close {
  position: absolute;
  top: 16px; right: 20px;
  background: none;
  border: none;
  color: var(--cream-dim);
  font-size: 22px;
  cursor: pointer;
  transition: color var(--transition);
  line-height: 1;
  padding: 0;
}
.auth-modal__close:hover { color: var(--gold-light); }

.auth-modal__title {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 400;
  color: var(--cream);
  text-align: center;
  margin-bottom: 32px;
  letter-spacing: -0.01em;
}

.auth-modal__field { margin-bottom: 16px; }
.auth-modal__input {
  width: 100%;
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(200,168,75,0.2);
  border-radius: 4px;
  padding: 13px 16px;
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 16px;
  transition: border-color var(--transition);
}
.auth-modal__input:focus { outline: none; border-color: var(--gold); }
.auth-modal__input::placeholder { color: rgba(201,191,168,0.4); font-style: italic; }

.auth-modal__submit {
  width: 100%;
  margin-top: 8px;
  padding: 13px;
  background: linear-gradient(135deg, var(--gold-dim), var(--gold));
  border: none;
  border-radius: 4px;
  color: var(--black);
  font-family: var(--font-body);
  font-size: 15px;
  letter-spacing: 0.08em;
  cursor: pointer;
  transition: all var(--transition);
}
.auth-modal__submit:hover {
  background: linear-gradient(135deg, var(--gold), var(--gold-light));
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(200,168,75,0.3);
}

.auth-modal__error {
  color: #e08060;
  font-size: 14px;
  font-family: var(--font-body);
  font-style: italic;
  text-align: center;
  margin-top: 12px;
  min-height: 20px;
}

.auth-modal__switch {
  text-align: center;
  margin-top: 20px;
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--cream-dim);
}
.auth-modal__switch a {
  color: var(--gold);
  text-decoration: none;
  cursor: pointer;
}
.auth-modal__switch a:hover { color: var(--gold-light); }

/* nav auth button */
.nav__auth {
  font-family: var(--font-body);
  font-size: 14px;
  letter-spacing: 0.06em;
  color: var(--gold);
  cursor: pointer;
  background: none;
  border: 1px solid rgba(200,168,75,0.3);
  border-radius: 3px;
  padding: 5px 14px;
  transition: all var(--transition);
  text-decoration: none;
}
.nav__auth:hover {
  background: rgba(200,168,75,0.08);
  border-color: var(--gold);
  color: var(--gold-light);
}



/* ═══════════════════════════════════════════════
   BURGER MENU (mobile nav)
   ═══════════════════════════════════════════════ */
.nav__burger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: 1px solid rgba(200,168,75,0.25);
  border-radius: 4px;
  cursor: pointer;
  padding: 0;
  transition: border-color var(--transition);
  flex-shrink: 0;
}
.nav__burger:hover { border-color: var(--gold); }
.nav__burger span {
  display: block;
  width: 18px; height: 1.5px;
  background: var(--cream-dim);
  border-radius: 1px;
  transition: transform 0.3s ease, opacity 0.3s ease, background 0.3s;
}
.nav__burger--open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); background: var(--gold); }
.nav__burger--open span:nth-child(2) { opacity: 0; }
.nav__burger--open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); background: var(--gold); }

@media (max-width: 768px) {
  .nav__burger { display: flex; }

  .nav__links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0; right: 0;
    background: rgba(8,8,8,0.97);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(200,168,75,0.15);
    flex-direction: column;
    gap: 0;
    padding: 8px 0 16px;
    z-index: 99;
  }
  .nav__links--open { display: flex; }
  .nav__links li { width: 100%; }
  .nav__link {
    display: block;
    padding: 14px 32px;
    font-size: 17px;
    border-bottom: 1px solid rgba(200,168,75,0.06);
  }
  .nav__link::after { display: none; }
}

/* ═══════════════════════════════════════════════
   FEATURED PERSON — живая карточка на главной
   ═══════════════════════════════════════════════ */
.featured-person {
  padding: 40px 32px 80px;
  position: relative;
  z-index: 2;
}

.featured-person__inner {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}
.featured-person__inner > .hero__eyebrow {
  margin-bottom: 32px;
  display: block;
}

.featured-person__card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 50px;
  align-items: start;
  background: rgba(255,255,255,0.025);
  border: 1px solid rgba(200,168,75,0.15);
  border-radius: 12px;
  padding: 44px 48px;
  text-align: left;
  position: relative;
  overflow: hidden;
  transition: border-color 0.5s, box-shadow 0.5s;
}
.featured-person__card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.featured-person__card:hover {
  border-color: rgba(200,168,75,0.3);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

@media (max-width: 700px) {
  .featured-person__card {
    grid-template-columns: 1fr;
    padding: 28px 24px;
    gap: 24px;
    text-align: center;
  }
}

.featured-person__photo {
  width: 220px;
  aspect-ratio: 4/5;
  border-radius: 6px;
  background: #f5f0e8;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 2px solid rgba(245,240,232,0.5);
  box-shadow: 0 12px 40px rgba(0,0,0,0.4);
  transform: rotate(-1deg);
  transition: transform 0.5s;
}
.featured-person__card:hover .featured-person__photo { transform: rotate(0deg); }
.featured-person__photo img { width: 100%; height: 100%; object-fit: cover; }

.featured-person__avatar {
  width: 80px; height: 80px;
  border-radius: 50%;
  background: rgba(200,168,75,0.12);
  border: 2px solid rgba(200,168,75,0.25);
  display: flex; align-items: center; justify-content: center;
}
.featured-person__avatar svg { width: 40px; height: 40px; fill: var(--gold-dim); opacity: 0.5; }

@media (max-width: 700px) {
  .featured-person__photo { width: 140px; margin: 0 auto; }
}

.featured-person__name {
  font-family: var(--font-display);
  font-size: clamp(22px, 3.5vw, 32px);
  font-weight: 400;
  color: var(--cream);
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.featured-person__meta {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.14em;
  color: var(--gold);
  margin-bottom: 18px;
  text-transform: uppercase;
}

.featured-person__bio {
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 300;
  font-style: italic;
  color: var(--cream-dim);
  line-height: 1.75;
  margin-bottom: 22px;
}

.featured-person__quote {
  border-left: 2px solid rgba(200,168,75,0.3);
  padding-left: 20px;
  margin-bottom: 24px;
}
.featured-person__quote p {
  font-family: var(--font-body);
  font-size: 17px;
  font-style: italic;
  color: var(--cream-dim);
  line-height: 1.7;
  margin-bottom: 8px;
}
.featured-person__quote cite {
  font-family: var(--font-ui);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--gold-dim);
  font-style: normal;
}

.featured-person__link {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  text-decoration: none;
  transition: color var(--transition), letter-spacing var(--transition);
}
.featured-person__link:hover {
  color: var(--gold-light);
  letter-spacing: 0.18em;
}

/* ═══════════════════════════════════════════════
   SEARCH BAR — memory page
   ═══════════════════════════════════════════════ */
.memory-search {
  margin-bottom: 36px;
}

.memory-search__inner {
  display: flex;
  align-items: center;
  gap: 0;
  max-width: 520px;
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(200,168,75,0.2);
  border-radius: 6px;
  overflow: hidden;
  transition: border-color 0.35s;
}
.memory-search__inner:focus-within {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(200,168,75,0.1);
}

.memory-search__icon {
  padding: 0 14px;
  color: var(--gold-dim);
  font-size: 20px;
  line-height: 1;
  flex-shrink: 0;
  user-select: none;
}

.memory-search__input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 300;
  padding: 13px 0;
}
.memory-search__input::placeholder { color: rgba(201,191,168,0.35); font-style: italic; }
.memory-search__input::-webkit-search-cancel-button { -webkit-appearance: none; display: none; }
.memory-search__input::-ms-clear { display: none; }

.memory-search__clear {
  width: 36px; height: 36px;
  margin-right: 4px;
  border-radius: 50%;
  border: none;
  background: rgba(200,168,75,0.1);
  color: var(--cream-dim);
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.3s;
}
.memory-search__clear:hover { background: rgba(200,168,75,0.2); color: var(--gold-light); }

/* ═══════════════════════════════════════════════
   EMPTY STATE
   ═══════════════════════════════════════════════ */
.memory-empty {
  grid-column: 1 / -1;
  padding: 80px 20px;
  text-align: center;
}
.memory-empty__icon {
  display: block;
  font-size: 36px;
  color: var(--gold-dim);
  margin-bottom: 20px;
  opacity: 0.5;
  animation: orbFloat 4s ease-in-out infinite;
}
.memory-empty__text {
  font-family: var(--font-body);
  font-size: 20px;
  font-style: italic;
  color: var(--cream-dim);
  line-height: 1.6;
}



/* ═══════════════════════════════════════════════
   PROGRESS BAR (injected by nav.js)
   ═══════════════════════════════════════════════ */
#page-progress {
  position: fixed;
  top: 0; left: 0;
  height: 2px;
  width: 0;
  background: linear-gradient(90deg, var(--gold-dim), var(--gold-light), var(--gold));
  z-index: 9999;
  transition: width 0.2s ease, opacity 0.5s ease;
  pointer-events: none;
  box-shadow: 0 0 8px rgba(200,168,75,0.6);
}

/* ═══════════════════════════════════════════════
   SCROLL TO TOP (injected by nav.js)
   ═══════════════════════════════════════════════ */
#scroll-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 1px solid rgba(200,168,75,0.35);
  background: rgba(8,8,8,0.8);
  backdrop-filter: blur(8px);
  color: var(--gold-light);
  font-family: var(--font-body);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.35s, transform 0.35s, border-color 0.35s, background 0.35s;
  pointer-events: none;
}
#scroll-top.scroll-top--visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
#scroll-top:hover {
  border-color: var(--gold);
  background: rgba(200,168,75,0.12);
  color: var(--gold-light);
}
@media (max-width: 560px) {
  #scroll-top { bottom: 20px; right: 16px; width: 40px; height: 40px; font-size: 17px; }
}

/* ═══════════════════════════════════════════════
   PAGE TRANSITIONS — body opacity
   ═══════════════════════════════════════════════ */
body {
  opacity: 1;
  transition: opacity 0.28s ease;
}
body.page-loaded  { opacity: 1; }
body.page-leaving { opacity: 0; pointer-events: none; }

/* ═══════════════════════════════════════════════
   AGE BADGE on cards
   ═══════════════════════════════════════════════ */
.person-card__age {
  display: inline-block;
  margin-left: 8px;
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 300;
  letter-spacing: 0.06em;
  color: var(--gold-dim);
  background: rgba(200,168,75,0.08);
  border: 1px solid rgba(200,168,75,0.18);
  border-radius: 20px;
  padding: 1px 7px;
  vertical-align: middle;
}

/* ═══════════════════════════════════════════════
   BREADCRUMBS (injected by person.js)
   ═══════════════════════════════════════════════ */
.breadcrumb {
  position: relative;
  z-index: 2;
  padding: calc(var(--nav-h) + 24px) 32px 0;
  max-width: 1000px;
  margin: 0 auto;
}
.breadcrumb__list {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.breadcrumb__item {
  display: flex;
  align-items: center;
  gap: 6px;
}
.breadcrumb__item + .breadcrumb__item::before {
  content: '›';
  color: var(--gold-dim);
  font-size: 14px;
  opacity: 0.6;
}
.breadcrumb__link {
  font-family: var(--font-script);
  font-size: 17px;
  color: var(--gold-dim);
  text-decoration: none;
  transition: color var(--transition);
}
.breadcrumb__link:hover { color: var(--gold-light); }
.breadcrumb__current {
  font-family: var(--font-script);
  font-size: 17px;
  color: var(--cream-dim);
  max-width: 280px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ═══════════════════════════════════════════════
   IMPROVED FOOTER with nav links
   ═══════════════════════════════════════════════ */
.footer {
  padding: 0;
  border-top: 1px solid rgba(200,168,75,0.10);
  position: relative;
  z-index: 2;
}
.footer__top {
  max-width: 1100px;
  margin: 0 auto;
  padding: 48px 32px 36px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 40px;
  align-items: start;
}
@media (max-width: 760px) {
  .footer__top { grid-template-columns: 1fr; gap: 28px; text-align: center; }
  .footer__nav { justify-content: center; }
}
.footer__logo-wrap {}
.footer__logo {
  font-family: var(--font-script);
  font-size: 28px;
  color: var(--gold-dim);
  display: block;
  margin-bottom: 8px;
}
.footer__tagline {
  font-family: var(--font-body);
  font-size: 13px;
  font-style: italic;
  color: rgba(201,191,168,0.45);
}
.footer__nav {
  display: flex;
  gap: 6px 24px;
  flex-wrap: wrap;
  padding-top: 4px;
}
.footer__nav-link {
  font-family: var(--font-body);
  font-size: 14px;
  font-style: italic;
  color: var(--cream-dim);
  text-decoration: none;
  transition: color var(--transition);
}
.footer__nav-link:hover { color: var(--gold-light); }
.footer__quote {
  font-family: var(--font-script);
  font-size: 16px;
  color: rgba(200,168,75,0.3);
  text-align: right;
  line-height: 1.6;
}
@media (max-width: 760px) { .footer__quote { text-align: center; } }

.footer__bottom {
  border-top: 1px solid rgba(200,168,75,0.06);
  padding: 16px 32px;
}
.footer__inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.footer__copy {
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 300;
  letter-spacing: 0.08em;
  color: rgba(201,191,168,0.35);
}

/* ═══════════════════════════════════════════════
   GLOBAL SELECT & OPTION DARK MODE STYLING
   ═══════════════════════════════════════════════ */
select option {
  background-color: #1a1a1a !important;
  color: #f5f0e8 !important;
  padding: 8px;
}

select option:checked {
  background-color: var(--gold, #c8a84b) !important;
  color: #121212 !important;
}

select option:hover {
  background-color: rgba(200, 168, 75, 0.2) !important;
  color: var(--gold-light, #e2c97e) !important;
}


/* ── SPLIT HERO SECTION ── */
.hero--split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}

.hero--split .hero__inner {
  text-align: left;
  max-width: 100%;
}

.hero--split .hero__subtitle {
  margin: 0 0 44px 0;
  max-width: 600px;
}

.hero--split .hero__actions {
  justify-content: flex-start;
}

.hero__visual {
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1000px;
  position: relative;
  z-index: 2;
  animation: visualFadeIn 1s cubic-bezier(0.4, 0, 0.2, 1) 0.5s both;
}

@keyframes visualFadeIn {
  from { opacity: 0; transform: translateY(30px) rotateY(-5deg); }
  to { opacity: 1; transform: translateY(0) rotateY(0); }
}

@media (max-width: 900px) {
  .hero--split {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 60px;
    padding-top: 0;
  }
  .hero--split .hero__inner {
    text-align: center;
  }
  .hero--split .hero__subtitle {
    margin: 0 auto 44px;
  }
  .hero--split .hero__actions {
    justify-content: center;
  }
}

/* ── REALISTIC METALLIC QR PLAQUE ── */
.qr-plaque {
  position: relative;
  width: 280px;
  height: 380px;
  background: linear-gradient(135deg, #1f1d16 0%, #0d0c09 50%, #171510 100%);
  border: 1px solid rgba(200, 168, 75, 0.35);
  box-shadow: 
    0 10px 40px rgba(0, 0, 0, 0.6),
    inset 0 0 20px rgba(200, 168, 75, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  border-radius: 8px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  text-align: center;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.5s;
  overflow: hidden;
  transform-style: preserve-3d;
}

.qr-plaque:hover {
  transform: translateY(-8px) rotateX(4deg) rotateY(-4deg);
  box-shadow: 
    -10px 20px 50px rgba(0, 0, 0, 0.7),
    0 0 15px rgba(200, 168, 75, 0.15),
    inset 0 0 25px rgba(200, 168, 75, 0.12);
}

.qr-plaque__border {
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(200, 168, 75, 0.18);
  pointer-events: none;
  border-radius: 4px;
}

/* Plaque Corner Screws/Bolts */
.qr-plaque__bolt {
  position: absolute;
  width: 8px;
  height: 8px;
  background: radial-gradient(circle, #e2c97e 0%, #8a7035 80%);
  border-radius: 50%;
  box-shadow: 0 1px 2px rgba(0,0,0,0.4);
}
.qr-plaque__bolt::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 1px;
  width: 6px;
  height: 1px;
  background: rgba(8,8,8,0.6);
  transform: rotate(45deg);
}
.qr-plaque__bolt--tl { top: 16px; left: 16px; }
.qr-plaque__bolt--tr { top: 16px; right: 16px; }
.qr-plaque__bolt--bl { bottom: 16px; left: 16px; }
.qr-plaque__bolt--br { bottom: 16px; right: 16px; }

.qr-plaque__content {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

.qr-plaque__header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.qr-plaque__candle {
  font-size: 16px;
}

.qr-plaque__title {
  font-family: var(--font-display);
  font-size: 14px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold-light);
  font-weight: 400;
}

.qr-plaque__qr-wrapper {
  background: #ffffff;
  padding: 12px;
  border-radius: 4px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 16px 0;
  transition: transform var(--transition);
}

.qr-plaque:hover .qr-plaque__qr-wrapper {
  transform: scale(1.02);
}

.qr-plaque__qr {
  width: 140px;
  height: 140px;
}

.qr-plaque__qr path {
  fill: #111111; /* Clean black QR code blocks */
}

.qr-plaque__instruction {
  font-family: var(--font-ui);
  font-size: 10px;
  line-height: 1.6;
  letter-spacing: 0.08em;
  color: var(--cream-dim);
  text-transform: uppercase;
  margin-bottom: 4px;
}

.qr-plaque__footer {
  font-family: var(--font-ui);
  font-size: 9px;
  letter-spacing: 0.25em;
  color: var(--gold-dim);
  margin-bottom: 6px;
  font-weight: 400;
}

/* Shimmer reflection effect */
.qr-plaque__shimmer {
  position: absolute;
  top: 0; left: -150%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.03) 30%,
    rgba(255, 255, 255, 0.12) 50%,
    rgba(255, 255, 255, 0.03) 70%,
    transparent 100%
  );
  transform: skewX(-20deg);
  transition: none;
  pointer-events: none;
  z-index: 1;
}

.qr-plaque:hover .qr-plaque__shimmer {
  left: 150%;
  transition: left 1.2s ease-in-out;
}

/* ── PRODUCT STEPS SECTION ── */
.qr-steps {
  padding: 90px 32px 100px;
  background: var(--black-soft);
  border-top: 1px solid rgba(200,168,75,0.06);
  border-bottom: 1px solid rgba(200,168,75,0.06);
}

.qr-steps__inner {
  max-width: 1100px;
  margin: 0 auto;
}

.qr-steps__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 56px;
}

@media (max-width: 850px) {
  .qr-steps__grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.step-card {
  background: rgba(255,255,255,0.015);
  border: 1px solid rgba(200,168,75,0.08);
  border-radius: 8px;
  padding: 44px 32px;
  position: relative;
  transition: all var(--transition);
  overflow: hidden;
}

.step-card:hover {
  border-color: rgba(200,168,75,0.25);
  transform: translateY(-4px);
  background: rgba(255,255,255,0.025);
}

.step-card__num {
  font-family: var(--font-display);
  font-size: 56px;
  font-style: italic;
  line-height: 1;
  color: rgba(200, 168, 75, 0.15);
  position: absolute;
  top: 24px;
  right: 32px;
  font-weight: 700;
  transition: color var(--transition);
}

.step-card:hover .step-card__num {
  color: rgba(200, 168, 75, 0.32);
}

.step-card__icon {
  font-size: 28px;
  margin-bottom: 24px;
  display: inline-block;
  filter: drop-shadow(0 0 10px rgba(200,168,75,0.25));
}

.step-card__title {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 400;
  color: var(--cream);
  margin-bottom: 16px;
  letter-spacing: -0.01em;
}

.step-card__text {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 300;
  color: var(--cream-dim);
  line-height: 1.75;
}


/* ── SHOWCASE SECTION ── */
.showcase {
  padding: 80px 32px;
  position: relative;
  z-index: 2;
}

.showcase__inner {
  max-width: 1050px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 90px;
}

.showcase__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 56px;
}

.showcase__item--reverse {
  flex-direction: row-reverse;
}

@media (max-width: 850px) {
  .showcase__item, .showcase__item--reverse {
    flex-direction: column;
    text-align: center;
    gap: 36px;
  }
  .showcase__text {
    max-width: 100%;
  }
  .showcase__preview {
    height: auto !important;
    aspect-ratio: 16 / 10 !important;
    max-width: 100% !important;
  }
}

.showcase__text {
  max-width: 480px;
  text-align: left;
}

@media (max-width: 850px) {
  .showcase__text {
    text-align: center;
  }
}

.showcase__tag {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 300;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 12px;
}

.showcase__name {
  font-family: var(--font-display);
  font-size: clamp(26px, 4vw, 34px);
  font-weight: 400;
  color: var(--cream);
  margin-bottom: 20px;
  letter-spacing: -0.01em;
}

.showcase__desc {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 300;
  color: var(--cream-dim);
  line-height: 1.8;
  margin-bottom: 28px;
}

.showcase__preview {
  width: 100%;
  max-width: 420px;
  height: 280px;
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(200, 168, 75, 0.12);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  transition: border-color var(--transition), transform var(--transition);
}

.showcase__item:hover .showcase__preview {
  border-color: rgba(200, 168, 75, 0.28);
  transform: translateY(-4px);
}

/* ── FEATURE SCREENSHOTS PRESENTATION ── */
.feature-image-container {
  position: relative;
  width: 100%;
  max-width: 480px;
  aspect-ratio: 16 / 10;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(15, 15, 15, 0.6);
  border: 1px solid rgba(200, 168, 75, 0.15);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), inset 0 1px 2px rgba(255, 255, 255, 0.05);
  transform-style: preserve-3d;
  perspective: 1000px;
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1), border-color 0.4s, box-shadow 0.4s;
}

.feature-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.feature-image-glare {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0) 50%, rgba(0, 0, 0, 0.15) 100%);
  pointer-events: none;
  z-index: 2;
  transition: opacity 0.4s;
}

.feature-image-glow {
  position: absolute;
  inset: -20px;
  background: radial-gradient(circle, rgba(200, 168, 75, 0.08) 0%, transparent 70%);
  opacity: 0;
  z-index: 1;
  pointer-events: none;
  transition: opacity 0.4s;
}

/* Hover effects with 3D tilting perspective */
.showcase__item:hover .feature-image-container {
  transform: rotateY(-8deg) rotateX(4deg) scale(1.02);
  border-color: rgba(200, 168, 75, 0.35);
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.7), 0 0 30px rgba(200, 168, 75, 0.15);
}

.showcase__item--reverse:hover .feature-image-container {
  transform: rotateY(8deg) rotateX(4deg) scale(1.02);
}

.showcase__item:hover .feature-image {
  transform: scale(1.03);
}

.showcase__item:hover .feature-image-glow {
  opacity: 1;
}

.showcase__item:hover .feature-image-glare {
  opacity: 0.5;
}

/* ═══════════════════════════════════════════════
   3D CONSTRUCTOR SECTION
   ═══════════════════════════════════════════════ */
.constructor-3d {
  position: relative;
  z-index: 2;
  background: var(--black);
  height: 100dvh;
  min-height: 800px;
  width: 100%;
  overflow: hidden;
  padding: 0;
}

.constructor-3d__inner {
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.constructor-3d__text-header {
  position: absolute;
  top: calc(var(--nav-h) + 40px);
  left: 0;
  right: 0;
  text-align: center;
  z-index: 10;
  pointer-events: auto;
}

.constructor-3d__subtitle {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 300;
  color: var(--cream-dim);
  line-height: 1.8;
  margin-top: -30px;
}

.constructor-3d__grid {
  display: block;
}

@media (max-width: 992px) {
  .constructor-3d__grid {
    display: block;
  }
}

.constructor-3d__visual-col {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: auto;
}

.constructor-3d__canvas-container {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 0;
  background: transparent;
  cursor: grab;
}

.constructor-3d__canvas-container:active {
  cursor: grabbing;
}

@media (max-width: 768px) {
  .constructor-3d__canvas-container {
    height: 100%;
  }
}

.constructor-3d__canvas-loader {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: var(--black);
  z-index: 50;
  transition: opacity 0.8s ease;
  gap: 16px;
}

.constructor-3d__canvas-loader.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.constructor-3d__canvas-loader .spinner {
  width: 40px;
  height: 40px;
  border: 2px solid rgba(200, 168, 75, 0.2);
  border-top-color: var(--gold-light);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.constructor-3d__canvas-loader span {
  font-family: var(--font-ui);
  font-size: 12px;
  color: var(--cream-dim);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.constructor-3d__hint-overlay {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(8, 8, 8, 0.72);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(200, 168, 75, 0.12);
  border-radius: 30px;
  padding: 8px 20px;
  pointer-events: none;
}

.constructor-3d__hint-text {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 14px;
  color: var(--cream-dim);
  white-space: nowrap;
}

.constructor-3d__controls-col {
  position: absolute;
  bottom: 40px;
  right: 40px;
  width: 360px;
  z-index: 10;
  pointer-events: auto;
}

.constructor-3d__panel {
  background: rgba(8, 8, 8, 0.6);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(200, 168, 75, 0.12);
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.constructor-3d__panel-title {
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 300;
  color: var(--gold);
  letter-spacing: 0.28em;
  text-transform: uppercase;
  text-align: center;
  border-bottom: 1px solid rgba(200, 168, 75, 0.1);
  padding-bottom: 16px;
  margin-bottom: 24px;
}

.constructor-3d__form-group {
  margin-bottom: 24px;
}

.constructor-3d__label {
  display: block;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 300;
  color: var(--cream-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 10px;
}

.constructor-3d__input {
  width: 100%;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(200, 168, 75, 0.2);
  border-radius: var(--radius);
  color: var(--cream);
  padding: 12px 16px;
  font-family: var(--font-body);
  font-size: 16px;
  font-style: italic;
  transition: border-color var(--transition);
}

.constructor-3d__input:focus {
  outline: none;
  border-color: var(--gold);
}

.constructor-3d__metals-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.metal-btn {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: all var(--transition);
}

.metal-btn:hover {
  background: rgba(200, 168, 75, 0.05);
}

.metal-btn--active {
  border-color: var(--gold);
  background: rgba(200, 168, 75, 0.1);
}

.metal-btn__circle {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  margin-bottom: 8px;
  border: 1px solid rgba(200, 168, 75, 0.2);
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.4);
}

.metal-btn__circle--gold {
  background: linear-gradient(135deg, #8a7035 0%, #e2c97e 100%);
}

.metal-btn__circle--bronze {
  background: linear-gradient(135deg, #3a2810 0%, #8a7035 100%);
}

.metal-btn__circle--silver {
  background: linear-gradient(135deg, #7a7a7a 0%, #f5efe0 100%);
}

.metal-btn__name {
  font-family: var(--font-ui);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--cream);
}

.constructor-3d__slider-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 8px;
}

.constructor-3d__slider-val {
  font-family: var(--font-body);
  font-style: italic;
  font-size: 14px;
  color: var(--gold-light);
}

.constructor-3d__range-input {
  width: 100%;
  height: 2px;
  background: rgba(200, 168, 75, 0.2);
  border-radius: 2px;
  appearance: none;
  cursor: pointer;
  outline: none;
}

.constructor-3d__range-input::-webkit-slider-thumb {
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--gold);
  transition: transform 0.15s;
}

.constructor-3d__range-input::-webkit-slider-thumb:hover {
  transform: scale(1.3);
}

.constructor-3d__footer {
  border-top: 1px solid rgba(200, 168, 75, 0.1);
  padding-top: 24px;
  margin-top: 24px;
}

.constructor-3d__toggle-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

/* Switch styling */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 20px;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-switch__slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: var(--black-soft);
  border: 1px solid rgba(200, 168, 75, 0.2);
  border-radius: 20px;
  transition: .4s;
}

.toggle-switch__slider::before {
  position: absolute;
  content: "";
  height: 14px;
  width: 14px;
  left: 2px;
  bottom: 2px;
  background-color: var(--cream-dim);
  border-radius: 50%;
  transition: .4s;
}

.toggle-switch input:checked + .toggle-switch__slider {
  background-color: var(--gold);
}

.toggle-switch input:checked + .toggle-switch__slider::before {
  transform: translateX(20px);
  background-color: var(--black);
}

.constructor-3d__submit-btn {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 16px;
  font-family: var(--font-ui);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}

/* ═══════════════════════════════════════════════
   HERO 3D CANVAS STYLES
   ═══════════════════════════════════════════════ */
.hero-canvas-container {
  position: relative;
  width: 348px;
  height: 468px;
  border-radius: 12px;
  overflow: hidden;
  cursor: grab;
  border: none;
  background: transparent;
  transition: transform var(--transition);
  touch-action: pan-y;
}

.hero-canvas-container:active {
  cursor: grabbing;
}

.hero-canvas-container:hover {
  transform: translateY(-4px);
}

.hero-canvas-loader {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #080808;
  z-index: 50;
  transition: opacity 0.8s ease;
}

.hero-canvas-loader.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.hero-canvas-loader .spinner {
  width: 30px;
  height: 30px;
  border: 2px solid rgba(200, 168, 75, 0.2);
  border-top-color: var(--gold-light);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}




/* ── Telegram deep-link login button (Phase 3) ── */
.auth-modal__divider {
    display: flex;
    align-items: center;
    text-align: center;
    margin: 16px 0;
    color: rgba(255, 255, 255, 0.5);
    font-size: 13px;
}
.auth-modal__divider::before,
.auth-modal__divider::after {
    content: '';
    flex: 1;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}
.auth-modal__divider span { padding: 0 12px; }
.auth-modal__tg-btn {
    width: 100%;
    padding: 12px 16px;
    background: #229ED9;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.auth-modal__tg-btn:hover:not(:disabled) { background: #1e89bd; }
.auth-modal__tg-btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* ═══════════════════════════════════════════════
   PAGE TRANSITIONS — Fade overlay
   ═══════════════════════════════════════════════ */

.page-transition-overlay {
  position: fixed;
  inset: 0;
  background: #080808;
  z-index: 99999;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.page-transition-overlay:not(.page-transition--visible) {
  opacity: 0;
}

.page-transition-overlay.page-transition--visible {
  opacity: 1;
}

/* ═══════════════════════════════════════════════
   AMBIENT SOUND TOGGLE BUTTON
   ═══════════════════════════════════════════════ */

.ambient-toggle {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 9000;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(200, 168, 75, 0.25);
  background: rgba(12, 12, 12, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: rgba(200, 168, 75, 0.5);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.ambient-toggle:hover {
  border-color: rgba(200, 168, 75, 0.5);
  color: rgba(200, 168, 75, 0.9);
  transform: scale(1.08);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.4), 0 0 12px rgba(200, 168, 75, 0.15);
}

.ambient-toggle--active {
  border-color: rgba(200, 168, 75, 0.7);
  color: #d4af37;
  background: rgba(200, 168, 75, 0.12);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3), 0 0 20px rgba(200, 168, 75, 0.2);
}

@keyframes ambientPulse {
  0%, 100% { box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3), 0 0 12px rgba(200, 168, 75, 0.15); }
  50% { box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3), 0 0 24px rgba(200, 168, 75, 0.3); }
}

.ambient-toggle--active {
  animation: ambientPulse 3s ease-in-out infinite;
}

.ambient-toggle__icon {
  width: 20px;
  height: 20px;
  display: none;
}

.ambient-toggle__icon--off {
  display: block;
}

.ambient-toggle--active .ambient-toggle__icon--off {
  display: none;
}

.ambient-toggle--active .ambient-toggle__icon--on {
  display: block;
}

@media (max-width: 600px) {
  .ambient-toggle {
    bottom: 16px;
    left: 16px;
    width: 38px;
    height: 38px;
  }
  .ambient-toggle__icon {
    width: 16px;
    height: 16px;
  }
}

/* ═══════════════════════════════════════════════
   TESTIMONIALS SECTION
   ═══════════════════════════════════════════════ */
.testimonials {
  padding: 80px 32px;
  position: relative;
  z-index: 2;
}

.testimonials__inner {
  max-width: 1050px;
  margin: 0 auto;
}

.testimonials__subtitle {
  text-align: center;
  font-family: var(--font-body);
  font-size: 16px;
  font-style: italic;
  color: var(--cream-dim);
  margin-top: -30px;
  margin-bottom: 56px;
}

.testimonials__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 48px;
}

.testimonial-card {
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(200, 168, 75, 0.08);
  border-radius: 12px;
  padding: 40px 32px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all var(--transition);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.testimonial-card:hover {
  border-color: rgba(200, 168, 75, 0.28);
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.035);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(200, 168, 75, 0.1);
}

.testimonial-card__quote-mark {
  font-family: var(--font-display);
  font-size: 80px;
  font-style: italic;
  font-weight: 700;
  line-height: 1;
  color: rgba(200, 168, 75, 0.12);
  position: absolute;
  top: 15px;
  left: 20px;
  pointer-events: none;
}

.testimonial-card__lead {
  font-family: var(--font-display);
  font-size: 17px;
  font-style: italic;
  font-weight: 500;
  color: var(--cream);
  line-height: 1.45;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}

.testimonial-card__text {
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 300;
  color: var(--cream-dim);
  line-height: 1.75;
  margin-bottom: 28px;
  position: relative;
  z-index: 1;
}

.testimonial-card__header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  position: relative;
  z-index: 1;
}

.testimonial-card__avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(200, 168, 75, 0.2);
  background: var(--black-soft);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: border-color var(--transition);
}

.testimonial-card:hover .testimonial-card__avatar {
  border-color: var(--gold);
}

.testimonial-card__meta {
  display: flex;
  flex-direction: column;
}

.testimonial-card__name {
  display: block;
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--cream);
  font-weight: 500;
  line-height: 1.2;
}

.testimonial-card__city {
  font-family: var(--font-ui);
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 4px;
  font-weight: 300;
  letter-spacing: 0.05em;
}

.testimonial-card__relation {
  margin-top: auto;
  display: block;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gold);
  border-top: 1px solid rgba(200, 168, 75, 0.1);
  padding-top: 16px;
}

@media (max-width: 850px) {
  .testimonials {
    padding: 60px 24px;
  }
  .testimonials__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .testimonial-card {
    padding: 32px 24px;
  }
}

/* ═══════════════════════════════════════════════
   FAQ SECTION
   ═══════════════════════════════════════════════ */
.faq-section {
  padding: 80px 32px;
  position: relative;
  z-index: 2;
}

.faq-section__inner {
  max-width: 820px;
  margin: 0 auto;
}

.faq-section__list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 48px;
}

.faq-card {
  background: rgba(255, 255, 255, 0.015);
  border: 1px solid rgba(200, 168, 75, 0.08);
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.faq-card[open] {
  border-color: rgba(200, 168, 75, 0.25);
  background: rgba(255, 255, 255, 0.035);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.3), 0 0 15px rgba(200, 168, 75, 0.05);
}

.faq-card__question {
  cursor: pointer;
  padding: 24px 32px;
  font-family: var(--font-display);
  font-size: 18px;
  color: var(--cream);
  font-weight: 400;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color 0.3s;
}

.faq-card__question::-webkit-details-marker {
  display: none;
}

.faq-card__question::after {
  content: "+";
  font-family: var(--font-ui);
  font-size: 22px;
  color: var(--gold);
  transition: transform 0.3s, color 0.3s;
  font-weight: 300;
  display: inline-block;
  line-height: 1;
  margin-left: 20px;
}

.faq-card[open] .faq-card__question::after {
  content: "−";
  color: var(--gold-light);
  transform: rotate(180deg);
}

.faq-card:hover .faq-card__question {
  color: var(--white);
}

.faq-card__answer {
  padding: 0 32px 28px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 300;
  color: var(--cream-dim);
  line-height: 1.8;
}

.faq-card__answer p {
  margin: 0 0 16px;
}

.faq-card__answer p:last-child {
  margin-bottom: 0;
}

@media (max-width: 768px) {
  .faq-section {
    padding: 60px 24px;
  }
  .faq-card__question {
    padding: 20px 24px;
    font-size: 16px;
  }
  .faq-card__answer {
    padding: 0 24px 20px;
    font-size: 14px;
  }
}
