/* ==========================================================================
   Lilás Convites · "A Correspondência"
   Page styles. The engine (scrollcraft.css) is untouched; this file themes it
   and draws the paper world on top.
   ========================================================================== */

:root {
  /* the table */
  --velvet:   #1F1028;
  --velvet-2: #2A1535;
  --velvet-3: #3A1E48;
  /* paper stocks */
  --paper:       #F8F2EB;
  --paper-nude:  #EFE4D8;
  --paper-print: #F3ECE3;
  --env-1: #CBC0E1;
  --env-2: #B8ABD5;
  --env-3: #A597C7;
  --liner: #4A2160;
  /* inks */
  --ink:       #2B1733;
  --ink-soft:  #64506B;
  --brand:     #753192;
  --lilac:     #AEA4CE;
  --ivory:     #F3EADF;
  --ivory-soft:#C6B8CF;
  --gold:      #C9A96E;
  --gold-deep: #8E6A2C;

  --sc-canvas: var(--velvet);
  --sc-surface: var(--velvet-2);
  --sc-ink: var(--ivory);
  --sc-ink-soft: var(--ivory-soft);
  --sc-accent: var(--lilac);
  --sc-accent-ink: var(--velvet);
  --sc-font-display: "Noto Serif Display", "Iowan Old Style", Georgia, serif;
  --sc-font-text: "Raleway", system-ui, sans-serif;
  --f-script: "Pinyon Script", "Snell Roundhand", cursive;
  --sc-shadow-color: 285 55% 4%;
  --gutter: clamp(1rem, 5vw, 5.5rem);
  --r: 3px;
  --ease: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-io: cubic-bezier(0.77, 0, 0.175, 1);

  --fiber: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='f'><feTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3' seed='4'/><feColorMatrix values='0 0 0 0 0.32  0 0 0 0 0.22  0 0 0 0 0.3  0 0 0 0.1 0'/></filter><rect width='100%' height='100%' filter='url(%23f)'/></svg>");
  --fiber-long: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='300' height='300'><filter id='g'><feTurbulence type='fractalNoise' baseFrequency='0.012 0.42' numOctaves='2' seed='9'/><feColorMatrix values='0 0 0 0 0.4  0 0 0 0 0.3  0 0 0 0 0.35  0 0 0 0.07 0'/></filter><rect width='100%' height='100%' filter='url(%23g)'/></svg>");
  --liner-pattern: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='44' height='44'><g fill='none' stroke='%23C9A96E' stroke-opacity='.55' stroke-width='.9'><path d='M22 6c4 6 4 10 0 16c-4-6-4-10 0-16z'/><path d='M0 28c4 6 4 10 0 16M44 28c-4 6-4 10 0 16'/></g><circle cx='22' cy='34' r='1.1' fill='%23C9A96E' fill-opacity='.6'/></svg>");

  --shadow-paper:
    0 1px 1px hsl(285 50% 4% / 0.25),
    0 8px 18px -6px hsl(285 50% 4% / 0.42),
    0 34px 70px -24px hsl(285 50% 4% / 0.7);
}

html { background: var(--velvet); }
body { overflow-x: clip; font-weight: 400; }
p { margin: 0; }
[hidden] { display: none !important; }
h1, h2, h3 { margin: 0; font-weight: 300; }
.kit { position: absolute; width: 0; height: 0; overflow: hidden; }
.script { font-family: var(--f-script); font-weight: 400; letter-spacing: 0; }

/* the velvet table, painted once behind everything */
.velvet {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(70vw 60vh at 72% 18%, rgb(86 38 108 / 0.42), transparent 70%),
    radial-gradient(60vw 70vh at 8% 92%, rgb(58 24 76 / 0.55), transparent 70%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='600' height='600'><filter id='v'><feTurbulence type='fractalNoise' baseFrequency='0.006 0.01' numOctaves='3' seed='3'/><feColorMatrix values='0 0 0 0 0.5  0 0 0 0 0.3  0 0 0 0 0.6  0 0 0 0.16 0'/></filter><rect width='100%' height='100%' filter='url(%23v)'/></svg>"),
    var(--velvet);
}
.sc-grain { opacity: 0.05; z-index: 90; }

.skip {
  position: fixed; left: 1rem; top: -4rem; z-index: 200;
  background: var(--ivory); color: var(--velvet); padding: 0.7rem 1rem;
  border-radius: var(--r); font-weight: 600; text-decoration: none;
  transition: top 160ms var(--ease);
}
.skip:focus { top: 1rem; }

::selection { background: var(--lilac); color: var(--velvet); }

/* ------------------------------------------------------------ paper -- */
.paper {
  --sc-ink: var(--ink); --sc-ink-soft: var(--ink-soft);
  --sc-accent: var(--brand); --sc-accent-ink: var(--paper);
  color: var(--ink);
  background: var(--fiber), var(--fiber-long), var(--paper);
  border-radius: var(--r);
  box-shadow: var(--shadow-paper), inset 0 1px 0 rgb(255 255 255 / 0.7);
}
.paper ::selection { background: var(--brand); color: var(--paper); }
.paper--nude { background: var(--fiber), var(--fiber-long), var(--paper-nude); }

.print {
  margin: 0; position: relative;
  background: var(--fiber), var(--paper-print);
  padding: 0.55rem 0.55rem 2rem;
  border-radius: 2px;
  box-shadow: var(--shadow-paper);
}
.print img { width: 100%; height: auto; display: block; }
.print figcaption {
  position: absolute; left: 0.75rem; right: 0.75rem; bottom: 0.45rem;
  font: italic 300 0.86rem/1.2 var(--sc-font-display); color: var(--ink-soft);
}

/* ---------------------------------------------------------- buttons -- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
  min-height: 3.25rem; padding: 0 1.6rem;
  border-radius: var(--r); border: 1px solid transparent;
  font: 600 0.78rem/1 var(--sc-font-text); letter-spacing: 0.16em; text-transform: uppercase;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform 140ms var(--ease), background-color 160ms var(--ease), box-shadow 160ms var(--ease), color 160ms var(--ease);
}
.btn:active { transform: translateY(1px) scale(0.985); }
.btn--light { background: var(--ivory); color: var(--velvet); box-shadow: 0 10px 24px -12px rgb(0 0 0 / 0.6); }
.btn--plum  { background: var(--brand); color: #FFF8F2; box-shadow: 0 12px 26px -14px rgb(60 14 80 / 0.8); }
@media (hover: hover) and (pointer: fine) {
  .btn--light:hover { background: #FFFFFF; }
  .btn--plum:hover { background: #64267F; }
}
.btn--wa svg { flex: none; }

.link {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font: 600 0.9rem/1.3 var(--sc-font-text); letter-spacing: 0.01em;
  color: var(--sc-accent); text-decoration: underline;
  text-decoration-thickness: 1px; text-underline-offset: 0.3em;
  text-decoration-color: color-mix(in oklab, currentColor 45%, transparent);
  background: none; border: 0; padding: 0; cursor: pointer;
  transition: text-decoration-color 160ms var(--ease), color 160ms var(--ease);
}
.link::after { content: "→"; font-weight: 400; transition: transform 160ms var(--ease); }
@media (hover: hover) and (pointer: fine) {
  .link:hover { text-decoration-color: currentColor; }
  .link:hover::after { transform: translateX(3px); }
}
.link--light { color: var(--ivory); }

/* ----------------------------------------------------------- top bar -- */
.bar {
  position: fixed; inset: 0 0 auto 0; z-index: 70;
  display: flex; align-items: flex-start; justify-content: space-between;
  padding: clamp(0.9rem, 2vw, 1.4rem) var(--gutter) 0;
  pointer-events: none;
}
.bar::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 4.6rem;
  background: linear-gradient(to bottom, rgb(25 12 33 / 0.92), rgb(25 12 33 / 0.78));
  backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid rgb(243 234 223 / 0.08);
  opacity: 0; transition: opacity 260ms var(--ease);
}
.bar.is-compact::before { opacity: 1; }
.bar > * { pointer-events: auto; position: relative; }
.bar__brand { display: block; transform-origin: 0 0; transition: transform 320ms var(--ease); }
.bar__brand img { height: clamp(4.6rem, 6.6vw, 6.4rem); width: auto; }
.bar.is-compact .bar__brand { transform: translateY(-0.45rem) scale(0.56); }
.bar__links { display: flex; align-items: center; gap: clamp(1rem, 2vw, 1.8rem); padding-top: 0.6rem; }
.bar__links a {
  color: var(--ivory); text-decoration: none;
  font: 600 0.74rem/1 var(--sc-font-text); letter-spacing: 0.18em; text-transform: uppercase;
  padding: 0.5rem 0; transition: color 160ms var(--ease);
}
.bar.is-compact .bar__links { padding-top: 0.35rem; }
@media (hover: hover) and (pointer: fine) { .bar__links a:hover { color: var(--lilac); } }
.bar__icon { display: inline-grid; place-items: center; width: 2.6rem; height: 2.6rem; border: 1px solid rgb(243 234 223 / 0.25) !important; border-radius: 50% !important; padding: 0 !important; }
.bar__menu { display: none; }

/* ------------------------------------------------- suite index (rail) -- */
.index {
  position: fixed; right: clamp(0.8rem, 1.6vw, 1.6rem); top: 50%; z-index: 65;
  transform: translateY(-50%);
  padding: 1rem 0.9rem 1rem 1rem; border-radius: var(--r);
  background: rgb(25 12 33 / 0.55);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgb(243 234 223 / 0.07);
}
.index ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.15rem; position: relative; }
.index ol::before { content: ""; position: absolute; left: 3.5px; top: 0.9rem; bottom: 0.9rem; width: 1px; background: rgb(201 169 110 / 0.35); }
.index a {
  display: flex; align-items: center; gap: 0.75rem; padding: 0.42rem 0.2rem 0.42rem 0;
  color: rgb(198 184 207 / 0.82); text-decoration: none;
  font: 600 0.66rem/1 var(--sc-font-text); letter-spacing: 0.18em; text-transform: uppercase;
  transition: color 160ms var(--ease);
}
.index a::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; flex: none; position: relative;
  border: 1px solid rgb(201 169 110 / 0.7); background: var(--velvet);
  transition: background-color 200ms var(--ease), transform 200ms var(--ease);
}
.index a[aria-current="true"] { color: var(--ivory); }
.index a[aria-current="true"]::before { background: var(--gold); transform: scale(1.35); box-shadow: 0 1px 3px rgb(0 0 0 / 0.5); }
@media (hover: hover) and (pointer: fine) { .index a:hover { color: var(--ivory); } }
.index__guest {
  font: 400 1.25rem/1.1 var(--f-script); color: var(--gold);
  margin: 0 0 0.7rem; max-width: 9rem; text-wrap: balance;
}

/* ------------------------------------------------ ribbon + sheet -- */
.ribbon, .sheet { display: none; }

/* ======================================================= 1 · HERO -- */
.hero__stage { isolation: isolate; }
.hero__light {
  position: absolute; inset: -10%; z-index: 0; pointer-events: none;
  background: radial-gradient(34vw 30vw at 70% 52%, rgb(174 164 206 / 0.2), transparent 72%);
}
.far {
  position: absolute; z-index: 1; margin: 0;
  padding: 0.5rem 0.5rem 1.5rem; background: #E9E1D7; border-radius: 2px;
  box-shadow: 0 30px 60px -24px rgb(0 0 0 / 0.8);
  filter: blur(2.6px) brightness(0.48) saturate(0.75);
}
.far img { width: 100%; height: auto; }
.far--a { width: clamp(150px, 17vw, 290px); right: -2.5vw; top: 13vh; rotate: 10deg; }
.far--b { width: clamp(140px, 14vw, 250px); right: 33vw; bottom: -16vh; rotate: -9deg; filter: blur(3.4px) brightness(0.42) saturate(0.7); }

.hero__copy {
  position: absolute; z-index: 3;
  left: var(--gutter); top: 52%; translate: 0 -50%;
  width: min(45vw, 44rem);
}
.hero__title {
  font-family: var(--sc-font-display); font-weight: 300;
  font-size: clamp(2.35rem, 0.6rem + 3.7vw, 4.6rem);
  line-height: 1.03; letter-spacing: -0.022em; color: var(--ivory);
  text-wrap: balance;
}
.hero__title em { font-style: italic; color: var(--lilac); }
.hero__sub {
  margin-top: clamp(1.1rem, 2vw, 1.6rem); max-width: 31rem;
  font-size: clamp(1rem, 0.94rem + 0.25vw, 1.16rem); line-height: 1.7;
  color: var(--ivory-soft); text-wrap: pretty;
}
.hero__ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.8rem; margin-top: clamp(1.6rem, 3vw, 2.4rem); }

.scene { position: absolute; inset: 0; z-index: 4; perspective: 1600px; perspective-origin: 70% 45%; pointer-events: none; }

/* --- the envelope (shared by hero and close) --- */
.env {
  --W: clamp(270px, 35vw, 590px);
  --H: calc(var(--W) * 0.68);
  position: absolute; width: var(--W); height: var(--H);
  perspective: 1500px;
  transform-origin: 50% 60%;
  will-change: transform;
}
#hero-env { --W: clamp(270px, 32vw, 540px); right: calc(9.5rem + 3.2vw); top: calc(50% - var(--H) * 0.5 + 6vh); }
.env__back {
  position: absolute; inset: 0; border-radius: var(--r);
  background: var(--fiber), linear-gradient(180deg, var(--env-2), var(--env-3));
  box-shadow: 0 2px 2px rgb(20 6 28 / 0.3), 0 26px 50px -16px rgb(10 2 16 / 0.75), 0 60px 90px -40px rgb(10 2 16 / 0.6);
}
.env__liner {
  position: absolute; left: 3.5%; right: 3.5%; top: 2.5%; height: 54%;
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  background: var(--liner-pattern), linear-gradient(180deg, #5A2A72, var(--liner));
  background-size: 30px 30px, auto;
}
.env__card { position: absolute; left: 5%; top: 6%; width: 90%; height: 86%; z-index: 3; will-change: transform; transform-origin: 50% 100%; }
.env__pocket {
  position: absolute; inset: 0; z-index: 4; border-radius: var(--r);
  clip-path: polygon(0 0, 50% 56%, 100% 0, 100% 100%, 0 100%);
}
.env__folds { position: absolute; inset: 0; width: 100%; height: 100%; }
.env__folds polygon { stroke: rgb(70 40 100 / 0.22); stroke-width: 1; vector-effect: non-scaling-stroke; }
.f-base { fill: #C4B8DD; }
.f-left { fill: #BCAFD8; }
.f-right { fill: #B4A7D1; }
.f-bottom { fill: #CEC4E5; }
.env__pocket::after { content: ""; position: absolute; inset: 0; background: var(--fiber); mix-blend-mode: multiply; pointer-events: none; }
.env__to {
  position: absolute; left: 9%; bottom: 13%; z-index: 1;
  font: 400 calc(var(--W) * 0.06)/1 var(--f-script); color: #4B2A63;
}
.env__flap {
  position: absolute; left: 0; top: 0; width: 100%; height: 56%; z-index: 6;
  transform-origin: 50% 0; transform-style: preserve-3d; will-change: transform;
}
.flap__front, .flap__inside {
  position: absolute; inset: 0;
  backface-visibility: hidden; -webkit-backface-visibility: hidden;
}
.flap__front {
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  background: var(--fiber), linear-gradient(180deg, #B2A5D0 0%, #C7BCDF 70%, #CDC3E3 100%);
}
.flap__front::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 60%, rgb(60 30 90 / 0.18));
}
.flap__inside {
  transform: rotateX(180deg);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
  background: var(--liner-pattern), linear-gradient(0deg, #5A2A72, var(--liner));
  background-size: 30px 30px, auto;
}
.env__seal { position: absolute; width: calc(var(--W) * 0.19); height: calc(var(--W) * 0.19); left: calc(50% - var(--W) * 0.095); filter: drop-shadow(0 3px 3px rgb(40 20 0 / 0.45)); overflow: visible; }
.env__seal--high { top: calc(100% - var(--W) * 0.11); }
.env__seal--low  { top: calc(56% - var(--W) * 0.11); }

/* --- the card (an invitation, typeset in container units) --- */
.card {
  container-type: inline-size;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; color: var(--ink);
  background: var(--fiber), linear-gradient(180deg, #FCF8F2, #F3EBE1);
  border-radius: 2px;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.8), 0 1px 2px rgb(20 6 26 / 0.25), 0 14px 30px -14px rgb(20 6 26 / 0.55);
  padding: 2.6% 6%;
}
.card::before { content: ""; position: absolute; inset: 3.2cqi; border: 1px solid rgb(201 169 110 / 0.55); pointer-events: none; }
.card__mono { width: 8cqi; height: auto; margin-bottom: 1.8cqi; }
.card__caps { font: 600 2.15cqi/1.2 var(--sc-font-text); letter-spacing: 0.34em; text-transform: uppercase; color: var(--brand); }
.card__line { font: italic 300 3.3cqi/1.35 var(--sc-font-display); color: var(--ink-soft); margin-top: 0.4cqi; }
.card__names { font: 400 9.4cqi/1.08 var(--f-script); color: var(--ink); margin: 1.4cqi 0 1.6cqi; transition: opacity 260ms var(--ease); }
.card__names.is-imprint { animation: imprint 520ms var(--ease) both; }
@keyframes imprint { from { opacity: 0.25; transform: scale(1.05); filter: blur(1px); } to { opacity: 1; transform: none; filter: none; } }
.card__foot { font: 600 1.8cqi/1.2 var(--sc-font-text); letter-spacing: 0.28em; text-transform: uppercase; color: var(--gold-deep); margin-top: 2.6cqi; }
.card__date { font: 400 3cqi/1 var(--sc-font-display); letter-spacing: 0.28em; color: var(--brand); margin-top: 1.6cqi; font-variant-numeric: lining-nums; }

/* --- vellum, foreground plane --- */
.vellum {
  position: absolute; z-index: 5;
  background: linear-gradient(160deg, rgb(252 248 255 / 0.36), rgb(236 228 248 / 0.2));
  backdrop-filter: blur(5px) saturate(1.15) brightness(1.06);
  -webkit-backdrop-filter: blur(5px) saturate(1.15) brightness(1.06);
  border: 1px solid rgb(255 255 255 / 0.3);
  border-radius: 2px;
  box-shadow: 0 30px 50px -26px rgb(0 0 0 / 0.55);
  color: #5B2A70;
  will-change: transform;
}
.vellum::before { content: ""; position: absolute; inset: 0; background: var(--fiber-long); opacity: 0.8; }
.vellum--hero { width: clamp(150px, 15vw, 270px); aspect-ratio: 3 / 4.3; right: 2.5vw; bottom: -9vh; rotate: 12deg; }
.vellum__sprig { position: absolute; width: 44%; height: 76%; left: 28%; top: 10%; opacity: 0.9; }

/* ======================================================= 2 · CARTA -- */
.carta { position: relative; z-index: 5; margin-top: -16vh; padding: 0 var(--gutter) clamp(5rem, 10vw, 9rem); }
.carta__wrap { max-width: 76rem; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); align-items: start; }
.carta__sheet {
  grid-column: 1; max-width: 46rem; margin-left: clamp(0rem, 4vw, 4rem);
  padding: clamp(2rem, 5vw, 4.6rem) clamp(1.5rem, 5.5vw, 5.2rem) clamp(2.2rem, 4.5vw, 4.2rem);
  rotate: -0.7deg;
}
.carta__title {
  font-family: var(--sc-font-display); font-weight: 300;
  font-size: clamp(2.1rem, 1.3rem + 2.4vw, 3.6rem); line-height: 1.06; letter-spacing: -0.018em;
  color: var(--ink); text-wrap: balance; margin-bottom: clamp(1.4rem, 2.4vw, 2rem);
}
.carta__body p { font-size: clamp(1rem, 0.96rem + 0.2vw, 1.12rem); line-height: 1.82; color: var(--ink-soft); max-width: 60ch; text-wrap: pretty; }
.carta__body p + p { margin-top: 1.1em; }
.carta__body .carta__sign { margin-top: 1.8rem; font: italic 300 1.15rem/1.2 var(--sc-font-display); color: var(--ink); display: flex; align-items: baseline; gap: 0.6rem; flex-wrap: wrap; }
.carta__sign .script { font-size: 2.6rem; line-height: 1; color: var(--brand); }
.carta__body .carta__ps {
  margin-top: 2rem; padding-top: 1.2rem; border-top: 1px solid rgb(43 23 51 / 0.14);
  font: 600 0.72rem/1.9 var(--sc-font-text); letter-spacing: 0.16em; text-transform: uppercase; color: var(--brand);
}
.carta__ps span { font: italic 400 1rem/1 var(--sc-font-display); letter-spacing: 0; text-transform: none; color: var(--ink); margin-right: 0.4rem; }
.carta__print { grid-column: 2; z-index: 2; margin: 22vh 0 0 -5vw; width: clamp(220px, 23vw, 340px); rotate: 4deg; }
.clip {
  position: absolute; z-index: 3; left: 18%; top: -1.4rem; width: 1.15rem; height: 3.6rem;
  border: 2px solid #B8B0BF; border-radius: 0.6rem; rotate: -6deg;
  box-shadow: 1px 2px 2px rgb(0 0 0 / 0.25);
}
.clip::after { content: ""; position: absolute; left: 0.15rem; right: 0.15rem; top: 0.45rem; bottom: -0.1rem; border: 2px solid #CFC8D6; border-top-width: 2px; border-radius: 0.45rem; }

/* ======================================================= 3 · SUITE -- */
.suite__stage {
  display: grid; align-items: center;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  grid-template-rows: 1fr auto;
  grid-template-areas: "copy scene" "form scene";
  column-gap: clamp(1rem, 4vw, 4rem);
  padding: 7rem calc(var(--gutter) + 9.5rem) 3rem var(--gutter);
}
.suite__copy { grid-area: copy; align-self: end; position: relative; z-index: 3; max-width: 34rem; }
.suite__title {
  font-family: var(--sc-font-display); font-weight: 300;
  font-size: clamp(2.1rem, 1.25rem + 2.5vw, 3.7rem); line-height: 1.04; letter-spacing: -0.02em;
  color: var(--ivory); text-wrap: balance;
}
.suite__cues { position: relative; min-height: 10.5rem; margin-top: 1.6rem; }
.suite__cues .cue { position: absolute; inset: 0 0 auto 0; }
.cue h3 { font: italic 400 clamp(1.3rem, 1.1rem + 0.6vw, 1.7rem)/1.2 var(--sc-font-display); color: var(--lilac); margin-bottom: 0.6rem; }
.cue p { color: var(--ivory-soft); line-height: 1.72; max-width: 46ch; text-wrap: pretty; }

.compose { grid-area: form; align-self: start; max-width: 34rem; margin-top: 1.4rem; padding-top: 1.4rem; border-top: 1px solid rgb(243 234 223 / 0.14); position: relative; z-index: 3; }
.compose__lead { font-size: 0.92rem; line-height: 1.6; color: var(--ivory); }
.compose__sample {
  display: inline-block; margin-left: 0.4rem; padding: 0.15rem 0.45rem; border-radius: var(--r);
  font: 600 0.6rem/1.4 var(--sc-font-text); letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold); border: 1px solid rgb(201 169 110 / 0.5); vertical-align: 0.15em;
}
.compose__row { display: grid; grid-template-columns: 1fr auto; gap: 1rem; margin-top: 0.9rem; }
.field { display: grid; gap: 0.35rem; min-width: 0; }
.field__label { font: 600 0.66rem/1.2 var(--sc-font-text); letter-spacing: 0.18em; text-transform: uppercase; color: var(--ivory-soft); padding: 0; }
.field input, .field textarea {
  width: 100%; min-height: 2.9rem; padding: 0.6rem 0.8rem;
  background: rgb(243 234 223 / 0.06); color: var(--ivory);
  border: 1px solid rgb(243 234 223 / 0.22); border-radius: var(--r);
  font: 400 1rem/1.3 var(--sc-font-text);
  transition: border-color 160ms var(--ease), background-color 160ms var(--ease);
}
.field input::placeholder, .field textarea::placeholder { color: rgb(198 184 207 / 0.62); }
.field input:focus, .field textarea:focus { border-color: var(--lilac); background: rgb(243 234 223 / 0.1); }
.field input[type="date"] { color-scheme: dark; min-width: 10.5rem; }

.chips { border: 0; padding: 0; margin: 0.9rem 0 0; display: flex; flex-wrap: wrap; gap: 0.5rem; min-width: 0; }
.chips legend { margin-bottom: 0.55rem; float: left; width: 100%; }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chips span {
  display: inline-flex; align-items: center; min-height: 2.5rem; padding: 0 0.95rem;
  border-radius: var(--r); border: 1px solid rgb(243 234 223 / 0.26);
  font: 600 0.78rem/1 var(--sc-font-text); letter-spacing: 0.04em; color: var(--ivory);
  transition: background-color 160ms var(--ease), border-color 160ms var(--ease), color 160ms var(--ease);
}
.chips input:checked + span { background: var(--lilac); border-color: var(--lilac); color: var(--velvet); }
.chips input:focus-visible + span { outline: 2px solid var(--sc-accent); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) { .chips label:hover span { border-color: var(--lilac); } }

/* the exploded suite */
.suite__scene { grid-area: scene; position: relative; height: 100%; min-height: 0; perspective: 1900px; perspective-origin: 50% 30%; }
.table {
  --tw: clamp(250px, 31vw, 520px);
  --gap: calc(var(--tw) * 0.15);
  --rz: -32deg; --ex: 0; --lab: 0;
  position: absolute; left: 50%; top: 54%;
  width: var(--tw); height: calc(var(--tw) * 0.7);
  margin: calc(var(--tw) * -0.35) 0 0 calc(var(--tw) * -0.5);
  transform-style: preserve-3d;
  transform: rotateX(56deg) rotateZ(var(--rz));
  will-change: transform;
}
.table::before {
  content: ""; position: absolute; inset: -8% -6%;
  background: radial-gradient(closest-side, rgb(8 2 12 / 0.7), transparent);
  transform: translateZ(-2px) scale(calc(1 + var(--ex) * 0.25));
  opacity: calc(0.9 - var(--ex) * 0.35);
  filter: blur(14px);
}
.layer {
  position: absolute; inset: 0; transform-style: preserve-3d;
  transform: translateZ(calc(var(--i) * (3px + var(--ex) * var(--gap))));
}
.mini-env { position: absolute; inset: 0; border-radius: var(--r); background: var(--fiber), linear-gradient(180deg, var(--env-2), var(--env-3)); box-shadow: 0 1px 2px rgb(10 2 16 / 0.4); }
.mini-env__flap { position: absolute; left: 0; right: 0; bottom: 100%; height: 56%; clip-path: polygon(0 100%, 100% 100%, 50% 0); background: var(--liner-pattern), linear-gradient(0deg, #5A2A72, var(--liner)); background-size: 22px 22px, auto; }
.mini-env__pocket { position: absolute; inset: 0; clip-path: polygon(0 0, 50% 56%, 100% 0, 100% 100%, 0 100%); background: linear-gradient(170deg, #C3B7DC, #B6A9D2); }
.layer--liner::after {
  content: ""; position: absolute; inset: 3% 3.5%; border-radius: 2px;
  background: var(--liner-pattern), linear-gradient(180deg, #5A2A72, var(--liner));
  background-size: 22px 22px, auto;
  box-shadow: 0 1px 2px rgb(10 2 16 / 0.4);
}
.suite-card { position: absolute; left: 9%; top: 9.5%; width: 82%; height: 81%; padding: 2.5% 6%; }
.suite-card .card__names { font-size: 10.5cqi; margin: 1.2cqi 0 1.2cqi; }
.suite-card .card__line { font-size: 3.4cqi; }
.suite-card .card__date { font-size: 3.2cqi; }
.layer--band .band {
  position: absolute; left: 79%; width: 12.5%; top: 7%; height: 86%;
  background: var(--fiber-long), linear-gradient(90deg, rgb(250 246 255 / 0.5), rgb(244 238 252 / 0.62));
  border-left: 1px solid rgb(255 255 255 / 0.5); border-right: 1px solid rgb(255 255 255 / 0.5);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: calc(var(--tw) * 0.008);
  font: 300 calc(var(--tw) * 0.05)/1 var(--sc-font-display); color: rgb(43 23 51 / 0.72); letter-spacing: 0.02em;
}
.layer--band .band span:nth-child(2) { font-style: italic; }
.suite-seal { position: absolute; width: 16%; aspect-ratio: 1; height: auto; left: calc(85.25% - 8%); top: 38%; filter: drop-shadow(0 2px 2px rgb(40 20 0 / 0.5)); overflow: visible; }
.mini-tag {
  position: absolute; right: -9%; bottom: -10%; width: 28%; height: 16%;
  background: var(--fiber), var(--paper-nude); border-radius: 2px;
  clip-path: polygon(14% 0, 100% 0, 100% 100%, 14% 100%, 0 50%);
  display: grid; place-items: center; rotate: -14deg;
  box-shadow: 0 1px 2px rgb(10 2 16 / 0.4);
}
.mini-tag::before { content: ""; position: absolute; left: 9%; top: 50%; width: 6%; aspect-ratio: 1; border-radius: 50%; background: var(--velvet); translate: 0 -50%; }
.mini-tag .script { font-size: calc(var(--tw) * 0.06); color: var(--brand); padding-left: 10%; }

.anchor { position: absolute; left: var(--lx); top: var(--ly); width: 2px; height: 2px; margin: -1px 0 0 -1px; }
.suite__labels { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.suite__leaders { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.suite__leaders line { stroke: rgb(201 169 110 / 0.75); stroke-width: 1; opacity: var(--lab, 0); }
.slabel {
  position: absolute; left: 0; top: 0; will-change: transform, opacity;
  white-space: nowrap; padding: 0.46rem 0.75rem; border-radius: var(--r);
  font: 600 0.66rem/1 var(--sc-font-text); letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ivory); background: rgb(25 12 33 / 0.86);
  border: 1px solid rgb(201 169 110 / 0.55);
  box-shadow: 0 8px 18px -10px rgb(0 0 0 / 0.7);
  opacity: var(--lab, 0);
}
.slabel::before { content: ""; position: absolute; width: 5px; height: 5px; border-radius: 50%; background: var(--gold); left: var(--dotx, 50%); top: var(--doty, 50%); translate: -50% -50%; opacity: 0; }

/* ===================================================== 4 · COLEÇÕES -- */
.colecoes { --ph: min(44vh, 26rem); }
.col__stage { display: flex; align-items: center; }
.col__rail { display: flex; align-items: center; gap: clamp(3rem, 5.5vw, 6rem); padding: 4rem calc(var(--gutter) + 9rem) 0 var(--gutter); height: 100%; }
.col__lead { flex: 0 0 min(30rem, 78vw); align-self: center; }
.col__lead h2 {
  font-family: var(--sc-font-display); font-weight: 300;
  font-size: clamp(2.2rem, 1.3rem + 2.6vw, 3.8rem); line-height: 1.04; letter-spacing: -0.02em;
  color: var(--ivory); text-wrap: balance;
}
.col__lead p { margin-top: 1.2rem; color: var(--ivory-soft); line-height: 1.7; max-width: 36ch; }
.col__item { flex: 0 0 auto; position: relative; width: max(15rem, calc(var(--ph) * var(--ar))); will-change: transform, opacity; }
.col__item--up { translate: 0 -5vh; }
.col__item--wide { width: calc(var(--ph) * var(--ar)); max-width: 82vw; }
.col__print { display: block; width: calc(var(--ph) * var(--ar)); max-width: 82vw; padding: 0.5rem 0.5rem 1.4rem; rotate: var(--rot); }
.col__print img { aspect-ratio: var(--ar); object-fit: cover; }
.col__item h3 { margin-top: 1.4rem; font: 300 clamp(1.35rem, 1.15rem + 0.6vw, 1.75rem)/1.15 var(--sc-font-display); color: var(--ivory); letter-spacing: -0.01em; }
.col__item > p { margin-top: 0.45rem; font-size: 0.94rem; line-height: 1.6; color: var(--ivory-soft); max-width: 34ch; text-wrap: pretty; }
.col__item > .link { margin-top: 0.8rem; }
.col__links { display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; margin-top: 0.8rem; }
.col__note { font-style: italic; font-family: var(--sc-font-display); font-size: 0.86rem !important; color: rgb(198 184 207 / 0.85) !important; }
.hang {
  position: absolute; top: -1.1rem; right: -1.2rem; z-index: 2;
  display: grid; justify-items: center; gap: 0.1rem;
  padding: 0.55rem 0.9rem 0.6rem 1.4rem; min-width: 7.5rem;
  background: var(--fiber), var(--paper-nude); color: var(--ink);
  border-radius: 2px; rotate: 7deg;
  clip-path: polygon(0.9rem 0, 100% 0, 100% 100%, 0.9rem 100%, 0 50%);
  filter: drop-shadow(0 6px 8px rgb(10 2 16 / 0.45));
}
.hang::before { content: ""; position: absolute; left: 0.55rem; top: calc(50% - 3px); width: 6px; height: 6px; border-radius: 50%; background: var(--velvet); }
.hang .script { font-size: 1.45rem; line-height: 1.1; color: var(--brand); white-space: nowrap; }
.hang small { font: 600 0.56rem/1.3 var(--sc-font-text); letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-soft); white-space: nowrap; }
.hang .mono { font: italic 400 1.5rem/1.1 var(--sc-font-display); color: var(--brand); letter-spacing: 0.04em; }

.phone {
  width: calc(var(--ph) * var(--ar)); height: var(--ph); rotate: var(--rot);
  border-radius: calc(var(--ph) * 0.07); padding: calc(var(--ph) * 0.022);
  background: linear-gradient(160deg, #3A2A40, #160B1B);
  box-shadow: var(--shadow-paper), inset 0 0 0 1px rgb(255 255 255 / 0.08);
}
.phone__screen {
  container-type: inline-size;
  height: 100%; border-radius: calc(var(--ph) * 0.055); overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
  padding: 12% 8%; color: var(--ink);
  background: var(--fiber), radial-gradient(120% 60% at 50% 0%, #E4DCF1, transparent 70%), linear-gradient(180deg, #F6F0F9, #F7F0E8);
}
.phone__mono { width: 18cqi; height: auto; }
.phone__kicker { margin-top: 6cqi; font: 600 4.6cqi/1.2 var(--sc-font-text); letter-spacing: 0.3em; text-transform: uppercase; color: var(--brand); }
.phone__names { font-size: 15cqi; line-height: 1.1; margin-top: 3cqi; }
.phone__date { margin-top: 3cqi; font: 400 5.6cqi/1 var(--sc-font-display); letter-spacing: 0.22em; color: var(--ink-soft); }
.phone__count { margin-top: 7cqi; font: italic 300 6cqi/1 var(--sc-font-display); color: var(--ink); }
.phone__count span { font-style: normal; font-weight: 400; font-size: 11cqi; margin-right: 0.15em; }
.phone__btn { margin-top: 8cqi; padding: 4cqi 7cqi; border-radius: 2cqi; background: var(--brand); color: #FFF8F2; font: 600 4.2cqi/1 var(--sc-font-text); letter-spacing: 0.14em; text-transform: uppercase; }

.col__end { flex: 0 0 min(22rem, 76vw); align-self: center; }
.col__end-title { font: italic 300 clamp(1.6rem, 1.3rem + 0.8vw, 2.2rem)/1.15 var(--sc-font-display); color: var(--ivory); }
.col__end p:not(.col__end-title) { margin: 0.9rem 0 1.6rem; color: var(--ivory-soft); line-height: 1.65; }

/* =================================================== 5 · CRONOGRAMA -- */
.crono { position: relative; z-index: 2; padding: clamp(4rem, 8vw, 7rem) calc(var(--gutter) + 8rem) clamp(4rem, 8vw, 7rem) var(--gutter); }
.crono__strip { max-width: 72rem; margin: 0 auto; padding: clamp(2rem, 5vw, 4.4rem); rotate: 0.35deg; }
.crono__head h2 { font: 300 clamp(2rem, 1.25rem + 2.3vw, 3.4rem)/1.05 var(--sc-font-display); letter-spacing: -0.018em; color: var(--ink); }
.crono__head p { margin-top: 0.9rem; color: var(--ink-soft); line-height: 1.7; max-width: 52ch; }
.crono__steps { list-style: none; margin: clamp(2.4rem, 4vw, 3.4rem) 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1.4rem, 3vw, 2.6rem); position: relative; }
.crono__steps::before {
  content: ""; position: absolute; left: 1.2rem; right: 0; top: 1.2rem; height: 1px;
  background: linear-gradient(90deg, rgb(117 49 146 / 0.5), rgb(117 49 146 / 0.12));
  transform-origin: 0 50%; transform: scaleX(0); transition: transform 1400ms var(--ease) 200ms;
}
.crono__steps.sc-in::before { transform: scaleX(1); }
.crono__n {
  position: relative; display: inline-grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%;
  background: var(--paper-nude); border: 1px solid rgb(117 49 146 / 0.45);
  font: italic 400 1.15rem/1 var(--sc-font-display); color: var(--brand);
}
.crono__steps h3 { margin-top: 1.1rem; font: 600 1.02rem/1.35 var(--sc-font-text); color: var(--ink); letter-spacing: 0; }
.crono__steps p { margin-top: 0.5rem; font-size: 0.93rem; line-height: 1.65; color: var(--ink-soft); }
.crono__plan {
  margin-top: clamp(2.4rem, 4vw, 3.4rem); padding-top: clamp(1.8rem, 3vw, 2.4rem);
  border-top: 1px solid rgb(43 23 51 / 0.14);
  display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(1.6rem, 4vw, 4rem); align-items: start;
}
.crono__plan h3 { font: italic 400 1.5rem/1.2 var(--sc-font-display); color: var(--brand); }
.crono__plan-text p { margin-top: 0.7rem; color: var(--ink-soft); line-height: 1.75; max-width: 58ch; }
.crono__plan-text strong { color: var(--ink); font-weight: 700; }
.crono__small { font-size: 0.9rem; }
.crono__small a { color: var(--brand); text-underline-offset: 0.25em; }
.crono__count { padding: 1.3rem 1.4rem; border-radius: var(--r); background: rgb(255 255 255 / 0.45); border: 1px solid rgb(43 23 51 / 0.1); }
.crono__count .field__label { color: var(--ink-soft); }
.crono__count input { background: #FFFDF9; color: var(--ink); border-color: rgb(43 23 51 / 0.24); color-scheme: light; }
.crono__count input:focus { border-color: var(--brand); background: #fff; }
.crono__days { margin-top: 0.9rem; font: italic 300 1.15rem/1.5 var(--sc-font-display); color: var(--ink); }
.crono__days strong { font-style: normal; font-weight: 500; font-size: 1.9rem; color: var(--brand); font-variant-numeric: tabular-nums lining-nums; margin-right: 0.15em; }

/* ===================================================== 6 · BILHETES -- */
.bilhetes { position: relative; padding: clamp(4rem, 8vw, 7rem) calc(var(--gutter) + 8rem) clamp(5rem, 10vw, 9rem) var(--gutter); }
.bil__maker { max-width: 72rem; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.bil__portrait { rotate: -2.2deg; padding-bottom: 0.55rem; }
.bil__portrait img { aspect-ratio: 4 / 5; object-fit: cover; }
.bil__about h2 { font: 300 clamp(2.2rem, 1.3rem + 2.6vw, 3.8rem)/1.04 var(--sc-font-display); letter-spacing: -0.02em; color: var(--ivory); text-wrap: balance; }
.bil__about p { margin-top: 1.1rem; color: var(--ivory-soft); line-height: 1.78; max-width: 56ch; text-wrap: pretty; }
.bil__about h2 + p { margin-top: 1.6rem; }
.bil__ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.8rem; margin-top: 2.2rem; }

.bil__notes { max-width: 72rem; margin: clamp(5rem, 9vw, 8rem) auto 0; display: grid; grid-template-columns: 1.15fr 1fr 1.05fr; gap: clamp(1.4rem, 3.5vw, 3.4rem); align-items: start; }
.bil__notes-title { grid-column: 1 / -1; font: italic 300 clamp(1.8rem, 1.3rem + 1.4vw, 2.6rem)/1.1 var(--sc-font-display); color: var(--ivory); margin-bottom: 1rem; }
.note { margin: 0; position: relative; }
.note--b { margin-top: 12vh; }
.note--c { margin-top: 3vh; }
.note__photo { width: 80%; rotate: -3deg; padding-bottom: 0.55rem; }
.note--b .note__photo { rotate: 2.5deg; margin-left: auto; }
.note--c .note__photo { rotate: -1.5deg; }
.note__photo img { aspect-ratio: 4 / 5.4; object-fit: cover; object-position: 50% 22%; }
.note__card {
  position: relative; z-index: 2; margin: -18% 0 0 14%; width: 86%;
  padding: 1.3rem 1.4rem 1.2rem; rotate: 1.6deg;
}
.note--b .note__card { margin-left: 0; rotate: -1.8deg; }
.note__card p { font: italic 300 1.02rem/1.6 var(--sc-font-display); color: var(--ink); }
.note__card figcaption { margin-top: 0.9rem; display: flex; align-items: baseline; gap: 0.6rem; font: 600 0.66rem/1 var(--sc-font-text); letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-soft); }
.note__card figcaption .script { font-size: 1.6rem; letter-spacing: 0; text-transform: none; color: var(--brand); }

/* ===================================================== 7 · RESPOSTA -- */
.resposta { position: relative; padding: clamp(4rem, 8vw, 7rem) calc(var(--gutter) + 8rem) 0 var(--gutter); }
.rsvp { max-width: 72rem; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(2rem, 5vw, 5rem); align-items: end; }
.rsvp__card { padding: clamp(1.6rem, 4vw, 3.4rem); rotate: -0.5deg; }
.rsvp__printed {
  display: flex; align-items: center; gap: 0.8rem;
  font: 600 0.68rem/1 var(--sc-font-text); letter-spacing: 0.3em; text-transform: uppercase; color: var(--brand);
  margin-bottom: 1.2rem;
}
.rsvp__printed::after { content: ""; flex: 1; height: 1px; background: rgb(117 49 146 / 0.3); }
.rsvp__card h2 { font: 300 clamp(1.8rem, 1.2rem + 1.7vw, 2.8rem)/1.08 var(--sc-font-display); letter-spacing: -0.016em; color: var(--ink); text-wrap: balance; }
.rsvp__lead { margin-top: 0.8rem; color: var(--ink-soft); line-height: 1.7; max-width: 52ch; }
.rsvp__grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 1.2rem; margin-top: 1.6rem; }
.rsvp__card .field__label { color: var(--ink-soft); }
.field--line input, .field--line textarea {
  background: transparent; color: var(--ink); color-scheme: light;
  border: 0; border-bottom: 1px solid rgb(43 23 51 / 0.32); border-radius: 0;
  padding: 0.5rem 0.1rem; font-size: 1.05rem;
}
.field--line input::placeholder, .field--line textarea::placeholder { color: rgb(100 80 107 / 0.62); }
.field--line input:focus, .field--line textarea:focus { background: rgb(117 49 146 / 0.05); border-bottom-color: var(--brand); }
.rsvp__card > .field--line { margin-top: 1.3rem; }
.rsvp__card textarea { resize: vertical; min-height: 3.2rem; }
.chips--ink { margin-top: 1.3rem; }
.chips--ink span { border-color: rgb(43 23 51 / 0.24); color: var(--ink); }
.chips--ink input:checked + span { background: var(--brand); border-color: var(--brand); color: #FFF8F2; }
@media (hover: hover) and (pointer: fine) { .chips--ink label:hover span { border-color: var(--brand); } }
.rsvp__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.8rem; margin-top: 1.9rem; }
.rsvp__fine { margin-top: 1rem; font-size: 0.82rem; line-height: 1.5; color: var(--ink-soft); }

.rsvp__side { position: relative; display: grid; justify-items: center; gap: 1.4rem; }
.scene--close { position: relative; inset: auto; width: 100%; height: clamp(280px, 30vw, 430px); perspective: 1400px; perspective-origin: 50% 30%; }
.env--close { --W: clamp(240px, 27vw, 410px); left: calc(50% - var(--W) / 2); bottom: 0; rotate: 2deg; }
.env--close .env__card { transform: translateY(-62%); transition: transform 700ms var(--ease-io); }
.env--close .env__flap { transform: rotateX(180deg); z-index: 2; }
.env--close .env__seal { opacity: 0; }
.env--close.is-sealed .env__card { transform: translateY(0); }
.env--close.is-sealed .env__flap { animation: flapClose 760ms var(--ease-io) 560ms both; }
.env--close.is-sealed .env__seal { animation: press 560ms var(--ease) 1280ms both; }
@keyframes flapClose {
  0%    { transform: rotateX(180deg); z-index: 2; }
  49.9% { z-index: 2; }
  50%   { z-index: 6; }
  100%  { transform: rotateX(0deg); z-index: 6; }
}
@keyframes press { 0% { opacity: 0; transform: scale(1.4); } 65% { opacity: 1; transform: scale(0.95); } 100% { opacity: 1; transform: scale(1); } }
.card--mini { padding: 3%; }
.card--mini .card__mono { width: 10cqi; }
.card--mini .card__names { font-size: 11cqi; margin: 1.6cqi 0 1.2cqi; }
.card--mini .card__date { font-size: 3.6cqi; }
.rsvp__status { text-align: center; font: italic 300 1.08rem/1.5 var(--sc-font-display); color: var(--ivory-soft); max-width: 26rem; text-wrap: balance; }
.rsvp__status strong { font-style: normal; font-weight: 500; color: var(--ivory); }

.verso {
  max-width: 72rem; margin: clamp(3rem, 5vw, 4.5rem) auto 0; padding: clamp(2rem, 3vw, 2.6rem) 0 1.6rem;
  border-top: 1px solid rgb(243 234 223 / 0.12);
  color: var(--ivory-soft); font-size: 0.92rem;
}
.verso__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem; }
.verso__from img { height: 5.6rem; width: auto; }
.verso__from p { margin-top: 1rem; max-width: 30ch; line-height: 1.65; }
.verso__col { display: grid; align-content: start; gap: 0.65rem; }
.verso__h { font: 600 0.66rem/1 var(--sc-font-text); letter-spacing: 0.2em; text-transform: uppercase; color: var(--ivory); margin-bottom: 0.4rem; }
.verso a { color: var(--ivory-soft); text-decoration: none; transition: color 160ms var(--ease); }
@media (hover: hover) and (pointer: fine) { .verso a:hover { color: var(--ivory); } }
.verso__legal { margin-top: 2.6rem; padding-top: 1.4rem; border-top: 1px solid rgb(243 234 223 / 0.08); display: flex; flex-wrap: wrap; gap: 0.6rem 1.6rem; align-items: center; font-size: 0.78rem; }
.verso__legal a { font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.68rem; }
.verso__legal p { margin-left: auto; color: rgb(198 184 207 / 0.86); }

/* ============================================== mid widths (no index) -- */
@media (max-width: 1099px) {
  .index { display: none; }
  #hero-env { right: 6vw; }
  .ribbon {
    display: flex; position: fixed; z-index: 66; left: 0; right: 0; bottom: 0;
    align-items: center; justify-content: space-between; gap: 0.8rem;
    padding: 0.55rem 0.8rem calc(0.55rem + env(safe-area-inset-bottom)) 1rem;
    background: rgb(25 12 33 / 0.9);
    backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2);
    border-top: 1px solid rgb(243 234 223 / 0.1);
    transition: transform 260ms var(--ease);
  }
  .ribbon.is-away { transform: translateY(110%); }
  .ribbon__piece {
    display: inline-flex; align-items: center; gap: 0.6rem; min-height: 2.75rem; padding: 0 0.4rem;
    background: none; border: 0; color: var(--ivory); cursor: pointer;
    font: 600 0.7rem/1 var(--sc-font-text); letter-spacing: 0.18em; text-transform: uppercase;
  }
  .ribbon__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--gold); }
  .ribbon__cta {
    display: inline-flex; align-items: center; min-height: 2.75rem; padding: 0 1.1rem; border-radius: var(--r);
    background: var(--ivory); color: var(--velvet); text-decoration: none;
    font: 600 0.7rem/1 var(--sc-font-text); letter-spacing: 0.14em; text-transform: uppercase; white-space: nowrap;
  }
  .sheet:not([hidden]) { display: block; position: fixed; inset: 0; z-index: 120; background: rgb(12 5 16 / 0.6); }
  .sheet__panel {
    position: absolute; left: 0; right: 0; bottom: 0; max-height: 86svh; overflow: auto;
    padding: 1.4rem 1.4rem calc(1.4rem + env(safe-area-inset-bottom));
    background: var(--velvet-2); border-top: 1px solid rgb(201 169 110 / 0.35);
    border-radius: 10px 10px 0 0;
    animation: sheetIn 280ms var(--ease) both;
  }
  @keyframes sheetIn { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }
  .sheet__close { float: right; min-height: 2.75rem; padding: 0 0.9rem; background: none; border: 1px solid rgb(243 234 223 / 0.25); border-radius: var(--r); color: var(--ivory); font: 600 0.7rem/1 var(--sc-font-text); letter-spacing: 0.16em; text-transform: uppercase; cursor: pointer; }
  .sheet__title { font: italic 300 1.5rem/1.2 var(--sc-font-display); color: var(--ivory); padding-top: 0.4rem; }
  .sheet__index { list-style: none; margin: 1.2rem 0 0; padding: 0; display: grid; }
  .sheet__index a, .sheet__shop a { display: flex; align-items: center; min-height: 3rem; color: var(--ivory); text-decoration: none; border-bottom: 1px solid rgb(243 234 223 / 0.08); font: 400 1.1rem/1 var(--sc-font-display); }
  .sheet__shop { margin-top: 1.4rem; display: grid; }
  .sheet__shop a { font: 600 0.74rem/1 var(--sc-font-text); letter-spacing: 0.18em; text-transform: uppercase; color: var(--lilac); }
  body { padding-bottom: calc(3.9rem + env(safe-area-inset-bottom)); }

  .suite__stage { padding-right: var(--gutter); }
  .col__rail { padding-right: var(--gutter); }
  .crono, .bilhetes, .resposta { padding-right: var(--gutter); }
}

/* ================================================================ phone -- */
@media (max-width: 760px) {
  .bar { padding-top: max(0.7rem, env(safe-area-inset-top)); }
  .bar__brand img { height: 4.1rem; }
  .bar.is-compact .bar__brand { transform: translateY(-0.3rem) scale(0.66); }
  .bar::before { height: 3.9rem; }
  .bar__links a:not(.bar__icon) { display: none; }
  .bar__links { gap: 0.6rem; padding-top: 0.2rem; }
  .bar__menu {
    display: inline-flex; align-items: center; min-height: 2.6rem; padding: 0 0.9rem;
    background: none; border: 1px solid rgb(243 234 223 / 0.25); border-radius: var(--r); color: var(--ivory);
    font: 600 0.68rem/1 var(--sc-font-text); letter-spacing: 0.16em; text-transform: uppercase; cursor: pointer;
  }

  /* hero: type above the envelope, never behind it */
  .hero__copy { left: var(--gutter); right: var(--gutter); top: 6.4rem; translate: none; width: auto; }
  .hero__title { font-size: clamp(2rem, 1.1rem + 4.6vw, 2.6rem); line-height: 1.06; }
  .hero__sub { font-size: 0.97rem; line-height: 1.6; margin-top: 0.9rem; }
  .hero__ctas { margin-top: 1.3rem; gap: 0.8rem 1.4rem; }
  .hero__ctas .btn { min-height: 3rem; padding: 0 1.2rem; }
  .scene { perspective-origin: 50% 70%; }
  #hero-env { --W: min(80vw, 330px); right: auto; left: calc(50% - var(--W) / 2); top: auto; bottom: 9svh; }
  .far--a { width: 34vw; right: -10vw; top: auto; bottom: 34svh; }
  .far--b { width: 30vw; left: -9vw; right: auto; bottom: 4svh; }
  .vellum--hero { width: 30vw; right: auto; left: -4vw; bottom: -6svh; rotate: -10deg; }
  .hero__light { background: radial-gradient(70vw 50vw at 50% 76%, rgb(174 164 206 / 0.2), transparent 72%); }

  .carta { margin-top: -10vh; }
  .carta__wrap { grid-template-columns: 1fr; }
  .carta__sheet { margin-left: 0; rotate: -0.4deg; }
  .carta__print { grid-column: 1; margin: -2rem 0 0 auto; width: 62vw; rotate: 3deg; }

  .suite__stage {
    grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr) auto;
    grid-template-areas: "copy" "scene" "form";
    padding: 5.2rem var(--gutter) 4.6rem; row-gap: 0;
  }
  .suite__copy { align-self: start; }
  .suite__title { font-size: 1.9rem; }
  .suite__cues { min-height: 7.6rem; margin-top: 0.8rem; }
  .cue h3 { font-size: 1.15rem; margin-bottom: 0.3rem; }
  .cue p { font-size: 0.9rem; line-height: 1.55; }
  .table { --tw: min(62vw, 280px); --gap: calc(var(--tw) * 0.1); top: 55%; }
  .slabel { font-size: 0.54rem; padding: 0.32rem 0.45rem; letter-spacing: 0.1em; }
  .compose { margin-top: 0; padding-top: 0.8rem; }
  .compose__lead { font-size: 0.82rem; }
  .compose__row { grid-template-columns: 1fr; gap: 0.5rem; margin-top: 0.6rem; }
  .compose .field--date { display: none; }
  .compose .chips { margin-top: 0.6rem; gap: 0.4rem; }
  .compose .chips span { min-height: 2.4rem; padding: 0 0.75rem; font-size: 0.74rem; }
  .compose .field input { min-height: 2.6rem; }

  .colecoes { --ph: min(40svh, 20rem); }
  .col__rail { padding: 3.6rem var(--gutter) 0; gap: 2.6rem; }
  .col__item--up { translate: 0 -2.5svh; }
  .col__item > p { font-size: 0.88rem; }
  .hang { right: -0.4rem; }

  .crono__steps { grid-template-columns: 1fr; gap: 1.6rem; padding-left: 0; }
  .crono__steps::before { left: 1.2rem; right: auto; top: 1.2rem; bottom: 1.2rem; width: 1px; height: auto; transform: scaleY(0); transform-origin: 50% 0; background: linear-gradient(180deg, rgb(117 49 146 / 0.5), rgb(117 49 146 / 0.12)); }
  .crono__steps.sc-in::before { transform: scaleY(1); }
  .crono__steps li { display: grid; grid-template-columns: 2.4rem 1fr; column-gap: 1rem; }
  .crono__steps li h3 { margin-top: 0.35rem; }
  .crono__steps li p { grid-column: 2; }
  .crono__plan { grid-template-columns: 1fr; }

  .bil__maker { grid-template-columns: 1fr; }
  .bil__portrait { width: 86%; }
  .bil__notes { grid-template-columns: 1fr; gap: 3.6rem; }
  .note--b, .note--c { margin-top: 0; }
  .note__photo { width: 74%; }
  .note--b .note__photo { margin-left: auto; }

  .rsvp { grid-template-columns: 1fr; }
  .rsvp__grid { grid-template-columns: 1fr; }
  .scene--close { height: 250px; }
  .env--close { --W: min(70vw, 300px); }
  .verso__grid { grid-template-columns: 1fr 1fr; }
  .verso__from { grid-column: 1 / -1; }
  .verso__legal p { margin-left: 0; }
}

/* ======================================================= reduced motion -- */
/* The page JS removes the pin from every act under reduced motion, so each
   piece lays out as a plain, complete document section. */
.is-reduced .hero { min-height: 100svh; position: relative; }
.is-reduced .hero__stage { position: relative; height: 100svh; overflow: clip; }
.is-reduced .suite__stage { position: relative; min-height: 100svh; }
.is-reduced .suite__cues { min-height: 0; }
.is-reduced .suite__cues .cue { position: static; opacity: 1 !important; transform: none !important; margin-top: 1.2rem; }
.is-reduced .suite__scene { min-height: 26rem; }
.is-reduced .col__stage { height: auto; padding-block: 4rem; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x proximity; }
.is-reduced .col__rail { height: auto; padding-top: 3rem; padding-bottom: 2rem; }
.is-reduced .col__item, .is-reduced .col__lead, .is-reduced .col__end { scroll-snap-align: start; }
@media (prefers-reduced-motion: reduce) {
  .card__names.is-imprint { animation: none; }
  .env--close .env__card, .bar__brand { transition-duration: 1ms; }
  .env--close.is-sealed .env__flap { animation-duration: 1ms; animation-delay: 0ms; }
  .env--close.is-sealed .env__seal { animation-duration: 200ms; animation-delay: 0ms; }
}

/* phone footer: the back of the envelope stays short, so the sealed envelope
   is still on the last screen */
@media (max-width: 760px) {
  .verso { margin-top: 2.2rem; padding-top: 1.6rem; font-size: 0.86rem; }
  .verso__grid { grid-template-columns: 1fr; gap: 1.1rem; }
  .verso__from { display: flex; align-items: center; gap: 1rem; }
  .verso__from img { height: 3.4rem; }
  .verso__from p { margin-top: 0; font-size: 0.84rem; line-height: 1.5; }
  .verso__col { display: flex; flex-wrap: wrap; gap: 0.35rem 1rem; }
  .verso__h { width: 100%; margin-bottom: 0.1rem; }
  .verso__legal { margin-top: 1.3rem; padding-top: 1rem; gap: 0.5rem 1.1rem; }
}

/* short phones (360 x 640 and similar): the envelope must not reach the
   call to action, and the suite needs room for the scene between copy and form */
@media (max-width: 760px) and (max-height: 720px) {
  .hero__copy { top: 5.4rem; }
  .hero__sub { display: none; }
  #hero-env { --W: min(66vw, 280px); bottom: calc(3.9rem + 2svh); }
  .suite__stage { padding-top: 4.6rem; padding-bottom: 4.2rem; }
  .suite__title { font-size: 1.6rem; }
  .suite__cues { min-height: 6.9rem; margin-top: 0.5rem; }
  .cue h3 { font-size: 1rem; }
  .cue p { font-size: 0.8rem; line-height: 1.45; }
  .compose__lead { display: none; }
  .compose { padding-top: 0.6rem; }
  .compose__row { margin-top: 0; }
  .table { --tw: min(50vw, 220px); top: 60%; }
}

/* phone close: the envelope shares the last screen with the back of the envelope */
@media (max-width: 760px) {
  .rsvp { gap: 1.6rem; }
  .rsvp__side { gap: 0.6rem; }
  .scene--close { height: 168px; }
  .env--close { --W: min(54vw, 230px); }
  .rsvp__status { font-size: 0.98rem; }
  .verso { margin-top: 1.4rem; }
}
