/* Asteria — askasteria.com design system
   Night observatory: deep ink, platinum, one warm gold moment.
   Spacing = Fibonacci (8 13 21 34 55 89 144) · type scale ≈ φ */

@font-face {
  font-family: "Fraunces";
  src: url("/assets/fonts/Fraunces-VF.ttf") format("truetype-variations");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "Manrope";
  src: url("/assets/fonts/Manrope-VF.ttf") format("truetype-variations");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  /* palette */
  --night-0: #05070f;
  --night-1: #0a0e1a;
  --night-2: #10162a;
  --ink: #e8eaf2;
  --dim: #9aa1b5;
  --faint: #6b7288;
  --platinum: #d6dbea;
  --platinum-bright: #f2f4fb;
  --gold: #d8b56a;          /* content-tint only, never chrome */
  --hair: #262c44;
  --hair-soft: rgba(214, 219, 234, 0.13);
  /* fibonacci spacing */
  --s1: 8px; --s2: 13px; --s3: 21px; --s4: 34px; --s5: 55px; --s6: 89px; --s7: 144px;
  /* type scale ~φ from 17 */
  --t-body: 17px;
  --t-small: 14px;
  --t-lead: 21px;
  --t-h3: 27px;
  --t-h2: 44px;
  --t-h1: clamp(44px, 7.2vw, 71px);
  --serif: "Fraunces", "New York", Georgia, serif;
  --sans: "Manrope", -apple-system, "SF Pro Text", sans-serif;
  --card-r: 5.5%; /* app's carte nue radius, relative to width */
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001s !important; transition-duration: 0.001s !important; }
}

body {
  background: var(--night-1);
  color: var(--ink);
  font: 400 var(--t-body)/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: rgba(214, 219, 234, 0.22); }

a { color: var(--platinum); text-decoration: none; }
a:hover { color: var(--platinum-bright); }

/* ---------- atmosphere ---------- */

#sky {
  position: fixed; inset: 0; z-index: -2;
  width: 100%; height: 100%;
  background:
    radial-gradient(120% 90% at 70% -10%, #141b33 0%, transparent 55%),
    radial-gradient(90% 70% at 10% 110%, #0d1226 0%, transparent 60%),
    linear-gradient(180deg, var(--night-0) 0%, var(--night-1) 40%, var(--night-0) 100%);
}
body::after { /* film grain */
  content: ""; position: fixed; inset: -50%; z-index: 40; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
  animation: grain 9s steps(6) infinite;
}
@keyframes grain {
  0%,100% { transform: translate(0,0); } 20% { transform: translate(-2%,3%); }
  40% { transform: translate(3%,-2%); } 60% { transform: translate(-3%,-3%); }
  80% { transform: translate(2%,2%); }
}

/* ---------- chrome ---------- */

.top {
  position: fixed; top: 0; left: 0; right: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--s3) var(--s4);
  background: linear-gradient(180deg, rgba(5,7,15,0.92), rgba(5,7,15,0.55) 70%, rgba(5,7,15,0));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.top nav a.cta { white-space: nowrap; }
@media (max-width: 960px) {
  .top { padding: var(--s2) var(--s3); }
  .top nav { gap: var(--s2); }
  .top nav a.cta { padding: 10px 15px; font-size: 12px; }
}
.brand {
  font: 500 15px/1 var(--sans); letter-spacing: 0.42em; text-transform: uppercase;
  color: var(--platinum); display: flex; align-items: center; gap: var(--s2);
}
.brand .glyph { width: 20px; height: 20px; transform: translateY(-2px); flex: none; }
.top nav { display: flex; gap: var(--s4); align-items: center; }
.top nav a {
  font: 500 var(--t-small)/1 var(--sans); letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--dim);
}
.top nav a:hover { color: var(--platinum-bright); }
.top nav a.cta {
  color: var(--night-0); background: var(--platinum); border-radius: 999px;
  padding: 10px var(--s3);
}
.top nav a.cta:hover { background: var(--platinum-bright); }
@media (max-width: 960px) { .top nav a:not(.cta) { display: none; } }
@media (max-width: 400px) { .top nav a.cta { padding: 9px 15px; font-size: 12px; } }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 var(--s4); }

.eyebrow {
  font: 600 12px/1 var(--sans); letter-spacing: 0.55em; text-transform: uppercase;
  color: var(--faint); display: flex; align-items: center; gap: var(--s3);
}
.eyebrow::after { content: ""; height: 1px; width: var(--s6); background: linear-gradient(90deg, var(--hair-soft), transparent); }

h1, h2, .serif { font-family: var(--serif); font-variation-settings: "SOFT" 60, "WONK" 0; }
h1 { font-size: var(--t-h1); font-weight: 340; line-height: 1.06; letter-spacing: 0.005em; color: var(--platinum-bright); }
h1 em, h2 em { font-style: italic; font-weight: 320; color: var(--platinum); }
h2 { font-size: clamp(31px, 4vw, var(--t-h2)); font-weight: 360; line-height: 1.12; color: var(--platinum-bright); }
.lead { font-size: var(--t-lead); line-height: 1.55; color: var(--dim); font-weight: 380; }
.fr-echo { font-family: var(--serif); font-style: italic; font-weight: 330; color: var(--faint); font-size: var(--t-body); }

/* ---------- buttons ---------- */

.btn-row { display: flex; gap: var(--s3); align-items: center; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: var(--s2);
  font: 600 15px/1 var(--sans); letter-spacing: 0.06em;
  padding: 17px var(--s4); border-radius: 999px;
  transition: transform 0.25s cubic-bezier(.2,.8,.2,1), box-shadow 0.25s, background 0.25s;
}
.btn.primary {
  background: var(--platinum); color: var(--night-0);
  box-shadow: 0 0 0 1px rgba(242,244,251,0.14), 0 13px 34px rgba(0,0,0,0.45);
}
.btn.primary:hover { background: var(--platinum-bright); transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(242,244,251,0.2), 0 21px 55px rgba(0,0,0,0.55); }
.btn.ghost {
  color: var(--platinum); border: 1px solid var(--hair);
  background: rgba(16,22,42,0.35); backdrop-filter: blur(8px);
}
.btn.ghost:hover { border-color: var(--platinum); transform: translateY(-2px); }

/* ---------- sections ---------- */

section { position: relative; padding: var(--s7) 0; }
.section-head { max-width: 34em; margin-bottom: var(--s5); display: grid; gap: var(--s3); }

.hairline { height: 1px; background: linear-gradient(90deg, transparent, var(--hair-soft) 30%, var(--hair-soft) 70%, transparent); border: 0; }

/* reveal on scroll */
.rv { opacity: 0; transform: translateY(34px); transition: opacity 0.9s cubic-bezier(.2,.7,.2,1), transform 0.9s cubic-bezier(.2,.7,.2,1); }
.rv.in { opacity: 1; transform: none; }
.rv.d1 { transition-delay: 0.1s; } .rv.d2 { transition-delay: 0.21s; } .rv.d3 { transition-delay: 0.34s; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; } }

/* ---------- living card ---------- */

.living-card {
  position: relative;
  aspect-ratio: 1759 / 2622; /* app deck native ratio */
  border-radius: var(--card-r) / calc(var(--card-r) * 0.671);
  transform-style: preserve-3d;
  transition: transform 0.7s cubic-bezier(.2,.75,.25,1);
  cursor: pointer;
  will-change: transform;
}
.living-card .face {
  position: absolute; inset: 0; overflow: hidden;
  border-radius: inherit;
  backface-visibility: hidden;
  box-shadow:
    0 1px 0 rgba(242,244,251,0.12) inset,
    0 -1px 0 rgba(0,0,0,0.5) inset,
    0 34px 89px rgba(0,0,0,0.6),
    0 8px 21px rgba(0,0,0,0.5);
}
.living-card .face img { width: 100%; height: 100%; object-fit: cover; display: block; }
.living-card .face.back { transform: rotateY(180deg); }
.living-card.flipped { transform: rotateY(180deg); }
.living-card .sheen {
  position: absolute; inset: 0; pointer-events: none; z-index: 2; border-radius: inherit;
  background: radial-gradient(elliptical 60% 45% at var(--mx,50%) var(--my,40%),
              rgba(242,244,251,0.16), rgba(242,244,251,0.05) 40%, transparent 70%);
  mix-blend-mode: screen; opacity: 0; transition: opacity 0.4s;
}
.living-card:hover .sheen { opacity: 1; }
.living-card .hair { position: absolute; inset: 0; border-radius: inherit; z-index: 3; pointer-events: none;
  box-shadow: 0 0 0 1px rgba(214,219,234,0.16) inset; }

/* card back — Encre & Or seal */
.card-back {
  width: 100%; height: 100%;
  background:
    radial-gradient(80% 60% at 50% 38%, #131a30 0%, #0a0e1a 70%),
    var(--night-1);
  display: grid; place-items: center; position: relative;
}
.card-back::before {
  content: ""; position: absolute; inset: 4.6%;
  border-radius: calc(var(--card-r) * 0.75) / calc(var(--card-r) * 0.5);
  box-shadow: 0 0 0 1px rgba(214,219,234,0.22);
}
.card-back svg { width: 42%; opacity: 0.9; }

.float { animation: float 7s ease-in-out infinite; }
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(0.001deg); }
  50% { transform: translateY(-13px) rotate(0.001deg); }
}
@media (prefers-reduced-motion: reduce) { .float { animation: none; } }

/* ---------- pillar deck (horizontal) ---------- */

.pillars {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(320px, 72vw);
  gap: var(--s4); overflow-x: auto; padding: var(--s3) var(--s4) var(--s5);
  scroll-snap-type: x mandatory; scrollbar-width: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 var(--s4), #000 calc(100% - var(--s4)), transparent);
          mask-image: linear-gradient(90deg, transparent, #000 var(--s4), #000 calc(100% - var(--s4)), transparent);
}
.pillars::-webkit-scrollbar { display: none; }
.pillar {
  scroll-snap-align: center; position: relative; overflow: hidden;
  aspect-ratio: 0.618; border-radius: 21px;
  box-shadow: 0 0 0 1px var(--hair-soft) inset, 0 21px 55px rgba(0,0,0,0.5);
  transition: transform 0.5s cubic-bezier(.2,.8,.2,1), box-shadow 0.5s;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.pillar:hover { transform: translateY(-8px); box-shadow: 0 0 0 1px rgba(214,219,234,0.25) inset, 0 34px 89px rgba(0,0,0,0.65); }
.pillar img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0;
  transition: transform 1.2s cubic-bezier(.2,.8,.2,1); }
.pillar:hover img.bg { transform: scale(1.045); }
.pillar .scrim { position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(5,7,15,0.05) 30%, rgba(5,7,15,0.55) 68%, rgba(5,7,15,0.92) 100%); }
.pillar .txt { position: relative; z-index: 2; padding: var(--s4); display: grid; gap: 6px; }
.pillar .k { font: 600 11px/1 var(--sans); letter-spacing: 0.45em; text-transform: uppercase; color: rgba(232,234,242,0.72); }
.pillar h3 { font: 400 var(--t-h3)/1.15 var(--serif); color: var(--platinum-bright); }
.pillar p { font-size: 15px; color: var(--dim); line-height: 1.5; }

/* ---------- receipts ---------- */

.receipts { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1px; background: var(--hair-soft); border-radius: 21px; overflow: hidden; box-shadow: 0 0 0 1px var(--hair-soft); }
.receipt { background: rgba(10,14,26,0.88); padding: var(--s4); display: grid; gap: var(--s2); align-content: start; min-height: 233px; }
.receipt .n { font: 320 34px/1 var(--serif); color: var(--gold); }
.receipt h3 { font: 600 15px/1.3 var(--sans); letter-spacing: 0.1em; text-transform: uppercase; color: var(--platinum); }
.receipt p { font-size: 15px; color: var(--dim); }

/* ---------- fan of cards ---------- */

.fan { position: relative; height: min(62vw, 480px); pointer-events: none; }
.fan .living-card { position: absolute; width: min(46vw, 250px); left: 50%; top: 8%; transform-origin: 50% 120%; pointer-events: auto; }
.fan .c1 { transform: translateX(-50%) translateX(-72%) rotate(-13deg); z-index: 1; }
.fan .c2 { transform: translateX(-50%) rotate(0.001deg); z-index: 2; top: 0; }
.fan .c3 { transform: translateX(-50%) translateX(72%) rotate(13deg); z-index: 1; }
.fan .living-card:hover { z-index: 5; }

/* ---------- split (golden) ---------- */

.split { display: grid; grid-template-columns: 61.8fr 38.2fr; gap: var(--s6); align-items: center; }
.split.rev { grid-template-columns: 38.2fr 61.8fr; }
@media (max-width: 880px) { .split, .split.rev { grid-template-columns: 1fr; gap: var(--s5); } }

/* ---------- deck gallery ---------- */

.deck-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: var(--s4); }
.deck-tile { display: grid; gap: var(--s2); text-align: center; }
.deck-tile .cardimg {
  aspect-ratio: 293/567; border-radius: 4.5% / 2.4%; overflow: hidden;
  box-shadow: 0 0 0 1px var(--hair-soft) inset, 0 13px 34px rgba(0,0,0,0.5);
  transition: transform 0.45s cubic-bezier(.2,.8,.2,1), box-shadow 0.45s;
}
.deck-tile .cardimg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.deck-tile:hover .cardimg { transform: translateY(-6px) scale(1.02); box-shadow: 0 0 0 1px rgba(214,219,234,0.3) inset, 0 21px 55px rgba(0,0,0,0.6); }
.deck-tile .name { font: 500 13px/1.3 var(--sans); letter-spacing: 0.18em; text-transform: uppercase; color: var(--dim); }

/* majors grid */
.majors { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: var(--s3); }
.majors .living-card { width: 100%; }

/* ritual steps */
.steps { counter-reset: step; display: grid; gap: 0; }
.step { display: grid; grid-template-columns: var(--s6) 1fr; gap: var(--s4); padding: var(--s4) 0; border-top: 1px solid var(--hair); align-items: baseline; }
.step:last-child { border-bottom: 1px solid var(--hair); }
.step .no { font: 320 var(--t-h2)/1 var(--serif); color: var(--faint); font-feature-settings: "onum"; }
.step h3 { font: 400 var(--t-h3)/1.2 var(--serif); color: var(--platinum-bright); margin-bottom: 6px; }
.step p { color: var(--dim); max-width: 38em; }

/* ---------- final cta ---------- */

.finale { text-align: center; display: grid; justify-items: center; gap: var(--s4); padding: var(--s7) var(--s4); }
.finale .glyphline { font-size: 21px; color: var(--faint); letter-spacing: 1.4em; padding-left: 1.4em; }

/* ---------- footer ---------- */

footer.site {
  border-top: 1px solid var(--hair);
  padding: var(--s5) var(--s4) var(--s6);
  display: grid; gap: var(--s3); justify-items: center; text-align: center;
  color: var(--faint); font-size: var(--t-small);
}
footer.site nav { display: flex; gap: var(--s4); flex-wrap: wrap; justify-content: center; }
footer.site a { color: var(--dim); }
footer.site a:hover { color: var(--platinum); }

/* ---------- full-bleed art hero (l'art EST l'écran) ---------- */

.art-hero { position: relative; overflow: hidden; }
.art-hero .art {
  position: absolute; inset: 0; z-index: 0;
}
.art-hero .art img {
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%;
  transform: scale(1.06);
  animation: slowdrift 34s ease-in-out infinite alternate;
}
@keyframes slowdrift {
  from { transform: scale(1.06) translateY(0); }
  to   { transform: scale(1.06) translateY(-1.8%); }
}
@media (prefers-reduced-motion: reduce) { .art-hero .art img { animation: none; } }
.art-hero .art::after { /* scrims de lecture, comme AstralScrim */
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(5,7,15,0.5) 0%, rgba(5,7,15,0.1) 30%, rgba(5,7,15,0.3) 60%, rgba(5,7,15,0.62) 76%, rgba(5,7,15,0.94) 92%, var(--night-0) 100%),
    radial-gradient(120% 100% at 18% 45%, rgba(5,7,15,0.68), transparent 62%);
}
.art-hero .hero-copy, .art-hero .draw-caption, .art-hero .section-head { /* .astralLegible */
  text-shadow: 0 1px 8px rgba(5,7,15,0.85), 0 0 34px rgba(5,7,15,0.65);
}
.art-hero > .wrap { position: relative; z-index: 2; }

/* aurora veil */
.aurora { position: absolute; inset: -10%; z-index: 1; pointer-events: none; filter: blur(55px); opacity: 0.55; mix-blend-mode: screen; }
.aurora i { position: absolute; display: block; border-radius: 50%; }
.aurora i:nth-child(1) { width: 55vw; height: 34vh; left: -8%; top: 4%;
  background: radial-gradient(closest-side, rgba(84,98,168,0.5), transparent 70%);
  animation: veil 21s ease-in-out infinite alternate; }
.aurora i:nth-child(2) { width: 44vw; height: 30vh; right: -6%; top: 28%;
  background: radial-gradient(closest-side, rgba(128,104,178,0.38), transparent 70%);
  animation: veil 34s ease-in-out infinite alternate-reverse; }
.aurora i:nth-child(3) { width: 34vw; height: 22vh; left: 30%; bottom: 2%;
  background: radial-gradient(closest-side, rgba(96,140,180,0.3), transparent 70%);
  animation: veil 27s ease-in-out infinite alternate; }
@keyframes veil {
  from { transform: translate3d(0,0,0) scale(1); }
  to   { transform: translate3d(4%, -6%, 0) scale(1.12); }
}
@media (prefers-reduced-motion: reduce) { .aurora i { animation: none; } }

/* platinum shimmer on display words */
.shimmer {
  background: linear-gradient(105deg, var(--platinum) 38%, #ffffff 50%, var(--platinum) 62%);
  background-size: 260% 100%;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  animation: shimmer 7s ease-in-out infinite;
}
@keyframes shimmer { 0%,55% { background-position: 120% 0; } 85%,100% { background-position: -60% 0; } }
.shimmer { text-shadow: none; }
@media (prefers-reduced-motion: reduce) { .shimmer { animation: none; } }

/* ---------- deck + draw ritual ---------- */

.draw-zone { display: grid; justify-items: center; gap: var(--s3); perspective: 1300px; }
.deck-stack { position: relative; width: min(58vw, 272px); }
.deck-stack .under {
  position: absolute; inset: 0; border-radius: var(--card-r) / calc(var(--card-r) * 0.671);
  background: linear-gradient(180deg, #10162a, #0a0e1a);
  box-shadow: 0 0 0 1px rgba(214,219,234,0.14) inset, 0 21px 55px rgba(0,0,0,0.55);
}
.deck-stack .under.u1 { transform: translate(5px, 7px) rotate(1.4deg); }
.deck-stack .under.u2 { transform: translate(-4px, 4px) rotate(-1deg); }
.deck-stack .living-card { position: relative; width: 100%; }
.draw-caption { min-height: 89px; text-align: center; display: grid; gap: 5px; justify-items: center;
  opacity: 0; transform: translateY(8px); transition: opacity 0.7s ease 0.15s, transform 0.7s ease 0.15s; }
.draw-caption.show { opacity: 1; transform: none; }
.draw-caption .no { font: 600 11px/1 var(--sans); letter-spacing: 0.5em; text-transform: uppercase; color: var(--gold); }
.draw-caption .nm { font: 400 var(--t-h3)/1.1 var(--serif); color: var(--platinum-bright); }
.draw-caption .kw { font-family: var(--serif); font-style: italic; font-weight: 330; color: var(--dim); font-size: 16px; }

/* ---------- marquee ribbon (mur des 22) ---------- */

.ribbon-band { padding: var(--s5) 0; overflow: hidden; }
.ribbon-tilt { transform: rotate(-2deg) scale(1.03); }
.ribbon { display: flex; width: max-content; gap: var(--s3);
  animation: ribbon 89s linear infinite; }
.ribbon:hover { animation-play-state: paused; }
@keyframes ribbon { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ribbon { animation: none; } }
.ribbon .rc { flex: 0 0 auto; width: 123px; aspect-ratio: 1759/2622; border-radius: 9px; overflow: hidden;
  box-shadow: 0 0 0 1px rgba(214,219,234,0.12) inset, 0 8px 21px rgba(0,0,0,0.5);
  transition: transform 0.4s cubic-bezier(.2,.8,.2,1); }
.ribbon .rc:hover { transform: translateY(-6px) scale(1.05); }
.ribbon .rc img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------- store badges ---------- */

.stores { display: flex; gap: var(--s3); align-items: center; flex-wrap: wrap; }
.badge {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 12px 21px 12px 17px; border-radius: 14px;
  background: var(--platinum); color: var(--night-0);
  box-shadow: 0 0 0 1px rgba(242,244,251,0.14), 0 13px 34px rgba(0,0,0,0.45);
  transition: transform 0.25s cubic-bezier(.2,.8,.2,1), box-shadow 0.25s, background 0.25s;
}
.badge:hover { background: var(--platinum-bright); color: var(--night-0); transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(242,244,251,0.2), 0 21px 55px rgba(0,0,0,0.55); }
.badge svg { width: 26px; height: 26px; flex: none; }
.badge .tx { display: grid; line-height: 1.15; text-align: left; }
.badge .tx small { font: 500 11px/1.2 var(--sans); letter-spacing: 0.04em; opacity: 0.72; }
.badge .tx strong { font: 700 17px/1.2 var(--sans); letter-spacing: 0.01em; }
.badge.disabled {
  background: rgba(16,22,42,0.5); color: var(--faint);
  box-shadow: 0 0 0 1px var(--hair) inset; cursor: default; pointer-events: none;
}
.badge.disabled svg { opacity: 0.45; }
.badge.disabled .tx small { opacity: 0.6; }

/* ---------- foil / specular (effets de lumière de l'app) ---------- */

.living-card .foil {
  position: absolute; inset: 0; pointer-events: none; z-index: 2; border-radius: inherit;
  background:
    radial-gradient(90% 70% at var(--mx,50%) var(--my,35%),
      rgba(255,255,255,0.22), rgba(214,219,234,0.07) 34%, transparent 62%),
    linear-gradient(calc(105deg + (var(--tilt, 0) * 1deg)),
      transparent 30%,
      rgba(190,205,255,0.10) 42%,
      rgba(255,240,214,0.12) 50%,
      rgba(214,255,244,0.09) 58%,
      transparent 70%);
  mix-blend-mode: screen; opacity: 0; transition: opacity 0.45s;
}
.living-card:hover .foil { opacity: 1; }
.living-card { box-shadow: none; }
.living-card::after { /* ombre portée profonde, suit le float */
  content: ""; position: absolute; inset: 4% -4% -6% 4%; z-index: -1; border-radius: inherit;
  background: radial-gradient(80% 80% at 50% 60%, rgba(0,0,0,0.55), transparent 75%);
  filter: blur(13px);
}

/* deck showcase — cartes scannées vivantes */
.deckshow { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s4); align-items: end; }
@media (max-width: 720px) { .deckshow { grid-template-columns: 1fr; gap: var(--s5); } }
.deckshow .dk { display: grid; gap: var(--s3); justify-items: center; text-align: center; }
.deckshow .living-card { width: min(58vw, 210px); aspect-ratio: 293/567; border-radius: 4.5% / 2.35%; }
.deckshow .dk h3 { font: 400 var(--t-h3)/1.15 var(--serif); color: var(--platinum-bright); }
.deckshow .dk p { font-size: 15px; color: var(--dim); max-width: 26em; }
.deckshow .dk .k { font: 600 11px/1 var(--sans); letter-spacing: 0.45em; text-transform: uppercase; color: var(--gold); }

/* ---------- planètes flottantes (astrologie) ---------- */

.planets { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s4); align-items: center; }
@media (max-width: 720px) { .planets { grid-template-columns: repeat(2, 1fr); } }
.planet { display: grid; gap: var(--s2); justify-items: center; text-align: center; }
.planet .orb { width: 100%; max-width: 144px; aspect-ratio: 1; border-radius: 50%; overflow: hidden; position: relative;
  box-shadow: 0 0 0 1px rgba(214,219,234,0.1) inset, 0 21px 55px rgba(0,0,0,0.6), 0 0 89px rgba(120,140,210,0.13); }
.planet .orb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.planet .orb::after { content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(60% 60% at 30% 25%, rgba(242,244,251,0.16), transparent 55%); mix-blend-mode: screen; }
.planet:nth-child(1) .orb { animation: float 8s ease-in-out infinite; }
.planet:nth-child(2) .orb { animation: float 9.5s 0.8s ease-in-out infinite; }
.planet:nth-child(3) .orb { animation: float 7.2s 0.4s ease-in-out infinite; }
.planet:nth-child(4) .orb { animation: float 10.5s 1.3s ease-in-out infinite; }
.planet .nm { font: 500 12px/1 var(--sans); letter-spacing: 0.3em; text-transform: uppercase; color: var(--dim); }
.planet .sub { font-family: var(--serif); font-style: italic; font-weight: 330; color: var(--faint); font-size: 14px; }

/* ---------- lang toggle ---------- */

.lang-toggle { display: inline-flex; border: 1px solid var(--hair); border-radius: 999px; overflow: hidden; }
.lang-toggle button {
  appearance: none; border: 0; background: transparent; cursor: pointer;
  font: 600 12px/1 var(--sans); letter-spacing: 0.1em; padding: 8px 13px; color: var(--faint);
}
.lang-toggle button.on { background: rgba(214,219,234,0.14); color: var(--platinum-bright); }
html[data-lang="fr"] .fr-echo { display: none; }

/* constellation divider */
.constellation { display: flex; justify-content: center; padding: var(--s2) 0; }
.constellation svg { width: min(55vw, 340px); opacity: 0.5; }

/* ---------- legal / prose pages ---------- */

main.prose { max-width: 44rem; margin: 0 auto; padding: calc(var(--s6) + var(--s5)) var(--s3) var(--s6); }
main.prose h1 { font-size: clamp(34px, 5vw, 44px); margin-bottom: var(--s1); }
main.prose h2 { font-size: 23px; margin: var(--s5) 0 var(--s2); font-weight: 420; }
main.prose p, main.prose li { color: var(--dim); margin-bottom: var(--s2); }
main.prose strong { color: var(--ink); font-weight: 600; }
main.prose ul { padding-left: var(--s3); }
main.prose .meta { color: var(--faint); font-size: var(--t-small); margin-bottom: var(--s4); }
main.prose .lang-note { border: 1px solid var(--hair); border-radius: 13px; padding: var(--s2) var(--s3); color: var(--dim); font-size: 15px; margin-bottom: var(--s4); background: rgba(16,22,42,0.4); }
main.prose .card { border: 1px solid var(--hair); border-radius: 13px; padding: var(--s3); margin: var(--s3) 0; background: rgba(16,22,42,0.4); }
main.prose hr { border: none; border-top: 1px solid var(--hair); margin: var(--s5) 0; }
main.prose nav a { color: var(--faint); font-size: var(--t-small); letter-spacing: 0.12em; text-transform: uppercase; }
main.prose nav { margin-bottom: var(--s4); }
