:root {
  --noces-primary: #a94f3d;
  --noces-accent: #d7b56d;
  --noces-background: #f8f3ec;
  --noces-text: #302b28;
  --noces-ink-soft: color-mix(in srgb, var(--noces-text) 68%, transparent);
  --noces-paper: color-mix(in srgb, var(--noces-background) 90%, white);
  --noces-line: color-mix(in srgb, var(--noces-text) 18%, transparent);
  --noces-title: Baskerville, "Baskerville Old Face", "Iowan Old Style", Georgia, serif;
  --noces-heading: Palatino, "Palatino Linotype", "Book Antiqua", serif;
  --noces-body: "Segoe UI", Aptos, Arial, sans-serif;
  --noces-ui: "Segoe UI", Aptos, Arial, sans-serif;
  --noces-title-size-desktop: 136px;
  --noces-title-size-mobile: 72px;
  --noces-heading-size-desktop: 96px;
  --noces-heading-size-mobile: 56px;
  --noces-body-size-desktop: 18px;
  --noces-body-size-mobile: 16px;
  --noces-ui-size-desktop: 12px;
  --noces-ui-size-mobile: 11px;
  --noces-button-size-desktop: 12px;
  --noces-button-size-mobile: 11px;
  --noces-countdown-number-size-desktop: 32px;
  --noces-countdown-number-size-mobile: 29px;
  --noces-countdown-label-size-desktop: 10px;
  --noces-countdown-label-size-mobile: 9px;
  --noces-opening-text-size-desktop: 12px;
  --noces-opening-text-size-mobile: 11px;
  --noces-hero-eyebrow-size-desktop: 12px;
  --noces-hero-eyebrow-size-mobile: 11px;
  --noces-introduction-size-desktop: 18px;
  --noces-introduction-size-mobile: 16px;
  --noces-display: var(--noces-heading);
  --noces-space-xs: clamp(0.55rem, 0.4rem + 0.35vw, 0.85rem);
  --noces-space-sm: clamp(1rem, 0.75rem + 0.75vw, 1.6rem);
  --noces-space-md: clamp(1.8rem, 1.15rem + 1.8vw, 3.4rem);
  --noces-space-lg: clamp(3.5rem, 2.2rem + 4vw, 7.5rem);
  --noces-space-xl: clamp(5.5rem, 3.2rem + 7vw, 11rem);
  --noces-content: 76rem;
  --noces-reading: 42rem;
  --noces-radius: clamp(1.5rem, 1rem + 2vw, 3.5rem);
  --noces-shadow: 0 2rem 6rem rgb(48 43 40 / 10%);
}

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

html { scroll-behavior: smooth; }

body.noces-invitation {
  margin: 0;
  overflow-x: hidden;
  color: var(--noces-text);
  background: var(--noces-background);
  font-family: var(--noces-body);
  font-size: var(--noces-body-size-desktop);
  line-height: 1.72;
  text-rendering: optimizeLegibility;
}

html.noces-locked,
html.noces-locked body { overflow: hidden; }

.noces-opening {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  overflow: hidden;
  align-items: center;
  justify-items: center;
  padding: clamp(0.8rem, 2.5vw, 2rem);
  color: white;
  background:
    radial-gradient(circle at 50% 36%, color-mix(in srgb, var(--noces-accent) 35%, transparent), transparent 34%),
    linear-gradient(145deg, color-mix(in srgb, var(--noces-primary) 86%, black), var(--noces-primary));
  isolation: isolate;
}

.noces-opening[hidden] { display: none; }

.noces-opening.is-opening {
  pointer-events: none;
  animation: noces-cover-reveal 1.8s cubic-bezier(0.76, 0, 0.24, 1) forwards;
  will-change: clip-path, opacity;
}

.noces-opening.is-opening .noces-opening__card {
  animation: noces-card-depart 1.25s cubic-bezier(0.55, 0, 1, 0.45) forwards;
}

.noces-opening.is-opening .noces-opening__backdrop img {
  animation: noces-backdrop-bloom 1.8s ease-out forwards;
}

.noces-opening.is-opening .noces-opening__button {
  animation: noces-seal-press 0.5s ease-out forwards;
}

.noces-opening__backdrop,
.noces-opening__backdrop::after {
  position: absolute;
  inset: 0;
}

.noces-opening__backdrop {
  z-index: -2;
  overflow: hidden;
  background: var(--noces-primary);
}

.noces-opening__backdrop img {
  width: 100%;
  height: 100%;
  opacity: 0.48;
  filter: blur(4.5rem) saturate(0.82);
  object-fit: cover;
  transform: scale(1.18);
}

.noces-opening__backdrop::after {
  background:
    radial-gradient(circle at 50% 45%, transparent 0 20%, color-mix(in srgb, var(--noces-primary) 38%, transparent) 66%),
    linear-gradient(to bottom, color-mix(in srgb, var(--noces-primary) 32%, black), transparent 35%, color-mix(in srgb, var(--noces-primary) 52%, black));
  content: "";
}

.noces-opening__card {
  position: relative;
  display: grid;
  width: min(100%, 27.5rem);
  max-height: calc(100svh - 1.6rem);
  gap: clamp(1rem, 2.4vh, 1.45rem);
  justify-items: center;
  overflow: hidden auto;
  padding: clamp(1rem, 2.8vh, 1.65rem);
  background: linear-gradient(145deg, rgb(255 255 255 / 18%), rgb(255 255 255 / 7%));
  border: 1px solid rgb(255 255 255 / 30%);
  border-radius: clamp(1.8rem, 5vw, 3rem);
  box-shadow: 0 2.2rem 5rem color-mix(in srgb, var(--noces-primary) 45%, black), inset 0 1px rgb(255 255 255 / 42%);
  text-align: center;
  backdrop-filter: blur(1.75rem) saturate(135%);
  -webkit-backdrop-filter: blur(1.75rem) saturate(135%);
}

.noces-opening__card::before {
  position: absolute;
  top: -5rem;
  left: 50%;
  width: 13rem;
  height: 8rem;
  background: rgb(255 255 255 / 22%);
  border-radius: 50%;
  content: "";
  filter: blur(2rem);
  pointer-events: none;
  transform: translateX(-50%);
}

.noces-opening__portrait {
  position: relative;
  display: grid;
  width: min(100%, 17.25rem);
  aspect-ratio: 3 / 3.65;
  place-items: center;
  overflow: hidden;
  background: color-mix(in srgb, var(--noces-primary) 72%, black);
  border: 3px solid rgb(255 255 255 / 48%);
  border-bottom: 1px solid rgb(255 255 255 / 18%);
  border-radius: 50% 50% 0 0 / 39% 39% 0 0;
  box-shadow: 0 1.2rem 2.5rem rgb(28 7 4 / 32%);
}

.noces-opening__portrait::after {
  position: absolute;
  inset: 0.55rem;
  border: 1px solid rgb(255 255 255 / 42%);
  border-bottom: 0;
  border-radius: 50% 50% 0 0 / 38% 38% 0 0;
  content: "";
  pointer-events: none;
}

.noces-opening__portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
}

.noces-opening__monogram {
  color: white;
  font-family: var(--noces-title);
  font-size: clamp(4.5rem, 18vw, 8rem);
  font-style: italic;
  letter-spacing: -0.12em;
  transform: translateX(-0.08em);
}

.noces-opening__content { position: relative; display: grid; justify-items: center; }
.noces-opening__eyebrow { margin: 0 0 0.15rem; font-family: var(--noces-heading); font-size: clamp(1rem, 2.4vh, 1.3rem); font-style: italic; letter-spacing: 0.045em; opacity: 0.9; }
.noces-opening h2 { max-width: 11ch; margin: 0 0 clamp(1rem, 2.4vh, 1.5rem); color: white; font-family: var(--noces-title); font-size: clamp(2.5rem, 7vh, 4.35rem); font-style: italic; font-weight: 400; letter-spacing: -0.055em; line-height: 0.92; text-shadow: 0 0.15rem 1rem rgb(0 0 0 / 30%); text-wrap: balance; }
.noces-opening__fallback { display: block; width: max-content; margin-top: 1rem; color: white; font-size: 0.72rem; opacity: 0.82; }
.noces-js .noces-opening__fallback { display: none; }

.noces-opening__button {
  position: relative;
  display: inline-flex;
  min-height: 3.4rem;
  align-items: center;
  gap: 0.65rem;
  padding-inline: 1.65rem;
  color: white;
  background: linear-gradient(105deg, color-mix(in srgb, var(--noces-primary) 86%, black), color-mix(in srgb, var(--noces-primary) 75%, white));
  border-color: rgb(255 255 255 / 55%);
  box-shadow: 0 0.9rem 1.8rem rgb(31 6 3 / 28%);
  animation: noces-opening-breathe 3s ease-in-out infinite;
}

.noces-opening__button::before {
  position: absolute;
  inset: -0.32rem;
  border: 1px solid rgb(255 255 255 / 58%);
  border-radius: inherit;
  content: "";
  transition: inset 200ms ease, border-color 200ms ease;
}

.noces-opening__button:hover::before { inset: -0.46rem; border-color: rgb(255 255 255 / 88%); }
.noces-opening__button:active { transform: scale(0.97); }
.noces-opening__button svg { width: 1.15rem; height: 1.15rem; fill: currentColor; }

@keyframes noces-opening-breathe {
  0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--noces-accent) 38%, transparent), 0 0.9rem 1.8rem rgb(31 6 3 / 28%); }
  50% { box-shadow: 0 0 0 0.7rem transparent, 0 1.1rem 2.1rem rgb(31 6 3 / 35%); }
}

@keyframes noces-seal-press {
  0% { transform: scale(1); }
  45% { transform: scale(0.94); box-shadow: 0 0 0 0.8rem color-mix(in srgb, var(--noces-accent) 28%, transparent); }
  100% { transform: scale(1.04); opacity: 0; }
}

@keyframes noces-card-depart {
  0% { opacity: 1; transform: translateY(0) scale(1); }
  38% { opacity: 1; transform: translateY(-0.25rem) scale(1.015); }
  100% { opacity: 0; transform: translateY(1.2rem) scale(0.88); filter: blur(0.35rem); }
}

@keyframes noces-backdrop-bloom {
  0% { opacity: 0.48; transform: scale(1.18); }
  55% { opacity: 0.7; }
  100% { opacity: 0; transform: scale(1.34); }
}

@keyframes noces-cover-reveal {
  0%, 52% { clip-path: inset(0 0 0 0); opacity: 1; }
  99% { clip-path: inset(0 50% 0 50%); opacity: 1; }
  100% { clip-path: inset(0 50% 0 50%); opacity: 0; }
}

.noces-button {
  min-height: 3.25rem;
  padding: 0.8rem 1.35rem;
  color: var(--noces-background);
  background: var(--noces-primary);
  border: 1px solid var(--noces-primary);
  border-radius: 999px;
  cursor: pointer;
  font: 700 0.76rem/1 var(--noces-ui);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

body.noces-invitation::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(circle at 20% 10%, rgb(255 255 255 / 70%), transparent 31%);
  content: "";
  pointer-events: none;
}

a { color: inherit; text-underline-offset: 0.28em; }

a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid var(--noces-primary);
  outline-offset: 4px;
}

.noces-skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 100;
  padding: 0.7rem 1rem;
  color: white;
  background: var(--noces-primary);
  transform: translateY(-180%);
}

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

.noces-header {
	position: fixed;
	top: 0.65rem;
	left: 50%;
	z-index: 40;
	display: flex;
	width: min(calc(100% - 2rem), var(--noces-content));
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding: 0.55rem 0.7rem 0.55rem 1rem;
	background: color-mix(in srgb, var(--noces-background) 38%, transparent);
	border: 1px solid color-mix(in srgb, var(--noces-text) 14%, transparent);
	border-radius: 999px;
	box-shadow: 0 0.8rem 2.4rem color-mix(in srgb, var(--noces-text) 8%, transparent);
	backdrop-filter: blur(8px);
	transform: translateX(-50%);
}

body.admin-bar .noces-header { top: calc(32px + 0.65rem); }

.noces-wordmark {
  font-family: var(--noces-title);
  font-size: 1.35rem;
  font-style: italic;
  text-decoration: none;
}

.noces-header nav { min-width: 0; }

.noces-header nav ul {
	display: flex;
	align-items: center;
	gap: clamp(0.65rem, 1.2vw, 1.25rem);
	margin: 0;
	padding: 0;
	overflow-x: auto;
	list-style: none;
	scrollbar-width: none;
}

.noces-header nav ul::-webkit-scrollbar { display: none; }

.noces-header nav a {
	position: relative;
	display: block;
	padding: 0.45rem 0.1rem;
	font-family: var(--noces-body);
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-decoration: none;
	text-transform: uppercase;
	white-space: nowrap;
}

.noces-header nav a::after {
	position: absolute;
	right: 0;
	bottom: 0.15rem;
	left: 0;
	height: 1px;
	background: var(--noces-primary);
	content: "";
	transform: scaleX(0);
	transition: transform 180ms ease;
}

.noces-header nav a:hover::after,
.noces-header nav a[aria-current="location"]::after { transform: scaleX(1); }

.noces-nav-toggle { display: none; }

[data-noces-section] { scroll-margin-top: 6rem; }

.noces-section {
  position: relative;
  width: min(calc(100% - 2rem), var(--noces-content));
  min-height: clamp(30rem, 72vh, 52rem);
  margin-inline: auto;
  padding-block: var(--noces-space-xl);
  border-bottom: 1px solid var(--noces-line);
}

.noces-hero {
  position: relative;
  display: block;
  width: 100%;
  min-height: 100svh;
  padding: 0;
  border: 0;
  isolation: isolate;
}

.noces-hero::before {
  position: absolute;
  inset: 0 calc(50% - 50vw);
  z-index: -1;
  background: var(--noces-background);
  content: "";
}

.noces-hero__visual { position: relative; height: clamp(42rem, 84svh, 64rem); overflow: hidden; background: var(--noces-text); }

.noces-hero__arch {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--noces-text);
}

.noces-hero__arch--mobile { display: none; }

.noces-hero__arch::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to bottom, color-mix(in srgb, var(--noces-text) 32%, transparent), transparent 38%, color-mix(in srgb, var(--noces-text) 52%, transparent));
  content: "";
  pointer-events: none;
}

.noces-hero__waves { position: absolute; right: 0; bottom: -1px; left: 0; z-index: 3; height: clamp(7rem, 14vw, 13rem); pointer-events: none; }
.noces-hero__wave { position: absolute; inset: 0; width: 100%; height: 100%; }
.noces-hero__wave--back { fill: color-mix(in srgb, var(--noces-primary) 28%, transparent); transform: translateY(-1.25rem); }
.noces-hero__wave--middle { fill: color-mix(in srgb, var(--noces-primary) 14%, var(--noces-background)); transform: translateY(-0.55rem); opacity: 0.72; }
.noces-hero__wave--front { fill: var(--noces-background); }

.noces-hero__monogram {
  display: none;
}

.noces-hero__slide { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; transition: opacity 3000ms ease-in-out, transform 3000ms ease-in-out; }
.noces-hero__slide[aria-hidden="true"] { opacity: 0; }
.noces-hero__slide[aria-hidden="false"] { opacity: 1; }

.noces-countdown { margin-top: var(--noces-space-sm); padding-block: var(--noces-space-sm); border-block: 1px solid var(--noces-line); }
.noces-countdown__units { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(0.5rem, 2vw, 1.5rem); }
.noces-countdown__units span { display: grid; gap: 0.28rem; text-align: center; }
.noces-countdown__units strong { font-family: var(--noces-heading); font-size: clamp(1.65rem, 3.2vw, 2.65rem); font-weight: 400; line-height: 1; }
.noces-countdown__units small { color: var(--noces-ink-soft); font-family: var(--noces-ui); font-size: 0.58rem; letter-spacing: 0.13em; text-transform: uppercase; }
.noces-countdown__message { color: var(--noces-primary); font-family: var(--noces-heading); font-size: 1.5rem; font-style: italic; }

.noces-audio { position: fixed; right: 1rem; bottom: 1rem; z-index: 30; }
.noces-audio button { display: flex; min-height: 2.8rem; align-items: center; gap: 0.55rem; padding: 0.65rem 1rem; color: var(--noces-background); background: var(--noces-text); border: 0; border-radius: 999px; box-shadow: var(--noces-shadow); cursor: pointer; font: 700 0.68rem/1 var(--noces-ui); letter-spacing: 0.08em; text-transform: uppercase; }

.noces-hero__content { display: flex; width: min(calc(100% - 2rem), 68rem); min-height: auto; flex-direction: column; align-items: center; justify-content: center; margin: -1px auto 0; padding: clamp(2.5rem, 4vw, 4.5rem) 1rem 1rem; background: var(--noces-background); text-align: center; }

.noces-eyebrow {
  margin: 0 0 0.55rem;
  color: var(--noces-text);
  font-family: var(--noces-ui);
  font-size: clamp(0.68rem, 0.6rem + 0.2vw, 0.82rem);
  font-weight: 600;
  letter-spacing: 0.34em;
  text-transform: uppercase;
}

.noces-hero h1,
.noces-section h2 {
  margin: 0;
  font-family: var(--noces-heading);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.94;
  text-wrap: balance;
}

.noces-hero h1 { max-width: none; color: var(--noces-primary); font-family: var(--noces-title); font-size: var(--noces-title-size-desktop); font-style: italic; line-height: 0.88; }

.noces-typewriter-char {
  display: inline-block;
  opacity: 0;
  transform: translateY(0.12em) scale(0.96);
  transition: opacity 220ms ease-out, transform 280ms cubic-bezier(0.22, 1, 0.36, 1);
}

.noces-hero h1.is-writing .noces-typewriter-char {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.noces-hero__details { display: flex; width: min(100%, 42rem); flex-direction: column; align-items: center; margin-top: clamp(1.35rem, 3vh, 2.2rem); }

.noces-hero__date { display: grid; width: max-content; max-width: 100%; grid-template-columns: minmax(1.5rem, 4rem) auto minmax(1.5rem, 4rem); align-items: center; gap: 0.9rem; }
.noces-hero__date span { height: 1px; background: color-mix(in srgb, var(--noces-accent) 72%, transparent); }

.noces-hero time {
  color: var(--noces-text);
  font-family: var(--noces-heading);
  font-size: clamp(1.15rem, 1rem + 0.8vw, 1.75rem);
  font-style: normal;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.noces-introduction { max-width: 35rem; margin-top: 1.3rem; color: var(--noces-ink-soft); font-family: var(--noces-heading); font-size: 0.88rem; font-style: italic; }
.noces-introduction p:last-child { margin-bottom: 0; }

.noces-hero .noces-countdown { width: min(100%, 35rem); margin-top: 1.5rem; padding-block: 1rem; }
.noces-hero .noces-countdown__units strong { font-size: clamp(1.4rem, 2.8vw, 2rem); }
.noces-hero__cta { display: inline-flex; min-height: 3.5rem; align-items: center; justify-content: center; margin-top: 1.65rem; padding-inline: 2rem; color: var(--noces-background); background: var(--noces-primary); border-radius: 1rem; opacity: 1; box-shadow: 0 0.8rem 1.8rem color-mix(in srgb, var(--noces-primary) 27%, transparent); cursor: pointer; text-decoration: none; }

.noces-hero__cta.noces-heartbeat {
  animation: noces-heartbeat var(--noces-heartbeat-duration, 2400ms) ease-in-out var(--noces-heartbeat-delay, 700ms) infinite;
  transform-origin: center;
  will-change: transform, box-shadow;
}

@keyframes noces-heartbeat {
  0%, 68%, 100% { transform: scale(1); box-shadow: 0 0 0 0 transparent; }
  74% { transform: scale(1.035); box-shadow: 0 0 0 0.28rem color-mix(in srgb, var(--noces-primary) 14%, transparent); }
  80% { transform: scale(1); box-shadow: 0 0 0 0.52rem transparent; }
  86% { transform: scale(1.02); }
  92% { transform: scale(1); }
}

.noces-section:not(.noces-hero) {
  display: grid;
  grid-template-columns: minmax(3rem, 0.4fr) minmax(17rem, 1fr);
  align-items: center;
  gap: var(--noces-space-md);
}

.noces-section__index {
  align-self: start;
  padding-top: 0.4rem;
  color: var(--noces-primary);
  font-family: var(--noces-heading);
  font-size: clamp(4rem, 10vw, 9rem);
  font-style: italic;
  line-height: 1;
  opacity: 0.18;
}

.noces-section__body { width: min(100%, var(--noces-reading)); }
.noces-section h2 { font-size: var(--noces-heading-size-desktop); }
.noces-section__body > p:last-child { max-width: 34rem; margin-top: var(--noces-space-md); color: var(--noces-ink-soft); font-size: var(--noces-body-size-desktop); }

.noces-section p:not(.noces-eyebrow),
.noces-footer p { font-size: var(--noces-body-size-desktop); }
.noces-eyebrow,
.noces-opening__eyebrow,
.noces-opening__fallback,
.noces-header nav,
.noces-countdown__units small { font-size: var(--noces-ui-size-desktop); }
.noces-button { font-size: var(--noces-button-size-desktop); }
.noces-hero .noces-countdown__units strong { font-size: var(--noces-countdown-number-size-desktop); }
.noces-hero .noces-countdown__units small { font-size: var(--noces-countdown-label-size-desktop); }
.noces-opening .noces-opening__eyebrow { font-size: var(--noces-opening-text-size-desktop); }
.noces-hero .noces-eyebrow { font-size: var(--noces-hero-eyebrow-size-desktop); }
.noces-hero .noces-introduction,
.noces-hero .noces-introduction p { font-size: var(--noces-introduction-size-desktop); }

.noces-section--story,
.noces-section--rsvp { color: var(--noces-background); }

.noces-section--story::before,
.noces-section--rsvp::before {
  position: absolute;
  inset: 0 calc(50% - 50vw);
  z-index: -1;
  background: var(--noces-primary);
  content: "";
}

.noces-section--story .noces-eyebrow,
.noces-section--rsvp .noces-eyebrow,
.noces-section--story .noces-section__body > p:last-child,
.noces-section--rsvp .noces-section__body > p:last-child { color: inherit; }

.noces-section--story .noces-section__index,
.noces-section--rsvp .noces-section__index { color: var(--noces-accent); opacity: 0.5; }

/* Love story: reference-led alternating editorial timeline. */
.noces-section.noces-story { position: relative; display: block; width: 100%; max-width: none; margin: 0; padding: clamp(4.5rem, 8vw, 8rem) clamp(1rem, 4vw, 3rem); overflow: hidden; color: var(--noces-text); background: var(--noces-background); }
.noces-story__glow { position: absolute; top: 2rem; left: 50%; width: min(55vw, 44rem); aspect-ratio: 1; background: color-mix(in srgb, var(--noces-primary) 7%, transparent); border-radius: 50%; filter: blur(4rem); pointer-events: none; transform: translateX(-50%); }
.noces-story__header { position: relative; width: min(100%, 48rem); margin: 0 auto clamp(4rem, 8vw, 7rem); text-align: center; }
.noces-story__badge { display: inline-flex; align-items: center; gap: 0.6rem; margin: 0; padding: 0.25rem 1rem; color: var(--noces-primary); background: color-mix(in srgb, var(--noces-background) 88%, white); border: 1px solid color-mix(in srgb, var(--noces-primary) 28%, transparent); border-radius: 999px; font-family: var(--noces-ui); font-size: var(--noces-ui-size-desktop) !important; font-weight: 700; letter-spacing: 0.22em; line-height: 1.2; text-transform: uppercase; }
.noces-story__badge span { font-size: 0.75em; }
.noces-section.noces-story .noces-story__header h2 { margin-top: 0.75rem; color: var(--noces-primary); font-size: var(--noces-heading-size-desktop); line-height: 1; }
.noces-story__ornament { display: flex; align-items: center; justify-content: center; gap: 0.8rem; margin: 1rem 0; color: var(--noces-primary); }
.noces-story__ornament span { width: 3rem; height: 1px; background: color-mix(in srgb, var(--noces-primary) 40%, transparent); }
.noces-story__ornament i { font-style: normal; font-size: 0.75rem; }
.noces-section.noces-story .noces-story__introduction { max-width: 44rem; margin: 0 auto; color: color-mix(in srgb, var(--noces-primary) 74%, var(--noces-text)); font-family: var(--noces-heading); font-size: var(--noces-body-size-desktop); font-style: italic; line-height: 1.5; text-wrap: balance; }
.noces-story__timeline { position: relative; width: min(100%, 78rem); margin-inline: auto; padding-bottom: 3rem; }
.noces-story__spine { position: absolute; top: 1rem; bottom: 1rem; left: 50%; width: 1px; background: linear-gradient(to bottom, color-mix(in srgb, var(--noces-primary) 34%, transparent), var(--noces-primary), color-mix(in srgb, var(--noces-primary) 25%, transparent)); transform: translateX(-50%); }
.noces-story-item { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; gap: clamp(4rem, 8vw, 8rem); margin-bottom: clamp(5rem, 10vw, 10rem); }
.noces-story-item__marker { position: absolute; top: 2.2rem; left: 50%; z-index: 2; display: grid; width: 2.75rem; aspect-ratio: 1; place-items: center; color: var(--noces-background); background: var(--noces-primary); border: 3px solid var(--noces-background); border-radius: 50%; box-shadow: 0 0 0 4px color-mix(in srgb, var(--noces-primary) 12%, transparent); font-size: 0.8rem; transform: translateX(-50%); }
.noces-story-card { min-width: 0; padding: clamp(1.25rem, 2vw, 2rem); background: color-mix(in srgb, var(--noces-background) 88%, white); border: 1px solid color-mix(in srgb, var(--noces-primary) 18%, transparent); border-radius: 1rem; box-shadow: 0 1.4rem 3.5rem color-mix(in srgb, var(--noces-text) 8%, transparent); }
.noces-story-item--left .noces-story-card { grid-column: 1; }
.noces-story-item--right .noces-story-card { grid-column: 2; }
.noces-story-card__header { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding-bottom: 1rem; border-bottom: 1px solid color-mix(in srgb, var(--noces-primary) 12%, transparent); }
.noces-story-card__period { display: inline-block; margin: 0; padding: 0.18rem 0.65rem; color: var(--noces-primary); background: color-mix(in srgb, var(--noces-primary) 7%, transparent); border-radius: 0.35rem; font-family: var(--noces-ui); font-size: var(--noces-ui-size-desktop) !important; font-weight: 700; letter-spacing: 0.08em; }
.noces-section.noces-story .noces-story-card h3 { margin: 0.45rem 0 0; color: var(--noces-text); font-family: var(--noces-heading); font-size: clamp(1.8rem, 3vw, 2.55rem); font-weight: 500; line-height: 1.05; }
.noces-story-card__header > span { color: color-mix(in srgb, var(--noces-primary) 22%, transparent); font-family: var(--noces-heading); font-size: 2.5rem; line-height: 1; }
.noces-story-card__image { aspect-ratio: 16 / 11; margin: 1.25rem 0 0; overflow: hidden; background: color-mix(in srgb, var(--noces-primary) 8%, var(--noces-background)); border-radius: 0.65rem; }
.noces-story-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms ease; }
.noces-story-card__text { margin-top: 1.25rem; color: var(--noces-ink-soft); }
.noces-section.noces-story .noces-story-card__text p { margin: 0.85rem 0 0; font-size: var(--noces-body-size-desktop); line-height: 1.65; }
.noces-story-card__text p:first-child { margin-top: 0; }
.noces-story-card__footer { display: flex; justify-content: space-between; gap: 1rem; margin-top: 1.25rem; padding-top: 0.85rem; color: color-mix(in srgb, var(--noces-primary) 74%, var(--noces-text)); border-top: 1px solid color-mix(in srgb, var(--noces-primary) 12%, transparent); font-family: var(--noces-heading); font-size: var(--noces-body-size-desktop); font-style: italic; line-height: 1.35; }
.noces-story-card__footer span:last-child { text-align: right; }
.noces-story-quote { grid-column: 2; max-width: 28rem; padding: 1rem 0 1rem 1.5rem; border-left: 2px solid color-mix(in srgb, var(--noces-primary) 55%, transparent); }
.noces-story-item--right .noces-story-quote { grid-column: 1; grid-row: 1; justify-self: end; padding: 1rem 1.5rem 1rem 0; border-right: 2px solid color-mix(in srgb, var(--noces-primary) 55%, transparent); border-left: 0; text-align: right; }
.noces-story-quote blockquote { margin: 0; color: color-mix(in srgb, var(--noces-primary) 78%, var(--noces-text)); font-family: var(--noces-heading); font-size: var(--noces-body-size-desktop); font-style: normal; line-height: 1.4; }
.noces-story-quote p { display: flex; align-items: center; gap: 0.55rem; margin: 0.75rem 0 0; color: var(--noces-primary); font-family: var(--noces-ui); font-size: var(--noces-ui-size-desktop) !important; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; }
.noces-story-item--right .noces-story-quote p { justify-content: flex-end; }
.noces-story-quote p span { width: 1rem; height: 1px; background: currentColor; }
.noces-story__finial { position: absolute; bottom: 0; left: 50%; display: grid; width: 1rem; aspect-ratio: 1; place-items: center; background: var(--noces-background); border: 2px solid color-mix(in srgb, var(--noces-primary) 45%, transparent); border-radius: 50%; transform: translateX(-50%); }
.noces-story__finial i { width: 0.3rem; aspect-ratio: 1; background: var(--noces-primary); border-radius: 50%; }
.noces-section.noces-story .noces-story__conclusion { margin: 3rem auto 0; color: var(--noces-ink-soft); font-family: var(--noces-heading); font-size: var(--noces-body-size-desktop); font-style: italic; text-align: center; }

/* Gallery and dependency-free lightbox. */
.noces-section.noces-gallery { display: block; width: 100%; max-width: none; margin: 0; padding: clamp(4rem, 8vw, 8rem) clamp(1rem, 4vw, 3rem); background: color-mix(in srgb, var(--noces-background) 92%, white); }
.noces-gallery__header { width: min(100%, 48rem); margin: 0 auto 3rem; text-align: center; }
.noces-gallery__header p { margin: 0; color: var(--noces-primary); font-family: var(--noces-ui); font-size: var(--noces-ui-size-desktop) !important; font-weight: 700; letter-spacing: 0.28em; text-transform: uppercase; }
.noces-section.noces-gallery .noces-gallery__header h2 { margin-top: 0.5rem; color: var(--noces-text); font-size: var(--noces-heading-size-desktop); }
.noces-gallery__grid { display: grid; width: min(100%, 78rem); grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.8rem; margin-inline: auto; }
.noces-gallery__item { position: relative; min-height: 0; aspect-ratio: 4 / 5; padding: 0; overflow: hidden; background: color-mix(in srgb, var(--noces-text) 7%, var(--noces-background)); border: 0; border-radius: 0.65rem; cursor: zoom-in; }
.noces-gallery__item--lightbox-only { display: none; }
.noces-gallery__item img { width: 100%; height: 100%; object-fit: cover; transition: transform 500ms ease; }
.noces-gallery__item span { position: absolute; right: 0; bottom: 0; left: 0; padding: 2rem 0.9rem 0.75rem; color: white; background: linear-gradient(transparent, rgb(0 0 0 / 62%)); font-family: var(--noces-heading); font-size: var(--noces-body-size-desktop); font-style: italic; text-align: left; }
.noces-gallery__item:focus-visible { outline: 3px solid var(--noces-primary); outline-offset: 3px; }
.noces-gallery__more { display: block; margin: 1.35rem auto 0; padding: 0.7rem 1.15rem; color: var(--noces-primary); background: transparent; border: 1px solid color-mix(in srgb, var(--noces-primary) 58%, transparent); border-radius: 999px; font-family: var(--noces-ui); font-size: var(--noces-button-size-desktop); font-weight: 700; letter-spacing: 0.08em; cursor: pointer; transition: color 180ms ease, background-color 180ms ease, transform 180ms ease; }
.noces-gallery__more span { font-weight: 500; }
.noces-gallery__more:hover { color: var(--noces-background); background: var(--noces-primary); transform: translateY(-2px); }
.noces-gallery__more:focus-visible { outline: 3px solid var(--noces-primary); outline-offset: 3px; }
.noces-lightbox[hidden] { display: none; }
.noces-lightbox { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 1rem; }
.noces-lightbox__backdrop { position: absolute; inset: 0; background: color-mix(in srgb, var(--noces-text) 88%, transparent); backdrop-filter: blur(12px); }
.noces-lightbox__panel { position: relative; z-index: 1; display: grid; width: min(100%, 78rem); height: min(90vh, 55rem); grid-template-columns: auto minmax(0, 1fr) auto; place-items: center; gap: 0.75rem; }
.noces-lightbox figure { display: grid; width: 100%; height: 100%; grid-template-rows: minmax(0, 1fr) auto; margin: 0; place-items: center; }
.noces-lightbox figure img { max-width: 100%; max-height: 100%; object-fit: contain; }
.noces-lightbox figcaption { padding: 0.75rem 1rem 0; color: white; font-family: var(--noces-heading); font-style: italic; text-align: center; }
.noces-lightbox button { display: grid; width: 2.8rem; aspect-ratio: 1; place-items: center; color: white; background: rgb(0 0 0 / 28%); border: 1px solid rgb(255 255 255 / 35%); border-radius: 50%; font: 300 2rem/1 var(--noces-ui); cursor: pointer; }
.noces-lightbox__close { position: absolute; top: 0; right: 0; z-index: 2; }
.noces-lightbox__counter { position: absolute; right: 0; bottom: 0; margin: 0; color: white; font-family: var(--noces-ui); font-size: 0.75rem !important; letter-spacing: 0.12em; }
html.noces-lightbox-open, html.noces-lightbox-open body { overflow: hidden; }

/* Couple portraits: based on the supplied desktop and mobile templates. */
.noces-section.noces-couple { display: block; width: 100%; max-width: none; margin: 0; padding: 0; background: var(--noces-background); border: 0; }
.noces-couple__header { width: min(calc(100% - 2rem), 52rem); margin-inline: auto; padding: 1.25rem 1rem clamp(3.5rem, 6vw, 6rem); text-align: center; }
.noces-couple__eyebrow, .noces-profile__label { margin: 0; font-family: var(--noces-ui); font-size: var(--noces-ui-size-desktop) !important; font-weight: 700; letter-spacing: 0.28em; text-transform: uppercase; }
.noces-couple__eyebrow { color: var(--noces-primary); }
.noces-section.noces-couple .noces-couple__header h2 { margin-top: 0.65rem; color: var(--noces-text); font-size: var(--noces-heading-size-desktop); line-height: 1; }
.noces-couple__header h2::after { display: block; width: 3.5rem; height: 1px; margin: 1.25rem auto 0; background: color-mix(in srgb, var(--noces-primary) 45%, transparent); content: ""; }
.noces-section.noces-couple .noces-couple__introduction { max-width: 38rem; margin: 1rem auto 0; color: var(--noces-ink-soft); font-family: var(--noces-heading); font-size: var(--noces-body-size-desktop); font-style: italic; line-height: 1.55; text-wrap: balance; }

.noces-profile { position: relative; padding: clamp(2rem, 4vw, 4rem) 1rem clamp(6rem, 9vw, 10rem); }
.noces-profile--two { margin-top: -1px; padding-top: clamp(4rem, 6vw, 7rem); color: var(--noces-background); background: var(--noces-primary); }
.noces-profile__inner { display: grid; width: min(calc(100% - 2rem), 72rem); grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: center; gap: clamp(3rem, 7vw, 7rem); margin-inline: auto; }
.noces-profile--two .noces-profile__content { grid-column: 1; grid-row: 1; }
.noces-profile--two .noces-profile__portrait { grid-column: 2; grid-row: 1; }
.noces-profile__portrait { position: relative; width: min(100%, 31rem); margin: 0 auto; }
.noces-profile__portrait-backdrop { position: absolute; inset: -1.1rem 0.8rem 0.8rem -1.1rem; background: color-mix(in srgb, var(--noces-primary) 16%, transparent); border: 1px solid color-mix(in srgb, var(--noces-primary) 24%, transparent); border-radius: 44% 44% 12px 38%; transform: rotate(-2deg) scale(1.02); }
.noces-profile--two .noces-profile__portrait-backdrop { inset: -1.1rem -1.1rem 0.8rem 0.8rem; background: color-mix(in srgb, var(--noces-background) 16%, transparent); border-color: color-mix(in srgb, var(--noces-background) 22%, transparent); border-radius: 44% 44% 38% 12px; transform: rotate(2deg) scale(1.02); }
.noces-profile__image-frame { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: color-mix(in srgb, var(--noces-text) 8%, var(--noces-background)); border: 3px solid color-mix(in srgb, var(--noces-background) 88%, transparent); border-radius: 42% 42% 12px 38%; box-shadow: 0 2rem 4.5rem color-mix(in srgb, var(--noces-text) 18%, transparent); }
.noces-profile--two .noces-profile__image-frame { border-radius: 42% 42% 38% 12px; }
.noces-profile__image-frame img { width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform 700ms ease; }
.noces-profile__badge { position: absolute; bottom: -1.25rem; left: 2rem; z-index: 2; display: inline-flex; min-height: 2.55rem; align-items: center; gap: 0.55rem; padding: 0.5rem 1.15rem; color: var(--noces-primary); background: color-mix(in srgb, var(--noces-background) 94%, transparent); border: 1px solid color-mix(in srgb, var(--noces-primary) 18%, transparent); border-radius: 999px; box-shadow: 0 0.65rem 1.4rem color-mix(in srgb, var(--noces-text) 12%, transparent); font-family: var(--noces-heading); font-size: 0.85rem; font-style: italic; }
.noces-profile--two .noces-profile__badge { right: 2rem; left: auto; }
.noces-profile__badge span { width: 0.42rem; height: 0.42rem; background: var(--noces-primary); border-radius: 50%; }
.noces-profile__content { min-width: 0; }
.noces-profile__label { color: color-mix(in srgb, var(--noces-primary) 76%, var(--noces-accent)); }
.noces-profile--two .noces-profile__label { color: color-mix(in srgb, var(--noces-accent) 76%, var(--noces-background)); }
.noces-section.noces-couple .noces-profile h3 { margin: 0.25rem 0 clamp(1.4rem, 3vw, 2.5rem); color: var(--noces-primary); font-family: var(--noces-title); font-size: clamp(3.8rem, 6vw, 6.8rem); font-style: italic; font-weight: 400; letter-spacing: -0.035em; line-height: 0.95; }
.noces-section.noces-couple .noces-profile--two h3 { color: var(--noces-background); }
.noces-profile blockquote { position: relative; margin: 0 0 1.7rem; padding: 0.2rem 0 0.2rem 1.5rem; border-left: 2px solid color-mix(in srgb, var(--noces-primary) 70%, transparent); }
.noces-profile blockquote::before { position: absolute; top: -0.65rem; left: -0.12rem; color: color-mix(in srgb, var(--noces-primary) 25%, transparent); font: 4rem/1 var(--noces-heading); content: "“"; transform: translateX(-50%); }
.noces-profile--two blockquote { border-color: color-mix(in srgb, var(--noces-background) 56%, transparent); }
.noces-profile--two blockquote::before { color: color-mix(in srgb, var(--noces-background) 26%, transparent); }
.noces-section.noces-couple .noces-profile blockquote p { margin: 0; color: color-mix(in srgb, var(--noces-text) 88%, transparent); font-family: var(--noces-heading); font-size: var(--noces-body-size-desktop); font-style: italic; line-height: 1.55; }
.noces-section.noces-couple .noces-profile--two blockquote p { color: var(--noces-background); }
.noces-profile__biography { color: var(--noces-ink-soft); }
.noces-profile--two .noces-profile__biography { color: color-mix(in srgb, var(--noces-background) 84%, transparent); }
.noces-section.noces-couple .noces-profile__biography p { margin: 0.8rem 0 0; font-size: var(--noces-body-size-desktop); line-height: 1.75; }
.noces-couple__wave { height: clamp(5rem, 9vw, 9rem); margin-bottom: -1px; overflow: hidden; background: var(--noces-background); line-height: 0; }
.noces-couple__wave svg { display: block; width: 100%; height: 100%; fill: var(--noces-primary); }

/* Programme: responsive interpretation of the supplied desktop and mobile references. */
.noces-section.noces-program { display: block; width: 100%; max-width: none; margin: 0; padding: clamp(4.5rem, 8vw, 8rem) clamp(1rem, 5vw, 5rem); background: var(--noces-background); }
.noces-program__header { width: min(100%, 56rem); margin: 0 auto clamp(3rem, 6vw, 5.5rem); text-align: center; }
.noces-program__eyebrow, .noces-contacts__eyebrow { margin: 0; color: var(--noces-primary); font-family: var(--noces-ui); font-size: var(--noces-ui-size-desktop) !important; font-weight: 700; letter-spacing: 0.3em; text-transform: uppercase; }
.noces-section.noces-program .noces-program__header h2 { margin-top: 0.7rem; color: var(--noces-text); font-size: var(--noces-heading-size-desktop); line-height: 0.98; }
.noces-program__ornament { display: flex; align-items: center; justify-content: center; gap: 0.8rem; margin: 1.3rem auto 1rem; }
.noces-program__ornament span { width: 3.25rem; height: 1px; background: color-mix(in srgb, var(--noces-accent) 70%, transparent); }
.noces-program__ornament i { width: 0.42rem; height: 0.42rem; background: var(--noces-accent); transform: rotate(45deg); }
.noces-section.noces-program .noces-program__introduction { max-width: 42rem; margin: 0 auto; color: var(--noces-ink-soft); font-family: var(--noces-heading); font-size: var(--noces-body-size-desktop); font-style: italic; line-height: 1.6; text-wrap: balance; }
.noces-program__introduction p { margin: 0.55rem 0 0; font: inherit; }
.noces-program__introduction p:first-child { margin-top: 0; }
.noces-program__grid { display: grid; width: min(100%, 78rem); grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 23rem)); align-items: start; justify-content: center; gap: clamp(1.25rem, 2.5vw, 2.25rem); margin-inline: auto; }
.noces-event-card { min-width: 0; overflow: hidden; background: color-mix(in srgb, var(--noces-background) 92%, white); border: 1px solid color-mix(in srgb, var(--noces-text) 12%, transparent); border-radius: 1.8rem 1.8rem 0.45rem 0.45rem; box-shadow: 0 1.25rem 3rem color-mix(in srgb, var(--noces-text) 9%, transparent); }
.noces-event-card__image { aspect-ratio: 4 / 3; overflow: hidden; background: color-mix(in srgb, var(--noces-text) 8%, var(--noces-background)); }
.noces-event-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms ease; }
.noces-event-card__lower { display: grid; grid-template-columns: 3.35rem minmax(0, 1fr); }
.noces-event-card__ribbon { display: flex; align-items: center; justify-content: center; margin: 0; padding: 1rem 0.75rem; color: var(--noces-background); background: var(--noces-primary); font-family: var(--noces-ui); font-size: 0.78rem; font-style: normal; font-weight: 700; letter-spacing: 0.2em; line-height: 1; text-transform: uppercase; writing-mode: vertical-rl; transform: rotate(180deg); }
.noces-event-card__content { display: flex; min-width: 0; flex-direction: column; padding: 1.55rem 1.35rem 1.35rem; }
.noces-event-card__date { display: flex; align-items: center; gap: 1rem; padding-bottom: 1.15rem; border-bottom: 1px solid color-mix(in srgb, var(--noces-text) 14%, transparent); }
.noces-event-card__date strong { color: var(--noces-primary); font-family: var(--noces-heading); font-size: clamp(2.8rem, 4vw, 4.2rem); font-weight: 400; line-height: 0.8; }
.noces-event-card__date span { color: var(--noces-text); font-family: var(--noces-ui); font-size: 0.68rem; font-weight: 700; letter-spacing: 0.13em; line-height: 1.5; text-transform: uppercase; }
.noces-section.noces-program .noces-event-card__time { display: flex; align-items: center; gap: 0.55rem; margin: 1rem 0 0; color: var(--noces-primary); font-family: var(--noces-ui); font-size: 0.82rem; font-weight: 700; letter-spacing: 0.06em; }
.noces-event-card__time span { color: var(--noces-accent); font-size: 1.15rem; }
.noces-section.noces-program .noces-event-card__venue { margin: 1.1rem 0 0; color: var(--noces-text); font-family: var(--noces-heading); font-size: clamp(1.25rem, 2vw, 1.6rem); font-weight: 600; line-height: 1.15; }
.noces-section.noces-program .noces-event-card__address, .noces-section.noces-program .noces-event-card__description p { margin: 0.5rem 0 0; color: var(--noces-ink-soft); font-size: var(--noces-body-size-desktop); line-height: 1.55; }
.noces-event-card__route { display: inline-flex; min-height: 3rem; align-items: center; justify-content: center; gap: 0.55rem; margin-top: 1.5rem; padding: 0.75rem 1rem; color: var(--noces-background); background: var(--noces-primary); border-radius: 0.45rem; font-family: var(--noces-ui); font-size: var(--noces-button-size-desktop); font-weight: 700; letter-spacing: 0.09em; text-decoration: none; text-transform: uppercase; transition: filter 180ms ease, transform 180ms ease; }
.noces-program__note, .noces-program__empty { width: min(100%, 48rem); margin: 2.75rem auto 0; color: var(--noces-ink-soft); font-family: var(--noces-heading); font-size: var(--noces-body-size-desktop); font-style: italic; text-align: center; }

.noces-section.noces-contacts { display: block; width: 100%; max-width: none; margin: 0; padding: clamp(4rem, 8vw, 7rem) 1rem; color: var(--noces-text); background: color-mix(in srgb, var(--noces-background) 96%, white); text-align: center; }
.noces-contacts__header { width: min(100%, 54rem); margin: 0 auto 2.25rem; }
.noces-contacts__eyebrow { color: var(--noces-primary); }
.noces-section.noces-contacts h2 { margin: 0.65rem 0 0; color: var(--noces-text); font-size: var(--noces-heading-size-desktop); line-height: 1; }
.noces-section.noces-contacts .noces-contacts__header > p:last-child { max-width: 42rem; margin: 1rem auto 0; color: var(--noces-ink-soft); font-family: var(--noces-body); font-size: var(--noces-body-size-desktop); line-height: 1.55; }
.noces-contact-form { display: grid; width: min(100%, 58rem); grid-template-columns: 1fr 1fr; gap: 1.25rem; margin: 0 auto; padding: clamp(1.4rem, 3vw, 2.4rem); border: 1px solid color-mix(in srgb, var(--noces-primary) 25%, transparent); border-radius: 1.15rem; background: color-mix(in srgb, var(--noces-background) 90%, white); box-shadow: 0 1.25rem 3.5rem color-mix(in srgb, var(--noces-text) 9%, transparent); text-align: left; }
.noces-contact-form label { display: grid; gap: 0.55rem; color: var(--noces-text); font-family: var(--noces-ui); font-size: var(--noces-ui-size-desktop); font-weight: 700; }
.noces-contact-form input, .noces-contact-form textarea { width: 100%; border: 1px solid color-mix(in srgb, var(--noces-text) 20%, transparent); border-radius: 0.55rem; color: var(--noces-text); background: var(--noces-background); font: inherit; font-weight: 400; outline: none; transition: border-color 160ms ease, box-shadow 160ms ease; }
.noces-contact-form input { min-height: 3.35rem; padding: 0 1rem; }
.noces-contact-form textarea { min-height: 9rem; padding: 0.9rem 1rem; resize: vertical; }
.noces-contact-form input:focus, .noces-contact-form textarea:focus { border-color: var(--noces-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--noces-accent) 22%, transparent); }
.noces-contact-form__message, .noces-contact-form__submit, .noces-contact-form > small { grid-column: 1 / -1; }
.noces-contact-form__trap { position: absolute; left: -9999px; }
.noces-contact-form__submit { display: inline-flex; min-height: 3.4rem; align-items: center; justify-content: center; gap: 0.8rem; border: 0; border-radius: 0.55rem; color: var(--noces-background); background: var(--noces-primary); font-family: var(--noces-ui); font-size: var(--noces-button-size-desktop); font-weight: 800; letter-spacing: 0.08em; cursor: pointer; transition: filter 160ms ease, transform 160ms ease, box-shadow 160ms ease; }
.noces-contact-form__submit span { color: var(--noces-accent); font-size: 1.25rem; }
.noces-contact-form > small { color: var(--noces-ink-soft); font-family: var(--noces-ui); text-align: center; }
.noces-contact-feedback { width: min(100%, 58rem); margin: 0 auto 1rem; padding: 0.9rem 1rem; border-radius: 0.55rem; color: var(--noces-text); background: color-mix(in srgb, var(--noces-accent) 18%, var(--noces-background)); font-family: var(--noces-ui); font-weight: 700; transition: opacity 250ms ease, transform 250ms ease; }
.noces-contact-feedback.is-leaving { opacity: 0; transform: translateY(-0.4rem); }
.noces-contact-feedback--error, .noces-contact-feedback--invalid { border: 1px solid color-mix(in srgb, #b73535 55%, transparent); background: color-mix(in srgb, #b73535 10%, var(--noces-background)); }
.noces-contact-toast { position: fixed; top: max(1rem, env(safe-area-inset-top)); left: 50%; z-index: 150; width: min(34rem, calc(100% - 2rem)); margin: 0; box-shadow: 0 1rem 3rem rgb(0 0 0 / 20%); font-size: 14px; transform: translateX(-50%); }
.noces-contact-toast.is-leaving { transform: translate(-50%, -0.4rem); }

.noces-contact-prompt { padding: clamp(1.5rem, 4vw, 2.5rem) 1rem; color: var(--noces-text); background: var(--noces-background); text-align: center; }
.noces-contact-prompt p { margin: 0; font-family: var(--noces-body); font-size: var(--noces-body-size-desktop); }
.noces-contact-prompt button { padding: 0; color: var(--noces-primary); background: transparent; border: 0; border-bottom: 1px solid currentColor; font: inherit; font-weight: 700; cursor: pointer; text-underline-offset: 0.2em; }
.noces-contact-prompt button:hover { color: color-mix(in srgb, var(--noces-primary) 78%, var(--noces-text)); }
.noces-contact-prompt button:focus-visible { outline: 3px solid var(--noces-accent); outline-offset: 4px; }
.noces-contact-dialog { width: min(44rem, calc(100% - 2rem)); max-width: none; max-height: min(90vh, 54rem); padding: 0; overflow: auto; color: var(--noces-text); background: var(--noces-background); border: 1px solid color-mix(in srgb, var(--noces-primary) 24%, transparent); border-radius: 1.25rem; box-shadow: 0 2rem 6rem rgb(0 0 0 / 32%); }
.noces-contact-dialog::backdrop { background: color-mix(in srgb, var(--noces-text) 72%, transparent); backdrop-filter: blur(6px); }
.noces-contact-dialog__panel { position: relative; padding: clamp(1.35rem, 4vw, 2.5rem); }
.noces-contact-dialog__close { position: absolute; top: 0.85rem; right: 0.85rem; display: grid; width: 2.5rem; height: 2.5rem; place-items: center; padding: 0; color: var(--noces-text); background: transparent; border: 1px solid color-mix(in srgb, var(--noces-text) 20%, transparent); border-radius: 50%; font: 400 1.65rem/1 var(--noces-ui); cursor: pointer; }
.noces-contact-dialog__close:hover { color: var(--noces-primary); border-color: var(--noces-primary); }
.noces-contact-dialog__close:focus-visible { outline: 3px solid var(--noces-accent); outline-offset: 3px; }
.noces-contact-dialog__header { padding: 0 2.5rem 1.5rem 0; }
.noces-contact-dialog__header p { margin: 0 0 0.45rem; color: var(--noces-primary); font-family: var(--noces-ui); font-size: 11px; font-weight: 800; letter-spacing: 0.22em; text-transform: uppercase; }
.noces-contact-dialog__header h2 { margin: 0; color: var(--noces-text); font-family: var(--noces-heading); font-size: 34px; font-weight: 400; line-height: 1; }
.noces-contact-dialog__header span { display: block; margin-top: 0.75rem; color: var(--noces-ink-soft); font-family: var(--noces-body); font-size: 14px; }
.noces-contact-dialog .noces-contact-form { width: 100%; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.noces-contact-dialog .noces-contact-feedback { width: 100%; }
.noces-contact-dialog .noces-contact-form label { font-size: 13px; }
.noces-contact-dialog .noces-contact-form input, .noces-contact-dialog .noces-contact-form textarea { font-size: 14px; }
.noces-contact-dialog .noces-contact-form textarea { min-height: 6.25rem; }
.noces-contact-dialog .noces-contact-form__submit { font-size: 12px; }

@media (hover: hover) and (pointer: fine) {
  .noces-profile__portrait:hover .noces-profile__image-frame img { transform: scale(1.045); }
  .noces-event-card:hover .noces-event-card__image img { transform: scale(1.035); }
  .noces-event-card__route:hover { filter: brightness(1.08); transform: translateY(-1px); }
	.noces-contact-form__submit:hover { filter: brightness(1.08); transform: translateY(-2px); box-shadow: 0 0.7rem 1.5rem color-mix(in srgb, var(--noces-primary) 20%, transparent); }
  .noces-story-card:hover .noces-story-card__image img, .noces-gallery__item:hover img { transform: scale(1.035); }
}

/* Soft, one-shot scroll reveals. Content is hidden only after JavaScript has
   registered every target, so a script failure never makes content disappear. */
.noces-motion-ready .noces-reveal {
	opacity: 0;
	transition:
		opacity var(--noces-reveal-duration, 700ms) cubic-bezier(0.22, 1, 0.36, 1) var(--noces-reveal-delay, 0ms),
		transform var(--noces-reveal-duration, 700ms) cubic-bezier(0.22, 1, 0.36, 1) var(--noces-reveal-delay, 0ms);
	will-change: opacity, transform;
}
.noces-motion-ready .noces-reveal--fade-up { transform: translate3d(0, 1.25rem, 0); }
.noces-motion-ready .noces-reveal--fade-left { transform: translate3d(-1.5rem, 0, 0); }
.noces-motion-ready .noces-reveal--fade-right { transform: translate3d(1.5rem, 0, 0); }
.noces-motion-ready .noces-reveal--scale { transform: translate3d(0, 0.65rem, 0) scale(0.975); }
.noces-motion-ready .noces-reveal.is-revealed { opacity: 1; transform: none; will-change: auto; }

.noces-footer {
  position: relative;
  display: block;
  width: 100%;
  min-height: 0;
  padding: 1.25rem 1rem;
  color: var(--noces-ink-soft);
  background: transparent;
  text-align: center;
}

.noces-footer--credit p { margin: 0; font-family: var(--noces-ui); font-size: clamp(0.72rem, 1.4vw, 0.85rem); line-height: 1.5; }
.noces-footer--credit a { color: var(--noces-primary); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.16em; transition: color 160ms ease, opacity 160ms ease; }
.noces-footer--credit a:hover, .noces-footer--credit a:focus-visible { color: var(--noces-accent); opacity: 0.85; }
.noces-footer--credit a:focus-visible { outline: 2px solid var(--noces-accent); outline-offset: 3px; }

@media (max-width: 767px) {
  .noces-opening { padding: 0.65rem; }
  .noces-opening__card { width: min(100%, 25rem); padding: 0.9rem 0.9rem 1.2rem; border-radius: 2rem; }
  .noces-opening__portrait { width: min(68vw, 16rem); }
  .noces-opening h2 { font-size: clamp(2.6rem, 13vw, 4.1rem); }
	.noces-header { top: 0.45rem; width: min(calc(100% - 1rem), 29rem); padding: 0.45rem 0.5rem 0.45rem 0.85rem; border-radius: 1.1rem; }
	body.admin-bar .noces-header { top: calc(46px + 0.45rem); }
	.noces-nav-toggle { display: inline-flex; min-height: 2.35rem; align-items: center; gap: 0.55rem; padding: 0.45rem 0.65rem; color: var(--noces-text); background: transparent; border: 0; font: 700 var(--noces-ui-size-mobile)/1 var(--noces-body); letter-spacing: 0.12em; text-transform: uppercase; }
	.noces-nav-toggle__icon, .noces-nav-toggle__icon::before, .noces-nav-toggle__icon::after { display: block; width: 1.1rem; height: 1px; background: currentColor; content: ""; transition: transform 180ms ease, opacity 180ms ease; }
	.noces-nav-toggle__icon { position: relative; }
	.noces-nav-toggle__icon::before { position: absolute; top: -0.32rem; }
	.noces-nav-toggle__icon::after { position: absolute; top: 0.32rem; }
	.noces-nav-toggle[aria-expanded="true"] .noces-nav-toggle__icon { background: transparent; }
	.noces-nav-toggle[aria-expanded="true"] .noces-nav-toggle__icon::before { top: 0; transform: rotate(45deg); }
	.noces-nav-toggle[aria-expanded="true"] .noces-nav-toggle__icon::after { top: 0; transform: rotate(-45deg); }
	.noces-js .noces-header nav { position: absolute; top: calc(100% + 0.4rem); right: 0; display: none; width: min(18rem, calc(100vw - 1rem)); padding: 0.7rem; background: color-mix(in srgb, var(--noces-background) 96%, transparent); border: 1px solid var(--noces-line); border-radius: 1rem; box-shadow: var(--noces-shadow); backdrop-filter: blur(16px); }
	.noces-js .noces-header nav.is-open { display: block; }
	.noces-header nav ul { flex-direction: column; align-items: stretch; gap: 0; overflow: visible; }
	.noces-header nav a { padding: 0.72rem 0.8rem; border-radius: 0.65rem; }
	.noces-header nav a:hover, .noces-header nav a[aria-current="location"] { background: color-mix(in srgb, var(--noces-primary) 9%, transparent); }
	.noces-header nav a::after { display: none; }
  .noces-hero { min-height: auto; padding: 0.7rem 0.85rem 2.5rem; }
  .noces-hero__visual { z-index: 0; width: min(100%, 29rem); height: min(142vw, 43rem); margin-inline: auto; border: 1px solid color-mix(in srgb, var(--noces-accent) 42%, transparent); border-bottom: 0; border-radius: 1.35rem 1.35rem 0 0; box-shadow: 0 1.8rem 4.5rem color-mix(in srgb, var(--noces-text) 13%, transparent); }
  .noces-hero__arch--desktop { display: none; }
  .noces-hero__arch--mobile { display: block; }
  .noces-hero__arch { border-radius: inherit; }
  .noces-hero__waves { height: 6.2rem; }
  .noces-hero__wave--back { transform: translateY(-0.65rem); }
  .noces-hero__wave--middle { transform: translateY(-0.25rem); }
  .noces-hero__monogram { position: absolute; bottom: 1.4rem; left: 50%; z-index: 5; display: grid; width: 3.25rem; aspect-ratio: 1; place-items: center; color: var(--noces-background); background: var(--noces-primary); border: 2px solid color-mix(in srgb, var(--noces-accent) 78%, white); border-radius: 50%; box-shadow: 0 0.55rem 1.2rem color-mix(in srgb, var(--noces-text) 24%, transparent); font-family: var(--noces-heading); font-size: 0.78rem; font-style: italic; letter-spacing: 0.04em; transform: translateX(-50%); }
  .noces-hero__content { position: relative; z-index: 2; width: min(100%, 29rem); min-height: auto; margin: -1px auto 0; padding: 2.35rem clamp(1.15rem, 5vw, 2rem) 2.2rem; background: var(--noces-paper); border: 1px solid color-mix(in srgb, var(--noces-accent) 42%, transparent); border-top: 0; border-radius: 0 0 1.35rem 1.35rem; box-shadow: 0 1.8rem 4.5rem color-mix(in srgb, var(--noces-text) 13%, transparent); text-align: center; }
  .noces-hero__content .noces-eyebrow { margin-bottom: 0.65rem; }
  .noces-hero h1 { max-width: 100%; font-size: min(var(--noces-title-size-mobile), 16vw); line-height: 0.92; white-space: nowrap; }
  .noces-hero__details { margin-top: 1.1rem; }
  .noces-hero__date { margin-inline: auto; }
  .noces-introduction { margin-inline: auto; }
  .noces-hero .noces-countdown { margin-top: 1.1rem; padding-block: 0.8rem; }
  .noces-countdown__units { gap: 0.3rem; }
  .noces-countdown__units strong { font-size: clamp(1.25rem, 6vw, 1.8rem); }
  .noces-countdown__units small { font-size: 0.5rem; letter-spacing: 0.08em; }
  .noces-hero__cta { width: auto; margin-top: 1.25rem; }
  .noces-section:not(.noces-hero) { grid-template-columns: 1fr; align-content: center; }
	.noces-section.noces-couple { display: block; }
	.noces-couple__header { width: min(100%, 30rem); padding: 1.25rem 1.25rem 2.75rem; }
	.noces-couple__eyebrow, .noces-profile__label { font-size: var(--noces-ui-size-mobile) !important; }
	.noces-section.noces-couple .noces-couple__header h2 { font-size: var(--noces-heading-size-mobile); }
	.noces-section.noces-couple .noces-couple__introduction { font-size: var(--noces-body-size-mobile); }
	.noces-profile { padding: 1.5rem 1.25rem 5.5rem; }
	.noces-profile--two { padding-top: 3.75rem; padding-bottom: 5.5rem; }
	.noces-profile__inner { width: min(100%, 27rem); grid-template-columns: 1fr; gap: 3.5rem; }
	.noces-profile--one .noces-profile__portrait { grid-row: 1; }
	.noces-profile--one .noces-profile__content { grid-row: 2; }
	.noces-profile--two .noces-profile__content { grid-column: 1; grid-row: 1; }
	.noces-profile--two .noces-profile__portrait { grid-column: 1; grid-row: 2; }
	.noces-profile__portrait { width: min(92%, 20rem); }
	.noces-profile__portrait-backdrop { inset: -0.65rem 0.45rem 0.45rem -0.65rem; }
	.noces-profile--two .noces-profile__portrait-backdrop { inset: -0.65rem -0.65rem 0.45rem 0.45rem; }
	.noces-profile__badge { bottom: -1rem; left: 1rem; min-height: 2.15rem; padding: 0.35rem 0.85rem; font-size: 0.75rem; }
	.noces-profile--two .noces-profile__badge { right: 1rem; }
	.noces-section.noces-couple .noces-profile h3 { margin-bottom: 1.35rem; font-size: clamp(3.25rem, 14vw, 5rem); }
	.noces-section.noces-couple .noces-profile blockquote p { font-size: var(--noces-body-size-mobile); }
	.noces-section.noces-couple .noces-profile__biography p { font-size: var(--noces-body-size-mobile); text-align: left; }
	.noces-couple__wave { height: 4.75rem; }
	.noces-section.noces-program { min-height: 0; padding: 3.25rem 1rem; }
	.noces-program__header { margin-bottom: 1.25rem; }
	.noces-program__eyebrow, .noces-contacts__eyebrow { font-size: var(--noces-ui-size-mobile) !important; }
	.noces-section.noces-program .noces-program__header h2 { font-size: var(--noces-heading-size-mobile); }
	.noces-section.noces-program .noces-program__introduction { font-size: var(--noces-body-size-mobile); }
	.noces-program__grid { width: min(100%, 29rem); grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
	.noces-event-card { border-radius: 1.45rem 1.45rem 0.4rem 0.4rem; }
	.noces-event-card__lower { grid-template-columns: 3rem minmax(0, 1fr); }
	.noces-event-card__content { padding: 1.35rem 1.15rem 1.15rem; }
	.noces-event-card__route { font-size: var(--noces-button-size-mobile); }
	.noces-section.noces-program .noces-event-card__address, .noces-section.noces-program .noces-event-card__description p, .noces-program__note, .noces-program__empty { font-size: var(--noces-body-size-mobile); }
	.noces-section.noces-story { padding: 4rem 0.9rem; }
	.noces-story__header { margin-bottom: 3rem; padding-inline: 0.65rem; }
	.noces-story__badge { font-size: var(--noces-ui-size-mobile) !important; }
	.noces-section.noces-story .noces-story__header h2 { font-size: var(--noces-heading-size-mobile); }
	.noces-section.noces-story .noces-story__introduction { font-size: var(--noces-body-size-mobile); }
	.noces-story__timeline { width: min(100%, 31rem); padding-left: 2.3rem; }
	.noces-story__spine { right: auto; left: 1rem; transform: none; }
	.noces-story-item { display: block; margin-bottom: 3.5rem; }
	.noces-story-item__marker { top: 0.9rem; left: -1.3rem; width: 2rem; border-width: 2px; font-size: 0.6rem; transform: translateX(-50%); }
	.noces-story-card { padding: 1rem; border-radius: 0.85rem; }
	.noces-story-card__period { font-size: var(--noces-ui-size-mobile) !important; }
	.noces-section.noces-story .noces-story-card h3 { font-size: 1.75rem; }
	.noces-story-card__header > span { font-size: 2rem; }
	.noces-story-card__image { aspect-ratio: 4 / 3; margin-top: 1rem; }
	.noces-section.noces-story .noces-story-card__text p { font-size: var(--noces-body-size-mobile); }
	.noces-story-card__footer, .noces-section.noces-story .noces-story__conclusion { font-size: var(--noces-body-size-mobile); }
	.noces-story-quote, .noces-story-item--right .noces-story-quote { max-width: none; margin-top: 0.85rem; padding: 0.75rem 0.85rem; background: color-mix(in srgb, var(--noces-primary) 5%, transparent); border-top: 0; border-right: 0; border-bottom: 0; border-left: 2px solid color-mix(in srgb, var(--noces-primary) 55%, transparent); text-align: left; }
	.noces-story-quote blockquote { font-size: var(--noces-body-size-mobile); font-style: italic; }
	.noces-story-item--right .noces-story-quote p { justify-content: flex-start; }
	.noces-story-quote p { font-size: var(--noces-ui-size-mobile) !important; }
	.noces-story__finial { left: 1rem; transform: translateX(-50%); }
	.noces-section.noces-gallery { padding: 4rem 0.85rem; }
	.noces-section.noces-gallery .noces-gallery__header h2 { font-size: var(--noces-heading-size-mobile); }
	.noces-gallery__item span { font-size: var(--noces-body-size-mobile); }
	.noces-gallery__more { font-size: var(--noces-button-size-mobile); }
	.noces-section.noces-contacts { padding: 3.75rem 0.85rem; }
	.noces-contacts__header { margin-bottom: 1.6rem; }
	.noces-section.noces-contacts h2 { font-size: var(--noces-heading-size-mobile); }
	.noces-section.noces-contacts .noces-contacts__header > p:last-child { font-size: var(--noces-body-size-mobile); }
	.noces-contact-form { grid-template-columns: 1fr; gap: 1rem; padding: 1.15rem; border-radius: 0.9rem; }
	.noces-contact-form__message, .noces-contact-form__submit, .noces-contact-form > small { grid-column: auto; }
	.noces-contact-form label { font-size: var(--noces-ui-size-mobile); }
	.noces-contact-form__submit { width: 100%; font-size: var(--noces-button-size-mobile); }
	.noces-contact-prompt p { font-size: var(--noces-body-size-mobile); }
	.noces-contact-dialog { width: min(100% - 1rem, 44rem); border-radius: 1rem; }
	.noces-contact-dialog__panel { padding: 1.25rem; }
	.noces-contact-dialog__header p { font-size: 10px; }
	.noces-contact-dialog__header h2 { font-size: 30px; }
	.noces-gallery__header p { font-size: var(--noces-ui-size-mobile) !important; }
	.noces-gallery__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.4rem; }
	.noces-gallery__item { min-height: 0; }
	.noces-lightbox__panel { height: min(88vh, 48rem); grid-template-columns: 2.5rem minmax(0, 1fr) 2.5rem; gap: 0.3rem; }
	.noces-lightbox button { width: 2.35rem; font-size: 1.5rem; }
  .noces-section__index { position: absolute; top: var(--noces-space-lg); right: 0; }
  body.noces-invitation { font-size: var(--noces-body-size-mobile); }
  .noces-hero h1 { font-size: min(var(--noces-title-size-mobile), 16vw); }
  .noces-section h2 { font-size: var(--noces-heading-size-mobile); }
  .noces-section__body > p:last-child,
  .noces-section p:not(.noces-eyebrow) { font-size: clamp(1.05rem, 5vw, 1.35rem); }
  .noces-eyebrow,
  .noces-opening__eyebrow,
  .noces-opening__fallback,
  .noces-header nav,
  .noces-countdown__units small { font-size: var(--noces-ui-size-mobile); }
  .noces-button { font-size: var(--noces-button-size-mobile); }
  .noces-hero .noces-countdown__units strong { font-size: var(--noces-countdown-number-size-mobile); }
  .noces-hero .noces-countdown__units small { font-size: var(--noces-countdown-label-size-mobile); }
  .noces-opening .noces-opening__eyebrow { font-size: var(--noces-opening-text-size-mobile); }
  .noces-hero .noces-eyebrow { font-size: var(--noces-hero-eyebrow-size-mobile); }
  .noces-hero .noces-introduction,
  .noces-hero .noces-introduction p { font-size: var(--noces-introduction-size-mobile); }
  .noces-footer { padding: 1.15rem 1rem; }
}

@media (min-width: 768px) and (max-height: 680px) {
  .noces-opening__card { grid-template-columns: minmax(9rem, 0.8fr) minmax(12rem, 1fr); width: min(100%, 45rem); align-items: center; gap: 1.5rem; }
  .noces-opening__portrait { width: min(36vh, 15rem); }
  .noces-opening h2 { font-size: clamp(2.4rem, 8vh, 3.5rem); }
}

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

@media (min-width: 768px) {
	.noces-header nav { display: block !important; }
}

/* Keep browser validation from adding an unwanted red field outline. */
input:invalid, select:invalid, textarea:invalid, input:user-invalid, select:user-invalid, textarea:user-invalid { border-color: inherit !important; box-shadow: none !important; outline-color: transparent !important; }
input:focus:invalid, select:focus:invalid, textarea:focus:invalid, input:focus:user-invalid, select:focus:user-invalid, textarea:focus:user-invalid { outline: 2px solid rgba(190, 143, 48, .38) !important; outline-offset: 1px; }

/* Use the site focus treatment instead of the browser red validation ring. */
input:focus, select:focus, textarea:focus, input:focus-visible, select:focus-visible, textarea:focus-visible { outline: none !important; }
