/* ==========================================================================
   Shadibyah.com holding page
   1. Fonts
   2. Tokens
   3. Base
   4. Paper
   5. Scenery: site header, figures, birds, temple band, ceremony
   6. Ornaments
   7. Content
   8. Reveal
   9. Responsive
  10. Reduced motion
   ========================================================================== */

/* 1. Fonts ---------------------------------------------------------------- */

@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url('../fonts/cormorant-garamond-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Cormorant Garamond';
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url('../fonts/cormorant-garamond-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Mulish';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/mulish-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: 'Mulish';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('../fonts/mulish-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF,
    U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020,
    U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* 2. Tokens --------------------------------------------------------------- */

:root {
  --cream: #fbf1e2;
  --cream-lift: #fdf8ee;
  --cream-deep: #f2ddbe;
  --card: rgba(253, 248, 239, 0.62);
  --maroon: #6b211c;
  --maroon-deep: #4e1512;
  --terracotta: #c4601c;
  --gold: #c08a2e;
  --ink: #6c5443;
  --ink-soft: #8b7461;
  --hairline: rgba(107, 33, 28, 0.16);
  --gold-line: rgba(192, 138, 46, 0.42);

  --serif: 'Cormorant Garamond', 'Iowan Old Style', Georgia, serif;
  --sans: 'Mulish', 'Segoe UI', system-ui, -apple-system, sans-serif;

  /* Reading column, and the gap from page centre to the inner edge of the
     flanking sketches. Both shrink together at the tablet breakpoint. */
  --column: 32rem;
  --flank: 19rem;
  --figure-w: clamp(7rem, 11vw, 11.5rem);
  --page-pad: clamp(1.1rem, 4vw, 2rem);
}

/* 3. Base ----------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  overflow-x: clip;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.75;
  text-align: center;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img {
  max-width: 100%;
}

ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

p {
  margin: 0;
}

.filter-defs {
  position: absolute;
  width: 0;
  height: 0;
  pointer-events: none;
}

.page {
  position: relative;
  z-index: 1;
  padding: 0 var(--page-pad) 0;
}

/* 4. Paper ---------------------------------------------------------------- */

.paper {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(80% 50% at 50% -8%, #fdf9f0 0%, rgba(253, 249, 240, 0) 65%),
    radial-gradient(45% 55% at 0% 32%, rgba(226, 181, 137, 0.34) 0%, rgba(226, 181, 137, 0) 70%),
    radial-gradient(45% 55% at 100% 32%, rgba(226, 181, 137, 0.34) 0%, rgba(226, 181, 137, 0) 70%),
    radial-gradient(90% 45% at 50% 108%, var(--cream-deep) 0%, rgba(242, 221, 190, 0) 72%),
    var(--cream);
}

/* Fibrous paper grain. Kept as an inline turbulence sheet so the page carries
   no extra image request. */
.paper::after {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0.4;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='g'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23g)' opacity='0.35'/%3E%3C/svg%3E");
}

/* 5. Scenery -------------------------------------------------------------- */

.stage {
  position: relative;
  margin-top: clamp(1.5rem, 5vw, 3rem);
}

.scenery {
  position: absolute;
  inset: -2% 0 -4%;
  pointer-events: none;
}

.figure {
  position: absolute;
  width: var(--figure-w);
  opacity: 0;
  transform: translate3d(0, var(--parallax, 0px), 0);
  will-change: transform;
}

.js .figure.is-in {
  opacity: var(--fig-op, 0.9);
  transition: opacity 1.4s ease var(--fig-delay, 0s);
}

html:not(.js) .figure {
  opacity: var(--fig-op, 0.9);
}

.figure__rise {
  display: block;
  transform: translateY(18px);
}

.js .figure.is-in .figure__rise {
  transform: none;
  transition: transform 1.4s cubic-bezier(0.22, 0.7, 0.3, 1) var(--fig-delay, 0s);
}

/* Breathing plus the displacement boil is what keeps a still sketch from
   reading as a pasted-on cutout. */
.figure__art {
  display: block;
  width: 100%;
  height: auto;
  transform-origin: 50% 100%;
  animation: breathe var(--breath, 6s) ease-in-out var(--breath-delay, 0s) infinite alternate;
  filter: url(#boil-1);
}

.figure--b .figure__art { filter: url(#boil-2); }
.figure--c .figure__art { filter: url(#boil-3); }
.figure--d .figure__art { filter: url(#boil-2); }

@keyframes breathe {
  from { transform: scale(1) translateY(0); }
  to   { transform: scale(1.011) translateY(-2px); }
}

.figure--a {
  right: calc(50% + var(--flank));
  top: 4%;
  --fig-op: 0.92;
  --fig-delay: 0.1s;
  --breath: 6.4s;
}

.figure--b {
  left: calc(50% + var(--flank));
  top: 3%;
  --fig-op: 0.86;
  --fig-delay: 0.25s;
  --breath: 7.1s;
  --breath-delay: -1.8s;
}

.figure--c {
  right: calc(50% + var(--flank));
  top: 48%;
  --fig-op: 0.88;
  --fig-delay: 0.4s;
  --breath: 5.6s;
  --breath-delay: -3.1s;
}

.figure--d {
  left: calc(50% + var(--flank));
  top: 50%;
  --fig-op: 0.82;
  --fig-delay: 0.55s;
  --breath: 6.8s;
  --breath-delay: -0.9s;
}

/* Birds ------------------------------------------------------------------- */

.birds {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  pointer-events: none;
}

/* Travel, bob and flap are split across three nested elements so each can run
   on its own clock without the transforms fighting one another. */
.bird {
  position: absolute;
  top: var(--top, 20%);
  left: 0;
  opacity: var(--op, 0.4);
  will-change: transform;
  animation: bird-cross var(--dur, 26s) linear var(--delay, 0s) infinite;
}

@keyframes bird-cross {
  from { transform: translateX(-14vw); }
  to   { transform: translateX(114vw); }
}

.bird__bob {
  display: block;
  animation: bird-bob var(--bob, 5.5s) ease-in-out var(--delay, 0s) infinite alternate;
}

@keyframes bird-bob {
  from { transform: translateY(0); }
  to   { transform: translateY(calc(var(--lift, 22px) * -1)); }
}

.bird__glyph {
  display: block;
  width: calc(26px * var(--scale, 1));
  height: auto;
  overflow: visible;
}

.bird__wing {
  transform-origin: 0 0;
  animation: flap-left var(--flap, 0.7s) ease-in-out var(--delay, 0s) infinite;
}

.bird__wing--r {
  animation-name: flap-right;
}

.bird__wing path {
  fill: none;
  stroke: var(--maroon);
  stroke-width: 1.5;
  stroke-linecap: round;
}

@keyframes flap-left {
  0%, 100% { transform: rotate(-22deg); }
  50%      { transform: rotate(26deg); }
}

@keyframes flap-right {
  0%, 100% { transform: rotate(22deg); }
  50%      { transform: rotate(-26deg); }
}

/* Site header ------------------------------------------------------------- */

.site-header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: clamp(1.15rem, 3.5vw, 1.85rem) 0 clamp(0.85rem, 2.4vw, 1.35rem);
}

.site-header__logo {
  margin: 0;
  font-size: 0;
  line-height: 0;
}

.site-header__logo img {
  display: block;
  width: clamp(11rem, 34vw, 17rem);
  height: auto;
}

/* Horizon (temple band) --------------------------------------------------- */

/* Bleeds to the window edge by cancelling the page gutter. Using 100vw here
   instead would add a full viewport of layout overflow, which a transform
   cannot claw back. Open sky above the scene is only for the bird flock. */
.horizon {
  position: relative;
  overflow: hidden;
  margin: 0 calc(var(--page-pad) * -1);
  padding-top: clamp(1.5rem, 5vw, 3.25rem);
}

.horizon__scene {
  position: relative;
  z-index: 1;
  width: 100%;
}

/* Show the full skyline height so spires are never cropped. On narrow screens
   a controlled horizontal overspill keeps temples large without cutting tops.
   max-width must be released or the global img rule fights the overspill. */
.horizon__skyline {
  display: block;
  width: 100%;
  height: auto;
  max-width: none;
  opacity: 0.78;
  -webkit-mask-image: linear-gradient(to bottom, #000 90%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 90%, transparent 100%);
}

.horizon__mist {
  position: absolute;
  left: -30%;
  width: 160%;
  bottom: 0;
  height: 30%;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(251, 241, 226, 0) 0%,
    rgba(251, 241, 226, 0.34) 22%,
    rgba(251, 241, 226, 0) 44%,
    rgba(251, 241, 226, 0) 62%,
    rgba(251, 241, 226, 0.28) 80%,
    rgba(251, 241, 226, 0) 100%
  );
  animation: drift 52s linear infinite;
}

.horizon__mist--far {
  bottom: 16%;
  height: 22%;
  opacity: 0.55;
  animation-duration: 78s;
  animation-direction: reverse;
}

@keyframes drift {
  from { transform: translateX(-12%); }
  to   { transform: translateX(12%); }
}

/* Ceremony vignette ------------------------------------------------------- */

/* Pulled up over the temple band so the couple stands in front of the
   skyline rather than sitting in empty parchment below it. */
.ceremony {
  position: relative;
  z-index: 4;
  margin: clamp(-7.5rem, -16vw, -4.5rem) auto 0;
  max-width: min(42rem, 100%);
  pointer-events: none;
}

.ceremony__frame {
  position: relative;
  margin: 0 auto;
  max-width: min(26rem, 100%);
}

.ceremony__art {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  margin: 0 auto;
  opacity: 1;
  transform-origin: 50% 70%;
  animation: breathe 7.2s ease-in-out infinite alternate;
  /* Asset already carries an opaque cream plate behind the couple with a
     feathered outer edge — no CSS disc or boil needed. */
  filter: contrast(1.04) saturate(1.03);
}

/* 6. Ornaments ------------------------------------------------------------ */

.draw {
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.fleuron {
  display: block;
  width: clamp(3rem, 8vw, 4.1rem);
  height: auto;
  margin: 0 auto;
}

.fleuron .draw {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
}

.js .is-in .fleuron .draw,
html:not(.js) .fleuron .draw {
  animation: stroke-in 1.6s ease forwards;
}

.fleuron .draw:nth-child(2) { animation-delay: 0.15s; }
.fleuron .draw:nth-child(3) { animation-delay: 0.3s; }
.fleuron .draw:nth-child(4) { animation-delay: 0.45s; }
.fleuron .draw:nth-child(5) { animation-delay: 0.6s; }

@keyframes stroke-in {
  to { stroke-dashoffset: 0; }
}

.rule {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  margin: 0.85rem auto 0;
  width: min(14rem, 60%);
}

.rule__line {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-line), transparent);
}

.rule__gem {
  width: 7px;
  height: 7px;
  transform: rotate(45deg);
  border: 1px solid var(--gold);
}

.mandala {
  display: block;
  width: clamp(3.2rem, 9vw, 4.4rem);
  height: auto;
  margin: 0 auto;
  overflow: visible;
}

.mandala__spin {
  transform-origin: 0 0;
  animation: spin 96s linear infinite;
}

.mandala__petals .draw,
.mandala__petals use {
  fill: rgba(192, 138, 46, 0.16);
  stroke: var(--gold);
  stroke-width: 1.2;
}

.mandala__petals--short .draw,
.mandala__petals--short use {
  fill: rgba(192, 138, 46, 0.28);
}

.mandala__core {
  fill: var(--gold);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Gold corner flourish shared by the invitation cover and every card. One
   drawing, flipped into each corner. */
.corners {
  position: absolute;
  inset: var(--corner-inset, 10px);
  pointer-events: none;
}

.corners i {
  position: absolute;
  width: var(--corner-size, 26px);
  height: var(--corner-size, 26px);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32' fill='none' stroke='%23c08a2e' stroke-width='1.3' stroke-linecap='round'%3E%3Cpath d='M1.5 30.5V9A7.5 7.5 0 0 1 9 1.5h21.5'/%3E%3Cpath d='M6 22V11.5A5.5 5.5 0 0 1 11.5 6H22'/%3E%3Ccircle cx='11.5' cy='11.5' r='1.6' fill='%23c08a2e'/%3E%3Cpath d='M15 11.5c3 0 5-1.8 5.6-4.4M11.5 15c0 3-1.8 5-4.4 5.6'/%3E%3C/svg%3E") center / contain no-repeat;
}

.corners i:nth-child(1) { top: 0; left: 0; }
.corners i:nth-child(2) { top: 0; right: 0; transform: scaleX(-1); }
.corners i:nth-child(3) { bottom: 0; left: 0; transform: scaleY(-1); }
.corners i:nth-child(4) { bottom: 0; right: 0; transform: scale(-1, -1); }

/* 7. Content -------------------------------------------------------------- */

/* The cover: a framed invitation, narrow enough to sit between the sketches. */
.hero {
  position: relative;
  margin: 0 auto;
  max-width: min(34rem, calc(var(--flank) * 2 - 1.5rem));
  padding: clamp(2.2rem, 5vw, 3.2rem) clamp(1.4rem, 4vw, 2.8rem) clamp(2.4rem, 5vw, 3.4rem);
  border: 1px solid var(--gold-line);
  border-radius: 4px;
  background: var(--card);
  box-shadow:
    inset 0 0 0 7px rgba(253, 248, 239, 0.7),
    inset 0 0 0 8px var(--hairline),
    0 24px 50px -38px rgba(78, 21, 18, 0.5);
  --corner-inset: 14px;
  --corner-size: 34px;
}

.hero__tagline {
  margin: 0 auto;
  max-width: 26rem;
  font-size: clamp(0.72rem, 2vw, 0.8rem);
  font-weight: 600;
  letter-spacing: 0.22em;
  line-height: 1.7;
  text-transform: uppercase;
  color: var(--terracotta);
}

.hero .rule {
  margin-top: clamp(0.85rem, 2.4vw, 1.2rem);
}

.hero__mandala {
  margin: clamp(1.4rem, 4vw, 2.2rem) 0;
}

.hero__heading {
  margin: 0 auto;
  max-width: var(--column);
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.85rem, 5vw, 2.55rem);
  line-height: 1.2;
  letter-spacing: 0.005em;
  color: var(--maroon);
}

.hero__copy {
  margin: clamp(1.3rem, 3.5vw, 1.9rem) auto 0;
  max-width: min(var(--column), 27rem);
  font-size: clamp(0.94rem, 2.5vw, 1.04rem);
  line-height: 2;
  color: var(--ink);
}

.suite {
  position: relative;
  z-index: 2;
  margin-top: clamp(3.5rem, 10vw, 6rem);
}

.suite__heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(0.7rem, 2.5vw, 1.15rem);
  margin: 0 auto;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.5rem, 4.4vw, 2.1rem);
  letter-spacing: 0.015em;
  color: var(--maroon);
}

.suite__lede {
  margin: 0.5rem auto 0;
  max-width: 28rem;
  font-size: clamp(0.88rem, 2.4vw, 0.98rem);
  color: var(--ink-soft);
}

.suite__wing {
  position: relative;
  width: clamp(1.7rem, 6vw, 2.9rem);
  height: 8px;
  flex: none;
  background: linear-gradient(90deg, transparent, var(--gold-line))
    center / 100% 1px no-repeat;
}

.suite__wing::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  width: 6px;
  height: 6px;
  margin-top: -3px;
  border: 1px solid var(--gold);
  transform: rotate(45deg);
}

.suite__heading .suite__wing:last-child {
  transform: scaleX(-1);
}

.suite__grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(1rem, 1.8vw, 1.6rem);
  margin: clamp(1.8rem, 4.5vw, 2.8rem) auto 0;
  max-width: 74rem;
}

/* Reveal owns the <li> transform; the hover lift lives on the card inside so
   the two never compete. */
.invite {
  display: flex;
}

.invite__card {
  position: relative;
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  min-height: 21rem;
  padding: 2.4rem 1.15rem 1.6rem;
  border: 1px solid var(--gold-line);
  border-radius: 3px;
  background:
    radial-gradient(120% 70% at 50% 0%, rgba(255, 252, 245, 0.95) 0%, rgba(255, 252, 245, 0) 70%),
    var(--cream-lift);
  box-shadow:
    inset 0 0 0 6px var(--cream-lift),
    inset 0 0 0 7px rgba(107, 33, 28, 0.28),
    0 10px 24px -20px rgba(78, 21, 18, 0.55);
  color: var(--ink);
  text-decoration: none;
  transition: transform 0.45s cubic-bezier(0.22, 0.7, 0.3, 1),
              box-shadow 0.45s ease,
              border-color 0.45s ease;
  --corner-inset: 11px;
  --corner-size: 22px;
}

.invite--open .invite__card:hover,
.invite--open .invite__card:focus-visible {
  transform: translateY(-6px) rotate(-0.6deg);
  border-color: rgba(192, 138, 46, 0.8);
  box-shadow:
    inset 0 0 0 6px var(--cream-lift),
    inset 0 0 0 7px rgba(107, 33, 28, 0.4),
    0 22px 36px -22px rgba(78, 21, 18, 0.6);
}

.invite--open:nth-child(even) .invite__card:hover,
.invite--open:nth-child(even) .invite__card:focus-visible {
  transform: translateY(-6px) rotate(0.6deg);
}

.invite__card:focus-visible {
  outline: 2px solid var(--maroon);
  outline-offset: 4px;
}

/* Wax-seal monogram in the community's own accent. */
.invite__seal {
  display: grid;
  place-items: center;
  width: 2.6rem;
  height: 2.6rem;
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.28), transparent 55%),
    var(--seal, var(--maroon));
  box-shadow:
    0 0 0 3px var(--cream-lift),
    0 0 0 4px color-mix(in srgb, var(--seal, var(--maroon)) 45%, transparent),
    0 4px 8px -4px rgba(78, 21, 18, 0.6);
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.3rem;
  line-height: 1;
  color: var(--cream-lift);
}

.invite__pre {
  margin-top: 1.1rem;
  font-size: 0.66rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.invite__name {
  margin-top: 0.15rem;
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.55rem, 2.3vw, 1.85rem);
  line-height: 1.1;
  color: var(--maroon);
}

.invite__name::after {
  content: '';
  display: block;
  width: 3rem;
  height: 8px;
  margin: 0.6rem auto 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 8'%3E%3Cpath d='M2 4h16M30 4h16' stroke='%23c08a2e' stroke-opacity='.55'/%3E%3Cpath d='M24 .8 27.2 4 24 7.2 20.8 4Z' fill='none' stroke='%23c08a2e'/%3E%3C/svg%3E") center / contain no-repeat;
}

.invite__line {
  margin-top: 0.85rem;
  font-size: 0.84rem;
  line-height: 1.7;
  color: var(--ink);
}

.invite__venue {
  margin-top: auto;
  padding-top: 1rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
}

.invite__status {
  margin-top: 0.7rem;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.invite--open .invite__status {
  padding: 0.5em 1.3em;
  border-radius: 999px;
  background: var(--maroon);
  color: var(--cream-lift);
  transition: background-color 0.3s ease;
}

.invite--open .invite__status::after {
  content: ' \2192';
}

.invite--open .invite__card:hover .invite__status {
  background: var(--terracotta);
}

/* Sealed: the card is printed, the house is not built. Quieter, not clickable. */
.invite--sealed .invite__card {
  background: var(--cream);
  box-shadow:
    inset 0 0 0 6px var(--cream),
    inset 0 0 0 7px rgba(107, 33, 28, 0.16);
}

.invite--sealed .invite__name,
.invite--sealed .invite__line,
.invite--sealed .invite__venue {
  opacity: 0.72;
}

.invite--sealed .invite__seal {
  opacity: 0.82;
}

.invite--sealed .invite__status {
  padding: 0.35em 0.9em;
  border: 1px dashed rgba(107, 33, 28, 0.42);
  border-radius: 3px;
  font-size: 0.66rem;
  color: var(--maroon);
  transform: rotate(-3deg);
}

.social__link:focus-visible {
  outline: 2px solid var(--maroon);
  outline-offset: 3px;
}

.site-footer {
  padding: clamp(3rem, 8vw, 4.5rem) 0 clamp(2.2rem, 6vw, 3.2rem);
}

.site-footer__note {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(1.25rem, 3.6vw, 1.6rem);
  line-height: 1.3;
  color: var(--maroon);
}

.site-footer__note span {
  display: block;
  margin-bottom: 0.2rem;
  font-family: var(--sans);
  font-size: clamp(0.72rem, 2vw, 0.8rem);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--terracotta);
}

.social {
  display: flex;
  justify-content: center;
  gap: clamp(0.85rem, 3vw, 1.25rem);
  margin-top: clamp(1.1rem, 3vw, 1.6rem);
}

.social__link {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--gold-line);
  border-radius: 50%;
  background: transparent;
  transition: background-color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.social__link svg {
  width: 17px;
  height: 17px;
  fill: var(--maroon);
  transition: fill 0.3s ease;
}

.social__link:hover {
  border-color: var(--maroon);
  background: var(--maroon);
  transform: translateY(-2px);
}

.social__link:hover svg {
  fill: var(--cream-lift);
}

/* 8. Reveal --------------------------------------------------------------- */

.js [data-reveal] {
  opacity: 0;
  transform: translateY(16px);
}

.js [data-reveal].is-in {
  opacity: 1;
  transform: none;
  transition: opacity 1s ease, transform 1s cubic-bezier(0.22, 0.7, 0.3, 1);
}

.js .invite[data-reveal].is-in:nth-child(5n + 2) { transition-delay: 0.08s; }
.js .invite[data-reveal].is-in:nth-child(5n + 3) { transition-delay: 0.16s; }
.js .invite[data-reveal].is-in:nth-child(5n + 4) { transition-delay: 0.24s; }
.js .invite[data-reveal].is-in:nth-child(5n + 5) { transition-delay: 0.32s; }

/* 9. Responsive ----------------------------------------------------------- */

@media (max-width: 1180px) {
  :root {
    --flank: 16.5rem;
    --figure-w: clamp(6.5rem, 12vw, 9.5rem);
  }

  .suite__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 50rem;
  }
}

/* Below this the flanking sketches no longer fit beside the column, so they
   drop behind the copy as a faint watermark and the pair with the least
   silhouette overlap is kept. */
@media (max-width: 1023px) {
  .figure {
    --fig-op: 0.2;
    width: clamp(9rem, 34vw, 15rem);
  }

  .figure--a { right: auto; left: -2%; top: 5%; }
  .figure--d { left: auto; right: -2%; top: 42%; }
  .figure--b,
  .figure--c { display: none; }

  /* The boil is a full-size repaint several times a second; not worth the
     battery on a handheld. */
  .figure__art { filter: none; }
  .ceremony__art { filter: contrast(1.04) saturate(1.03); }

  /* Sketches are only a watermark here, so the cover no longer has to fit
     between them. */
  .hero {
    max-width: 34rem;
  }

  .suite__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 34rem;
  }
}

@media (max-width: 720px) {
  :root {
    --column: 22rem;
    --page-pad: clamp(0.95rem, 4.5vw, 1.25rem);
  }

  .site-header {
    padding: clamp(0.95rem, 4vw, 1.25rem) 0 clamp(0.65rem, 2.5vw, 1rem);
  }

  .site-header__logo img {
    width: min(13.5rem, 68vw);
  }

  .horizon {
    padding-top: clamp(1.1rem, 5vw, 2rem);
  }

  /* Keep full spire height; overspill sideways so temples stay readable. */
  .horizon__skyline {
    width: 155%;
    margin-left: -27.5%;
  }

  .ceremony {
    margin-top: clamp(-5.25rem, -20vw, -3.25rem);
    max-width: min(20rem, 92%);
  }

  .ceremony__frame {
    max-width: min(18rem, 100%);
  }

  .stage {
    margin-top: clamp(0.75rem, 4vw, 1.75rem);
  }

  .hero__heading {
    font-size: clamp(1.45rem, 6.6vw, 2rem);
  }

  .hero__copy {
    line-height: 1.9;
    padding: 0 0.15rem;
  }

  .hero {
    padding: 2.2rem 1.25rem 2.4rem;
    --corner-inset: 11px;
    --corner-size: 26px;
  }

  .suite {
    margin-top: clamp(2.75rem, 10vw, 3.75rem);
  }

  .suite__heading {
    gap: 0.55rem;
    line-height: 1.35;
    font-size: clamp(1.35rem, 6vw, 1.7rem);
  }

  .site-footer {
    padding-bottom: clamp(2rem, 8vw, 2.8rem);
  }
}

@media (max-width: 400px) {
  .site-header__logo img {
    width: min(12rem, 72vw);
  }

  .horizon__skyline {
    width: 175%;
    margin-left: -37.5%;
  }

  .ceremony {
    margin-top: -4.25rem;
    max-width: 17.5rem;
  }

  .suite__wing {
    display: none;
  }
}

@media (max-width: 560px) {
  .suite__grid {
    grid-template-columns: minmax(0, 1fr);
    max-width: min(20rem, 100%);
  }

  .invite__card {
    min-height: 0;
  }
}

/* 10. Reduced motion ------------------------------------------------------ */

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

  .figure__art {
    filter: none;
    animation: none;
  }

  .ceremony__art {
    filter: contrast(1.04) saturate(1.03);
    animation: none;
  }

  .fleuron .draw {
    stroke-dashoffset: 0;
  }

  .js [data-reveal],
  .js .figure {
    opacity: 1;
    transform: none;
  }

  .js .figure {
    opacity: var(--fig-op, 0.9);
  }

  .js .figure__rise {
    transform: none;
  }
}
