@font-face {
  font-family: "Cinzel Local";
  src: url("fonts/Cinzel-Regular.otf") format("opentype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: "Cinzel Local";
  src: url("fonts/Cinzel-Bold.otf") format("opentype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

@font-face {
  font-family: "Cormorant Local";
  src: url("fonts/cormorant-garamond-400-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
}

@font-face {
  font-family: "Courier Prime Local";
  src: url("fonts/Courier_Prime.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

:root {
  color-scheme: light;
  --color-canvas: #efe7d9;
  --color-ink: #202329;
  --color-action: #31516b;
  --color-focus: #f0bc75;
  --canvas: var(--color-canvas);
  --paper: #f7f2e8;
  --paper-deep: #e5d8c6;
  --ink: var(--color-ink);
  --ink-soft: #494b4c;
  --night: #172538;
  --night-raised: #22364b;
  --authority: var(--color-action);
  --seal: #984630;
  --brass: #a67c4d;
  --kc-ring-dot: #f1c18e;
  --line: rgba(32, 35, 41, 0.2);
  --line-light: rgba(247, 242, 232, 0.24);
  --type-display: "Cinzel Local", Georgia, serif;
  --type-editorial: "Cormorant Local", Georgia, serif;
  --type-ui: Arial, Helvetica, sans-serif;
  --type-mono: "Courier Prime Local", "Courier New", monospace;
  --ease-out: cubic-bezier(0.2, 0.75, 0.25, 1);
  --page-gutter: clamp(1.25rem, 5vw, 5.5rem);
  --measure: 74rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--canvas);
  font-size: 16px;
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--type-ui);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body,
button,
input,
select {
  font-family: var(--type-ui);
}

button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}

button,
a {
  color: inherit;
}

button {
  font: inherit;
}

a {
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

img,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

figure,
blockquote,
p,
h1,
h2,
h3 {
  margin: 0;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 3px solid var(--color-action);
  outline-offset: 4px;
}

.gate-open:focus-visible,
.music-toggle:focus-visible {
  outline-color: var(--color-focus);
  box-shadow: 0 0 0 6px var(--night);
}

.skip-link {
  position: fixed;
  z-index: 20;
  top: 0.75rem;
  left: 0.75rem;
  padding: 0.75rem 1rem;
  transform: translateY(-180%);
  background: var(--paper);
  color: var(--ink);
}

.skip-link:focus {
  transform: translateY(0);
}

.eyebrow,
.micro-label,
.field-caption,
.story-kicker,
.stop-label,
.count-label,
.header-edition,
.passport-kind,
.studio-mark {
  font-family: var(--type-mono);
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.11em;
  line-height: 1.5;
  text-transform: uppercase;
}

.eyebrow {
  color: var(--seal);
}

/* Gate — cut-paper collage. A travel journal assembles itself; the luggage tag opens the journey.
   Everything is laid out on a 400×860 stage whose unit (--u) fits the viewport; final poses live here,
   gate-scene.mjs only animates *from* earlier poses. */
@font-face {
  font-family: "Italianno Local";
  src: url("fonts/italianno-ptl.woff2") format("woff2");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

.gate {
  --u: min(calc(100vw / 400), calc(100vh / 860));
  --ptl-card: #f4ecdc;
  --ptl-brass: #c9a160;
  position: fixed;
  z-index: 10;
  inset: 0;
  overflow: hidden;
  isolation: isolate;
  background: var(--canvas);
  color: var(--ink);
}

.gate::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: url("texturas/ptl-grain.webp") 0 0 / 192px;
  content: "";
  opacity: 0.55;
}

@supports (height: 100svh) {
  .gate {
    --u: min(calc(100vw / 400), calc(100svh / 860));
  }
}

.ptl-stage {
  position: absolute;
  top: 50%;
  left: 50%;
  width: calc(var(--u) * 400);
  height: calc(var(--u) * 860);
  transform: translate(-50%, -50%);
}

/* Until the film starts the page stays blank paper; a 3 s safety net shows it if scripts never run. */
.gate[data-gate-phase="boot"] .ptl-stage {
  visibility: hidden;
  animation: ptl-boot-show 0s 3s forwards;
}

@keyframes ptl-boot-show {
  to { visibility: visible; }
}

.ptl-dest,
.ptl-leaves,
.ptl-world,
.ptl-core,
.ptl-dest-front,
.ptl-arrival-front {
  position: absolute;
  inset: 0;
}

.ptl-dest,
.ptl-dest-front,
.ptl-leaves,
.ptl-heart {
  visibility: hidden;
}

.gate:is([data-gate-phase="entering"], [data-gate-phase="destination-reveal"], [data-gate-phase="exiting-gate"], [data-gate-phase="hero-ready"]) :is(.ptl-dest, .ptl-dest-front),
.gate[data-gate-phase="entering"] .ptl-leaves,
.gate[data-gate-scene="dest"] .ptl-heart {
  visibility: visible;
}

.gate:is([data-gate-phase="destination-reveal"], [data-gate-phase="exiting-gate"], [data-gate-phase="hero-ready"]) :is(.ptl-world, .ptl-arrival-front, .ptl-title, .studio-mark, .gate-hint) {
  visibility: hidden;
}

/* Paper keeps its own layer while it can move: painted once (during the preroll or while the rest pose
   is still), never repainted mid-film. */
.gate:is([data-gate-phase="boot"], [data-gate-phase="assembling"]) :is(.ptl-world .ptl-p, .ptl-arrival-front .ptl-p, .ptl-map),
.gate:is([data-gate-phase="boot"], [data-gate-phase="assembling"], [data-gate-phase="arrival-ready"], [data-gate-phase="entering"]) :is(.ptl-world > .ptl-p, .ptl-arrival-front > .ptl-p, .ptl-half, .ptl-plane, .ptl-pass, .ptl-pair, .ptl-title, .ptl-tag, .ptl-names),
.gate[data-gate-warm] :is(.ptl-dest > .ptl-p, .ptl-dest-front > .ptl-p, .ptl-leaves > .ptl-p) {
  will-change: transform, opacity;
}

/* Warm-up during the rest pose: destination and letter page painted, not visible. */
.gate[data-gate-warm][data-gate-phase="arrival-ready"] :is(.ptl-dest, .ptl-dest-front, .ptl-leaves) {
  visibility: visible;
  opacity: 0.002;
}

.ptl-dest,
.ptl-dest-front,
.ptl-leaves,
.ptl-world,
.ptl-arrival-front,
.ptl-heart,
.ptl-pair {
  pointer-events: none;
}

/* The exit: the gate's own paper goes clear so the Hero shows wherever the collage moves away. */
.gate:is([data-gate-phase="exiting-gate"], [data-gate-phase="hero-ready"]) {
  background: transparent;
}

.gate:is([data-gate-phase="exiting-gate"], [data-gate-phase="hero-ready"])::before {
  opacity: 0;
}

/* The CTA keeps focus through the film, so it fades instead of disappearing from the tree. */
.gate:is([data-gate-phase="destination-reveal"], [data-gate-phase="exiting-gate"], [data-gate-phase="hero-ready"]) .ptl-tag {
  opacity: 0;
  pointer-events: none;
}

/* Paper pieces: one small svg per piece, placed in stage units. */
.ptl-p,
.ptl-map,
.ptl-sticker {
  position: absolute;
  left: calc(var(--x) * var(--u));
  top: calc(var(--y) * var(--u));
  width: calc(var(--w) * var(--u));
  height: calc(var(--h) * var(--u));
  max-width: none;
  overflow: visible;
  rotate: var(--r, 0deg);
}

.ptl-wide {
  display: none;
}

@media (min-aspect-ratio: 3/5) {
  .ptl-wide {
    display: block;
  }

  .ptl-narrow {
    display: none;
  }
}

.ptl-map {
  rotate: -0.6deg;
}

.ptl-half {
  position: absolute;
  inset: 0;
}

.ptl-plane {
  position: absolute;
  top: 0;
  left: 0;
  transform: translate(calc(var(--u) * var(--px)), calc(var(--u) * var(--py))) rotate(var(--pa));
}

/* Passports: two covers, grain, page block, foil emboss, one gold thread between them. */
.ptl-pair {
  position: absolute;
  isolation: isolate;
  top: calc(var(--u) * 410);
  left: calc(var(--u) * 30);
  width: calc(var(--u) * 310);
  height: calc(var(--u) * 270);
}

.gate[data-gate-scene="dest"] .ptl-pair {
  transform: translate(calc(var(--u) * 15), calc(var(--u) * -112)) scale(0.74);
}

.ptl-pass {
  position: absolute;
  width: calc(var(--u) * 150);
  height: calc(var(--u) * 213);
  border-radius: calc(var(--u) * 6) calc(var(--u) * 9) calc(var(--u) * 9) calc(var(--u) * 6);
}

.ptl-pass--khal {
  z-index: 2;
  top: calc(var(--u) * 28);
  left: 0;
  --cover: #1c2c44;
  --cover-back: #121d2e;
  rotate: -7deg;
}

.ptl-pass--silvie {
  z-index: 1;
  top: 0;
  left: calc(var(--u) * 144);
  --cover: #7e2a22;
  --cover-back: #561b16;
  rotate: 6deg;
}

.ptl-pass-lift {
  position: absolute;
  inset: 10% 3% -2% 6%;
  border-radius: inherit;
  box-shadow: 0 calc(var(--u) * 26) calc(var(--u) * 30) calc(var(--u) * -6) rgb(30 18 8 / 0.55);
  opacity: 0;
}

.gate[data-gate-scene="dest"] .ptl-pass-lift {
  opacity: 1;
}

.ptl-pass-cover {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: start;
  justify-items: center;
  padding-top: calc(var(--u) * 26);
  border-radius: inherit;
  background:
    radial-gradient(120% 90% at 32% 24%, rgb(255 255 255 / 0.09), transparent 62%),
    url("texturas/ptl-grain.webp") 0 0 / calc(var(--u) * 96),
    var(--cover);
  box-shadow:
    inset calc(var(--u) * 4) 0 0 rgb(0 0 0 / 0.22),
    inset 0 0 0 calc(var(--u) * 1) rgb(255 255 255 / 0.07),
    calc(var(--u) * 1.4) calc(var(--u) * 1.8) 0 #efe6d4,
    calc(var(--u) * 2.8) calc(var(--u) * 3.4) 0 #ddd0b6,
    calc(var(--u) * 3.8) calc(var(--u) * 4.8) 0 var(--cover-back),
    0 calc(var(--u) * 10) calc(var(--u) * 16) calc(var(--u) * -4) rgb(40 25 10 / 0.45);
}

.ptl-pass-word {
  color: var(--ptl-brass);
  font-family: var(--type-display);
  font-size: calc(var(--u) * 16.5);
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1;
  text-shadow: 0 calc(var(--u) * 0.9) 0 rgb(0 0 0 / 0.45), 0 calc(var(--u) * -0.5) 0 rgb(255 236 190 / 0.32);
  text-transform: uppercase;
}

.ptl-pass-globe {
  width: calc(var(--u) * 94);
  margin-top: calc(var(--u) * 12);
  overflow: visible;
  fill: none;
  stroke: var(--ptl-brass);
  stroke-width: 1.5;
}

.ptl-pass-thread {
  stroke: #e0c07f;
  stroke-width: 1.3;
  stroke-linecap: round;
}

.ptl-pass-chip {
  width: calc(var(--u) * 24);
  margin-top: calc(var(--u) * 12);
  fill: none;
  stroke: var(--ptl-brass);
  stroke-width: 1.4;
}

.ptl-pass-owner {
  position: absolute;
  bottom: calc(var(--u) * 11);
  color: var(--ptl-brass);
  font-family: var(--type-mono);
  font-size: calc(var(--u) * 7.5);
  letter-spacing: 0.34em;
  opacity: 0.8;
  text-transform: uppercase;
}

.ptl-sticker {
  z-index: 3;
  --x: 124;
  --y: 58;
  --w: 46;
  --h: 46;
  --r: -14deg;
}

.ptl-sticker svg,
.ptl-title-paper svg,
.ptl-names-paper svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* Title card: the journal's hand-lettered label. */
.ptl-title,
.ptl-names {
  position: absolute;
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
}

.ptl-title {
  top: calc(var(--u) * 646);
  left: calc(var(--u) * 70);
  width: calc(var(--u) * 260);
  height: calc(var(--u) * 180);
  padding-bottom: calc(var(--u) * 18);
  rotate: -1.5deg;
}

.ptl-title-paper,
.ptl-names-paper {
  position: absolute;
  z-index: -1;
  inset: calc(var(--u) * -10);
}

.gate-title {
  display: grid;
  justify-items: center;
  font-weight: 400;
  line-height: 1;
}

.gate-title-script {
  color: var(--seal);
  font-family: "Italianno Local", var(--type-editorial);
  font-size: calc(var(--u) * 74);
  line-height: 0.78;
}

.gate-title-caps {
  margin-top: calc(var(--u) * 2);
  padding-left: 0.34em;
  font-family: var(--type-display);
  font-size: calc(var(--u) * 16);
  letter-spacing: 0.34em;
  text-transform: uppercase;
}

.ptl-title-rule,
.ptl-names-rule {
  width: calc(var(--u) * 150);
  margin-block: calc(var(--u) * 5) calc(var(--u) * 3);
  fill: none;
  stroke: var(--brass);
  stroke-width: 1.1;
}

.ptl-rule-heart {
  fill: var(--seal);
  stroke: none;
}

.gate-details {
  display: grid;
  color: var(--ink-soft);
  font-family: var(--type-editorial);
  font-size: calc(var(--u) * 15.5);
  line-height: 1.25;
}

.gate-details > span[aria-hidden="true"] {
  display: none;
}

.gate-hint {
  position: absolute;
  top: calc(var(--u) * 794);
  left: calc(var(--u) * 70);
  width: calc(var(--u) * 260);
  color: var(--seal);
  font-family: var(--type-mono);
  font-size: max(10px, calc(var(--u) * 10.2));
  letter-spacing: 0.05em;
  white-space: nowrap;
  text-align: center;
  text-transform: uppercase;
  rotate: -1.5deg;
}

.studio-mark {
  position: absolute;
  top: calc(var(--u) * 14);
  left: calc(var(--u) * 16);
  color: var(--ink-soft);
  font-size: max(10px, calc(var(--u) * 9.5));
}

/* Luggage tag: the real button, tied to Silvie's passport. */
.ptl-tag {
  position: absolute;
  top: calc(var(--u) * 470);
  left: calc(var(--u) * 282);
  width: calc(var(--u) * 94);
  height: calc(var(--u) * 160);
  rotate: -6deg;
  transform-origin: 50% 11%;
}

.ptl-string {
  position: absolute;
  top: calc(var(--u) * -48);
  left: calc(var(--u) * 10);
  width: calc(var(--u) * 60);
  height: calc(var(--u) * 70);
  overflow: visible;
  fill: none;
  stroke: #8a6a45;
  stroke-linecap: round;
  stroke-width: 1.5;
}

.gate-open {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  padding: calc(var(--u) * 26) calc(var(--u) * 6) 0;
  border: 0;
  border-radius: calc(var(--u) * 5);
  isolation: isolate;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

.gate:is([data-gate-phase="boot"], [data-gate-phase="assembling"]) .gate-open {
  pointer-events: none;
}

.gate-open[aria-disabled="true"] {
  cursor: default;
}

.ptl-tag-art {
  position: absolute;
  z-index: -1;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(calc(var(--u) * 1.5) calc(var(--u) * 3) calc(var(--u) * 2.5) rgb(60 40 20 / 0.32));
}

.ptl-tag-card {
  fill: #f3ebdd;
  stroke: #d8c7a4;
}

.ptl-tag-edge {
  fill: none;
  stroke: #b59a6a;
  stroke-dasharray: 2 2.4;
  stroke-width: 0.7;
}

.ptl-tag-eyelet {
  fill: none;
  stroke: var(--brass);
  stroke-width: 3.2;
}

.ptl-tag-hole {
  fill: #3b2f25;
}

.ptl-tag-plane {
  position: absolute;
  bottom: calc(var(--u) * 16);
  left: calc(50% - var(--u) * 16);
  width: calc(var(--u) * 32);
  height: calc(var(--u) * 29);
  overflow: visible;
  /* Nose toward the heart between the passports: it is where the plane will fly. */
  rotate: -138deg;
}

.ptl-flyer {
  position: absolute;
  z-index: 6;
  top: 0;
  left: 0;
  pointer-events: none;
}

.ptl-flyer .ptl-tag-plane {
  position: static;
  width: 100%;
  height: auto;
  rotate: none;
}

.ptl-tag-plane-wing {
  fill: #7e2a22;
}

.ptl-tag-plane-body {
  fill: #a8322a;
}

.ptl-tag-kicker {
  font-family: var(--type-display);
  font-size: max(10.5px, calc(var(--u) * 11.5));
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ptl-tag-script {
  color: var(--seal);
  font-family: "Italianno Local", var(--type-editorial);
  font-size: calc(var(--u) * 34);
  line-height: 0.9;
}

@media (hover: hover) {
  .gate-open:hover .ptl-tag-art {
    translate: 0 calc(var(--u) * -2);
    transition: translate 240ms var(--ease-out);
  }
}

/* Destination: the painted heart, the names. */
.ptl-heart {
  position: absolute;
  top: calc(var(--u) * 252);
  left: calc(var(--u) * 10);
  width: calc(var(--u) * 380);
  height: calc(var(--u) * 350);
}

.ptl-heart canvas {
  display: block;
  width: 100%;
  height: 100%;
}

.ptl-names {
  top: calc(var(--u) * 664);
  left: calc(var(--u) * 40);
  width: calc(var(--u) * 320);
  height: calc(var(--u) * 112);
  opacity: 0;
  rotate: 1deg;
}

.gate[data-gate-scene="dest"] .ptl-names {
  opacity: 1;
}

.gate-names {
  color: var(--seal);
  font-family: "Italianno Local", var(--type-editorial);
  font-size: calc(var(--u) * 64);
  line-height: 0.95;
  text-transform: lowercase;
  -webkit-mask-image: linear-gradient(90deg, #000 40%, transparent 60%);
  mask-image: linear-gradient(90deg, #000 40%, transparent 60%);
  -webkit-mask-position: 0% 0;
  mask-position: 0% 0;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 250% 100%;
  mask-size: 250% 100%;
}

.gate-names .host-separator {
  padding-inline: 0.08em;
  color: var(--brass);
}

/* The global reduced-motion rule gives every element a .01ms transition on "all"; in the gate that turns
   each phase change into a thousand transitions (WebKit delays focus behind them). The film is WAAPI-driven. */
@media (prefers-reduced-motion: reduce) {
  .gate,
  .gate *,
  .gate *::before,
  .gate *::after {
    transition: none !important;
  }
}

.main-content {
  opacity: 0;
  transition: opacity 520ms ease;
}

.main-content.is-visible {
  opacity: 1;
}

.music-toggle {
  position: fixed;
  z-index: 12;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  display: grid;
  width: 3rem;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(247, 242, 232, 0.68);
  border-radius: 50%;
  background: var(--night);
  color: #f1c18e;
  cursor: pointer;
}

.music-toggle svg {
  width: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.4;
}

.music-toggle[aria-pressed="false"] {
  color: rgba(247, 242, 232, 0.82);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 680px) {
  :root {
    --page-gutter: 1.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* KC Style Kit v2 — Passport to Love adaptation. Scoped to this invitation. */
.site-footer {
  position: relative;
  z-index: 1;
  isolation: isolate;
  justify-items: center;
  gap: 0;
  /* Leaves a clear pocket for the fixed music ring at the end of the document. */
  padding: clamp(3rem, 8vw, 5rem) var(--page-gutter) max(6rem, calc(4rem + env(safe-area-inset-bottom)));
  border-top: 1px solid rgba(241, 193, 142, 0.18);
  background: var(--night);
  color: var(--paper);
  text-align: center;
}

.site-footer .footer-reveal {
  opacity: 1;
  transform: none;
  transition: opacity 0.8s ease var(--fd, 0s), transform 0.8s var(--ease-out) var(--fd, 0s);
}

.site-footer.is-reveal-ready .footer-reveal {
  opacity: 0;
  transform: translateY(16px);
}

.site-footer.is-reveal-ready .footer-reveal.appeared {
  opacity: 1;
  transform: translateY(0);
}

.site-footer .footer-divider {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  margin-bottom: 1.6rem;
}

.site-footer .footer-divider::before,
.site-footer .footer-divider::after {
  width: clamp(4rem, 22vw, 10rem);
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(241, 193, 142, 0.34));
  content: "";
}

.site-footer .footer-divider::after {
  background: linear-gradient(to left, transparent, rgba(241, 193, 142, 0.34));
}

.site-footer .footer-divider span {
  display: grid;
  width: 1.4rem;
  height: 1.4rem;
  place-items: center;
  color: var(--color-focus);
  animation: ptl-footer-glint 3.6s ease-in-out infinite;
}

.site-footer .footer-compass {
  width: 100%;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 0.85;
}

.site-footer .footer-sello {
  margin-bottom: 1.55rem;
  color: rgba(247, 242, 232, 0.67);
  font-family: var(--type-mono);
  font-size: 0.66rem;
  letter-spacing: 0.11em;
  line-height: 2.2;
  text-transform: uppercase;
  animation: ptl-footer-breath 6s ease-in-out infinite alternate;
}

.site-footer .nombre-dedicado {
  color: #f1c18e;
  font-family: var(--type-editorial);
  font-size: 1.16rem;
  font-style: italic;
  font-weight: 500;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.site-footer .lugar-fecha {
  color: rgba(247, 242, 232, 0.64);
  font-size: 0.61rem;
  letter-spacing: 0.09em;
}

.site-footer .footer-brand {
  position: relative;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 0.65rem;
  padding: 0.45rem 0.35rem;
  color: rgba(247, 242, 232, 0.82);
  text-decoration: none;
  transition: color 0.35s ease;
}

.site-footer .footer-brand::after {
  position: absolute;
  top: 50%;
  right: -0.55rem;
  width: 4px;
  height: 4px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: var(--seal);
  animation: ptl-brand-signal 4s ease-in-out infinite;
  content: "";
  pointer-events: none;
}

.site-footer .ig-ico {
  width: 15px;
  height: 15px;
  flex: none;
  color: #f1c18e;
  opacity: 0.72;
  transition: opacity 0.35s ease, color 0.35s ease;
}

.site-footer .footer-brand-text {
  position: relative;
  display: inline-block;
  overflow: hidden;
  color: #f1c18e;
  font-family: var(--type-editorial);
  font-size: 0.98rem;
  font-style: italic;
  letter-spacing: 0.11em;
  transition: color 0.35s ease, letter-spacing 0.35s ease;
}

.site-footer .footer-brand-text::after {
  position: absolute;
  inset: 0 auto 0 -120%;
  width: 55%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.14), transparent);
  animation: ptl-brand-shimmer 5.8s ease-in-out infinite;
  content: "";
  pointer-events: none;
}

.site-footer .footer-brand:hover,
.site-footer .footer-brand:focus-visible {
  color: #fff8ef;
}

.site-footer .footer-brand:hover .ig-ico,
.site-footer .footer-brand:focus-visible .ig-ico {
  color: #fff8ef;
  opacity: 1;
}

.site-footer .footer-brand:hover .footer-brand-text,
.site-footer .footer-brand:focus-visible .footer-brand-text {
  color: #fff8ef;
  letter-spacing: 0.14em;
}

.music-toggle.kc-float {
  position: fixed;
  z-index: 12;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  display: grid;
  width: 3rem;
  height: 3rem;
  aspect-ratio: 1;
  padding: 0;
  place-items: center;
  overflow: visible;
  transform: translateY(16px);
  border: 0;
  border-radius: 50%;
  outline-offset: 5px;
  background: transparent;
  color: var(--paper);
  opacity: 0;
  cursor: pointer;
  pointer-events: none;
  transition: opacity 0.55s ease, transform 0.55s var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}

.music-toggle.kc-float.visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.music-toggle.kc-float:focus-visible {
  outline: 2px solid var(--color-focus);
  box-shadow: 0 0 0 5px var(--night);
}

.kc-float-glow,
.kc-ring,
.kc-float-bg,
.kc-letter,
.kc-bars {
  pointer-events: none;
}

.kc-float-glow {
  position: absolute;
  inset: -0.65rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(241, 193, 142, 0.2), transparent 70%);
  animation: ptl-music-glow 3.2s ease-in-out infinite alternate;
  transition: opacity 0.5s ease;
}

.kc-float.paused .kc-float-glow {
  opacity: 0.18;
  animation-play-state: paused;
}

.kc-ring {
  position: absolute;
  border: 1px dashed rgba(241, 193, 142, 0.44);
  border-radius: 50%;
  transition: border-color 0.4s ease, box-shadow 0.4s ease;
}

.kc-ring--boda {
  inset: -0.48rem;
  border-width: 1.5px;
  box-shadow: 0 0 8px rgba(241, 193, 142, 0.12);
  animation: ptl-ring-rotate 20s linear infinite;
}

.kc-ring--boda::before {
  position: absolute;
  top: -3px;
  left: 50%;
  width: 5px;
  height: 5px;
  transform: translateX(-50%);
  border-radius: 50%;
  background: var(--kc-ring-dot);
  box-shadow: 0 0 8px 3px rgba(241, 193, 142, 0.55), 0 0 15px 4px rgba(152, 70, 48, 0.28);
  content: "";
  pointer-events: none;
}

.kc-float.paused .kc-ring--boda {
  border-color: rgba(241, 193, 142, 0.18);
  box-shadow: none;
  animation-play-state: paused;
}

.kc-float.paused .kc-ring--boda::before {
  opacity: 0.32;
  box-shadow: none;
}

.kc-float-bg {
  position: absolute;
  inset: 0;
  border: 1px solid rgba(241, 193, 142, 0.38);
  border-radius: 50%;
  background: rgba(23, 37, 56, 0.95);
  box-shadow: 0 5px 18px rgba(9, 16, 25, 0.24);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition: border-color 0.35s ease, background 0.35s ease, transform 0.15s ease;
}

.music-toggle.kc-float:hover .kc-float-bg {
  border-color: rgba(241, 193, 142, 0.72);
  background: rgba(23, 37, 56, 0.99);
}

.kc-letter {
  position: relative;
  z-index: 2;
  margin-top: -0.16rem;
  color: #f1c18e;
  font-family: var(--type-editorial);
  font-size: 0.72rem;
  font-style: italic;
  letter-spacing: -0.02em;
  line-height: 1;
  text-shadow: 0 0 10px rgba(241, 193, 142, 0.18);
  transition: color 0.3s ease, text-shadow 0.3s ease;
}

.kc-float.paused .kc-letter {
  color: rgba(247, 242, 232, 0.76);
  text-shadow: none;
}

.kc-bars {
  position: absolute;
  z-index: 3;
  bottom: 0.34rem;
  left: 50%;
  display: flex;
  gap: 2px;
  transform: translateX(-50%);
}

.kc-bar {
  width: 2px;
  border-radius: 2px;
  background: linear-gradient(to top, var(--seal), #f1c18e);
  animation: ptl-music-bars var(--bar-duration, 0.4s) ease-in-out infinite alternate;
}

.kc-bar:nth-child(1) { height: 6px; --bar-duration: 0.35s; }
.kc-bar:nth-child(2) { height: 9px; --bar-duration: 0.28s; animation-delay: 0.08s; }
.kc-bar:nth-child(3) { height: 5px; --bar-duration: 0.42s; animation-delay: 0.16s; }

.kc-float.paused .kc-bar {
  height: 3px;
  opacity: 0.42;
  animation-play-state: paused;
}

.music-toggle.kc-float:active .kc-float-bg {
  transform: scale(0.94);
}

@keyframes ptl-ring-rotate {
  to { transform: rotate(360deg); }
}

@keyframes ptl-music-glow {
  from { opacity: 0.42; transform: scale(0.92); }
  to { opacity: 0.88; transform: scale(1.1); }
}

@keyframes ptl-music-bars {
  from { height: 3px; opacity: 0.58; }
  to { height: 9px; opacity: 1; }
}

@keyframes ptl-footer-glint {
  0%, 100% { opacity: 0.48; }
  50% { opacity: 1; }
}

@keyframes ptl-footer-breath {
  from { color: rgba(247, 242, 232, 0.54); }
  to { color: rgba(247, 242, 232, 0.78); }
}

@keyframes ptl-brand-signal {
  0%, 45%, 100% { opacity: 0; transform: translateY(-50%) scale(0.5); }
  55%, 85% { opacity: 1; transform: translateY(-50%) scale(1); }
}

@keyframes ptl-brand-shimmer {
  0%, 70% { left: -120%; }
  100% { left: 160%; }
}

@media (max-width: 680px) {
  .site-footer .footer-sello { max-width: 21rem; line-height: 2.05; }
  .music-toggle.kc-float { right: max(1rem, env(safe-area-inset-right)); bottom: max(1rem, env(safe-area-inset-bottom)); }
}

@media (prefers-reduced-motion: reduce) {
  .site-footer .footer-reveal,
  .music-toggle.kc-float,
  .kc-ring--boda,
  .kc-float-glow,
  .kc-bar,
  .site-footer .footer-divider span,
  .site-footer .footer-sello,
  .site-footer .footer-brand::after,
  .site-footer .footer-brand-text::after {
    animation: none !important;
    transition: none !important;
  }

  .site-footer.is-reveal-ready .footer-reveal,
  .site-footer.is-reveal-ready .footer-reveal.appeared,
  .music-toggle.kc-float,
  .music-toggle.kc-float.visible {
    transform: none !important;
    opacity: 1 !important;
  }
}

/* Passport of life — the invitation after the gate. Every section is a new page of the couple's
   passport: its own paper, a torn edge where it begins, an entry stamp, a stitched binding thread,
   and prints glued in by hand. page-scene.mjs draws the art; this block owns layout and paper. */
.ptl-defs {
  position: absolute;
}

.main-content {
  overflow-x: clip;
}

.ptl-page {
  --page-paper: var(--canvas);
  --page-edge: url("texturas/torn-canvas.svg");
  --page-ink: var(--ink);
  --page-soft: var(--ink-soft);
  --page-accent: var(--seal);
  --stitch: #a8322a;
  position: relative;
  background: var(--page-paper) url("texturas/ptl-grain.webp") 0 0 / 192px;
  color: var(--page-ink);
}

.ptl-page:not(.site-footer):not(.site-header) {
  padding: clamp(4.75rem, 13vw, 7.5rem) var(--page-gutter) clamp(4rem, 11vw, 6.5rem);
}

/* The torn top edge: white fibre under the dyed paper, laid over the page before it. */
.ptl-page:not(.site-header)::before {
  position: absolute;
  z-index: 3;
  top: -27px;
  right: 0;
  left: 0;
  height: 40px;
  background: var(--page-edge) 0 0 / 480px 40px repeat-x;
  content: "";
  pointer-events: none;
}

.ptl-page[data-ptl-tone="paper"] { --page-paper: #f7f2e8; --page-edge: url("texturas/torn-paper.svg"); }
.ptl-page[data-ptl-tone="sepia"] { --page-paper: #e6d5b8; --page-edge: url("texturas/torn-sepia.svg"); --page-soft: #4a3f30; --page-accent: #7e2a22; }
.ptl-page[data-ptl-tone="ocean"] { --page-paper: #b4c9d3; --page-edge: url("texturas/torn-ocean.svg"); --page-soft: #2f3c47; --page-accent: #7e2a22; }
.ptl-page:is([data-ptl-tone="navy"], [data-ptl-tone="wine"]) {
  background:
    linear-gradient(color-mix(in srgb, var(--page-paper) 58%, transparent), color-mix(in srgb, var(--page-paper) 58%, transparent)),
    url("texturas/ptl-grain.webp") 0 0 / 192px,
    var(--page-paper);
}

.ptl-page[data-ptl-tone="navy"] { --page-paper: #1c2c44; --page-edge: url("texturas/torn-navy.svg"); --page-ink: #f7f2e8; --page-soft: rgb(247 242 232 / 0.86); --page-accent: #f0bc75; --stitch: #c9a160; }
.ptl-page[data-ptl-tone="wine"] { --page-paper: #7e2a22; --page-edge: url("texturas/torn-wine.svg"); --page-ink: #f7f2e8; --page-soft: rgb(247 242 232 / 0.9); --page-accent: #f0bc75; --stitch: #f0bc75; }

.ptl-page > *:not(.ptl-art) {
  position: relative;
  z-index: 1;
}

.ptl-art {
  position: absolute;
  z-index: 0;
  inset: 0;
  pointer-events: none;
}

.ptl-a {
  position: absolute;
}

.ptl-a > svg,
.ptl-piece {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

/* The stitched binding runs down every page, in the gutter. */
.ptl-stitch {
  position: absolute;
  top: 0;
  left: max(5px, calc(50% - var(--measure) / 2 - 2.4rem));
  width: 12px;
  height: 100%;
  overflow: visible;
  fill: none;
  stroke: var(--stitch);
  stroke-dasharray: 6 5;
  stroke-linecap: round;
  stroke-width: 1.6;
  opacity: 0.8;
  transition: clip-path 1.6s linear;
}

.ptl-reveal .ptl-page:not(.is-inked) .ptl-stitch {
  clip-path: inset(0 0 100% 0);
}

/* Pieces are placed by hand the first time a page is seen; stamps thump. */
.ptl-in {
  transition: opacity 0.45s linear var(--d, 0ms), transform 0.8s cubic-bezier(0.28, 1.18, 0.42, 1) var(--d, 0ms);
}

.ptl-reveal .ptl-page:not(.is-inked) .ptl-in {
  opacity: 0;
  transform: translateY(26px) rotate(1.4deg);
}

.ptl-reveal .ptl-page:not(.is-inked) :is(.ptl-stamp-slot, .count-unit, .ptl-a--stamp).ptl-in {
  transform: scale(1.32) rotate(-5deg);
}

.ptl-page :is(.ptl-stamp-slot, .count-unit, .ptl-a--stamp).ptl-in {
  transition: opacity 0.16s linear var(--d, 0ms), transform 0.38s cubic-bezier(0.2, 1.32, 0.4, 1) var(--d, 0ms);
}

/* Shared type: Cinzel headlines, Cormorant italic accents, typewriter labels. */
.ptl-page h2 {
  font-family: var(--type-display);
  font-size: clamp(2.05rem, 8.4vw, 3.9rem);
  font-weight: 400;
  letter-spacing: -0.035em;
  line-height: 1;
}

.ptl-page h2 em {
  color: var(--page-accent);
  font-family: var(--type-editorial);
  font-size: 1.12em;
  font-style: italic;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.ptl-page .eyebrow {
  width: fit-content;
  margin-bottom: 1rem;
  color: var(--page-eyebrow, #7e2a22);
}

.ptl-page h2 {
  width: fit-content;
}

.ptl-page:is([data-ptl-tone="navy"], [data-ptl-tone="wine"]) {
  --page-eyebrow: #f0bc75;
}

.section-heading {
  position: relative;
  display: grid;
  width: min(100%, var(--measure));
  gap: 1rem;
  margin: 0 auto 2.2rem;
}

.section-note {
  max-width: 22rem;
  color: var(--page-soft);
  font-family: var(--type-editorial);
  font-size: 1.12rem;
  line-height: 1.45;
}

.ptl-stamp-slot {
  position: absolute;
  top: -3.6rem;
  right: 0;
  width: clamp(5.4rem, 24vw, 7.4rem);
  rotate: 9deg;
  pointer-events: none;
}

.ptl-stamp {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.scroll-cue {
  width: min(100%, var(--measure));
  margin: 0 auto 1rem;
  color: var(--page-soft);
  font-family: var(--type-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
}

/* Header: a torn cream ribbon; the wordmark is a round stamp. */
.site-header {
  z-index: 2;
  display: grid;
  min-height: 4.4rem;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1rem;
  padding: 0.7rem var(--page-gutter) 1.5rem;
}

.wordmark {
  display: flex;
  width: 2.9rem;
  aspect-ratio: 1;
  align-items: center;
  justify-content: center;
  border: 1.5px solid var(--seal);
  border-radius: 50%;
  box-shadow: inset 0 0 0 3px var(--page-paper), inset 0 0 0 4px var(--seal);
  color: var(--seal);
  font-family: var(--type-display);
  font-size: 0.92rem;
  rotate: -9deg;
  text-decoration: none;
}

.wordmark span {
  padding-inline: 0.05em;
}

.site-header nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 1.2rem;
}

.site-header nav a {
  color: var(--ink-soft);
  font-family: var(--type-mono);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
}

.site-header nav a:hover {
  color: var(--seal);
  text-decoration: underline dashed;
}

.header-edition {
  color: var(--ink-soft);
  font-family: var(--type-mono);
  font-size: 0.68rem;
}

.header-edition span {
  color: var(--seal);
}

/* Hero: the passport lies open on the journal. Navy cover, two cream pages, a data page, an entry stamp. */
.passport-hero {
  overflow: clip;
}

.passport-book {
  position: relative;
  display: grid;
  width: min(100%, 64rem);
  margin: 0 auto;
  padding: 0.7rem;
  border-radius: 0.9rem;
  background:
    radial-gradient(120% 90% at 30% 20%, rgb(255 255 255 / 0.07), transparent 60%),
    url("texturas/ptl-grain.webp") 0 0 / 120px,
    #1c2c44;
  box-shadow:
    0 1.6rem 2.6rem -1.4rem rgb(40 25 10 / 0.55),
    0 0.4rem 0 -0.1rem #121d2e;
  rotate: -0.6deg;
}

.passport-leaf {
  position: relative;
  padding: clamp(1.6rem, 6vw, 2.8rem);
  background:
    repeating-radial-gradient(circle at 18% 112%, transparent 0 11px, rgb(49 81 107 / 0.06) 11px 12px),
    repeating-radial-gradient(circle at 92% -12%, transparent 0 13px, rgb(152 70 48 / 0.05) 13px 14px),
    #f4ecdc;
}

.passport-intro {
  border-radius: 0.45rem 0.45rem 0 0;
  box-shadow: inset 0 -1.4rem 1.4rem -1.2rem rgb(60 40 20 / 0.28);
}

.passport-intro h2 {
  margin-bottom: 1.1rem;
}

.passport-intro > p:not(.eyebrow) {
  max-width: 26rem;
  color: var(--ink-soft);
  font-family: var(--type-editorial);
  font-size: 1.3rem;
  line-height: 1.4;
}

#passport-title:focus-visible {
  position: relative;
  outline: none;
}

#passport-title:focus-visible::before {
  position: absolute;
  top: 0.2em;
  bottom: 0.2em;
  left: -0.7rem;
  width: 3px;
  background: var(--color-action);
  content: "";
}

.text-link {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  gap: 0.45rem;
  margin-top: 1.2rem;
  color: var(--color-action);
  font-size: 0.95rem;
  text-decoration-style: dashed;
}

.passport-card {
  border-radius: 0 0 0.45rem 0.45rem;
  box-shadow: inset 0 1.4rem 1.4rem -1.2rem rgb(60 40 20 / 0.24);
}

.passport-card-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  margin-bottom: 1.2rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px dashed rgb(49 81 107 / 0.35);
}

.passport-card-head > div {
  display: grid;
  gap: 0.2rem;
}

.passport-card-head .micro-label {
  color: var(--seal);
}

.passport-kind {
  color: var(--ink-soft);
}

.passport-rose {
  width: 2.4rem;
  fill: none;
  stroke: var(--brass);
  stroke-width: 1;
}

.passport-card-body {
  display: grid;
  grid-template-columns: minmax(6.5rem, 0.7fr) 1.3fr;
  gap: 1.1rem;
  align-items: start;
}

.passport-photo {
  position: relative;
  padding: 0.35rem 0.35rem 0.5rem;
  background: #fbf8f1;
  box-shadow: 0.15rem 0.3rem 0 -0.05rem rgb(60 40 20 / 0.18), 0 0.5rem 0.9rem -0.4rem rgb(60 40 20 / 0.4);
  rotate: -2deg;
}

/* Brass eyelet holding the photo to the page. */
.passport-photo::before {
  position: absolute;
  z-index: 1;
  top: -0.45rem;
  left: 50%;
  width: 0.95rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, #3b2f25 0 30%, #c9a160 32% 62%, #8a6a45 64% 70%, transparent 72%);
  content: "";
  translate: -50% 0;
}

.passport-photo img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  filter: grayscale(0.15) sepia(0.12);
}

.passport-photo figcaption {
  margin-top: 0.4rem;
  color: var(--ink-soft);
  font-family: var(--type-mono);
  font-size: 0.58rem;
  letter-spacing: 0.06em;
}

.passport-fields {
  display: grid;
  gap: 0.85rem;
}

.passport-field {
  display: grid;
  gap: 0.15rem;
  padding-bottom: 0.6rem;
  border-bottom: 1px dotted rgb(32 35 41 / 0.28);
}

.passport-field h3 {
  font-family: var(--type-display);
  font-size: 1.28rem;
  font-weight: 400;
}

.passport-field h3 .host-separator {
  color: var(--seal);
  font-family: var(--type-editorial);
  font-style: italic;
}

.passport-field time,
.passport-field p {
  font-family: var(--type-editorial);
  font-size: 1.12rem;
  line-height: 1.3;
}

.passport-card-foot {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.2rem;
  color: var(--ink-soft);
  font-family: var(--type-mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.foot-separator {
  color: var(--seal);
}

.ptl-stamp-slot--hero {
  top: -2.6rem;
  right: -1.3rem;
  width: clamp(6.4rem, 30vw, 8.4rem);
  rotate: -13deg;
  mix-blend-mode: multiply;
}

.passport-hero .ptl-a--compass { top: 1.1rem; right: -1.6rem; width: 6.6rem; rotate: 7deg; }
.passport-hero .ptl-a--flight { top: 1.2rem; left: 0.4rem; width: 9rem; }
.passport-hero .ptl-a--flora { bottom: 0.4rem; left: -2.2rem; width: 8.5rem; }

/* Dedication: a letter on sepia paper, taped in, sealed K&S. */
.dedication-letter {
  width: min(100%, 36rem);
  margin: 0 auto;
  padding: clamp(2.2rem, 8vw, 3.4rem) clamp(1.5rem, 6vw, 3rem) clamp(2rem, 7vw, 3rem);
  background:
    linear-gradient(transparent 0 2.05rem, rgb(49 81 107 / 0.1) 2.05rem 2.12rem) 0 1.2rem / 100% 2.12rem,
    #f7f2e8;
  box-shadow: 0.2rem 0.4rem 0 -0.05rem rgb(60 40 20 / 0.16), 0 1rem 1.6rem -0.8rem rgb(60 40 20 / 0.45);
  rotate: -1.1deg;
}

/* Washi tape across the top of the letter. */
.dedication-letter::before {
  position: absolute;
  top: -0.9rem;
  left: 50%;
  width: 7.5rem;
  height: 1.7rem;
  background: repeating-linear-gradient(90deg, rgb(201 161 96 / 0.55) 0 10px, rgb(214 180 120 / 0.5) 10px 20px);
  content: "";
  rotate: -4deg;
  translate: -50% 0;
}

.dedication-mark {
  position: absolute;
  top: -2.1rem;
  right: -1rem;
  display: flex;
  width: 4.2rem;
  aspect-ratio: 1;
  align-items: center;
  justify-content: center;
  gap: 0.1em;
  border-radius: 50%;
  background: radial-gradient(circle, #984630 0 58%, #8a3d29 60% 100%);
  box-shadow: inset 0 0 0 0.3rem #984630, inset 0 0 0 0.38rem rgb(247 242 232 / 0.55), 0.15rem 0.3rem 0.4rem rgb(40 20 10 / 0.35);
  color: #f7f2e8;
  font-family: var(--type-display);
  font-size: 1.05rem;
  rotate: 11deg;
}

.dedication-mark span {
  font-family: var(--type-editorial);
  font-style: italic;
}

.dedication-copy .eyebrow {
  color: #7e2a22;
}

.dedication-copy h2 {
  margin-bottom: 1rem;
  font-size: clamp(1.7rem, 6.6vw, 2.6rem);
}

.dedication-copy blockquote {
  margin: 0 0 1.4rem;
  color: var(--ink-soft);
  font-family: var(--type-editorial);
  font-size: 1.45rem;
  font-style: italic;
  line-height: 1.4;
}

.signature {
  color: #7e2a22;
  font-family: var(--type-editorial);
  font-size: 1.2rem;
  font-style: italic;
}

.dedication .ptl-a--sprig { right: 8%; bottom: 1.2rem; width: 3.2rem; rotate: 18deg; }

/* Story: three postcards on a map-blue page, each with a numbered postage stamp and a postmark. */
.story-track,
.gallery-track {
  display: flex;
  width: min(100%, var(--measure));
  gap: 1.3rem;
  margin: 0 auto;
  padding: 1.4rem 0.4rem 1.8rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
  list-style: none;
}

.story-entry {
  position: relative;
  flex: 0 0 min(80vw, 21rem);
  padding: 0.7rem 0.7rem 1.2rem;
  background: #f7f2e8;
  box-shadow: 0.2rem 0.35rem 0 -0.05rem rgb(40 30 20 / 0.18), 0 0.9rem 1.4rem -0.7rem rgb(20 30 40 / 0.5);
  scroll-snap-align: center;
}

.story-entry:nth-child(1) { rotate: -1.6deg; }
.story-entry:nth-child(2) { rotate: 1.2deg; }
.story-entry:nth-child(3) { rotate: -0.8deg; }

.story-entry figure {
  overflow: hidden;
}

.story-entry figure img {
  width: 100%;
  aspect-ratio: 5 / 4;
  object-fit: cover;
}

.story-stamp {
  position: absolute;
  z-index: 2;
  top: -0.8rem;
  right: -0.5rem;
  display: grid;
  width: 3.2rem;
  height: 3.8rem;
  place-items: center;
  background: radial-gradient(circle, transparent 2.1px, #f7f2e8 2.6px) -3px -3px / 7px 7px;
  color: var(--seal);
  font-family: var(--type-display);
  font-size: 1.15rem;
  rotate: 7deg;
}

.story-stamp::before {
  position: absolute;
  z-index: -1;
  inset: 5px;
  border: 1px solid rgb(152 70 48 / 0.45);
  background: #f3e6cd;
  content: "";
}

.ptl-postmark-slot {
  position: absolute;
  z-index: 2;
  top: 38%;
  left: 0.4rem;
  width: 5.6rem;
  mix-blend-mode: multiply;
  rotate: -8deg;
}

.story-copy {
  padding: 1rem 0.4rem 0;
  background: linear-gradient(transparent 0 1.72rem, rgb(49 81 107 / 0.14) 1.72rem 1.78rem) 0 0.55rem / 100% 1.78rem;
}

.story-kicker {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--seal);
}

.story-copy h3 {
  margin-bottom: 0.45rem;
  font-family: var(--type-display);
  font-size: 1.28rem;
  font-weight: 400;
  line-height: 1.15;
}

.story-copy p {
  color: var(--ink-soft);
  font-family: var(--type-editorial);
  font-size: 1.1rem;
  line-height: 1.6;
}

.story-section .ptl-a--flight { top: 0.4rem; left: 30%; width: 5.6rem; opacity: 0.9; }

/* Gallery: polaroids taped onto a torn world map. */
.gallery-entry {
  flex: 0 0 min(74vw, 19rem);
  scroll-snap-align: center;
}

.gallery-entry figure {
  position: relative;
  padding: 0.7rem 0.7rem 3rem;
  background: #fbf8f1;
  box-shadow: 0.2rem 0.35rem 0 -0.05rem rgb(60 40 20 / 0.16), 0 1rem 1.5rem -0.7rem rgb(60 40 20 / 0.5);
}

.gallery-entry:nth-child(1) figure { rotate: -2.2deg; }
.gallery-entry:nth-child(2) figure { rotate: 1.8deg; margin-top: 1.4rem; }
.gallery-entry:nth-child(3) figure { rotate: -1deg; }

.gallery-entry figure::before {
  position: absolute;
  z-index: 1;
  top: -0.8rem;
  left: 50%;
  width: 5.6rem;
  height: 1.5rem;
  background: repeating-linear-gradient(135deg, rgb(157 183 196 / 0.6) 0 8px, rgb(180 201 211 / 0.55) 8px 16px);
  content: "";
  rotate: 3deg;
  translate: -50% 0;
}

.gallery-entry img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
}

.gallery-entry figcaption {
  position: absolute;
  right: 0.9rem;
  bottom: 0.8rem;
  left: 0.9rem;
  color: var(--ink);
  font-family: var(--type-editorial);
  font-size: 1.2rem;
  font-style: italic;
}

.gallery-entry figcaption span {
  margin-right: 0.35rem;
  color: var(--seal);
  font-family: var(--type-mono);
  font-size: 0.7rem;
  font-style: normal;
}

.gallery-section .ptl-a--map { top: clamp(20rem, 76vw, 21.5rem); left: 50%; width: min(118%, 46rem); rotate: 3deg; translate: -50% 0; }

/* Countdown: Khal's passport cover; every unit is a foil stamp. */
.countdown-section {
  display: grid;
  justify-items: center;
  text-align: center;
}

.countdown-ornament svg {
  width: 6rem;
  margin: 0 auto 1rem;
  fill: none;
  stroke: #c9a160;
  stroke-width: 1;
}

.countdown {
  display: grid;
  width: min(100%, 44rem);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.4rem 1.2rem;
  margin: 2.6rem auto 1rem;
}

.count-unit {
  position: relative;
  display: grid;
  min-height: 7.4rem;
  place-content: center;
  justify-items: center;
}

.count-unit:nth-of-type(odd) { rotate: -4deg; }
.count-unit:nth-of-type(even) { rotate: 3deg; }

.ptl-count-stamp {
  position: absolute;
  z-index: -1;
  top: 50%;
  left: 50%;
  width: 100%;
  max-width: 8.6rem;
  translate: -50% -50%;
}

.count-unit > span:not(.count-label) {
  min-width: 3ch;
  color: #f7f2e8;
  font-family: var(--type-display);
  font-size: clamp(2rem, 9vw, 2.8rem);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.count-label {
  margin-top: 0.35rem;
  color: #f0bc75;
  font-size: 0.66rem;
}

.count-divider {
  display: none;
}

.countdown-status {
  color: var(--page-soft);
  font-family: var(--type-editorial);
  font-size: 1.2rem;
}

.countdown-section .ptl-a--compass { top: 1.4rem; right: 6%; width: 7rem; opacity: 0.28; }

/* Itinerary: a sepia route sheet, two stops pinned with hearts, the venue print held by photo corners. */
.itinerary-layout {
  display: grid;
  width: min(100%, var(--measure));
  gap: 2.4rem;
  margin: 0 auto;
}

.venue-photo {
  position: relative;
  justify-self: center;
  width: min(100%, 24rem);
  padding: 0.7rem 0.7rem 0.9rem;
  background:
    linear-gradient(135deg, #3b2f25 0 50%, transparent 50%) 0 0 / 1.3rem 1.3rem no-repeat,
    linear-gradient(225deg, #3b2f25 0 50%, transparent 50%) 100% 0 / 1.3rem 1.3rem no-repeat,
    linear-gradient(45deg, #3b2f25 0 50%, transparent 50%) 0 100% / 1.3rem 1.3rem no-repeat,
    linear-gradient(315deg, #3b2f25 0 50%, transparent 50%) 100% 100% / 1.3rem 1.3rem no-repeat,
    #fbf8f1;
  box-shadow: 0 1rem 1.5rem -0.8rem rgb(60 40 20 / 0.5);
  rotate: -1.8deg;
}

.venue-photo img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.venue-photo figcaption {
  margin-top: 0.6rem;
  color: var(--ink-soft);
  font-family: var(--type-editorial);
  font-size: 1.02rem;
  font-style: italic;
}

.itinerary-route {
  display: grid;
  gap: 1.2rem;
}

.ptl-route-map {
  width: min(100%, 26rem);
  justify-self: center;
  rotate: 1.2deg;
}

.itinerary-list {
  display: grid;
  gap: 1.1rem;
  list-style: none;
}

.itinerary-stop {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 1rem;
  padding: 1.1rem 1.2rem 1.2rem;
  background: #f7f2e8;
  box-shadow: 0.15rem 0.3rem 0 -0.05rem rgb(60 40 20 / 0.15), 0 0.8rem 1.2rem -0.7rem rgb(60 40 20 / 0.45);
}

.itinerary-stop:nth-child(1) { rotate: -0.8deg; }
.itinerary-stop:nth-child(2) { rotate: 0.9deg; }

.stop-number {
  display: grid;
  width: 2.6rem;
  aspect-ratio: 1;
  place-items: center;
  border: 1.5px solid var(--seal);
  border-radius: 50%;
  box-shadow: inset 0 0 0 3px #f7f2e8, inset 0 0 0 4px rgb(152 70 48 / 0.5);
  color: var(--seal);
  font-family: var(--type-mono);
  font-size: 0.8rem;
  rotate: -8deg;
}

.stop-label {
  color: var(--seal);
  font-family: var(--type-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
}

.stop-copy time {
  display: block;
  font-family: var(--type-display);
  font-size: 1.75rem;
  line-height: 1.15;
}

.stop-copy address {
  color: var(--ink-soft);
  font-family: var(--type-editorial);
  font-size: 1.08rem;
  font-style: normal;
  line-height: 1.35;
}

.stop-mark {
  display: none;
}

/* Dress code: a garment tag on a string, a bow tie and a dress cut from paper. */
.dress-section {
  display: grid;
  justify-items: center;
  text-align: center;
}

.dress-number,
.dress-rule {
  display: none;
}

.dress-copy {
  display: grid;
  justify-items: center;
}

.dress-tag {
  position: relative;
  display: grid;
  width: 9.4rem;
  aspect-ratio: 104 / 244;
  margin: 0.6rem 0 1.4rem;
  place-items: center;
  padding-top: 42%;
  rotate: -4deg;
}

.ptl-dress-tag-bg {
  position: absolute;
  z-index: -1;
  inset: 0;
}

.dress-code {
  color: var(--ink);
  font-family: var(--type-display);
  font-size: 1.5rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dress-code::before {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--seal);
  font-family: var(--type-mono);
  font-size: 0.6rem;
  letter-spacing: 0.16em;
  content: "Código";
}

.dress-copy > p:last-child {
  max-width: 22rem;
  color: var(--page-soft);
  font-family: var(--type-editorial);
  font-size: 1.2rem;
}

.dress-section .ptl-a--silhouettes { top: 16.5rem; right: max(4%, calc(50% - 15rem)); width: 7rem; rotate: -3deg; }

/* Gifts: Silvie's wine-red page; the message is a card slipped half out of an envelope. */
.gift-note {
  display: grid;
  justify-items: center;
}

.gift-envelope {
  position: relative;
  width: min(100%, 25rem);
  padding: 0 1rem 4.6rem;
}

/* Envelope back and open flap, then the pocket over the card's foot. */
.gift-envelope::before,
.gift-envelope::after {
  position: absolute;
  right: 0;
  left: 0;
  content: "";
}

.gift-envelope::before {
  z-index: -1;
  top: 30%;
  bottom: 0;
  background: #e6d5b8;
  box-shadow: 0 1.2rem 1.8rem -0.8rem rgb(20 5 5 / 0.6);
}

.gift-envelope::after {
  z-index: 2;
  bottom: 0;
  height: 8.2rem;
  background: #efe2c8;
  clip-path: polygon(0 0, 50% 55%, 100% 0, 100% 100%, 0 100%);
  box-shadow: inset 0 0.3rem 0.4rem rgb(60 40 20 / 0.2);
}

.gift-card {
  padding: 2rem 1.6rem 5.2rem;
  background: #fbf8f1;
  box-shadow: 0 0.5rem 1rem -0.5rem rgb(60 40 20 / 0.4);
  color: var(--ink);
  text-align: center;
  rotate: -1.2deg;
}

.gift-card .eyebrow {
  color: var(--seal);
}

.gift-card h2 {
  margin-bottom: 1rem;
  font-size: clamp(1.8rem, 7vw, 2.6rem);
}

.gift-card h2 em {
  color: var(--seal);
}

.gift-card p:last-child {
  color: var(--ink-soft);
  font-family: var(--type-editorial);
  font-size: 1.2rem;
  line-height: 1.45;
}

.ptl-gift-seal {
  position: absolute;
  z-index: 3;
  bottom: 3.2rem;
  left: calc(50% - 1.6rem);
  width: 3.2rem;
}

.ptl-rsvp-postmark {
  position: absolute;
  top: -1.5rem;
  right: 5.6rem;
  width: 5.4rem;
  mix-blend-mode: multiply;
  rotate: -10deg;
}
.gift-note .ptl-a--sprig { top: 3rem; right: 10%; width: 3rem; rotate: 22deg; }

/* RSVP: a reply postcard; the form stays closed until a verified backend exists. */
.rsvp-postcard {
  position: relative;
  display: grid;
  width: min(100%, 56rem);
  gap: 1.6rem;
  margin: 0 auto;
  padding: 2.4rem 1.4rem 1.8rem;
  background: #f7f2e8;
  box-shadow: 0.2rem 0.4rem 0 -0.05rem rgb(60 40 20 / 0.15), 0 1.2rem 1.8rem -0.9rem rgb(60 40 20 / 0.5);
  rotate: -0.5deg;
}

.rsvp-stamp {
  position: absolute;
  top: -1.1rem;
  right: 1rem;
  display: grid;
  width: 4.2rem;
  height: 4.8rem;
  grid-template-columns: 1fr 1fr;
  place-content: center;
  place-items: center;
  background: radial-gradient(circle, transparent 2.1px, #f7f2e8 2.6px) -3px -3px / 7px 7px;
  color: var(--seal);
  font-family: var(--type-display);
  font-size: 1.05rem;
  rotate: 6deg;
}

.rsvp-stamp::before {
  position: absolute;
  z-index: -1;
  inset: 5px;
  border: 1px solid rgb(152 70 48 / 0.45);
  background: #efe2c8;
  content: "";
}

.rsvp-copy {
  max-width: 24rem;
}

.rsvp-copy h2 {
  margin-bottom: 0.8rem;
}

.rsvp-copy > p:last-child {
  color: var(--ink-soft);
  font-family: var(--type-editorial);
  font-size: 1.2rem;
}

.rsvp-form fieldset {
  display: grid;
  gap: 0.55rem;
  min-width: 0;
  padding: 0;
  border: 0;
}

.rsvp-form legend {
  margin-bottom: 0.6rem;
  color: var(--seal);
  font-family: var(--type-mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.rsvp-form label {
  color: var(--ink-soft);
  font-size: 0.85rem;
}

.rsvp-form input:not([type="radio"]),
.rsvp-form select {
  min-height: 2.9rem;
  padding: 0.4rem 0.2rem;
  border: 0;
  border-bottom: 1.5px dashed rgb(49 81 107 / 0.5);
  background: transparent;
  color: var(--ink);
  font-family: var(--type-editorial);
  font-size: 1.15rem;
}

.rsvp-options {
  display: grid;
  gap: 0.6rem;
  margin-block: 0.6rem;
}

.rsvp-options label {
  display: flex;
  min-height: 2.75rem;
  align-items: center;
  gap: 0.6rem;
  font-size: 1rem;
}

.rsvp-form input[type="radio"] {
  width: 1.15rem;
  height: 1.15rem;
  accent-color: var(--seal);
}

.rsvp-form button {
  min-height: 3rem;
  margin-top: 0.4rem;
  border: 1.5px solid var(--color-action);
  background: transparent;
  color: var(--color-action);
  font-family: var(--type-mono);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.rsvp-form fieldset:disabled {
  opacity: 0.62;
}

.rsvp-form fieldset:disabled :is(input, select, button) {
  cursor: not-allowed;
}

.rsvp-status {
  margin-top: 1rem;
  color: var(--ink-soft);
  font-family: var(--type-editorial);
  font-size: 1.08rem;
  font-style: italic;
}


/* KC-Echoes: a travel camera, navy cloth and brass, floating above the page. */
.capture-section {
  display: grid;
  justify-items: center;
  text-align: center;
}

.capture-card {
  display: grid;
  width: min(100%, 28rem);
  justify-items: center;
}

.capture-cam {
  display: block;
  width: 10.5rem;
  height: auto;
  margin-bottom: 1.4rem;
  overflow: visible;
  filter: drop-shadow(0.2rem 0.45rem 0 rgb(60 40 20 / 0.2));
  animation: kc-echoes-levita 4.6s ease-in-out infinite;
}

@keyframes kc-echoes-levita {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-6px) rotate(1deg); }
}

.capture-card h2 {
  margin-bottom: 1rem;
}

.capture-note {
  max-width: 22rem;
  color: var(--page-soft);
  font-family: var(--type-editorial);
  font-size: 1.25rem;
  line-height: 1.45;
}

.capture-btn {
  min-height: 3rem;
  margin-top: 1.6rem;
  padding: 0.7rem 1.8rem;
  border: 1.5px solid var(--color-action);
  background: transparent;
  color: var(--color-action);
  font-family: var(--type-mono);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.capture-btn:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

@media (prefers-reduced-motion: reduce) {
  .capture-cam { animation: none; }
}

/* Afterword: a folded note on the last page. */
.afterword {
  display: grid;
  justify-items: center;
  text-align: center;
}

.afterword-rule {
  display: flex;
  width: min(100%, 20rem);
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.6rem;
  color: var(--brass);
}

.afterword-rule span {
  height: 1px;
  flex: 1;
  background: currentColor;
}

.afterword-rule svg {
  width: 1.5rem;
  fill: none;
  stroke: currentColor;
}

.message-toggle {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  gap: 0.8rem;
  padding: 0.7rem 1.4rem;
  border: 0;
  background: linear-gradient(225deg, transparent 0 0.9rem, #fbf8f1 0.9rem) ;
  box-shadow: 0.15rem 0.3rem 0 -0.05rem rgb(60 40 20 / 0.16);
  color: var(--ink);
  cursor: pointer;
  font-family: var(--type-editorial);
  font-size: 1.25rem;
  font-style: italic;
  rotate: -1deg;
}

.toggle-symbol {
  display: grid;
  width: 1.7rem;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid var(--seal);
  border-radius: 50%;
  color: var(--seal);
  font-style: normal;
  transition: rotate 0.3s var(--ease-out);
}

.message-toggle[aria-expanded="true"] .toggle-symbol {
  rotate: 45deg;
}

.message-panel {
  width: min(100%, 32rem);
  margin-top: 1.6rem;
  padding: 2rem 1.6rem;
  background: #fbf8f1;
  box-shadow: 0 1rem 1.5rem -0.8rem rgb(60 40 20 / 0.45);
  transform-origin: 50% 0;
}

.message-panel h2 {
  margin-bottom: 1rem;
  font-size: clamp(1.6rem, 6vw, 2.3rem);
}

.message-panel > p:not(.signature) {
  color: var(--ink-soft);
  font-family: var(--type-editorial);
  font-size: 1.2rem;
  line-height: 1.5;
}

.message-panel .signature {
  margin-top: 1rem;
}

.afterword .ptl-a--sprig { right: 7%; bottom: 0.6rem; width: 2.6rem; rotate: 24deg; }

/* Footer: the passport's back cover — navy, grain, a brass double rule, a departure stamp. */
.site-footer.ptl-page {
  border-top: 0;
}

.site-footer.ptl-page::after {
  position: absolute;
  z-index: 0;
  inset: 1.1rem 0.8rem 0.8rem;
  border: 1px solid rgb(201 161 96 / 0.45);
  box-shadow: inset 0 0 0 3px #1c2c44, inset 0 0 0 4px rgb(201 161 96 / 0.3);
  content: "";
  pointer-events: none;
}

.site-footer .ptl-a--stamp { top: 1.9rem; left: 5%; width: 4.4rem; rotate: -12deg; opacity: 0.75; }
.site-footer .ptl-a--flight { bottom: 1.3rem; left: 5%; width: 5.6rem; opacity: 0.8; }

@media (min-width: 700px) {
  .countdown {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .rsvp-postcard {
    grid-template-columns: 0.9fr 1.1fr;
    padding: 3rem 2.6rem 2.4rem;
    background:
      linear-gradient(90deg, transparent calc(45% - 1px), rgb(49 81 107 / 0.2) calc(45% - 1px) 45%, transparent 45%),
      #f7f2e8;
  }
}

@media (min-width: 900px) {
  .passport-book {
    grid-template-columns: 1fr 1.08fr;
  }

  .passport-intro {
    display: grid;
    align-content: center;
    border-radius: 0.45rem 0 0 0.45rem;
    box-shadow: inset -1.6rem 0 1.6rem -1.4rem rgb(60 40 20 / 0.3);
  }

  .passport-card {
    border-radius: 0 0.45rem 0.45rem 0;
    box-shadow: inset 1.6rem 0 1.6rem -1.4rem rgb(60 40 20 / 0.26);
  }

  .passport-hero .ptl-a--compass { top: 2rem; right: 2%; width: 8rem; }
  .passport-hero .ptl-a--flight { top: 1.6rem; left: 6%; width: 12rem; }
  .passport-hero .ptl-a--flora { bottom: 1rem; left: 3%; width: 11rem; }

  .section-heading {
    grid-template-columns: 1fr auto;
    align-items: end;
  }

  .story-track,
  .gallery-track {
    overflow: visible;
    justify-content: center;
  }

  .story-entry,
  .gallery-entry {
    flex: 1 1 0;
  }

  .scroll-cue {
    display: none;
  }

  .itinerary-layout {
    grid-template-columns: 0.9fr 1.1fr;
    align-items: center;
  }

  .ptl-count-stamp { max-width: 10.5rem; }

  .count-unit { min-height: 9rem; }

  .venue-photo { width: min(100%, 30rem); }
}

@media (max-width: 680px) {
  .site-header {
    grid-template-columns: auto 1fr;
  }

  .site-header nav a {
    font-size: 0.64rem;
    letter-spacing: 0.06em;
  }

  .header-edition {
    display: none;
  }

  .site-header nav {
    justify-content: flex-end;
  }
}

@media (max-width: 370px) {
  .site-header nav {
    gap: 0.3rem 0.7rem;
  }

  .site-header nav a {
    font-size: 0.62rem;
  }

  .passport-card-body {
    grid-template-columns: minmax(5.8rem, 0.68fr) 1.32fr;
    gap: 0.8rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ptl-in,
  .ptl-stitch {
    transition: none !important;
  }
}

/* KC musical ring — passport edition. Still the same ring and button: a travel postmark that turns
   while the song plays, a stitched red thread spinning the other way, a little paper plane orbiting
   the rim, and Khal's navy passport cover in the middle. */
.music-toggle.kc-float {
  width: 3.1rem;
  height: 3.1rem;
}

.kc-ring--boda {
  z-index: 0;
  inset: -0.78rem;
  border: 0;
  background:
    radial-gradient(circle at 32% 28%, rgb(255 255 255 / 0.45), transparent 58%),
    url("texturas/ptl-grain.webp") 0 0 / 64px,
    #f4ecdc;
  box-shadow: 0 0.35rem 0.8rem rgb(40 25 10 / 0.32), inset 0 0 0 1px rgb(166 124 77 / 0.45);
}

/* The old button icon rule (.music-toggle svg) would squeeze the rim to 20px: the stamp wins here. */
.music-toggle .kc-ring-stamp {
  position: absolute;
  inset: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  overflow: visible;
  stroke: none;
}

/* The orbiting dot becomes a paper plane flying the rim (nose along the direction of turn). */
.kc-ring--boda::before {
  top: -0.62rem;
  width: 1.2rem;
  height: 1.1rem;
  border-radius: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-46 -23 50 46'%3E%3Cpath d='M-13 -3L-24 -20L-30 -20L-25.5 -3ZM-13 3L-24 20L-30 20L-25.5 3ZM-34 -2.6L-40 -9.5L-43.5 -9.5L-40.5 -2.4ZM-34 2.6L-40 9.5L-43.5 9.5L-40.5 2.4Z' fill='%23ece5d8' stroke='%23b8ad99' stroke-width='.6'/%3E%3Cpath d='M-24 -20L-30 -20L-28.9 -16.8L-22.2 -16.8ZM-24 20L-30 20L-28.9 16.8L-22.2 16.8Z' fill='%23a8322a'/%3E%3Cpath d='M0 0C-1 -2.6-4 -3.6-8 -3.6L-34 -3C-38 -2.8-41 -1.6-42 0C-41 1.6-38 2.8-34 3L-8 3.6C-4 3.6-1 2.6 0 0Z' fill='%23fbf7ef' stroke='%23b8ad99' stroke-width='.7'/%3E%3Cpath d='M-39 -.7H-9V.7H-39Z' fill='%23a8322a'/%3E%3Cellipse cx='-4.6' cy='0' rx='2.6' ry='1.9' fill='%2331516b'/%3E%3C/svg%3E") center / contain no-repeat;
  box-shadow: none;
  filter: drop-shadow(0 1px 1px rgb(40 25 10 / 0.4));
}

.kc-float.paused .kc-ring--boda {
  box-shadow: 0 0.3rem 0.7rem rgb(40 25 10 / 0.24), inset 0 0 0 1px rgb(166 124 77 / 0.3);
}

.kc-float.paused .kc-ring--boda::before {
  opacity: 0.6;
}

/* The glow is now the stitched thread, turning against the postmark. */
.kc-float-glow {
  z-index: 1;
  inset: -0.13rem;
  border: 1.2px dashed #a8322a;
  background: none;
  animation: ptl-ring-rotate 34s linear infinite reverse;
}

.kc-float.paused .kc-float-glow {
  opacity: 0.55;
}

.kc-float-bg {
  z-index: 2;
  border: 1px solid rgb(201 161 96 / 0.75);
  background:
    radial-gradient(circle at 34% 28%, rgb(255 255 255 / 0.1), transparent 62%),
    url("texturas/ptl-grain.webp") 0 0 / 48px,
    #1c2c44;
  box-shadow: inset 0 0 0 3px #1c2c44, inset 0 0 0 4px rgb(201 161 96 / 0.45);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.music-toggle.kc-float:hover .kc-float-bg {
  background:
    radial-gradient(circle at 34% 28%, rgb(255 255 255 / 0.14), transparent 62%),
    #22364b;
}

.kc-letter {
  z-index: 3;
  margin-top: -0.3rem;
  color: #e3c38b;
  font-family: var(--type-display);
  font-size: 0.66rem;
  font-style: normal;
  letter-spacing: 0.04em;
  text-shadow: 0 1px 0 rgb(0 0 0 / 0.4);
}

.kc-bars {
  bottom: 0.46rem;
}

.kc-bar {
  background: linear-gradient(to top, #a8322a, #e3c38b);
}
