/* =====================================================================
   D1 v3 · the opening ritual (retours du 17.11.2026)
   rose pâle linen → a modern LANDSCAPE envelope (1.6:1, 10 px thick, derived light; front: names, Hebrew,
   a perforated stamp holding the couple's photo, a thin postmark) → terre cuite wax seal with the MS heart
   (sans barre) → one cream card → the camera pushes into the card until its paper becomes the site's paper.
   Palette 22 only (rose pâle, terre cuite, rose poudré, herbe/olive sèche) + ink #302D29: no framboise,
   no bordeaux, no or. Geometry vars (--envW, --cardW …) are written by js/opening.js → layout().
   ===================================================================== */

#ritual {
  --envW: 640px; --envH: 427px;
  --cardW: 600px; --cardH: 400px;
  --sealS: 120px;
  --persp: 2200px;
  --rpaper: #FBF6EE;
  --r-bg: #DAB4B4;          /* rose pâle */
  --r-ink: #302D29;
  --r-terre: #A7685B;
  --r-poudre: #B46C72;
  --r-olive: #848543;       /* olive sèche */
  --shadow-ink: 92, 52, 44; /* warm brown, never raspberry */
  --safe-b: env(safe-area-inset-bottom, 0px);
  position: fixed; inset: 0; z-index: 40; overflow: hidden;
  background: var(--r-bg);
  color: var(--r-ink);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  /* nothing in the ritual can be selected, dragged, or long-pressed into the iOS "copy image" sheet */
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
}
#ritual * { -webkit-touch-callout: none; }
#ritual[hidden] { display: none; }
#ritual img { display: block; max-width: none; -webkit-user-select: none; user-select: none; -webkit-user-drag: none; pointer-events: none; }
#ritual button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.r-paper { background-color: var(--rpaper); background-image: url(../assets/envelope/paper.jpg); background-size: 360px 360px; }

/* ----------------------------------------------------------------- table (rose pâle linen, soft golden light) */
.r-table { position: absolute; inset: 0; overflow: hidden; background: var(--r-bg); transform-origin: 50% 50%; will-change: transform, filter, opacity; }
.r-table__linen { position: absolute; inset: -2px; background: var(--r-bg) url(../assets/envelope/linen.jpg) 0 0 / 620px 620px repeat; }
.r-table__glow {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 18% 6%, rgba(255, 236, 214, .42) 0%, rgba(255, 228, 206, .14) 38%, rgba(255,255,255,0) 62%),
    radial-gradient(90% 80% at 85% 100%, rgba(120, 70, 58, .16) 0%, rgba(120,70,58,0) 60%);
}
.r-table__cursor { position: absolute; left: 0; top: 0; width: 0; height: 0; will-change: transform; }
.r-table__cursor i {
  position: absolute; left: -55vmax; top: -55vmax; width: 110vmax; height: 110vmax; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 236, 214, .26), rgba(255, 228, 206, .09) 45%, rgba(255,228,206,0) 72%);
  mix-blend-mode: soft-light;
}

/* ----------------------------------------------------------------- props on the linen (a eucalyptus sprig, a few rose poudré petals) */
.r-props { position: absolute; inset: 0; pointer-events: none; transform-origin: 50% 50%; }
.r-prop { position: absolute; left: 0; top: 0; will-change: transform; }
.r-prop img { position: absolute; left: 0; top: 0; width: 100%; height: auto; }
.r-prop .r-prop__sh-soft { filter: brightness(0) blur(7px); opacity: .32; transform: translate(6px, 10px); }
.r-prop .r-prop__sh-contact { filter: brightness(0) blur(1.2px); opacity: .5; transform: translate(1px, 1.5px); }
.r-prop .r-prop__img { filter: saturate(1.04); }

/* ----------------------------------------------------------------- 3D stage */
.r-stage { position: absolute; inset: 0; perspective: var(--persp); perspective-origin: 50% 46%; overflow: hidden; }
.r-world { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform-style: preserve-3d; }

.r-cast { position: absolute; left: 0; top: 0; pointer-events: none; transform-style: flat; will-change: transform, opacity; }
.r-cast i { position: absolute; inset: 0; border-radius: 3px; }
.r-cast--env { width: var(--envW); height: var(--envH); margin: calc(var(--envH) * -.5) 0 0 calc(var(--envW) * -.5); }
/* (v3: no shadow before js/opening.js has laid the envelope out and lit it; render() sets these opacities inline) */
.r-cast__ambient, .r-cast__contact, .r-cast--card { opacity: 0; }
.r-cast__ambient { background: rgba(var(--shadow-ink), .5); box-shadow: 0 0 44px 22px rgba(var(--shadow-ink), .42); filter: blur(18px); }
.r-cast__contact { background: rgba(var(--shadow-ink), .45); box-shadow: 0 1px 2px rgba(var(--shadow-ink), .5), 0 3px 8px rgba(var(--shadow-ink), .35); }
.r-cast--card { width: var(--cardW); height: var(--cardH); margin: calc(var(--cardH) * -.5) 0 0 calc(var(--cardW) * -.5); }
.r-cast--card i { background: rgba(var(--shadow-ink), .32); box-shadow: 0 2px 4px rgba(var(--shadow-ink), .36), 0 14px 34px 6px rgba(var(--shadow-ink), .28); }

/* ----------------------------------------------------------------- envelope */
.r-env {
  position: absolute; left: 0; top: 0;
  width: var(--envW); height: var(--envH);
  margin: calc(var(--envH) * -.5) 0 0 calc(var(--envW) * -.5);
  transform-style: preserve-3d;
}
.r-face { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
/* the arrival fades in the front face only: the inner faces (flap, liner, pocket), the edges and the seal wait until
   it is opaque, so the envelope never reads as see-through (no x-ray of the flap or the mirrored seal)
   (v3: before js/opening.js has laid it out — while the loader shows — the envelope stays invisible: --envO defaults to 0,
   so the loader's names never print over a default-sized envelope) */
.r-face, .r-edge, .r-seal, .r-debris { opacity: clamp(0, calc((var(--envO, 0) - .96) * 25), 1); }
.r-env-front { opacity: var(--envO, 0); }
.r-flap-stuck { position: absolute; left: 0; top: 0; width: 0; height: 0; }
.r-env-front {
  transform: translateZ(5px); border-radius: 3px; overflow: hidden; cursor: pointer; outline: none;
  box-shadow: inset 0 0 0 .5px rgba(150, 110, 90, .22), inset 0 0 calc(var(--envW) * .04) rgba(150, 105, 85, .06);
}
.r-env-front::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(172deg, rgba(255,255,255,.4), rgba(255,255,255,0) 34%, rgba(160,110,90,.05) 100%); }
/* modern front: generous paper, one centred address block, the stamp top right, a small sun top left */
.r-env-front__address { position: absolute; left: 0; right: 0; top: 60%; transform: translateY(-50%); text-align: center; }
.r-env-names { margin: 0; color: var(--r-ink); font: 400 calc(var(--envW) * .044)/1.1 var(--font-display); letter-spacing: .16em; text-transform: uppercase; padding-left: .16em; }
.r-env-names em { font: italic 400 1.18em/1 var(--font-serif); text-transform: none; letter-spacing: 0; color: var(--r-terre); padding: 0 .18em; }
.r-env-rule { display: block; width: calc(var(--envW) * .05); height: 1px; margin: calc(var(--envW) * .02) auto; background: var(--r-terre); opacity: .7; }
.r-env-meta { margin: calc(var(--envW) * .022) 0 0; padding-left: .34em; font: 500 calc(var(--envW) * .0145)/1 var(--font-ui); letter-spacing: .34em; text-transform: uppercase; color: rgba(48, 45, 41, .62); }
.r-env-meta span { color: var(--r-terre); }
.r-env-front__sun { position: absolute; left: 5%; top: 8%; width: calc(var(--envW) * .062); height: auto; opacity: .95; }
/* the stamp: a perforated frame (stamp-frame.webp, its shadow baked in: no CSS filter inside the 3D envelope)
   over ONE photo file, assets/envelope/stamp-photo.jpg (object-fit: cover) */
.r-env-front__stamp { position: absolute; right: 4.6%; top: 6.5%; width: calc(var(--envW) * .19); aspect-ratio: 424 / 524; transform: rotate(2.5deg); }
.r-env-front__stamp .r-stamp-photo { position: absolute; left: 9.906%; top: 8.015%; width: 80.189%; height: 74.427%; object-fit: cover; object-position: 50% 35%; background: var(--r-bg); }
.r-env-front__stamp .r-stamp-frame { position: absolute; inset: 0; width: 100%; height: 100%; }
.r-postmark { position: absolute; right: calc(4.6% + var(--envW) * .14); top: 10.5%; width: calc(var(--envW) * .3); height: auto; color: rgba(167, 104, 91, .62); transform: rotate(-6deg); mix-blend-mode: multiply; }
.r-sheen { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.r-sheen b {
  position: absolute; left: -50%; top: -50%; width: 200%; height: 200%;
  background: radial-gradient(closest-side, rgba(255, 252, 240, .55), rgba(255, 245, 225, .14) 46%, rgba(255,255,255,0) 70%);
  will-change: transform;
}
.r-edge { position: absolute; background: linear-gradient(90deg, #e6dccd, #f8f2e8 50%, #e0d4c3); }
.r-edge--l, .r-edge--r { top: 0; height: 100%; width: 10px; }
.r-edge--l { left: -5px; transform: rotateY(90deg); }
.r-edge--r { right: -5px; transform: rotateY(90deg); }
.r-edge--t, .r-edge--b { left: 0; width: 100%; height: 10px; background: linear-gradient(180deg, #e6dccd, #f8f2e8 50%, #e0d4c3); }
.r-edge--t { top: -5px; transform: rotateX(90deg); }
.r-edge--b { bottom: -5px; transform: rotateX(90deg); }
.r-env-back { position: absolute; inset: 0; transform-style: preserve-3d; transform: rotateY(180deg) translateZ(5px); }
.r-env-inner { transform: translateZ(-9.5px); overflow: hidden; border-radius: 3px; }
.r-env-inner__liner { position: absolute; inset: 0; background: var(--r-olive) url(../assets/envelope/liner.jpg) 50% 0 / calc(var(--envW) * .42) auto repeat; }
.r-env-inner__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(40, 30, 18, .08) 0%, rgba(40, 30, 18, .32) 46%, rgba(30, 22, 14, .55) 70%); }
.r-env-pocket { transform: translateZ(0); }
.r-env-pocket svg, .r-flap-out svg, .r-flap-in svg { position: absolute; left: 0; top: 0; width: 100%; height: 100%; overflow: visible; }
.r-flap { position: absolute; left: 0; top: 0; width: 100%; height: 100%; transform-style: preserve-3d; transform-origin: 50% 0 -5px; pointer-events: none; }
.r-flap-out { transform: translateZ(1px); }
.r-flap-in { transform: translateZ(1px) rotateY(180deg); }

/* ----------------------------------------------------------------- wax seal (terre cuite, MS heart sans barre: assets/envelope/seal.webp) */
.r-seal { position: absolute; left: 0; top: 0; width: var(--sealS); height: calc(var(--sealS) * 720 / 686); transform-style: preserve-3d; cursor: grab; touch-action: none; outline: none; -webkit-user-select: none; user-select: none; }
.r-seal:active { cursor: grabbing; }
.r-seal__body { position: absolute; inset: 0; transform-origin: 51.3% 44.4%; filter: drop-shadow(0 1px 1px rgba(80, 44, 34, .4)) drop-shadow(0 3px 5px rgba(80, 44, 34, .2)); }
.r-seal__img { position: absolute; inset: 0; background: url(../assets/envelope/seal.webp) 0 0 / 100% 100% no-repeat; pointer-events: none; }
.r-seal__warm { position: absolute; left: 10%; top: 4%; width: 83%; height: 80%; border-radius: 50%; background: radial-gradient(closest-side, rgba(255, 196, 170, .5), rgba(240, 170, 145, .16) 60%, rgba(240,170,145,0)); opacity: 0; pointer-events: none; }
.r-seal__ring { position: absolute; width: 112%; height: auto; left: 51.3%; top: 44.4%; transform: translate(-50%, -50%) translateZ(2px); overflow: visible; pointer-events: none; }
.r-seal__ring circle { fill: none; stroke-width: .9; vector-effect: non-scaling-stroke; }
.r-seal__ring-track { stroke: rgba(167, 104, 91, 0); }
.r-seal__ring-prog { stroke: var(--r-terre); stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; transform: rotate(-90deg); transform-origin: 50% 50%; filter: drop-shadow(0 0 2px rgba(255, 248, 236, .9)); }
.r-seal.is-ready .r-seal__ring-track { stroke: rgba(167, 104, 91, .3); }
/* waiting for the guest: the ring around the seal breathes softly */
.r-seal.is-ready.is-idle .r-seal__ring-track { stroke: var(--r-terre); stroke-width: 1.2; animation: r-seal-breathe 2.4s ease-in-out infinite; }
@keyframes r-seal-breathe { 0%, 100% { stroke-opacity: .25; } 50% { stroke-opacity: .95; } }
.r-seal__crack { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; transform: translateZ(1px); -webkit-mask: url(../assets/envelope/seal.webp) 0 0 / 100% 100% no-repeat; mask: url(../assets/envelope/seal.webp) 0 0 / 100% 100% no-repeat; }
.r-seal__crack path { fill: none; stroke: rgba(78, 40, 32, .85); stroke-width: 1.4; stroke-linejoin: round; stroke-linecap: round; }
.r-seal__crack path + path { stroke: rgba(250, 218, 204, .55); stroke-width: .7; }
.r-seal:focus-visible .r-seal__ring-track { stroke: var(--r-ink); stroke-width: 2; }
.r-debris { position: absolute; left: 0; top: 0; width: 0; height: 0; transform-style: preserve-3d; pointer-events: none; }
.r-shard { position: absolute; left: 0; top: 0; transform-style: flat; backface-visibility: hidden; -webkit-backface-visibility: hidden; }
.r-shard__shadow { position: absolute; inset: 0; filter: drop-shadow(0 1px 1px rgba(80, 44, 34, .45)) drop-shadow(0 3px 4px rgba(80, 44, 34, .22)); }
.r-shard__clip { position: absolute; inset: 0; }
.r-shard__clip i { position: absolute; inset: 0; background: url(../assets/envelope/seal.webp) 0 0 / 100% 100% no-repeat; }
.r-shard__clip svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; -webkit-mask: url(../assets/envelope/seal.webp) 0 0 / 100% 100% no-repeat; mask: url(../assets/envelope/seal.webp) 0 0 / 100% 100% no-repeat; }
.r-shard__clip svg path { fill: none; stroke: rgba(250, 218, 204, .7); stroke-width: 1.1; }
.r-crumb { position: absolute; left: 0; top: 0; border-radius: 45% 55% 40% 60%; background: radial-gradient(circle at 35% 30%, #cf9283, #A7685B 55%, #7c4a3f); box-shadow: 0 1px 1px rgba(70, 40, 30, .35); backface-visibility: hidden; }

/* ----------------------------------------------------------------- the single cream card */
.r-card {
  position: absolute; left: 0; top: 0;
  width: var(--cardW); height: var(--cardH);
  margin: calc(var(--cardH) * -.5) 0 0 calc(var(--cardW) * -.5);
  transform-style: preserve-3d; visibility: hidden;
}
.r-card.is-on { visibility: visible; }
.r-card__face {
  position: absolute; inset: 0; border-radius: 1.5px; overflow: hidden;
  backface-visibility: hidden; -webkit-backface-visibility: hidden; transform: translateZ(.75px);
  /* same paper as the site, sized so that at the end of the push-in it matches the site's paper pixel for pixel */
  background: var(--creme) url(../assets/img/paper.webp) 50% 50% / var(--cardTex, 600px) var(--cardTex, 600px);
  box-shadow: inset 0 0 0 .5px rgba(130, 95, 80, .3), inset 0 0 14px rgba(120, 85, 70, .08);
}
.r-card__frame { position: absolute; inset: calc(var(--cardH) * .065); border: 1px solid rgba(167, 104, 91, .7); pointer-events: none; }
.r-card__frame::after { content: ""; position: absolute; inset: 4px; border: .5px solid rgba(167, 104, 91, .4); }
.r-card__shade { position: absolute; inset: 0; background: #2a1d18; opacity: 0; pointer-events: none; }
.r-card__sheen { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.r-card__sheen b { position: absolute; left: -50%; top: -50%; width: 200%; height: 200%; background: radial-gradient(closest-side, rgba(255, 252, 240, .5), rgba(255, 245, 225, .12) 46%, rgba(255,255,255,0) 70%); }
.r-card__edge { position: absolute; left: 0; top: 0; width: 100%; height: 1.5px; background: linear-gradient(180deg, #e0d4c3, #f6efe4, #ddd0bd); transform-origin: 50% 0; transform: rotateX(-90deg); }

/* ----------------------------------------------------------------- light falling through leaves */
.r-light { position: absolute; inset: 0; pointer-events: none; }
.r-light__leaves { position: absolute; left: -6%; top: -6%; width: 112%; height: 112%; background: url(../assets/envelope/light-leaves.webp) 50% 50% / cover no-repeat; opacity: .24; transform-origin: 20% 0%; will-change: transform; }
.r-light__warm { position: absolute; inset: 0; background: linear-gradient(160deg, rgba(255, 230, 200, .14), rgba(255, 230, 200, 0) 45%); }
.r-light__vignette { position: absolute; inset: 0; background: radial-gradient(140% 110% at 50% 45%, rgba(120,70,58,0) 55%, rgba(120, 70, 58, .2) 100%); }

/* ----------------------------------------------------------------- ritual UI */
.r-top { position: absolute; left: 0; right: 0; top: 0; display: flex; justify-content: space-between; align-items: center; padding: max(18px, env(safe-area-inset-top)) clamp(16px, 3vw, 34px) 0; pointer-events: none; }
.r-top > * { pointer-events: auto; }
#ritual .r-btn { display: inline-flex; align-items: center; gap: 9px; min-height: 40px; padding: 0 4px; font: 400 10px/1 var(--font-ui); letter-spacing: .28em; text-transform: uppercase; color: var(--r-ink); opacity: .78; transition: opacity .3s ease; text-shadow: 0 0 10px rgba(251, 246, 238, .55); }
.r-btn:hover { opacity: 1; }
.r-btn:focus-visible { outline: 2px solid var(--r-ink); outline-offset: 4px; border-radius: 4px; }
.r-skip span { border-bottom: 1px solid rgba(48, 45, 41, .35); padding-bottom: 3px; }
.r-bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 12px; }
.r-bars i { width: 1.5px; height: 100%; background: currentColor; transform-origin: 50% 100%; transform: scaleY(.25); }
.r-sound[aria-pressed="true"] .r-bars i { animation: r-bar 1.2s ease-in-out infinite; }
.r-sound[aria-pressed="true"] .r-bars i:nth-child(2) { animation-delay: -.35s; }
.r-sound[aria-pressed="true"] .r-bars i:nth-child(3) { animation-delay: -.7s; }
.r-sound[aria-pressed="true"] .r-bars i:nth-child(4) { animation-delay: -.95s; }
@keyframes r-bar { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }
.r-bottom {
  position: absolute; left: 0; right: 0; margin: 0 auto; bottom: calc(66px + var(--safe-b));
  display: flex; flex-direction: column; align-items: center; gap: 12px;
  text-align: center; pointer-events: none; width: min(92vw, 520px);
}
.r-bottom > * { pointer-events: auto; }
.r-hint { margin: 0; font: 500 12px/1.5 var(--font-ui); letter-spacing: .26em; text-transform: uppercase; opacity: 0; min-height: 1.5em; color: var(--r-ink); text-shadow: 0 0 12px rgba(251, 246, 238, .6); }
.r-action { position: relative; width: 52px; height: 52px; border-radius: 50%; opacity: 0; color: var(--r-ink); touch-action: none; -webkit-user-select: none; user-select: none; }
.r-action[hidden] { display: none; }
.r-action__ring { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.r-action__ring circle { fill: none; stroke: rgba(48, 45, 41, .45); stroke-width: 1; }
.r-action__ring .r-action__prog { stroke: var(--r-terre); stroke-width: 1.6; stroke-dasharray: 1; stroke-dashoffset: 1; transform: rotate(-90deg); transform-origin: 50% 50%; stroke-linecap: round; }
.r-action__dot { position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: var(--r-ink); transition: transform .5s cubic-bezier(.22, .8, .2, 1); }
.r-action:hover .r-action__dot { transform: scale(1.6); }
.r-action::before { content: ""; position: absolute; inset: -1px; border-radius: 50%; border: 1px solid rgba(48, 45, 41, .38); animation: r-breathe 2.8s ease-out infinite; }
@keyframes r-breathe { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(1.55); opacity: 0; } }
.r-action__lbl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* while the seal waits: a finger pressing (instead of the dot) */
.r-action__press { position: absolute; left: 50%; top: 50%; width: 24px; height: 24px; margin: -12px 0 0 -12px; fill: none; stroke: var(--r-ink); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; opacity: 0; transition: opacity .4s ease; }
.r-action.is-hold .r-action__dot { opacity: 0; }
.r-action.is-hold .r-action__press { opacity: 1; animation: r-press 1.8s ease-in-out infinite; }
.r-action__press-wave { animation: r-press-wave 1.8s ease-out infinite; }
@keyframes r-press { 0%, 100% { transform: translateY(0) scale(1); } 45% { transform: translateY(1.5px) scale(.94); } }
@keyframes r-press-wave { 0%, 30% { opacity: 0; } 50% { opacity: .9; } 100% { opacity: 0; } }
/* after a few seconds without success: a discreet way in */
.r-fallback { position: absolute; left: 50%; bottom: 0; transform: translateX(-50%); padding: 10px 14px; white-space: nowrap; font: 500 12px/1 var(--font-ui) !important; letter-spacing: .2em !important; text-transform: uppercase; color: var(--r-ink) !important;
  opacity: 0; transition: opacity .6s ease; text-decoration: underline; text-decoration-color: rgba(167, 104, 91, .6); text-underline-offset: 6px; text-shadow: 0 0 10px rgba(251, 246, 238, .6); }
.r-fallback.is-on { opacity: .92; }
.r-fallback[hidden] { display: none; }
/* desktop: its place is reserved under the button (above the prototype switcher), so nothing moves when it appears;
   touch: it hangs just below the button (the switcher is only a small heart in the corner there) */
.r-bottom { padding-bottom: 38px; }
html.touch .r-bottom { padding-bottom: 0; }
html.touch .r-fallback { bottom: auto; top: 100%; margin-top: 4px; }
.r-action:focus-visible { outline: 2px solid var(--r-ink); outline-offset: 5px; }
.r-env-front:focus-visible { box-shadow: inset 0 0 0 2px var(--r-terre), inset 0 0 0 4px var(--rpaper); }

/* first load: a whisper of progress on the linen (the envelope assets are light) */
.r-loading { position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%); display: grid; justify-items: center; gap: 18px; pointer-events: none; }
.r-loading[hidden] { display: none; }
.r-loading__names { margin: 0; font: 400 12px/1 var(--font-display); letter-spacing: .42em; text-transform: uppercase; color: rgba(48, 45, 41, .8); padding-left: .42em; }
.r-loading__names em { font: italic 400 16px/1 var(--font-serif); letter-spacing: 0; text-transform: none; padding: 0 .3em; color: var(--r-terre); }
.r-loading__bar { width: 120px; height: 1px; background: rgba(48, 45, 41, .16); overflow: hidden; }
.r-loading__bar i { display: block; height: 100%; background: var(--r-terre); transform-origin: 0 50%; transform: scaleX(0); }

@media (max-width: 760px) {
  .r-btn span:not(.r-bars) { font-size: 9.5px; }
  .r-sound .r-sound__lbl { display: none; }
  .r-bottom { bottom: calc(68px + var(--safe-b)); gap: 10px; }
  /* the landscape envelope is ~358 px wide on a phone: the type grows relative to it */
  .r-env-names { font-size: calc(var(--envW) * .056); letter-spacing: .13em; padding-left: .13em; }
  .r-env-meta { font-size: calc(var(--envW) * .025); letter-spacing: .28em; padding-left: .28em; }
  .r-env-front__address { top: 62%; }
  .r-env-front__stamp { width: calc(var(--envW) * .2); top: 5.5%; }
  .r-env-front__sun { width: calc(var(--envW) * .075); }
  .r-postmark { width: calc(var(--envW) * .34); right: calc(4.6% + var(--envW) * .155); top: 11%; }
  .r-hint { font-size: 13px; letter-spacing: .18em; }
  .r-fallback { font-size: 13px !important; letter-spacing: .14em !important; }
}
/* touch: no cursor light (it is a mouse effect) and no blend mode inside the 3D envelope (Safari flicker) */
html.touch .r-table__cursor { display: none; }
html.touch .r-table { will-change: transform, opacity; }
html.touch .r-seal__body { will-change: transform; }
html.touch .r-postmark { mix-blend-mode: normal; color: rgba(167, 104, 91, .5); }
html.touch #ritual .r-btn { font-size: 11px; }
html.touch .r-btn span:not(.r-bars) { font-size: 11px; }
@media (prefers-reduced-motion: reduce) {
  .r-action::before, .r-sound[aria-pressed="true"] .r-bars i, .r-action.is-hold .r-action__press, .r-action__press-wave, .r-seal.is-ready.is-idle .r-seal__ring-track { animation: none; }
}

/* v5 typographie — 19.11.2026 : Inter + italique Newsreader (see voyage.css) */
.r-env-names { font: 300 calc(var(--envW) * .062)/1.05 var(--font-display); letter-spacing: -.04em; text-transform: none; padding-left: 0; }
.r-env-names em { font: italic 300 1.04em/1 var(--font-serif); padding: 0 .1em; }
.r-loading__names { font: 400 13px/1 var(--font-display); letter-spacing: .02em; text-transform: none; padding-left: 0; }
.r-loading__names em { font: italic 300 15px/1 var(--font-serif); padding: 0 .2em; }
@media (max-width: 760px) { .r-env-names { font-size: calc(var(--envW) * .078); letter-spacing: -.035em; padding-left: 0; } }

/* v6 typographie « Manuscrit » — 22.11.2026: the names are handwritten on the envelope and the loader too */
.r-env-names { font: 400 calc(var(--envW) * .068)/1.4 var(--font-hand); letter-spacing: 0; text-transform: none; padding-left: 0; color: var(--r-terre); rotate: -3deg; }
.r-env-names em { font: inherit; font-style: normal; padding: 0 .28em; }
.r-loading__names { font: 400 20px/1.4 var(--font-hand); letter-spacing: 0; text-transform: none; padding-left: 0; color: var(--r-terre); }
.r-loading__names em { font: inherit; font-style: normal; padding: 0 .1em; }
@media (max-width: 760px) { .r-env-names { font-size: calc(var(--envW) * .084); letter-spacing: 0; padding-left: 0; } }
