:root {
  --navy: #192a44;
  --navy-deep: #101929;
  --ivory: #f7f3ea;
  --ivory-dim: #efebe3;
  --pewter: #b6bec8;
  --highland: #b7d0df;
  --mauve: #a77d8b;
  --plum: #60465a;
  --eucalyptus: #95a69d;
  --slate: #5d7187;
  --dove: #d6d8d6;
  --charcoal: #34383f;
  --blackberry: #38243a;
  --lilac: #c4bdd0;
  --paper: #f4f1eb;
  --ink: #25241f;
  --line: rgba(182, 190, 200, 0.45);
  --line-strong: rgba(182, 190, 200, 0.8);
  --nav-h: 76px;
  --max: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --shadow: 0 24px 60px rgba(16, 25, 41, 0.28);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: auto;
}
html, body {
  min-height: 100%;
  overscroll-behavior-y: auto;
}
body {
  font-family: "Cormorant Garamond", Georgia, serif;
  background: var(--navy-deep);
  color: var(--ivory);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; background: none; border: 0; }
::selection { background: var(--mauve); color: var(--ivory); }

.grain {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 80;
  opacity: 0.09;
  mix-blend-mode: overlay;
  background-image: url("../assets/deco/paper-grain.jpg");
  background-size: 420px;
}

.wrap {
  width: min(var(--max), calc(100% - 2.4rem));
  margin-inline: auto;
}

.eyebrow {
  font-family: "Josefin Sans", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.42em;
  text-transform: uppercase;
  color: var(--pewter);
}

/* LOADER */
.loader {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  background: var(--navy-deep);
  cursor: pointer;
  transition: opacity 1.6s var(--ease), visibility 1.6s;
}
.loader.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.loader[hidden] { display: none; }
.loader-inner { text-align: center; }
.loader img {
  width: min(220px, 46vw);
  height: min(220px, 46vw);
  object-fit: cover;
  border-radius: 50%;
  margin-inline: auto  auto;
  box-shadow: 0 0 0 1px var(--line-strong), 0 20px 50px rgba(0,0,0,0.35);
  animation: rise 1.8s var(--ease) both;
}
.loader h1 {
  font-family: "Italiana", serif;
  font-weight: 400;
  letter-spacing: 0.28em;
  font-size: clamp(1.4rem, 3vw, 2rem);
  margin-top: 1.4rem;
  animation: rise 1.8s 0.2s var(--ease) both;
}
.loader p {
  font-family: "Josefin Sans", sans-serif;
  letter-spacing: 0.4em;
  font-size: 0.68rem;
  text-transform: uppercase;
  color: var(--mauve);
  margin-top: 0.6rem;
  animation: rise 1.6s 0.35s var(--ease) both;
}
.loader-skip {
  position: absolute;
  bottom: 36px;
  left: 0;
  right: 0;
  text-align: center;
  color: var(--pewter) !important;
  letter-spacing: 0.46em !important;
  font-size: 0.58rem !important;
  opacity: 0.55;
  animation: rise 1.8s 1.8s var(--ease) both;
}
@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

/* NAV */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 60;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  transition: background 0.4s, border-color 0.4s, color 0.4s;
  border-bottom: 1px solid transparent;
  color: var(--ivory);
}
.nav.is-scrolled,
.nav.on-light {
  background: rgba(16, 25, 41, 0.88);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--line);
}
.nav.on-gallery,
.nav.on-light {
  background: rgba(247, 243, 234, 0.9);
  color: var(--navy);
  border-bottom-color: rgba(25, 42, 68, 0.12);
}
.nav.on-light .nav-cta,
.nav.on-gallery .nav-cta {
  border-color: var(--navy);
}
.nav-inner {
  width: min(var(--max), calc(100% - 2.4rem));
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-width: 0;
}
.brand-mark {
  width: 42px; height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--pewter);
}
.brand-name {
  font-family: "Italiana", serif;
  letter-spacing: 0.22em;
  font-size: 0.95rem;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 1.6rem;
  font-family: "Josefin Sans", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}
.nav-links a { opacity: 0.82; }
.nav-links a:hover { opacity: 1; }
.nav-cta {
  border: 1px solid var(--pewter);
  padding: 0.55rem 0.9rem;
  opacity: 1 !important;
}
.nav-cta:hover { background: var(--mauve); border-color: var(--mauve); color: var(--ivory); }
.nav-toggle {
  display: none;
  width: 42px; height: 42px;
  position: relative;
}
.nav-toggle span {
  position: absolute; left: 10px; right: 10px; height: 1px;
  background: currentColor;
}
.nav-toggle span:nth-child(1) { top: 14px; }
.nav-toggle span:nth-child(2) { top: 20px; }
.nav-toggle span:nth-child(3) { top: 26px; }

/* HERO */
.hero {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  isolation: isolate;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(16,25,41,0.28) 0%, rgba(16,25,41,0.42) 48%, rgba(16,25,41,0.94) 100%),
    url("../assets/photos/highlands-vow.jpeg") center 30% / cover no-repeat;
  transform: scale(1.06);
  filter: saturate(0.86) contrast(1.05);
}
.hero-frame {
  position: absolute;
  inset: 18px;
  z-index: -1;
  border: 1px solid rgba(182, 190, 200, 0.35);
  pointer-events: none;
}
.hero-frame::before,
.hero-frame::after {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(182, 190, 200, 0.18);
  pointer-events: none;
}
.hero-copy {
  text-align: center;
  padding: 6rem 1.2rem 4rem;
}
.hero-crest {
  width: 108px; height: 108px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 1.6rem;
  border: 1px solid var(--pewter);
  box-shadow: 0 12px 40px rgba(0,0,0,0.35);
}
.hero h1 {
  font-family: "Italiana", serif;
  font-weight: 400;
  font-size: clamp(2.6rem, 8vw, 6.4rem);
  letter-spacing: 0.12em;
  line-height: 0.95;
  font-variant-ligatures: none;
  color: var(--ivory);
  text-shadow: 0 10px 36px rgba(16, 25, 41, 0.45);
}
.hero h1 .name { display: block; }
.hero h1 .ampersand {
  display: block;
  font-size: 0.42em;
  letter-spacing: 0.5em;
  margin: 0.55rem 0 0.35rem;
  color: var(--mauve);
  font-family: "Josefin Sans", sans-serif;
  text-shadow: none;
}
.hero-surnames {
  margin-top: 1.1rem;
  font-family: "Cinzel", serif;
  letter-spacing: 0.38em;
  font-size: 0.78rem;
  text-transform: uppercase;
  color: var(--pewter);
}
.hero-date {
  margin-top: 1.8rem;
  font-size: 1.35rem;
  font-style: italic;
  color: var(--ivory);
}
.hero-actions {
  margin-top: 2.2rem;
  display: flex;
  justify-content: center;
  gap: 0.9rem;
  flex-wrap: wrap;
}
.btn {
  font-family: "Josefin Sans", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  padding: 0.95rem 1.4rem;
  border: 1px solid var(--pewter);
  transition: 0.25s ease;
  display: inline-block;
}
.btn:hover { background: var(--ivory); color: var(--navy); }
.btn-solid {
  background: var(--mauve);
  border-color: var(--mauve);
  color: var(--ivory);
}
.btn-solid:hover { background: var(--plum); border-color: var(--plum); color: var(--ivory); }
.scroll-cue {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  font-family: "Josefin Sans", sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: var(--pewter);
  opacity: 0.8;
}

/* INVITE */
#invitation, #story, #ring, #details, #rsvp {
  scroll-margin-top: calc(var(--nav-h) + 8px);
}
.invite {
  background: var(--ivory);
  color: var(--navy);
  padding: 3.6rem 0 3.4rem;
  position: relative;
}
.invite .frieze {
  width: min(920px, 92%);
  height: 132px;
  object-fit: cover;
  margin: 0 auto 2rem;
  display: block;
  mix-blend-mode: multiply;
  opacity: 0.92;
}
.invite-card {
  position: relative;
  width: min(720px, calc(100% - 2rem));
  margin-inline: auto;
  padding: 2.4rem 2.2rem 2.1rem;
  text-align: center;
  background:
    linear-gradient(var(--ivory), var(--ivory));
  box-shadow: var(--shadow);
}
.invite-card::before {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid var(--line-strong);
  pointer-events: none;
}
.invite-card .corner {
  position: absolute;
  width: 72px; height: 72px;
  opacity: 0.9;
}
.invite-card .corner.tl { top: 8px; left: 8px; }
.invite-card .corner.tr { top: 8px; right: 8px; transform: scaleX(-1); }
.invite-card .corner.bl { bottom: 8px; left: 8px; transform: scaleY(-1); }
.invite-card .corner.br { bottom: 8px; right: 8px; transform: scale(-1); }
.invite .fan { width: 180px; margin: 0.4rem auto 1.2rem; }
.invite h2 {
  font-family: "Italiana", serif;
  font-size: clamp(2rem, 4.4vw, 3.1rem);
  letter-spacing: 0.08em;
  font-weight: 400;
  margin: 0.4rem 0 0.2rem;
}
.invite .amp {
  font-family: "Cormorant Garamond", serif;
  font-style: italic;
  color: var(--mauve);
  font-size: 1.6rem;
  display: block;
  margin: 0.15rem 0;
}
.invite .lede {
  max-width: 38em;
  margin: 1.3rem auto 0;
  font-size: 1.22rem;
  color: var(--charcoal);
}
.invite .rule { width: min(360px, 80%); margin: 1.5rem auto; display: block; }
.invite .when {
  font-family: "Cinzel", serif;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.82rem;
  color: var(--plum);
}

/* STORY */
.story {
  background:
    radial-gradient(900px 420px at 10% 0%, rgba(96, 70, 90, 0.28), transparent 60%),
    var(--navy);
  padding: 5.5rem 0 4.5rem;
}
.section-head {
  text-align: center;
  margin-bottom: 2.6rem;
}
.section-head h2 {
  font-family: "Italiana", serif;
  font-weight: 400;
  font-size: clamp(2.1rem, 5vw, 3.6rem);
  letter-spacing: 0.14em;
  margin-top: 0.55rem;
}
.story-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.4rem;
  align-items: center;
}
.story-copy p {
  font-size: 1.28rem;
  color: var(--dove);
  max-width: 36em;
}
.story-copy p + p { margin-top: 1rem; }
.story-copy [data-story-two] { font-style: italic; color: var(--highland); }
.story-photos {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}
.story-photos figure {
  position: relative;
  overflow: hidden;
}
.story-photos img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  filter: saturate(0.92);
}
.story-photos figure:first-child {
  grid-column: 1 / -1;
}
.story-photos figure:first-child img { height: 360px; }
.story-photos figcaption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 0.7rem 0.8rem;
  font-family: "Josefin Sans", sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  background: linear-gradient(transparent, rgba(16,25,41,0.72));
}

/* RING */
.ring {
  background:
    radial-gradient(700px 380px at 12% 0%, rgba(96, 70, 90, 0.22), transparent 58%),
    var(--navy-deep);
  padding: 5.2rem 0 4.4rem;
}
.ring-intro {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 2.4rem;
  align-items: center;
  margin-bottom: 2.4rem;
}
.ring-copy p {
  font-size: 1.22rem;
  color: var(--dove);
  max-width: 34em;
}
.ring-copy p + p {
  margin-top: 1rem;
  font-style: italic;
  color: var(--highland);
}
.ring-gem {
  margin: 0 auto;
  max-width: 280px;
  text-align: center;
}
.ring-gem img {
  width: 100%;
  height: auto;
  filter: saturate(0.92);
}
.ring-gem figcaption {
  margin-top: 0.7rem;
  font-family: "Josefin Sans", sans-serif;
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--pewter);
}
.blueprint {
  display: grid;
  grid-template-columns: 0.9fr 1.2fr 0.85fr;
  gap: 0.7rem;
}
.bp-plate {
  margin: 0;
  border: 1px solid rgba(182, 190, 200, 0.22);
  background: #101929;
}
.bp-plate img {
  width: 100%;
  height: auto;
  display: block;
}
.bp-still {
  position: relative;
  overflow: hidden;
}
.bp-still figcaption {
  position: absolute;
  left: 0.85rem;
  right: 0.85rem;
  bottom: 0.7rem;
  display: flex;
  justify-content: space-between;
  gap: 0.4rem;
  font-family: "Josefin Sans", sans-serif;
  font-size: 0.56rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pewter);
  pointer-events: none;
}
.bp-still figcaption span:last-child {
  color: var(--mauve);
  text-align: right;
}
.ring-steps {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.8rem;
  margin-top: 1.8rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(182, 190, 200, 0.16);
}
.ring-steps li {
  font-family: "Josefin Sans", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--pewter);
}
.ring-steps span {
  display: block;
  color: var(--mauve);
  font-size: 0.58rem;
  letter-spacing: 0.28em;
  margin-bottom: 0.35rem;
}

/* ADVENTURES */
.adventures {
  background:
    radial-gradient(900px 500px at 80% 0%, rgba(93, 113, 135, 0.28), transparent 55%),
    var(--navy);
  padding: 5.2rem 0 4.6rem;
}
.map-board {
  display: block;
  max-width: 1080px;
  margin-inline: auto;
}
.map-stage {
  position: relative;
  margin: 0;
  border: 1px solid var(--line);
  background: #101929;
  box-shadow: var(--shadow);
}
.map-frame {
  position: relative;
  line-height: 0;
}
.map-frame::after {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(182, 190, 200, 0.22);
  pointer-events: none;
  z-index: 2;
}
.map-frame img {
  width: 100%;
  height: auto;
  display: block;
  opacity: 0.96;
}
.map-pins {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
}
.map-pin {
  position: absolute;
  transform: translate(-50%, -50%);
  width: 18px;
  height: 18px;
  padding: 0;
  background: none;
  border: 0;
  z-index: 1;
}
.map-pin-jewel {
  display: block;
  width: 10px;
  height: 10px;
  margin: 4px auto 0;
  transform: rotate(45deg);
  background: var(--mauve);
  box-shadow:
    0 0 0 1px var(--ivory),
    0 0 0 2px var(--mauve),
    0 4px 10px rgba(16, 25, 41, 0.35);
}
.map-pin-label {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(-50%);
  white-space: nowrap;
  font-family: "Josefin Sans", sans-serif;
  font-size: 0.58rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ivory);
  background: rgba(16, 25, 41, 0.88);
  border: 1px solid var(--line);
  padding: 0.28rem 0.45rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.map-pin:hover,
.map-pin:focus-visible,
.map-pin.is-on {
  z-index: 5;
}
.map-pin.label-left .map-pin-label {
  left: auto;
  right: calc(100% + 8px);
  bottom: 50%;
  transform: translateY(50%);
}
.map-pin.label-right .map-pin-label {
  left: calc(100% + 8px);
  bottom: 50%;
  transform: translateY(50%);
}
.map-pin:hover .map-pin-label,
.map-pin:focus-visible .map-pin-label,
.map-pin.is-on .map-pin-label {
  opacity: 1;
}
.map-pin.is-on .map-pin-jewel,
.map-pin:hover .map-pin-jewel {
  background: var(--ivory);
  box-shadow:
    0 0 0 1px var(--mauve),
    0 0 0 3px var(--ivory),
    0 0 16px rgba(167, 125, 139, 0.7);
}

/* GALLERY */
.gallery {
  position: relative;
  height: 100vh;
  min-height: 640px;
  background: #efebe3;
  color: var(--navy);
  overflow: hidden;
}
.gallery canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: pan-y;
  cursor: zoom-in;
}
.gallery.is-focus canvas {
  touch-action: none;
  cursor: grab;
}
.gallery-ui {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}
.gallery-ui > * { pointer-events: auto; }
.gallery::before {
  content: "";
  position: absolute;
  inset: 16px;
  z-index: 2;
  pointer-events: none;
  border: 1px solid rgba(25, 42, 68, 0.2);
  box-shadow: inset 0 0 0 7px rgba(239, 235, 227, 0.35);
}
.gallery.is-focus::before {
  inset: 10px;
  border-color: rgba(25, 42, 68, 0.45);
  box-shadow:
    inset 0 0 0 6px #efebe3,
    inset 0 0 0 7px rgba(96, 70, 90, 0.35);
}
.gallery::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  background: radial-gradient(ellipse at 62% 48%, transparent 42%, rgba(16, 25, 41, 0.07) 100%);
}
html.is-gallery-open,
html.is-gallery-open body {
  overscroll-behavior: none;
}
.g-brand { display: none; }
.g-copy {
  position: absolute;
  left: 24px;
  right: 180px;
  bottom: 28px;
  z-index: 3;
  pointer-events: none;
  max-width: min(420px, 52vw);
}
.g-copy h2 {
  font-family: "Italiana", "Oswald", serif;
  font-weight: 400;
  font-size: clamp(1.35rem, 2.4vw, 1.9rem);
  line-height: 1.1;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.g-copy .g-kicker {
  font-family: "Josefin Sans", sans-serif;
  letter-spacing: 0.32em;
  font-size: 0.58rem;
  text-transform: uppercase;
  color: var(--slate);
  margin: 0 0 0.25rem;
}
.g-copy .g-caption {
  margin-top: 0.35rem;
  font-size: 1.02rem;
  color: var(--charcoal);
  max-width: 28em;
}
.g-hint { display: none; }
.g-settings-btn { display: none; }
.g-panel {
  display: none;
  position: absolute;
  left: 22px; top: calc(var(--nav-h) + 58px);
  width: min(320px, calc(100% - 44px));
  background: rgba(255,255,255,0.94);
  border: 1px solid rgba(25,42,68,0.12);
  box-shadow: 0 18px 50px rgba(16,25,41,0.16);
  padding: 0.9rem 1rem 1rem;
  display: none;
  max-height: calc(100% - 120px);
  overflow: auto;
}
.g-panel.is-open { display: block; }
.g-panel h3 {
  font-family: "Josefin Sans", sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.8rem;
}
.g-panel fieldset {
  border: 0;
  margin: 0 0 0.7rem;
}
.g-panel legend {
  font-family: "Josefin Sans", sans-serif;
  font-size: 0.58rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 0.35rem;
}
.g-row {
  display: grid;
  grid-template-columns: 72px 1fr 48px;
  align-items: center;
  gap: 0.45rem;
  font-family: "Josefin Sans", sans-serif;
  font-size: 0.7rem;
  margin: 0.18rem 0;
}
.g-row input[type="range"] { width: 100%; accent-color: var(--navy); }
.g-row output {
  font-variant-numeric: tabular-nums;
  text-align: right;
  color: var(--charcoal);
}
.g-code {
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 0.62rem;
  background: #f3f1ea;
  padding: 0.65rem;
  color: #5b625e;
  margin: 0.5rem 0 0.7rem;
  white-space: pre-wrap;
}
.g-panel-actions { display: flex; gap: 0.4rem; }
.g-panel-actions button {
  flex: 1;
  font-family: "Josefin Sans", sans-serif;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 0.55rem 0.4rem;
  border: 1px solid var(--navy);
}
.g-panel-actions button.primary { background: var(--navy); color: var(--ivory); }
.g-controls {
  position: absolute;
  right: 22px;
  bottom: 24px;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  z-index: 6;
}
.g-press {
  font-family: "Josefin Sans", sans-serif;
  font-size: 1.35rem;
  line-height: 1;
  color: var(--navy);
  width: 42px;
  height: 42px;
  padding: 0;
  min-width: 0;
  border: 1px solid #d7cfc3;
  background: rgba(247, 243, 234, 0.88);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7), 0 1px 0 #c9c0b3;
  border-radius: 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.g-press:hover { background: #fff; }
.g-press:active { transform: translateY(1px); }
.g-press-glyph,
.g-press-mainwrap,
.g-press-main { display: none; }
.g-counter {
  font-family: "Josefin Sans", sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--slate);
  min-width: 3.6rem;
  text-align: center;
}
.g-counter .g-of { opacity: 0.5; padding: 0 0.2rem; }
.g-keys { display: none; }
.g-keys::-webkit-scrollbar { display: none; }
.g-key {
  flex: 0 0 auto;
  width: 34px;
  height: 28px;
  font-family: "Josefin Sans", sans-serif;
  font-size: 0.58rem;
  letter-spacing: 0.08em;
  color: var(--navy);
  border: 1px solid #d0c7b9;
  background: linear-gradient(180deg, #f7f3ea, #e8e1d4);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7), 0 1px 0 #c9c0b3;
  border-radius: 2px;
}
.g-key.is-on,
.g-key:hover {
  background: var(--navy);
  color: var(--ivory);
  border-color: var(--navy);
  box-shadow: none;
}
.g-close-focus {
  position: absolute;
  right: 22px; top: 22px;
  width: 44px; height: 44px;
  border: 1px solid rgba(25,42,68,0.28);
  display: none;
  place-items: center;
  background: rgba(247,243,234,0.92);
  font-size: 1.15rem;
  line-height: 1;
  letter-spacing: 0.08em;
  box-shadow: inset 0 0 0 3px rgba(247,243,234,0.9), 0 8px 24px rgba(16,25,41,0.12);
}
.gallery.is-focus .g-close-focus { display: grid; }
.gallery-fallback {
  display: none;
  height: 100%;
  overflow: auto;
  padding: 5rem 1.2rem 2rem;
}
.gallery-fallback.is-on { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0.8rem; }
.gallery-fallback img { width: 100%; height: 280px; object-fit: contain; background: #efebe3; }

/* DETAILS */
.details {
  background: var(--ivory);
  color: var(--navy);
  padding: 5.2rem 0;
}
.details-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.detail-card {
  border: 1px solid rgba(25,42,68,0.16);
  padding: 1.8rem 1.4rem 1.6rem;
  text-align: center;
  background: #fffcf6;
  min-height: 220px;
}
.detail-card h3 {
  font-family: "Cinzel", serif;
  letter-spacing: 0.22em;
  font-size: 0.78rem;
  text-transform: uppercase;
  margin: 0.7rem 0 0.8rem;
}
.detail-card p { color: var(--charcoal); font-size: 1.15rem; }
.detail-icon {
  display: block;
  width: 9px;
  height: 9px;
  margin: 0.35rem auto 0.55rem;
  transform: rotate(45deg);
  background: var(--mauve);
}

/* RSVP */
.rsvp {
  background:
    radial-gradient(800px 400px at 90% 0%, rgba(167,125,139,0.22), transparent 55%),
    var(--navy-deep);
  padding: 5.5rem 0 5rem;
}
.rsvp-layout {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2.4rem;
  align-items: start;
}
.rsvp-copy h2 {
  font-family: "Italiana", serif;
  font-weight: 400;
  font-size: clamp(2.2rem, 5vw, 3.8rem);
  letter-spacing: 0.12em;
  margin: 0.5rem 0 1rem;
}
.rsvp-copy p { color: var(--dove); font-size: 1.22rem; max-width: 30em; }
.rsvp-form {
  border: 1px solid var(--line);
  padding: 1.6rem;
  background: rgba(16, 25, 41, 0.45);
  position: relative;
}
.rsvp-form::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px solid rgba(182,190,200,0.18);
  pointer-events: none;
}
.field { margin-bottom: 1rem; }
.field label {
  display: block;
  font-family: "Josefin Sans", sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--pewter);
  margin-bottom: 0.4rem;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  background: rgba(247,243,234,0.06);
  border: 1px solid var(--line);
  padding: 0.75rem 0.8rem;
  color: var(--ivory);
  outline: none;
  font-family: "Josefin Sans", sans-serif;
  letter-spacing: 0.04em;
  font-size: 0.95rem;
}
.field input:focus,
.field select:focus,
.field textarea:focus { border-color: var(--mauve); }
.field textarea { min-height: 110px; resize: vertical; }
.attend {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
}
.attend label {
  border: 1px solid var(--line);
  padding: 0.85rem 0.6rem;
  text-align: center;
  letter-spacing: 0.16em;
  cursor: pointer;
  margin: 0;
  color: var(--ivory);
}
.attend input { display: none; }
.attend input:checked + span,
.attend label:has(input:checked) {
  background: var(--mauve);
  border-color: var(--mauve);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.rsvp-form .btn { width: 100%; margin-top: 0.4rem; text-align: center; }
.form-note {
  margin-top: 0.8rem;
  font-size: 0.95rem;
  color: var(--highland);
  min-height: 1.2em;
}
.form-note.error { color: #e3b6c0; }

/* FOOTER */
.footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0 2.4rem;
  text-align: center;
  background: var(--navy-deep);
}
.footer .mono {
  font-family: "Italiana", serif;
  letter-spacing: 0.32em;
  font-size: 1.1rem;
}
.footer p { color: var(--pewter); margin-top: 0.4rem; font-size: 0.95rem; }

/* TOAST */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translate(-50%, 20px);
  background: var(--ivory);
  color: var(--navy);
  padding: 0.8rem 1.1rem;
  border: 1px solid var(--pewter);
  font-family: "Josefin Sans", sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  z-index: 90;
  opacity: 0;
  pointer-events: none;
  transition: 0.35s var(--ease);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* HOST */
.host-gate, .host-table-wrap {
  max-width: 980px;
  margin: 8rem auto 4rem;
  padding: 0 1.2rem;
}
.host-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 1.05rem;
}
.host-table th {
  font-family: "Josefin Sans", sans-serif;
  font-size: 0.65rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  text-align: left;
  padding: 0.7rem 0.5rem;
  border-bottom: 1px solid var(--line);
  color: var(--pewter);
}
.host-table td {
  padding: 0.7rem 0.5rem;
  border-bottom: 1px solid rgba(182,190,200,0.15);
  vertical-align: top;
}
.yes { color: var(--eucalyptus); }
.no { color: var(--mauve); }

@media (max-width: 900px) {
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    padding-inline: 1.6rem;
  }
  .hero-actions .btn { text-align: center; }
  .hero-frame { inset: 10px; }
  .hero-copy { padding-top: 7.2rem; padding-bottom: 5rem; }
  .hero h1 { font-size: clamp(2.3rem, 12vw, 3.4rem); }
  .hero-crest { width: 86px; height: 86px; }
  .hero-bg { background-position: center 18%; }
  .nav-links {
    position: fixed;
    inset: var(--nav-h) 0 auto 0;
    background: rgba(16,25,41,0.96);
    color: var(--ivory);
    flex-direction: column;
    padding: 1.2rem 1.4rem 1.6rem;
    gap: 1rem;
    display: none;
  }
  .nav-links.is-open { display: flex; }
  .nav-toggle { display: block; }
  .story-grid, .rsvp-layout, .details-grid, .ring-intro, .blueprint, .ring-steps { grid-template-columns: 1fr; }
  .ring-steps { gap: 1rem; }
  .ring-gem { max-width: 220px; }
  .g-copy {
    left: 16px;
    right: 16px;
    bottom: 76px;
    max-width: none;
    top: auto;
  }
  .g-copy h2 { font-size: 1.25rem; }
  .g-copy .g-caption { display: none; }
  .g-controls {
    left: auto;
    right: 14px;
    bottom: 18px;
    width: auto;
  }
  .g-press { width: 38px; height: 38px; font-size: 1.2rem; flex: none; padding: 0; }
  .gallery { min-height: 100svh; }
  .gallery canvas { touch-action: pan-y; }
  .gallery.is-focus canvas { touch-action: none; }
  .rsvp-copy p { overflow-wrap: anywhere; }
  .form-row, .attend { grid-template-columns: 1fr; }
  .story-photos figure:first-child img,
  .story-photos img { height: 240px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .loader img, .loader h1, .loader p { animation: none; }
}

/* Isolated section shots: ?shot=gallery|story|invitation|details|rsvp */
html.is-shot .loader,
html.is-shot .grain { display: none !important; }
html.shot-invitation body > :not(.nav):not(.invite):not(.toast),
html.shot-story body > :not(.nav):not(.story):not(.toast),
html.shot-adventures body > :not(.nav):not(.adventures):not(.toast),
html.shot-gallery body > :not(.nav):not(.gallery):not(.toast),
html.shot-details body > :not(.nav):not(.details):not(.toast),
html.shot-rsvp body > :not(.nav):not(.rsvp):not(.toast) { display: none !important; }
html.shot-adventures .adventures { min-height: 100vh; }
html.shot-invitation .nav,
html.shot-details .nav,
html.shot-gallery .nav {
  background: rgba(247, 243, 234, 0.92);
  color: var(--navy);
  border-bottom-color: rgba(25, 42, 68, 0.12);
}
html.shot-gallery .gallery { height: 100vh; min-height: 100vh; }
html.shot-invitation .invite,
html.shot-story .story,
html.shot-details .details,
html.shot-rsvp .rsvp { min-height: 100vh; }
