@font-face {
  font-family: "Bodoni Moda";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("assets/fonts/bodoni-moda-normal-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Bodoni Moda";
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/bodoni-moda-italic-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Manrope";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("assets/fonts/manrope-latin.woff2") format("woff2");
}

:root {
  --navy-950: #030b17;
  --navy-900: #061426;
  --navy-850: #0a1b31;
  --navy-800: #102849;
  --navy-700: #193a61;
  --ivory: #f7f5ef;
  --white: #ffffff;
  --silver: #c8d1dd;
  --blue-gray: #8194ad;
  --ink: #0a1727;
  --muted: #5d6875;
  --danger: #9e3c47;
  --display: "Bodoni Moda", "Times New Roman", serif;
  --body: "Manrope", "Segoe UI", sans-serif;
  --shell: min(1180px, calc(100vw - 96px));
  --border-dark: rgba(255, 255, 255, 0.16);
  --border-light: rgba(8, 25, 45, 0.18);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 86px;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--navy-900);
  color: var(--ivory);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body::before {
  position: fixed;
  z-index: 9999;
  inset: 0;
  pointer-events: none;
  opacity: 0.026;
  content: "";
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.7'/%3E%3C/svg%3E");
}

button,
input,
textarea,
select {
  font: inherit;
}

button,
a,
summary {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

a {
  color: inherit;
}

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

:where(a, button, input, textarea, select, summary):focus-visible {
  outline: 2px solid #a9c4e4;
  outline-offset: 4px;
}

[hidden] {
  display: none !important;
}

.page-shell {
  width: var(--shell);
  margin-inline: auto;
}

.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;
}

.skip-link {
  position: fixed;
  z-index: 10000;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  background: var(--white);
  color: var(--ink);
  transform: translateY(-150%);
  transition: transform 180ms ease;
}

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

.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  left: 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
  height: 92px;
  padding: 0 54px;
  border-bottom: 1px solid transparent;
  transition: background 240ms ease, border-color 240ms ease, height 240ms ease;
}

.site-header.is-scrolled {
  height: 72px;
  border-color: var(--border-dark);
  background: rgba(3, 11, 23, 0.88);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.monogram {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  width: fit-content;
  text-decoration: none;
}

.monogram span {
  font-family: var(--display);
  font-size: 31px;
  line-height: 1;
}

.monogram i {
  width: 36px;
  height: 1px;
  margin: 0 11px;
  background: var(--silver);
}

.monogram small {
  font-size: 9px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.22em;
}

.main-nav {
  display: flex;
  gap: 38px;
}

.main-nav a,
.header-cta {
  position: relative;
  color: rgba(255, 255, 255, 0.75);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.11em;
  text-decoration: none;
  text-transform: uppercase;
}

.main-nav a::after {
  position: absolute;
  right: 0;
  bottom: -7px;
  left: 0;
  height: 1px;
  background: currentColor;
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 200ms ease;
}

.main-nav a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.header-cta {
  justify-self: end;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--silver);
  color: var(--white);
}

.hero {
  position: relative;
  min-height: 930px;
  overflow: hidden;
  background:
    radial-gradient(circle at 72% 22%, rgba(48, 79, 119, 0.22), transparent 30%),
    linear-gradient(115deg, var(--navy-950), var(--navy-900) 48%, #0a203c 100%);
}

.hero::before {
  position: absolute;
  top: 92px;
  right: 0;
  bottom: 0;
  left: 43%;
  border-left: 1px solid rgba(255, 255, 255, 0.06);
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 82px 82px;
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 28%, transparent 92%);
  mask-image: linear-gradient(to bottom, transparent, #000 28%, transparent 92%);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 0.75fr);
  gap: clamp(70px, 9vw, 145px);
  align-items: center;
  min-height: 930px;
  padding: 140px 0 88px;
}

.hero-copy {
  position: relative;
  z-index: 2;
  padding-top: 18px;
}

.eyebrow {
  display: flex;
  gap: 28px;
  align-items: center;
  margin: 0 0 32px;
  color: var(--silver);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.24em;
  line-height: 1.4;
  text-transform: uppercase;
}

.eyebrow span {
  color: var(--blue-gray);
}

.eyebrow-dark {
  color: var(--navy-700);
}

.hero h1,
.section-heading h2,
.story-title-wrap h2,
.rsvp-copy h2,
.dashboard-intro h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.94;
}

.hero h1 {
  max-width: 700px;
  font-size: clamp(72px, 7.3vw, 118px);
}

.hero h1 em,
.section-heading h2 em,
.story-title-wrap h2 em,
.rsvp-copy h2 em,
.dashboard-intro h1 em {
  display: block;
  color: var(--silver);
  font-weight: 400;
}

.hero-intro {
  max-width: 560px;
  margin: 38px 0 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 16px;
  line-height: 1.85;
}

.hero-actions {
  display: flex;
  gap: 30px;
  align-items: center;
  margin-top: 42px;
}

.button {
  position: relative;
  display: inline-flex;
  min-height: 54px;
  gap: 28px;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 2px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  line-height: 1.2;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 220ms ease, background 220ms ease, border-color 220ms ease, transform 220ms ease;
}

.button svg {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.4;
  transition: transform 220ms ease;
}

.button:hover svg {
  transform: translateX(4px);
}

.button:active {
  transform: translateY(1px);
}

.button-light {
  background: var(--ivory);
  color: var(--ink);
}

.button-light:hover {
  background: var(--white);
}

.button-outline {
  border-color: rgba(255, 255, 255, 0.36);
  background: transparent;
  color: var(--white);
}

.button-outline:hover {
  border-color: var(--white);
  background: var(--white);
  color: var(--ink);
}

.button-navy {
  background: var(--navy-900);
  color: var(--white);
}

.button-navy:hover {
  background: var(--navy-800);
}

.button-danger {
  background: var(--danger);
  color: var(--white);
}

.button-compact {
  min-height: 46px;
  padding-inline: 18px;
}

.text-link,
.text-button {
  padding: 5px 0;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.42);
  background: none;
  color: rgba(255, 255, 255, 0.82);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-decoration: none;
  text-transform: uppercase;
  cursor: pointer;
}

.text-button-dark {
  border-color: rgba(8, 25, 45, 0.3);
  color: var(--navy-900);
}

.hero-signature {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-top: 66px;
  color: var(--silver);
}

.hero-signature span {
  font-family: var(--display);
  font-size: 19px;
  font-style: italic;
}

.hero-signature i {
  width: 70px;
  height: 1px;
  background: rgba(255, 255, 255, 0.28);
}

.hero-signature small {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.25em;
}

.invitation-art {
  position: relative;
  z-index: 2;
  width: min(100%, 480px);
  margin: 25px auto 0;
}

.art-frame {
  position: relative;
  width: 100%;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(255, 255, 255, 0.035);
  box-shadow: 0 38px 90px rgba(0, 0, 0, 0.42);
  color: inherit;
  cursor: zoom-in;
  font: inherit;
  transform: rotate(0.8deg);
  transition: transform 600ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 600ms ease;
}

.art-frame::before,
.art-frame::after {
  position: absolute;
  width: 32px;
  height: 32px;
  border-color: var(--white);
  content: "";
}

.art-frame::before {
  top: -5px;
  left: -5px;
  border-top: 1px solid;
  border-left: 1px solid;
}

.art-frame::after {
  right: -5px;
  bottom: -5px;
  border-right: 1px solid;
  border-bottom: 1px solid;
}

.invitation-art:hover .art-frame {
  box-shadow: 0 46px 110px rgba(0, 0, 0, 0.52);
  transform: rotate(0deg) translateY(-5px);
}

.art-frame img {
  width: 100%;
  height: auto;
}

.art-expand-label {
  position: absolute;
  right: 18px;
  bottom: 18px;
  display: inline-flex;
  min-height: 38px;
  gap: 8px;
  align-items: center;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(3, 11, 23, 0.84);
  color: var(--white);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.12em;
  opacity: 0;
  text-transform: uppercase;
  transition: opacity 180ms ease, transform 180ms ease;
  transform: translateY(5px);
}

.art-expand-label svg {
  width: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.4;
}

.art-frame:hover .art-expand-label,
.art-frame:focus-visible .art-expand-label {
  opacity: 1;
  transform: translateY(0);
}

.art-orbit {
  position: absolute;
  z-index: -1;
  top: -38px;
  right: -42px;
  width: 140px;
  height: 140px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
}

.art-orbit::before {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--silver);
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.8);
  content: "";
  animation: orbit 14s linear infinite;
  transform-origin: 0 0;
}

.invitation-art figcaption {
  margin-top: 18px;
  color: var(--blue-gray);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-align: right;
  text-transform: uppercase;
}

.hero-rail {
  position: absolute;
  right: 30px;
  bottom: 74px;
  display: flex;
  gap: 16px;
  align-items: center;
  color: var(--blue-gray);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transform: rotate(90deg);
  transform-origin: right center;
}

.hero-rail i {
  width: 52px;
  height: 1px;
  background: var(--blue-gray);
}

@keyframes orbit {
  from { transform: rotate(0deg) translateX(70px) rotate(0deg); }
  to { transform: rotate(360deg) translateX(70px) rotate(-360deg); }
}

.countdown-section {
  border-top: 1px solid var(--border-dark);
  border-bottom: 1px solid var(--border-dark);
  background: var(--navy-950);
}

.countdown {
  display: grid;
  grid-template-columns: 0.65fr 2fr 0.65fr;
  gap: 50px;
  align-items: center;
  min-height: 166px;
}

.countdown > p,
.countdown-date {
  margin: 0;
  color: var(--blue-gray);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.countdown-date {
  text-align: right;
}

.countdown-units {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
  gap: 24px;
  align-items: center;
}

.countdown-units div {
  display: flex;
  gap: 10px;
  align-items: baseline;
  justify-content: center;
}

.countdown-units strong {
  min-width: 55px;
  font-family: var(--display);
  font-size: 42px;
  font-weight: 400;
  line-height: 1;
}

.countdown-units span {
  color: var(--blue-gray);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.countdown-units i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--silver);
}

.story-section {
  padding: 150px 0;
  background: var(--ivory);
  color: var(--ink);
}

.story-grid {
  display: grid;
  grid-template-columns: 0.35fr 1.15fr 0.8fr;
  gap: 70px;
  align-items: start;
}

.section-index {
  padding-top: 10px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
}

.story-title-wrap h2 {
  max-width: 600px;
  font-size: clamp(58px, 6.3vw, 92px);
}

.story-title-wrap h2 em {
  color: var(--navy-700);
}

.story-copy {
  padding-top: 64px;
}

.story-copy > p {
  margin: 0;
  color: #44505d;
  font-family: var(--display);
  font-size: 23px;
  line-height: 1.55;
}

.story-copy > span {
  display: block;
  margin-top: 34px;
  color: var(--navy-700);
  font-family: var(--display);
  font-size: 16px;
  font-style: italic;
}

.details-section {
  position: relative;
  padding: 145px 0 120px;
  overflow: hidden;
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    var(--navy-900);
  background-size: 100% 86px;
}

.details-section::after {
  position: absolute;
  right: -110px;
  bottom: -180px;
  width: 480px;
  height: 480px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  content: "";
}

.section-heading {
  display: grid;
  grid-template-columns: 0.62fr 1.5fr;
  gap: 30px;
}

.section-heading h2 {
  font-size: clamp(62px, 7.2vw, 102px);
}

.details-list {
  margin-top: 100px;
  border-top: 1px solid var(--border-dark);
}

.detail-item {
  display: grid;
  grid-template-columns: 0.62fr 1.5fr;
  gap: 30px;
  padding: 38px 0;
  border-bottom: 1px solid var(--border-dark);
}

.detail-number,
.detail-item p,
.detail-item div > span {
  color: var(--blue-gray);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.detail-item p {
  margin: 0 0 8px;
}

.detail-item h3 {
  margin: 0 0 6px;
  font-family: var(--display);
  font-size: 42px;
  font-weight: 400;
  line-height: 1.1;
}

.detail-item div > span {
  letter-spacing: 0.08em;
  line-height: 1.7;
}

.details-actions {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 30px;
  align-items: center;
  margin: 48px 0 0 calc(38.7% + 30px);
}

.rsvp-section {
  padding: 150px 0;
  background: #edf0f4;
  color: var(--ink);
}

.rsvp-shell {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 110px;
  align-items: start;
}

.rsvp-copy {
  position: sticky;
  top: 120px;
  padding-top: 30px;
}

.rsvp-copy h2 {
  font-size: clamp(68px, 7vw, 102px);
}

.rsvp-copy h2 em {
  color: var(--navy-700);
}

.rsvp-copy > p:not(.eyebrow) {
  max-width: 420px;
  margin: 38px 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.9;
}

.rsvp-note {
  display: flex;
  gap: 16px;
  max-width: 390px;
  padding-top: 22px;
  border-top: 1px solid var(--border-light);
}

.rsvp-note span {
  color: var(--navy-700);
}

.rsvp-note p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.7;
}

.rsvp-panel {
  min-height: 600px;
  padding: clamp(34px, 5vw, 68px);
  border: 1px solid rgba(7, 25, 45, 0.14);
  background: var(--ivory);
  box-shadow: 0 28px 75px rgba(6, 20, 38, 0.12);
  color-scheme: light;
}

.rsvp-form fieldset {
  padding: 0;
  border: 0;
  margin: 0;
}

.attendance-fieldset legend,
.form-field label {
  display: block;
  margin-bottom: 11px;
  color: #34404c;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.attendance-fieldset legend b {
  color: var(--danger);
}

.attendance-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 8px;
}

.attendance-fieldset {
  margin-bottom: 36px !important;
}

.attendance-error {
  margin-top: 4px;
}

.attendance-options label {
  cursor: pointer;
}

.attendance-options input {
  position: absolute;
  opacity: 0;
}

.attendance-options span {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-light);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  transition: all 180ms ease;
}

.attendance-options input:checked + span {
  border-color: var(--navy-900);
  background: var(--navy-900);
  color: var(--white);
}

.attendance-options input:focus-visible + span {
  outline: 2px solid var(--navy-700);
  outline-offset: 3px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.form-field {
  margin-bottom: 28px;
}

.form-field label b,
.form-footer p b {
  color: var(--danger);
}

.form-field label small {
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.form-field input,
.form-field textarea {
  width: 100%;
  border: 0;
  border-bottom: 1px solid #aeb7c0;
  border-radius: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
  transition: border-color 180ms ease, background 180ms ease;
}

.form-field input {
  height: 48px;
}

.form-field textarea {
  min-height: 76px;
  padding: 13px 0;
  resize: vertical;
}

.form-field input:focus,
.form-field textarea:focus {
  border-color: var(--navy-700);
}

.form-field input::placeholder,
.form-field textarea::placeholder {
  color: #66727d;
}

.form-field input.has-error {
  border-color: var(--danger);
}

.field-error {
  display: block;
  min-height: 17px;
  margin-top: 6px;
  color: var(--danger);
  font-size: 10px;
}

.field-help {
  display: block;
  margin-top: 6px;
  color: #626e79;
  font-size: 9px;
}

.attending-only {
  max-height: 180px;
  overflow: hidden;
  opacity: 1;
  transition: opacity 180ms ease, max-height 240ms ease, margin 240ms ease;
}

.attending-only.is-hidden {
  max-height: 0;
  margin: 0;
  opacity: 0;
}

.form-optional {
  margin: 2px 0 30px;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.form-optional summary {
  display: flex;
  min-height: 72px;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

.form-optional summary::-webkit-details-marker {
  display: none;
}

.form-optional summary > span {
  display: flex;
  flex-direction: column;
}

.form-optional summary strong {
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.form-optional summary small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.form-optional summary svg {
  width: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: var(--navy-700);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.5;
  transition: transform 180ms ease;
}

.form-optional[open] summary svg {
  transform: rotate(180deg);
}

.form-optional-fields {
  padding: 18px 0 4px;
  border-top: 1px solid rgba(8, 25, 45, 0.08);
}

.form-footer {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
}

.form-footer > p {
  color: var(--muted);
  font-size: 9px;
}

.form-status {
  min-height: 20px;
  margin: 14px 0 0;
  color: var(--danger);
  font-size: 10px;
}

.button.is-loading {
  opacity: 0.65;
  cursor: wait;
}

.rsvp-success {
  display: flex;
  min-height: 510px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  outline: none;
}

.success-mark {
  position: relative;
  display: flex;
  width: 106px;
  height: 106px;
  align-items: center;
  justify-content: center;
  margin-bottom: 36px;
  border: 1px solid var(--border-light);
  border-radius: 50%;
  color: var(--navy-700);
}

.success-mark::after {
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(8, 25, 45, 0.08);
  border-radius: inherit;
  content: "";
}

.success-mark span {
  font-family: var(--display);
  font-size: 43px;
}

.success-mark small {
  margin: 15px 0 0 6px;
  font-size: 8px;
  font-weight: 700;
}

.rsvp-success .eyebrow {
  display: block;
  margin-bottom: 18px;
}

.rsvp-success h3 {
  margin: 0;
  font-family: var(--display);
  font-size: 46px;
  font-weight: 400;
}

.rsvp-success > p:not(.eyebrow) {
  max-width: 420px;
  margin: 18px 0 32px;
  color: var(--muted);
  font-size: 13px;
}

.site-footer {
  padding: 75px 0 20px;
  border-top: 1px solid var(--border-dark);
  background: var(--navy-950);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 50px;
  align-items: end;
  padding-bottom: 70px;
}

.monogram-footer {
  margin-bottom: 20px;
}

.footer-grid > div:first-child > p,
.footer-event span {
  margin: 0;
  color: var(--blue-gray);
  font-size: 10px;
  letter-spacing: 0.07em;
}

.footer-event {
  display: flex;
  gap: 8px;
  flex-direction: column;
  text-align: center;
}

.footer-signoff {
  margin: 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  color: var(--blue-gray);
  font-size: 8px;
  letter-spacing: 0.18em;
  text-align: center;
  text-transform: uppercase;
}

.mobile-rsvp-bar {
  display: none;
}

.toast {
  position: fixed;
  z-index: 1000;
  right: 22px;
  bottom: 22px;
  max-width: min(380px, calc(100vw - 44px));
  padding: 14px 18px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: var(--navy-950);
  color: var(--white);
  font-size: 11px;
  opacity: 0;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3);
  transform: translateY(15px);
  transition: opacity 180ms ease, transform 180ms ease;
  pointer-events: none;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.art-dialog {
  width: min(920px, calc(100vw - 48px));
  height: min(94dvh, 920px);
  max-width: none;
  max-height: none;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 0;
  background: var(--navy-950);
  color: var(--white);
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.64);
}

.art-dialog[open] {
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.art-dialog::backdrop {
  background: rgba(1, 6, 13, 0.88);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.art-dialog-header,
.art-dialog-toolbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: var(--navy-950);
}

.art-dialog-header {
  border-bottom: 1px solid var(--border-dark);
}

.art-dialog-header > div {
  display: flex;
  flex-direction: column;
}

.art-dialog-header span {
  color: var(--blue-gray);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.art-dialog-header strong {
  font-family: var(--display);
  font-size: 19px;
  font-weight: 400;
}

.art-dialog-header > button {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  padding: 0;
  border: 1px solid var(--border-dark);
  background: transparent;
  color: var(--white);
  cursor: pointer;
}

.art-dialog-header svg {
  width: 20px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.4;
}

.art-dialog-scroll {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 20px;
  overflow: auto;
  background: #020916;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.art-dialog-image {
  width: min(100%, 620px);
  height: auto;
  flex: 0 0 auto;
  transition: width 220ms ease;
}

.art-dialog.is-zoomed .art-dialog-scroll {
  justify-content: flex-start;
}

.art-dialog.is-zoomed .art-dialog-image {
  width: min(1060px, 200vw);
  max-width: none;
}

.art-dialog-toolbar {
  min-height: 64px;
  gap: 20px;
  border-top: 1px solid var(--border-dark);
}

.art-dialog-toolbar p {
  margin: 0;
  color: var(--blue-gray);
  font-size: 10px;
}

.art-dialog-toolbar button {
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: transparent;
  color: var(--white);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
}

.reveal {
  opacity: 1;
  transform: none;
}

.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 700ms ease, transform 700ms cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal-delay-1 { transition-delay: 100ms; }
.reveal-delay-2 { transition-delay: 180ms; }
.reveal-delay-3 { transition-delay: 260ms; }

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* Painel de convidados */
.guest-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 85% 0%, rgba(35, 71, 112, 0.24), transparent 27%),
    var(--navy-900);
}

.dashboard-header {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: 102px;
  border-bottom: 1px solid var(--border-dark);
}

.dashboard-header > div {
  display: flex;
  flex-direction: column;
  text-align: center;
}

.dashboard-header > div span,
.dashboard-header > div strong {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.dashboard-header > div span { color: var(--blue-gray); }
.dashboard-header > div strong { color: var(--white); }

.dashboard-header > .text-link {
  justify-self: end;
}

.dashboard-main {
  padding: 100px 0 130px;
}

.dashboard-intro {
  display: grid;
  grid-template-columns: 1.15fr 0.55fr;
  gap: 100px;
  align-items: end;
}

.dashboard-intro h1 {
  font-size: clamp(68px, 8vw, 114px);
}

.dashboard-intro > p {
  margin: 0 0 10px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 13px;
  line-height: 1.8;
}

.demo-notice {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-top: 70px;
  padding: 17px 20px;
  border: 1px solid var(--border-dark);
  background: rgba(255, 255, 255, 0.035);
}

.demo-notice svg {
  width: 20px;
  flex: 0 0 auto;
  fill: none;
  stroke: var(--silver);
  stroke-width: 1.4;
}

.demo-notice p {
  margin: 0;
  color: var(--blue-gray);
  font-size: 10px;
  line-height: 1.6;
}

.demo-notice strong { color: var(--silver); }

.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 32px;
  border: 1px solid var(--border-dark);
}

.metrics article {
  min-width: 0;
  padding: 28px 30px 26px;
  border-right: 1px solid var(--border-dark);
}

.metrics article:last-child { border-right: 0; }

.metrics p,
.metrics span {
  display: block;
  margin: 0;
  overflow: hidden;
  color: var(--blue-gray);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.metrics strong {
  display: block;
  margin: 10px 0 8px;
  font-family: var(--display);
  font-size: 48px;
  font-weight: 400;
  line-height: 1;
}

.guest-manager {
  position: relative;
  margin-top: 76px;
  padding: 48px;
  background: var(--ivory);
  color: var(--ink);
  box-shadow: 0 38px 90px rgba(0, 0, 0, 0.18);
  color-scheme: light;
}

.guest-manager::before,
.guest-manager::after {
  position: absolute;
  width: 28px;
  height: 28px;
  border-color: rgba(8, 25, 45, 0.28);
  content: "";
  pointer-events: none;
}

.guest-manager::before {
  top: 13px;
  left: 13px;
  border-top: 1px solid;
  border-left: 1px solid;
}

.guest-manager::after {
  right: 13px;
  bottom: 13px;
  border-right: 1px solid;
  border-bottom: 1px solid;
}

.manager-toolbar {
  display: flex;
  gap: 30px;
  align-items: flex-end;
  justify-content: space-between;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--border-light);
}

.manager-toolbar .eyebrow {
  margin-bottom: 8px;
  color: var(--navy-700);
}

.manager-toolbar h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 48px;
  font-weight: 400;
  line-height: 1;
}

.toolbar-summary {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 9px;
}

.toolbar-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.toolbar-actions .button-outline {
  border-color: var(--border-light);
  color: var(--ink);
}

.toolbar-actions .button-outline:hover {
  background: var(--navy-900);
  color: var(--white);
}

.search-field {
  display: flex;
  width: 210px;
  height: 46px;
  align-items: center;
  padding: 0 14px;
  border: 1px solid var(--border-light);
}

.search-field svg {
  width: 17px;
  margin-right: 9px;
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.5;
}

.search-field input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 11px;
}

.search-field:focus-within {
  border-color: var(--navy-700);
  box-shadow: 0 0 0 2px rgba(25, 58, 97, 0.14);
}

.toolbar-actions select {
  width: 168px;
  height: 46px;
  padding: 0 35px 0 14px;
  border: 1px solid var(--border-light);
  border-radius: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 11px;
}

.guest-table-wrap {
  overflow-x: auto;
}

.guest-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.guest-table th {
  padding: 18px 12px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-align: left;
  text-transform: uppercase;
}

.guest-table th:first-child,
.guest-table td:first-child { width: 29%; padding-left: 0; }
.guest-table th:nth-child(2) { width: 14%; }
.guest-table th:nth-child(3) { width: 10%; }
.guest-table th:nth-child(4) { width: 16%; }
.guest-table th:nth-child(5) { width: 17%; }
.guest-table th:last-child { width: 10%; padding-right: 0; }

.guest-table td {
  padding: 22px 12px;
  border-top: 1px solid rgba(8, 25, 45, 0.1);
  color: #4c5661;
  font-size: 11px;
  vertical-align: top;
}

.guest-table td:first-child > strong {
  color: var(--ink);
  font-size: 12px;
}

.guest-name-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
}

.guest-name-row > strong {
  min-width: 0;
  flex: 1;
  color: var(--ink);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.mobile-status {
  display: none;
}

.guest-details {
  margin-top: 7px;
}

.guest-details summary {
  width: fit-content;
  color: var(--navy-700);
  font-size: 9px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  text-decoration: underline;
  text-decoration-color: rgba(25, 58, 97, 0.35);
  text-underline-offset: 3px;
}

.guest-details summary::-webkit-details-marker {
  display: none;
}

.guest-details-content {
  display: flex;
  gap: 4px;
  flex-direction: column;
  margin-top: 8px;
}

.guest-details span {
  color: #5f6b76;
  font-size: 9px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.guest-details b { color: #596572; }

.status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.status::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  content: "";
}

.status-sim { color: #2e6d55; }
.status-sim::before { background: #4e9877; }
.status-nao { color: #8d4b53; }
.status-nao::before { background: #a25b63; }

.guest-phone {
  color: var(--navy-700);
  font-weight: 600;
  text-underline-offset: 3px;
}

.row-action {
  padding-right: 0 !important;
  text-align: right;
}

.row-action button,
.danger-link {
  padding: 0;
  border: 0;
  border-bottom: 1px solid transparent;
  background: none;
  color: var(--danger);
  font-size: 9px;
  cursor: pointer;
}

.row-action button:hover,
.danger-link:hover { border-color: currentColor; }

.empty-state {
  display: flex;
  min-height: 390px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.empty-monogram {
  display: flex;
  width: 76px;
  height: 76px;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  border: 1px solid var(--border-light);
  border-radius: 50%;
  color: var(--navy-700);
  font-family: var(--display);
  font-size: 22px;
}

.empty-state h3 {
  max-width: 500px;
  margin: 0;
  font-family: var(--display);
  font-size: 30px;
  font-weight: 400;
}

.empty-state p {
  max-width: 440px;
  margin: 12px 0 24px;
  color: var(--muted);
  font-size: 11px;
}

.manager-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 22px;
  border-top: 1px solid var(--border-light);
}

.manager-footer p {
  margin: 0;
  color: var(--muted);
  font-size: 9px;
}

.modal-open { overflow: hidden; }

.modal-backdrop {
  position: fixed;
  z-index: 999;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(1, 7, 14, 0.78);
  -webkit-backdrop-filter: blur(7px);
  backdrop-filter: blur(7px);
}

.confirm-modal {
  width: min(480px, 100%);
  padding: 42px;
  background: var(--ivory);
  color: var(--ink);
  box-shadow: 0 32px 90px rgba(0, 0, 0, 0.4);
  color-scheme: light;
}

.confirm-modal .eyebrow { margin-bottom: 15px; }

.confirm-modal h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 36px;
  font-weight: 400;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.confirm-modal > p:not(.eyebrow) {
  margin: 16px 0 30px;
  color: var(--muted);
  font-size: 12px;
}

.confirm-modal > div {
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: flex-end;
}

.rsvp-panel :where(a, button, input, textarea, summary):focus-visible,
.guest-manager :where(a, button, input, select, summary):focus-visible,
.confirm-modal :where(button):focus-visible {
  outline: 3px solid var(--navy-700);
  outline-offset: 2px;
}

.form-field input:focus-visible,
.form-field textarea:focus-visible,
.toolbar-actions select:focus-visible {
  outline: 3px solid var(--navy-700);
  outline-offset: 2px;
}

.search-field:focus-within {
  border-color: var(--navy-700);
  box-shadow: 0 0 0 3px var(--navy-700);
}

@media (max-width: 1080px) {
  :root { --shell: min(100% - 56px, 980px); }

  .site-header { padding-inline: 28px; }
  .main-nav { display: none; }
  .site-header { grid-template-columns: 1fr 1fr; }
  .hero-grid { gap: 55px; grid-template-columns: minmax(0, 1fr) 400px; }
  .story-grid { grid-template-columns: 0.18fr 1fr 0.75fr; gap: 38px; }
  .rsvp-shell { gap: 60px; }
  .dashboard-intro { gap: 60px; }
  .metrics article { padding-inline: 20px; }
  .guest-manager { padding: 34px; }
  .manager-toolbar { align-items: flex-start; flex-direction: column; }
  .toolbar-actions { width: 100%; }
  .search-field { flex: 1; }
}

@media (max-width: 900px) {
  :root { --shell: calc(100% - 40px); }

  .site-header { height: 72px; }
  .header-cta { font-size: 9px; }
  .hero { min-height: 0; }
  .hero::before { left: 0; }
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 64px;
    min-height: 0;
    padding: 132px 0 90px;
  }
  .hero-copy { max-width: 680px; }
  .hero h1 { font-size: clamp(64px, 15vw, 96px); }
  .invitation-art { width: min(100%, 510px); }
  .art-frame { transform: none; }
  .hero-rail { display: none; }

  .countdown { grid-template-columns: 1fr; gap: 22px; padding: 30px 0; }
  .countdown > p, .countdown-date { text-align: center; }

  .story-section, .details-section, .rsvp-section { padding: 100px 0; }
  .story-grid { grid-template-columns: 1fr; gap: 30px; }
  .section-index { display: none; }
  .story-copy { max-width: 610px; padding-top: 15px; }
  .section-heading { grid-template-columns: 1fr; }
  .details-list { margin-top: 70px; }
  .detail-item { grid-template-columns: 0.25fr 1fr; }
  .details-actions { margin-left: calc(20% + 30px); }

  .rsvp-shell { grid-template-columns: 1fr; gap: 55px; }
  .rsvp-copy { position: static; padding-top: 0; }
  .rsvp-copy > p:not(.eyebrow), .rsvp-note { max-width: 600px; }
  .form-field input, .form-field textarea, .search-field input, .toolbar-actions select { font-size: 16px; }

  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-event { display: none; }

  .mobile-rsvp-bar {
    position: fixed;
    z-index: 90;
    right: 12px;
    bottom: 12px;
    left: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 10px 10px 16px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(3, 11, 23, 0.94);
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.32);
    transition: opacity 180ms ease, transform 180ms ease;
  }
  .mobile-rsvp-bar.is-hidden { opacity: 0; transform: translateY(130%); pointer-events: none; }
  .mobile-rsvp-bar > div { display: flex; flex-direction: column; }
  .mobile-rsvp-bar span { color: var(--blue-gray); font-size: 8px; font-weight: 700; letter-spacing: 0.15em; }
  .mobile-rsvp-bar strong { font-family: var(--display); font-size: 16px; font-weight: 400; }
  .mobile-rsvp-bar a { padding: 10px 15px; background: var(--ivory); color: var(--ink); font-size: 9px; font-weight: 700; text-decoration: none; text-transform: uppercase; }

  .dashboard-header { grid-template-columns: 1fr 1fr; }
  .dashboard-header > div { display: none; }
  .dashboard-main { padding-top: 70px; }
  .dashboard-intro { grid-template-columns: 1fr; gap: 30px; }
  .dashboard-intro > p { max-width: 560px; }
  .metrics { grid-template-columns: 1fr 1fr; }
  .metrics article:nth-child(2) { border-right: 0; }
  .metrics article:nth-child(-n + 2) { border-bottom: 1px solid var(--border-dark); }
  .toolbar-actions { align-items: stretch; flex-wrap: wrap; }
  .search-field { flex: 1 1 100%; width: 100%; }
  .toolbar-actions select, .toolbar-actions .button { flex: 1; width: auto; }

  .guest-table,
  .guest-table tbody,
  .guest-table tr,
  .guest-table td { display: block; width: 100% !important; }
  .guest-table thead {
    position: absolute;
    display: block;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
  .guest-table tr { padding: 22px 0; border-top: 1px solid var(--border-light); }
  .guest-table td { display: grid; grid-template-columns: 110px 1fr; padding: 6px 0; border: 0; }
  .guest-table td::before { color: var(--muted); content: attr(data-label); font-size: 8px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
  .guest-table td:first-child { display: block; padding: 0 0 14px; }
  .guest-table td:first-child::before { display: none; }
  .row-action { display: block !important; padding-top: 12px !important; text-align: left; }
  .row-action::before { display: none; }
}

@media (max-width: 540px) {
  :root { --shell: calc(100% - 30px); }

  .site-header { padding-inline: 15px; }
  .monogram i { width: 24px; margin-inline: 8px; }
  .header-cta { letter-spacing: 0.06em; }

  .hero-grid { padding-top: 112px; }
  .eyebrow { margin-bottom: 22px; }
  .hero h1 { font-size: clamp(58px, 17.5vw, 82px); }
  .hero-intro { font-size: 14px; }
  .hero-actions { align-items: flex-start; flex-direction: column; }
  .hero-actions .button { width: 100%; }
  .hero-signature { margin-top: 46px; }
  .art-orbit { display: none; }

  .countdown-units { gap: 6px; }
  .countdown-units div { gap: 4px; flex-direction: column; align-items: center; }
  .countdown-units strong { min-width: 0; font-size: 34px; }
  .countdown-units span { font-size: 8px; }

  .story-section, .details-section, .rsvp-section { padding: 82px 0; }
  .story-title-wrap h2, .section-heading h2, .rsvp-copy h2 { font-size: 57px; }
  .story-copy > p { font-size: 20px; }
  .details-list { margin-top: 54px; }
  .detail-item { grid-template-columns: 38px 1fr; gap: 16px; padding: 28px 0; }
  .detail-item h3 { font-size: 34px; }
  .details-actions { align-items: stretch; flex-direction: column; margin-left: 54px; }
  .details-actions .text-button { align-self: flex-start; }

  .rsvp-panel { min-height: 0; padding: 28px 20px; }
  .attendance-options, .form-row { grid-template-columns: 1fr; gap: 12px; }
  .attendance-options { margin-bottom: 34px; }
  .form-footer { align-items: stretch; flex-direction: column; }
  .form-footer .button { width: 100%; }
  .rsvp-success { min-height: 470px; }
  .rsvp-success h3 { font-size: 38px; }

  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .dashboard-header .monogram span { font-size: 27px; }
  .dashboard-header .text-link { font-size: 8px; }
  .dashboard-main { padding: 55px 0 90px; }
  .dashboard-intro h1 { font-size: 58px; }
  .demo-notice { align-items: flex-start; margin-top: 45px; }
  .metrics article { padding: 22px 16px; }
  .metrics p, .metrics span { white-space: normal; }
  .metrics strong { font-size: 40px; }
  .guest-manager { margin-top: 48px; padding: 26px 20px; }
  .manager-toolbar h2 { font-size: 40px; }
  .toolbar-actions { flex-direction: column; }
  .toolbar-actions select, .toolbar-actions .button { width: 100%; }
  .guest-table td { grid-template-columns: 95px 1fr; }
  .manager-footer { gap: 24px; align-items: flex-start; flex-direction: column; }
  .confirm-modal { padding: 30px 24px; }
  .confirm-modal > div { align-items: stretch; flex-direction: column; }
  .toast { right: 12px; bottom: 80px; left: 12px; max-width: none; }
  .guest-page .toast { bottom: 12px; }
}

/* Experiência mobile-first: telefones */
@media (max-width: 600px) {
  :root {
    --shell: calc(100% - 32px);
  }

  html {
    scroll-padding-top: calc(72px + env(safe-area-inset-top));
  }

  body::before {
    display: none;
  }

  button,
  a,
  summary {
    -webkit-tap-highlight-color: rgba(169, 196, 228, 0.2);
  }

  .monogram,
  .text-link,
  .text-button {
    min-height: 44px;
  }

  .text-link,
  .text-button {
    display: inline-flex;
    align-items: center;
  }

  .site-header,
  .site-header.is-scrolled {
    height: calc(64px + env(safe-area-inset-top));
    padding: env(safe-area-inset-top) 16px 0;
    border-color: var(--border-dark);
    background: rgba(3, 11, 23, 0.94);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .monogram span {
    font-size: 27px;
  }

  .monogram i {
    width: 22px;
    margin-inline: 8px;
  }

  .header-cta {
    display: none;
  }

  .site-header::after {
    justify-self: end;
    color: var(--blue-gray);
    content: "17 · OUT · 2026";
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.13em;
  }

  .hero::before {
    top: 64px;
    background-size: 54px 54px;
  }

  .hero-grid {
    gap: 42px;
    padding: calc(98px + env(safe-area-inset-top)) 0 64px;
  }

  .eyebrow {
    gap: 14px;
    margin-bottom: 18px;
    font-size: 10px;
    letter-spacing: 0.17em;
  }

  .hero h1 {
    max-width: 370px;
    font-size: clamp(56px, 16vw, 68px);
    line-height: 0.97;
  }

  .hero-intro {
    margin-top: 24px;
    color: rgba(255, 255, 255, 0.76);
    font-size: 15px;
    line-height: 1.72;
  }

  .hero-actions {
    gap: 10px;
    align-items: stretch;
    margin-top: 28px;
  }

  .hero-actions .button {
    width: 100%;
    min-height: 56px;
  }

  .hero-actions .text-link {
    display: flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    border-bottom: 0;
  }

  .hero-signature {
    display: none;
  }

  .invitation-art {
    width: 100%;
    margin-top: 0;
  }

  .art-frame {
    padding: 5px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.42);
  }

  .art-expand-label {
    right: 12px;
    bottom: 12px;
    min-height: 42px;
    padding-inline: 12px;
    font-size: 8px;
    opacity: 1;
    transform: none;
  }

  .invitation-art figcaption {
    margin-top: 13px;
    font-size: 8px;
    letter-spacing: 0.16em;
    text-align: center;
  }

  .countdown {
    gap: 16px;
    min-height: 0;
    padding: 24px 0;
  }

  .countdown > p,
  .countdown-date {
    font-size: 11px;
  }

  .countdown-units {
    gap: 7px;
  }

  .countdown-units div {
    gap: 5px;
  }

  .countdown-units strong {
    font-size: clamp(32px, 9vw, 38px);
  }

  .countdown-units span {
    font-size: 10px;
  }

  .story-section,
  .details-section,
  .rsvp-section {
    padding: 68px 0;
  }

  .story-grid {
    gap: 22px;
  }

  .story-title-wrap h2,
  .section-heading h2,
  .rsvp-copy h2 {
    font-size: clamp(48px, 14vw, 56px);
    line-height: 0.98;
  }

  .story-copy {
    padding-top: 4px;
  }

  .story-copy > p {
    font-size: 20px;
    line-height: 1.5;
  }

  .story-copy > span {
    margin-top: 24px;
  }

  .details-list {
    margin-top: 44px;
  }

  .detail-item {
    grid-template-columns: 30px 1fr;
    gap: 12px;
    padding: 24px 0;
  }

  .detail-item h3 {
    margin-bottom: 8px;
    font-size: 34px;
  }

  .detail-number,
  .detail-item p,
  .detail-item div > span {
    font-size: 10px;
  }

  .detail-item div > span {
    font-size: 12px;
    letter-spacing: 0.05em;
    line-height: 1.65;
    text-transform: none;
  }

  .details-actions {
    gap: 8px;
    align-items: stretch;
    margin: 30px 0 0;
  }

  .details-actions .button {
    width: 100%;
    min-height: 56px;
  }

  .details-actions .text-button {
    min-height: 48px;
    align-self: stretch;
    border-bottom: 0;
  }

  .rsvp-shell {
    gap: 36px;
  }

  .rsvp-copy > p:not(.eyebrow) {
    margin: 26px 0;
    font-size: 14px;
    line-height: 1.75;
  }

  .rsvp-note {
    gap: 12px;
  }

  .rsvp-note p {
    font-size: 11px;
  }

  .rsvp-panel {
    min-height: 0;
    padding: 28px 20px;
  }

  .attendance-fieldset legend,
  .form-field label {
    margin-bottom: 9px;
    font-size: 12px;
    letter-spacing: 0.07em;
  }

  .attendance-options {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 8px;
  }

  .attendance-fieldset {
    margin-bottom: 30px !important;
  }

  .attendance-options span {
    min-height: 56px;
    padding: 8px;
    font-size: 12px;
    line-height: 1.35;
    text-align: center;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .form-field {
    margin-bottom: 24px;
  }

  .form-field input,
  .form-field textarea {
    font-size: 16px;
  }

  .attendance-fieldset legend,
  .form-field label,
  .detail-item div > span,
  .mobile-rsvp-bar span,
  .mobile-rsvp-bar a,
  .art-dialog-toolbar p,
  .art-dialog-toolbar button {
    font-size: 12px;
  }

  .form-field input {
    height: 56px;
  }

  .form-field textarea {
    min-height: 92px;
    padding-block: 14px;
  }

  .field-help,
  .field-error,
  .form-status {
    font-size: 12px;
  }

  .form-optional {
    margin-bottom: 24px;
  }

  .form-optional summary {
    min-height: 76px;
  }

  .form-optional summary strong {
    font-size: 12px;
  }

  .form-optional summary small {
    max-width: 245px;
    font-size: 11px;
    line-height: 1.45;
  }

  .form-footer {
    gap: 12px;
    align-items: stretch;
  }

  .form-footer > p {
    margin: 0;
    font-size: 10px;
  }

  .form-footer .button {
    width: 100%;
    min-height: 56px;
  }

  .rsvp-success {
    min-height: 420px;
  }

  .success-mark {
    width: 94px;
    height: 94px;
    margin-bottom: 28px;
  }

  .rsvp-success h3 {
    font-size: 38px;
    line-height: 1.05;
  }

  .rsvp-success > p:not(.eyebrow) {
    font-size: 13px;
  }

  .site-footer {
    padding-top: 56px;
  }

  .footer-grid {
    gap: 30px;
    padding-bottom: 52px;
  }

  .footer-grid > div:first-child > p,
  .footer-event span {
    font-size: 11px;
  }

  .mobile-rsvp-bar {
    right: 10px;
    bottom: max(10px, env(safe-area-inset-bottom));
    left: 10px;
    min-height: 64px;
    padding: 8px 8px 8px 14px;
  }

  .mobile-rsvp-bar strong {
    font-size: 17px;
  }

  .mobile-rsvp-bar span {
    font-size: 12px;
    letter-spacing: 0.06em;
  }

  .mobile-rsvp-bar a {
    display: inline-flex;
    min-width: 104px;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    font-size: 12px;
  }

  .toast {
    right: 10px;
    bottom: calc(82px + env(safe-area-inset-bottom));
    left: 10px;
    max-width: none;
    padding: 14px 16px;
    font-size: 12px;
  }

  .art-dialog {
    inset: 0;
    width: 100vw;
    height: 100dvh;
    margin: 0;
    border: 0;
  }

  .art-dialog-header {
    padding: calc(10px + env(safe-area-inset-top)) 12px 10px 16px;
  }

  .art-dialog-header span {
    font-size: 9px;
  }

  .art-dialog-header strong {
    font-size: 20px;
  }

  .art-dialog-scroll {
    padding: 12px;
  }

  .art-dialog-toolbar {
    min-height: calc(64px + env(safe-area-inset-bottom));
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  }

  .art-dialog-toolbar p {
    max-width: 130px;
    font-size: 12px;
    line-height: 1.4;
  }

  .art-dialog-toolbar button {
    font-size: 12px;
  }

  /* Painel mobile */
  .dashboard-header {
    min-height: calc(64px + env(safe-area-inset-top));
    padding-top: env(safe-area-inset-top);
  }

  .dashboard-header > .text-link {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-self: end;
    border-bottom: 0;
    font-size: 10px;
  }

  .dashboard-main {
    padding: 40px 0 88px;
  }

  .dashboard-intro {
    gap: 0;
  }

  .dashboard-intro h1 {
    font-size: clamp(50px, 15vw, 58px);
    line-height: 0.96;
  }

  .dashboard-intro > p {
    display: none;
  }

  .demo-notice {
    gap: 12px;
    align-items: flex-start;
    margin-top: 34px;
    padding: 15px;
  }

  .demo-notice p {
    font-size: 12px;
    line-height: 1.6;
  }

  .metrics {
    grid-template-columns: repeat(4, minmax(138px, 1fr));
    margin-top: 16px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    overscroll-behavior-inline: contain;
  }

  .metrics::-webkit-scrollbar {
    display: none;
  }

  .metrics article {
    min-height: 108px;
    padding: 18px 14px;
    border-right: 1px solid var(--border-dark) !important;
    border-bottom: 0 !important;
    scroll-snap-align: start;
  }

  .metrics article:last-child {
    border-right: 0 !important;
  }

  .metrics p {
    font-size: 10px;
    line-height: 1.45;
  }

  .metrics span {
    font-size: 11px;
    line-height: 1.45;
  }

  .metrics strong {
    margin: 9px 0 7px;
    font-size: 40px;
  }

  .guest-manager {
    margin-top: 32px;
    padding: 28px 18px;
  }

  .manager-toolbar {
    display: contents;
  }

  .manager-toolbar > div:first-child {
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-light);
  }

  .manager-toolbar h2 {
    font-size: 42px;
  }

  .toolbar-summary {
    font-size: 12px;
  }

  .toolbar-actions {
    position: sticky;
    z-index: 6;
    top: env(safe-area-inset-top);
    gap: 9px;
    flex-direction: row;
    flex-wrap: wrap;
    margin: 0 -8px;
    padding: 10px 8px;
    border-bottom: 1px solid var(--border-light);
    background: rgba(247, 245, 239, 0.98);
    box-shadow: 0 10px 20px rgba(6, 20, 38, 0.06);
  }

  .search-field {
    flex: 1 0 100%;
    width: 100%;
    height: 52px;
  }

  .toolbar-actions select,
  .toolbar-actions .button {
    width: calc(50% - 4.5px);
    flex: 0 0 calc(50% - 4.5px);
  }

  .toolbar-actions select {
    height: 52px;
  }

  .search-field input,
  .toolbar-actions select {
    font-size: 16px;
  }

  .toolbar-actions .button {
    min-height: 52px;
    padding-inline: 10px;
    letter-spacing: 0.06em;
  }

  .guest-table-wrap {
    overflow: visible;
  }

  .guest-table tbody {
    display: block;
    padding-top: 18px;
  }

  .guest-table thead {
    position: absolute;
    display: block;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .guest-table tr {
    margin-bottom: 12px;
    padding: 18px;
    border: 1px solid rgba(8, 25, 45, 0.12);
    background: rgba(255, 255, 255, 0.54);
  }

  .guest-table td {
    grid-template-columns: 92px 1fr;
    padding: 6px 0;
    font-size: 13px;
    line-height: 1.5;
  }

  .guest-table td::before {
    font-size: 10px;
  }

  .guest-table td:first-child {
    padding-bottom: 14px;
  }

  .guest-name-row > strong {
    font-size: 16px;
    line-height: 1.35;
  }

  .mobile-status {
    display: inline-flex;
    flex: 0 0 auto;
  }

  .status-cell {
    position: absolute !important;
    display: block !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
  }

  .guest-details span {
    font-size: 12px;
  }

  .guest-details summary {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    font-size: 12px;
  }

  .status {
    font-size: 11px;
  }

  .row-action {
    padding-top: 10px !important;
  }

  .row-action button,
  .danger-link {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    font-size: 11px;
  }

  .guest-phone {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
  }

  .empty-state {
    min-height: 320px;
    padding: 30px 0;
  }

  .empty-state h3 {
    font-size: 28px;
    line-height: 1.25;
  }

  .empty-state p {
    font-size: 12px;
  }

  .empty-state .button {
    width: 100%;
    min-height: 52px;
  }

  .manager-footer {
    gap: 12px;
    align-items: flex-start;
    flex-direction: column;
    padding-top: 18px;
  }

  .manager-footer p {
    font-size: 11px;
  }

  .modal-backdrop {
    place-items: end stretch;
    padding: 0;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .confirm-modal {
    width: 100%;
    max-height: calc(100dvh - env(safe-area-inset-top));
    padding: 30px 22px calc(22px + env(safe-area-inset-bottom));
    overflow-y: auto;
    border-radius: 12px 12px 0 0;
  }

  .confirm-modal h2 {
    font-size: 34px;
  }

  .confirm-modal > p:not(.eyebrow) {
    font-size: 13px;
    line-height: 1.65;
  }

  .confirm-modal > div {
    gap: 8px;
  }

  .confirm-modal .button,
  .confirm-modal .text-button {
    width: 100%;
    min-height: 52px;
  }

  .guest-page .toast {
    bottom: calc(12px + env(safe-area-inset-bottom));
  }
}

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

@media (hover: none) and (pointer: coarse) {
  body::before {
    display: none;
  }

  .site-header,
  .site-header.is-scrolled,
  .modal-backdrop,
  .art-dialog::backdrop {
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .monogram,
  .text-link,
  .text-button,
  .header-cta,
  .row-action button,
  .danger-link {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
  }

  .form-field input,
  .form-field textarea,
  .search-field input,
  .toolbar-actions select {
    font-size: 16px;
  }

  .attendance-fieldset legend,
  .form-field label,
  .detail-item div > span,
  .mobile-rsvp-bar span,
  .mobile-rsvp-bar a,
  .art-dialog-toolbar p,
  .art-dialog-toolbar button {
    font-size: 12px;
  }

  .mobile-rsvp-bar {
    bottom: max(10px, env(safe-area-inset-bottom));
  }

  .mobile-rsvp-bar a {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
  }

  .confirm-modal {
    max-height: calc(100dvh - 24px - env(safe-area-inset-top));
    overflow-y: auto;
  }
}
