/* ==========================================================================
   Hosting Club
   Colour and type come from the client's Canva kit:
   oxblood #6D0101 (logo), wine #2F0207 (invitation page), ivory from the card,
   Barlow (existing site body), Playfair Display (review quote), Great Vibes and
   Montserrat SemiBold (the invitation card). The logo is the kit's own vector.
   ========================================================================== */

:root {
  --oxblood: #6D0101;
  --oxblood-2: #7C0606;
  --wine: #2F0207;
  --wine-2: #3A060B;
  --paper: #F4F1EA;
  --paper-2: #EAE5DA;
  --ink: #1F0D0F;
  --ink-2: #4D3839;
  --line: rgba(109, 1, 1, .2);

  --serif: "Playfair Display", "Times New Roman", serif;
  --sans: "Barlow", "Helvetica Neue", Arial, sans-serif;
  --script: "Great Vibes", "Snell Roundhand", cursive;
  --caps: "Montserrat", "Barlow", sans-serif;

  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.76, 0, .24, 1);

  --gutter: 20px;
  --nav-h: 64px;
  --col-gap: 16px;
}
@media (min-width: 900px) {
  :root { --gutter: clamp(32px, 4.4vw, 72px); --nav-h: 84px; --col-gap: 24px; }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: clip; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
body.is-gated, body.menu-open { overflow: hidden; }

img, svg { display: block; }
img { max-width: 100%; height: auto; }
picture { display: contents; }
a { color: inherit; }
button { font: inherit; color: inherit; }
h1, h2, h3, p, figure, blockquote, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--oxblood); color: var(--paper); }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip {
  position: fixed; left: 12px; top: -80px; z-index: 200; background: var(--paper); color: var(--oxblood);
  padding: 12px 18px; border-radius: 999px; font-weight: 500; text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap { width: min(100% - 2 * var(--gutter), 1640px); margin-inline: auto; }
/* full-bleed layouts keep the same left and right edge as .wrap on very wide screens */
:root { --edge: max(var(--gutter), calc((100% - 1640px) / 2)); }

.for-touch { display: none; }
@media (hover: none) {
  .for-touch { display: inline; }
  .for-mouse { display: none; }
}

/* ---------- type ---------- */
.h2 {
  font: 400 clamp(2.5rem, 10.4vw, 3.5rem)/1.04 var(--serif);
  letter-spacing: -.012em;
}
.h3 { font: 400 clamp(1.7rem, 6.6vw, 2.1rem)/1.1 var(--serif); letter-spacing: -.005em; }
.label { font: 500 15px/1.2 var(--sans); letter-spacing: .01em; color: var(--oxblood); margin-bottom: 22px; }
em { font-style: italic; }
@media (min-width: 900px) {
  .h2 { font-size: clamp(3rem, 5.1vw, 5.3rem); }
  .h3 { font-size: clamp(1.8rem, 2.5vw, 2.6rem); }
}

/* SplitText line masks need a little room for descenders */
.ln-mask, [class*="-mask"] { padding-bottom: .12em; margin-bottom: -.12em; }

/* ---------- buttons and links ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  min-height: 54px; padding: 0 36px; border: 1.5px solid currentColor; border-radius: 999px;
  font: 500 16px/1 var(--sans); letter-spacing: .01em; color: var(--oxblood);
  text-decoration: none; background: none; cursor: pointer; overflow: hidden; isolation: isolate;
  transition: color .5s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn::before {
  content: ""; position: absolute; inset: -2px; background: var(--oxblood); z-index: -1;
  transform: translateY(102%); transition: transform .6s var(--ease); border-radius: inherit;
}
.btn > span { position: relative; }
.btn--light { color: var(--paper); }
.btn--light::before { background: var(--paper); }
.btn--solid { background: var(--oxblood); color: var(--paper); border-color: var(--oxblood); }
.btn--solid::before { background: var(--wine); }
@media (hover: hover) {
  .btn:hover { color: var(--paper); }
  .btn:hover::before { transform: none; }
  .btn--light:hover { color: var(--oxblood); }
  .btn--solid:hover { color: var(--paper); }
}

.link {
  display: inline-flex; align-items: center; gap: 14px; min-height: 44px;
  color: var(--oxblood); font: 500 16px/1.2 var(--sans); text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}
.link > span { padding-bottom: 5px; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1px no-repeat; }
.link::after {
  content: ""; width: 22px; height: 10px; background: currentColor; flex: none;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 10'%3E%3Cpath d='M0 5h20M16 1l4 4-4 4' fill='none' stroke='%23000' stroke-width='1.2'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 10'%3E%3Cpath d='M0 5h20M16 1l4 4-4 4' fill='none' stroke='%23000' stroke-width='1.2'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform .6s var(--ease);
}
.link--light { color: var(--paper); }
@media (hover: hover) { .link:hover::after { transform: translateX(8px); } }

/* image frame used by the clip reveals */
.frame { position: relative; overflow: hidden; background: var(--wine); }
.frame img { width: 100%; height: 100%; object-fit: cover; }

/* ==========================================================================
   The Invitation (gate)
   ========================================================================== */
.gate {
  --hw: min(130vw, 68.8vh);
  position: fixed; inset: 0; z-index: 100; overflow: hidden; cursor: pointer;
  background: #2d0207;
  -webkit-tap-highlight-color: transparent;
}
@supports (height: 1svh) { .gate { --hw: min(130vw, 68.8svh); } }
/* phones: a slightly larger card, so the words on it have room around them */
@media (max-width: 600px) {
  .gate { --hw: min(132vw, 78vh); }
  @supports (height: 1svh) { .gate { --hw: min(132vw, 78svh); } }
}
.gate[hidden] { display: none; }
.gate::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(90% 75% at 50% 48%, rgba(120, 12, 22, .2) 0%, rgba(45, 2, 7, 0) 55%, rgba(12, 0, 2, .5) 100%);
}
.gate__hand {
  position: absolute; left: 50%; bottom: 0; width: var(--hw); margin-left: calc(var(--hw) / -2);
  aspect-ratio: 812 / 1440; will-change: transform;
}
/* the hand and card are there from the first paint; only the words wait for the fonts and are written in */
.js .gate__script, .js .gate__cta { opacity: 0; }
.gate__hand img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gate__hand::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(to right, #2d0207 0, rgba(45, 2, 7, 0) 15%, rgba(45, 2, 7, 0) 86%, #2d0207 100%),
    linear-gradient(to bottom, #2d0207 0, rgba(45, 2, 7, 0) 22%);
}
/* the words sit on the blank face of the card in the photograph: x 228-582, y 640-828 of 812 x 1440 */
.gate__card {
  position: absolute; z-index: 3; left: 19.7%; top: 40.6%; width: 61%; height: 20.5%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: calc(var(--hw) * .017); padding: 0; border: 0; background: none; cursor: pointer; color: #320308;
  -webkit-tap-highlight-color: transparent;
}
.gate__card:focus-visible { outline: 2px solid var(--paper); outline-offset: 6px; }
/* the script carries the card; the instruction sits small and widely spaced beneath it,
   and both leave clear ivory on every side (client asked for more empty space, 18 Nov 2026) */
.gate__script { font: 400 calc(var(--hw) * .06)/1.1 var(--script); padding: 0 .2em; white-space: nowrap; }
.gate__cta {
  font: 600 max(9px, calc(var(--hw) * .0155))/1 var(--caps); letter-spacing: .26em; text-transform: uppercase;
  white-space: nowrap; padding-left: .26em;
}
.gate.is-ready .gate__cta { animation: breathe 2.6s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: .45; } }

/* ==========================================================================
   Navigation
   ========================================================================== */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 60; height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; padding: 0 var(--edge);
  color: var(--oxblood); pointer-events: none;
  transition: color .5s var(--ease), transform .8s var(--ease);
}
.nav > * { pointer-events: auto; }
.nav[data-theme="dark"] { color: var(--paper); }
.nav.is-hidden { transform: translateY(-110%); }
.js .nav { visibility: hidden; }
.nav__logo {
  display: flex; align-items: center; height: 48px; opacity: 0; visibility: hidden;
  transition: opacity .5s var(--ease), visibility .5s;
}
.nav.has-logo .nav__logo { opacity: 1; visibility: visible; }
.nav__logo span, .nav__logo svg { display: block; height: 34px; width: auto; }
.nav__links { display: none; gap: clamp(22px, 2.8vw, 44px); }
.nav__links a {
  position: relative; padding: 15px 0; color: inherit; text-decoration: none;
  font: 500 15px/1 var(--sans); letter-spacing: .02em;
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 7px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .6s var(--ease);
}
@media (hover: hover) { .nav__links a:hover::after { transform: scaleX(1); transform-origin: left; } }
.nav__menu {
  min-width: 64px; min-height: 44px; margin-right: -8px; padding: 0 8px; border: 0; background: none; cursor: pointer;
  font: 500 16px/1 var(--sans); letter-spacing: .02em; text-align: right;
  -webkit-tap-highlight-color: transparent;
}
.nav__menu-close { display: none; }
body.menu-open .nav { color: var(--paper); transform: none; }
body.menu-open .nav__menu-open { display: none; }
body.menu-open .nav__menu-close { display: inline; }
@media (min-width: 900px) {
  .nav__links { display: flex; }
  .nav__menu { display: none; }
  .nav__logo span, .nav__logo svg { height: 40px; }
}

.menu {
  position: fixed; inset: 0; z-index: 55; background: var(--oxblood); color: var(--paper);
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--nav-h) + 28px) var(--gutter) max(28px, env(safe-area-inset-bottom));
  clip-path: inset(0 0 100% 0); visibility: hidden;
  transition: clip-path .9s var(--ease-io), visibility 0s .9s;
}
body.menu-open .menu { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .9s var(--ease-io), visibility 0s; }
.menu__links { display: flex; flex-direction: column; }
.menu__links a {
  display: block; overflow: hidden; padding: 5px 0; color: inherit; text-decoration: none;
  font: 400 clamp(2.4rem, 11.5vw, 3.6rem)/1.14 var(--serif); letter-spacing: -.01em;
  -webkit-tap-highlight-color: transparent;
}
.menu__links a span { display: block; transform: translateY(112%); transition: transform .5s var(--ease); }
body.menu-open .menu__links a span { transform: none; transition: transform 1s var(--ease); }
body.menu-open .menu__links a:nth-child(1) span { transition-delay: .28s; }
body.menu-open .menu__links a:nth-child(2) span { transition-delay: .34s; }
body.menu-open .menu__links a:nth-child(3) span { transition-delay: .40s; }
body.menu-open .menu__links a:nth-child(4) span { transition-delay: .46s; }
body.menu-open .menu__links a:nth-child(5) span { transition-delay: .52s; }
.menu__foot { display: flex; align-items: flex-end; justify-content: space-between; }
.menu__mark svg { height: 72px; width: auto; }
@media (min-width: 900px) { .menu { display: none; } }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { position: relative; background: var(--paper); }
.hero__pin { position: relative; height: 100vh; min-height: 540px; overflow: hidden; background: var(--paper); }
@supports (height: 1svh) { .hero__pin { height: 100svh; } }

.hero__room { position: absolute; inset: 0; z-index: 3; clip-path: inset(50% 50% 50% 50%); will-change: clip-path; background: var(--wine); }
.hero__room img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 42%; transform: scale(1.28); will-change: transform; }
.hero__room-shade {
  position: absolute; inset: 0; opacity: 0;
  background:
    linear-gradient(68deg, rgba(22, 0, 3, .88) 0%, rgba(22, 0, 3, .6) 30%, rgba(22, 0, 3, .12) 62%, rgba(22, 0, 3, 0) 100%),
    linear-gradient(to bottom, rgba(22, 0, 3, .3) 0%, rgba(22, 0, 3, 0) 26%);
}

.hero__inner {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; justify-content: space-between;
  padding: calc(var(--nav-h) + 8px) var(--gutter) 28px;
}
.js .hero__inner { visibility: hidden; }
.hero__mark { color: var(--oxblood); will-change: transform, opacity; }
.hero__mark svg { width: 100%; height: auto; aspect-ratio: 1523.2 / 1000; overflow: hidden; }
/* a paper copy of the wordmark lives inside the room, so the logo inverts exactly where the door has opened */
.hero__ghost { position: absolute; left: 0; top: 0; color: var(--paper); visibility: hidden; will-change: transform, opacity; }
.hero__ghost svg { width: 100%; height: auto; aspect-ratio: 1523.2 / 1000; }
.hero__copy { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.hero__lead { font: 400 clamp(1.15rem, 4.9vw, 1.35rem)/1.4 var(--sans); color: var(--oxblood); max-width: 23em; }

.hero__cue {
  position: absolute; z-index: 2; left: 50%; top: 60%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 9px; white-space: nowrap;
  font: 500 13px/1 var(--sans); letter-spacing: .02em; color: var(--oxblood); pointer-events: none;
}
.js .hero__cue { visibility: hidden; }
.hero__cue i { display: block; width: 1px; height: 30px; background: currentColor; transform-origin: top; animation: cue 2.4s var(--ease-io) infinite; }
@keyframes cue {
  0% { transform: scaleY(0); transform-origin: top; }
  50% { transform: scaleY(1); transform-origin: top; }
  51% { transform: scaleY(1); transform-origin: bottom; }
  100% { transform: scaleY(0); transform-origin: bottom; }
}

.hero__statement {
  position: absolute; z-index: 4; left: var(--edge); right: var(--edge); bottom: clamp(40px, 9vh, 104px);
  color: var(--paper); pointer-events: none;
}
.hero__eyebrow { font: 500 15px/1.2 var(--sans); letter-spacing: .02em; margin-bottom: 18px; }
.js .hero__eyebrow { opacity: 0; }
.hero__h2 { font: 400 clamp(2.3rem, 10.6vw, 3.6rem)/1.04 var(--serif); letter-spacing: -.015em; }
.hero__h2 .line { display: block; overflow: hidden; padding-bottom: .14em; margin-bottom: -.14em; }
.hero__h2 .line > span { display: block; will-change: transform; }
.js .hero__h2 .line > span { transform: translateY(115%); }

@media (min-width: 900px) {
  .hero__inner {
    display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); align-items: end;
    padding: calc(var(--nav-h) + 12px) var(--edge) clamp(84px, 11vh, 118px);
  }
  .hero__mark { grid-column: 1 / span 8; align-self: end; }
  .hero__mark svg { width: min(100%, calc((100vh - var(--nav-h) - 12px - clamp(84px, 11vh, 118px)) * 1.5232)); }
  .hero__copy { grid-column: 10 / span 3; align-self: end; gap: 30px; }
  .hero__lead { font-size: clamp(1.2rem, 1.6vw, 1.6rem); line-height: 1.38; }
  .hero__h2 { font-size: clamp(3.6rem, 7vw, 7.4rem); }
  .hero__eyebrow { margin-bottom: 26px; }
}
@media (min-width: 900px) and (max-width: 1180px) {
  .hero__mark { grid-column: 1 / span 7; }
  .hero__copy { grid-column: 9 / span 4; }
}

/* ==========================================================================
   About
   ========================================================================== */
.about { background: var(--paper); padding: clamp(84px, 13vh, 170px) 0 clamp(92px, 15vh, 190px); }
.about__grid { display: grid; gap: 44px; }
.about__media { aspect-ratio: 4 / 5; }
.about__lead {
  font: 400 clamp(1.8rem, 7.6vw, 2.3rem)/1.2 var(--serif); letter-spacing: -.008em; color: var(--oxblood);
  margin-bottom: 36px;
}
.about__lead .w { display: inline-block; }
.about__cols { display: grid; gap: 18px; margin-bottom: 28px; }
.about__cols p { font-size: 17px; line-height: 1.65; }
@media (min-width: 900px) {
  .about__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); align-items: start; }
  .about__media { grid-column: 1 / span 4; position: sticky; top: calc(var(--nav-h) + 20px); aspect-ratio: 3 / 4; }
  .about__text { grid-column: 6 / span 7; padding-top: 8px; }
  .about__lead { font-size: clamp(2rem, 3.3vw, 3.4rem); margin-bottom: 60px; }
  .about__cols { grid-template-columns: 1fr 1fr; gap: var(--col-gap); margin-bottom: 40px; }
  .about__cols p { font-size: 18px; max-width: 30em; }
}

/* ==========================================================================
   Services: three doors
   ========================================================================== */
.services { position: relative; background: var(--paper); color: var(--paper); }
.services__pin { position: relative; padding: 76px 0 84px; background: var(--paper); }
.services__band { position: absolute; inset: 0 0 auto 0; height: 430px; background: var(--oxblood); }
.services__pin > .wrap { position: relative; }
.services__head { display: grid; gap: 18px; margin-bottom: 40px; }
.services__intro { font: 400 18px/1.5 var(--sans); max-width: 26em; opacity: .92; }

.doors { --door-closed: 96px; --door-gap: 10px; }
.door { position: relative; background: var(--wine); overflow: hidden; }
.door__tab { display: none; }
.door__img { aspect-ratio: 4 / 3; overflow: hidden; background: #1c0104; }
.door__img img { width: 100%; height: 100%; object-fit: cover; }
.door__body { padding: 26px 22px 26px; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.door__body p { font-size: 16.5px; line-height: 1.6; color: rgba(244, 241, 234, .9); }

/* phones: the three services stack like a deck, each one sliding over the last */
@media (max-width: 899px) {
  .door { margin-bottom: 14px; }
  .door:last-child { margin-bottom: 0; }
}
@media (max-width: 899px) and (min-height: 640px) {
  .door { position: sticky; top: calc(var(--nav-h) - 8px); margin-bottom: 24vh; box-shadow: 0 -18px 40px rgba(20, 0, 2, .28); }
  .door:nth-child(2) { top: calc(var(--nav-h) + 2px); }
  .door:nth-child(3) { top: calc(var(--nav-h) + 12px); }
  .door__img { aspect-ratio: 16 / 9; }
}

@media (min-width: 900px) {
  .services__band { height: 56%; }
  .services__pin { min-height: 100vh; display: flex; align-items: center; padding: calc(var(--nav-h) + 4px) 0 clamp(28px, 5vh, 60px); }
  .services__head {
    grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); align-items: end;
    margin-bottom: clamp(24px, 4.4vh, 52px);
  }
  .services__head .h2 { grid-column: 1 / span 6; }
  .services__intro { grid-column: 8 / span 5; font-size: clamp(1.05rem, 1.35vw, 1.3rem); padding-bottom: .5em; }

  .doors { display: flex; gap: var(--door-gap); height: clamp(380px, 62vh, 640px); --door-closed: clamp(76px, 7.4vw, 118px); }
  .door { flex: 0 0 var(--door-closed); transition: flex-basis 1.1s var(--ease-io); }
  .door.is-open { flex-basis: calc(100% - 2 * var(--door-closed) - 2 * var(--door-gap)); }

  .door__tab {
    position: absolute; inset: 0 auto 0 0; z-index: 2; width: var(--door-closed);
    display: flex; align-items: flex-end; justify-content: center; padding: 0 0 30px;
    border: 0; background: none; color: var(--paper); cursor: pointer;
    transition: opacity .5s var(--ease), background-color .5s var(--ease);
  }
  .door__tab span {
    writing-mode: vertical-rl; transform: rotate(180deg); white-space: nowrap;
    font: 400 clamp(1.35rem, 1.9vw, 1.9rem)/1 var(--serif); letter-spacing: 0;
    transition: transform .7s var(--ease);
  }
  .door.is-open .door__tab { opacity: 0; pointer-events: none; }
  .door:not(.is-open) .door__tab:hover { background: rgba(244, 241, 234, .06); }
  .door:not(.is-open) .door__tab:hover span { transform: rotate(180deg) translateY(8px); }

  .door__content {
    position: absolute; inset: 0 auto 0 0; width: var(--door-open-px, 900px);
    display: grid; grid-template-columns: minmax(0, 43%) minmax(0, 1fr);
    opacity: 0; visibility: hidden; transition: opacity .45s var(--ease), visibility 0s .45s;
  }
  .door.is-open .door__content { opacity: 1; visibility: visible; transition: opacity .9s var(--ease) .35s, visibility 0s; }
  .door__img { aspect-ratio: auto; height: 100%; }
  .door__img img { transform: scale(1.18); transition: transform 1.6s var(--ease); }
  .door.is-open .door__img img { transform: scale(1.02); }
  .door__body { justify-content: flex-end; padding: clamp(24px, 3vw, 52px); gap: clamp(12px, 2vh, 22px); }
  .door__body p { font-size: clamp(15.5px, 1.16vw, 18px); line-height: 1.58; max-width: 34em; }
}

/* ==========================================================================
   The Edit
   ========================================================================== */
.edit { position: relative; background: var(--wine); color: var(--paper); overflow: clip; }
.edit__pin { position: relative; padding: 78px 0 64px; display: flex; flex-direction: column; }
.edit__script {
  position: relative; z-index: 3; pointer-events: none; white-space: nowrap;
  font: 400 25.5vw/1.1 var(--script); padding: 0 var(--gutter); margin-bottom: -8.5vw;
}
/* phones: the intro sits under the cards, with the swipe cue beside it */
.edit__lede { order: 4; display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; padding: 26px var(--gutter) 0; }
.edit__lede > p:first-child { font: 400 1.35rem/1.25 var(--serif); max-width: 11.5em; }
.edit__lede .edit__hint { flex: none; padding-bottom: 6px; }
.edit__script span { display: inline-block; will-change: transform; }
.edit__track {
  display: flex; align-items: flex-start; gap: 16px; padding: 0 var(--gutter);
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
  -webkit-overflow-scrolling: touch; scrollbar-width: none;
}
.edit__track::-webkit-scrollbar { display: none; }
.edit__intro {
  flex: 0 0 62vw; scroll-snap-align: start; align-self: flex-end; padding-bottom: 96px;
  display: flex; flex-direction: column; gap: 22px;
}
.edit__intro > p:first-child { font: 400 1.5rem/1.25 var(--serif); }
@media (max-width: 899px) { .edit__intro { display: none; } }
.edit__hint { display: flex; align-items: center; gap: 12px; font: 500 14px/1 var(--sans); opacity: .82; }
.edit__hint i {
  width: 26px; height: 10px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 10'%3E%3Cpath d='M0 5h20M16 1l4 4-4 4' fill='none' stroke='%23000' stroke-width='1.2'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 10'%3E%3Cpath d='M0 5h20M16 1l4 4-4 4' fill='none' stroke='%23000' stroke-width='1.2'/%3E%3C/svg%3E") center / contain no-repeat;
  animation: nudge 1.8s var(--ease-io) infinite;
}
@keyframes nudge { 50% { transform: translateX(8px); } }

.card { flex: 0 0 74vw; scroll-snap-align: center; }
.card__img { aspect-ratio: 3 / 4; overflow: hidden; background: #190104; }
.card__img img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) contrast(1.06) brightness(.8);
  transform: scale(1.06);
  transition: filter 1.1s var(--ease), transform 1.6s var(--ease);
}
.card.is-focus .card__img img { filter: none; transform: none; }
.card figcaption { padding-top: 16px; }
.card h3 { font: 400 1.5rem/1.15 var(--serif); margin-bottom: 6px; }
.card figcaption p { font-size: 15.5px; line-height: 1.5; color: rgba(244, 241, 234, .82); max-width: 24em; }
.edit__end {
  flex: 0 0 70vw; scroll-snap-align: center; align-self: center;
  display: flex; flex-direction: column; align-items: flex-start; gap: 22px; padding-right: var(--gutter);
}
.edit__end p { font: 400 1.9rem/1.15 var(--serif); }
.edit__progress { margin: 34px var(--gutter) 0; height: 1px; background: rgba(244, 241, 234, .22); }
.edit__progress i { display: block; height: 100%; width: 100%; background: var(--paper); transform: scaleX(0); transform-origin: left; }

@media (min-width: 900px) {
  .edit__pin { display: block; height: 100vh; min-height: 560px; padding: 0; overflow: hidden; }
  .edit__lede { display: none; }
  .edit__script {
    position: absolute; left: var(--edge); top: clamp(18px, 5.5vh, 64px); margin: 0; padding-left: 0;
    font-size: clamp(10rem, 21vw, 24rem); line-height: 1.12;
  }
  .edit__track {
    position: absolute; left: 0; bottom: clamp(44px, 8vh, 84px);
    width: max-content; gap: clamp(22px, 2.8vw, 48px); padding: 0 var(--edge);
    overflow: visible; scroll-snap-type: none; will-change: transform; align-items: flex-end;
  }
  .edit__intro { flex: 0 0 clamp(250px, 26vw, 420px); padding-bottom: 0; align-self: flex-end; margin-right: clamp(8px, 3vw, 60px); }
  .edit__intro > p:first-child { font-size: clamp(1.5rem, 2.1vw, 2.2rem); }
  .card { --card-h: clamp(300px, 52vh, 560px); flex: 0 0 calc(var(--card-h) * .75); }
  .card__img { height: var(--card-h); aspect-ratio: auto; }
  .card h3 { font-size: clamp(1.4rem, 1.75vw, 1.85rem); }
  .card figcaption { min-height: 104px; }
  .edit__end { flex: 0 0 clamp(300px, 30vw, 460px); align-self: center; padding: 0 0 0 clamp(20px, 4vw, 80px); }
  .edit__end p { font-size: clamp(1.9rem, 2.7vw, 2.9rem); }
  .edit__progress { position: absolute; left: var(--edge); right: var(--edge); bottom: clamp(20px, 3.6vh, 38px); margin: 0; }
  @media (hover: hover) { .card:hover .card__img img { filter: none; transform: none; } }
}

/* ==========================================================================
   The Order Of Events
   ========================================================================== */
.order { background: var(--paper); padding: clamp(84px, 13vh, 170px) 0 clamp(88px, 14vh, 180px); }
.order__grid { display: grid; gap: 48px; }
.order__side .h2 { color: var(--oxblood); margin-bottom: 20px; }
.order__intro { font: 400 18px/1.5 var(--sans); max-width: 24em; margin-bottom: 32px; }
.order__media { aspect-ratio: 5 / 4; }
.order__steps { position: relative; }
.step { position: relative; padding: 0 0 44px 44px; }
.step:last-of-type { padding-bottom: 0; }
.step::before {
  content: ""; position: absolute; left: 0; top: 13px; width: 15px; height: 15px; border-radius: 50%;
  border: 1px solid var(--oxblood); background: var(--paper); z-index: 1;
  transition: background-color .6s var(--ease), transform .6s var(--ease);
}
.step.is-on::before { background: var(--oxblood); transform: scale(1.12); }
.step__n { display: block; font: italic 400 1.5rem/1 var(--serif); color: var(--oxblood); margin-bottom: 10px; }
.step .h3 { color: var(--oxblood); margin-bottom: 10px; }
.step p { font-size: 17px; line-height: 1.62; max-width: 30em; }
.order__line { position: absolute; left: 7px; top: 20px; bottom: 26px; width: 1px; background: var(--line); }
.order__line i { position: absolute; inset: 0; background: var(--oxblood); transform: scaleY(0); transform-origin: top; }
@media (min-width: 900px) {
  .order__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); align-items: start; }
  .order__side { grid-column: 1 / span 5; position: sticky; top: calc(var(--nav-h) + 20px); }
  .order__side .h2 { margin-bottom: 26px; }
  .order__intro { font-size: clamp(1.05rem, 1.35vw, 1.3rem); margin-bottom: clamp(28px, 5vh, 52px); }
  .order__media { aspect-ratio: 4 / 5; height: min(44vh, 440px); }
  .order__steps { grid-column: 7 / span 6; padding-top: 10px; }
  .step { padding: 0 0 clamp(56px, 10vh, 104px) 64px; }
  .step__n { font-size: 1.7rem; margin-bottom: 14px; }
  .step .h3 { margin-bottom: 14px; }
  .step p { font-size: 18px; }
  .step::before { top: 15px; }
}

/* ==========================================================================
   Reviews
   ========================================================================== */
.reviews {
  position: relative; background: var(--oxblood); color: var(--paper);
  /* clip, not hidden: hidden would make this the scroller and the review cards could not stick */
  display: grid; grid-template-columns: 40px minmax(0, 1fr) 40px; overflow: clip;
}
.reviews__inner {
  padding: 96px 14px 100px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 34px;
}
.reviews__mark svg { height: 52px; width: auto; }
.quote { max-width: 1000px; }
/* The reviews are cards that stack: each one sticks near the top of the screen and the next slides up over it
   (Ross, 19 Nov 2026). The sticking is the browser's own, so the cards move exactly with the scroll on every device.
   A card taller than the screen sticks by its foot instead, so its last line can always be read. */
/* A plain block, not a grid: a grid item can only stick inside its own row, which is no room at all.
   The empty ::after gives the last card somewhere to stay stuck for a moment before the pile moves on. */
.quotes { --stick: 64px; --step: 10px; display: block; width: 100%; }
.quotes::after { content: ""; display: block; height: 20vh; }
.quote {
  --i: 0; --h: 0px;
  position: sticky; top: min(calc(var(--stick) + var(--i) * var(--step)), calc(100vh - var(--h) - 16px));
  width: 100%; margin-left: auto; margin-right: auto; padding: 30px 18px 28px;
  background: var(--oxblood); border: 1px solid rgba(244, 241, 234, .3);
  transform-origin: 50% 0; will-change: transform;
}
@supports (height: 1svh) {
  .quote { top: min(calc(var(--stick) + var(--i) * var(--step)), calc(100svh - var(--h) - 16px)); }
}
.quote + .quote { margin-top: 34vh; box-shadow: 0 -16px 34px rgba(24, 1, 4, .3); }
/* the cards underneath fall back into shadow as each new one lands (set from the scroll in main.js);
   its own layer, so changing its opacity never repaints the text under it */
.quote__shade { position: absolute; inset: -1px; background: #1a0103; opacity: 0; pointer-events: none; will-change: opacity; }
.quote p { font: italic 400 clamp(1.05rem, 4.5vw, 1.22rem)/1.5 var(--serif); }
.quote footer { margin-top: 20px; font: italic 400 1.1rem/1 var(--serif); }
.rail { position: relative; overflow: hidden; }
.rail--l { transform: rotate(180deg); }
.rail__in {
  position: absolute; top: 0; left: 50%; display: flex; writing-mode: vertical-rl; white-space: nowrap;
  font: 600 13px/1 var(--caps); letter-spacing: .22em; text-transform: uppercase;
  transform: translateX(-50%); animation: rail 105s linear infinite;
}
.rail__in span { padding: 0 0 1.7em; }
.rail__in span::after { content: ""; display: inline-block; inline-size: 26px; block-size: 1px; margin-inline-start: 1.7em; vertical-align: middle; background: currentColor; opacity: .55; }
@keyframes rail { to { transform: translateX(-50%) translateY(-50%); } }
@media (min-width: 900px) {
  .reviews { grid-template-columns: 96px minmax(0, 1fr) 96px; }
  .reviews__inner { padding: clamp(110px, 18vh, 210px) clamp(24px, 5vw, 96px); gap: 44px; }
  .reviews__mark svg { height: 64px; }
  .quotes { --stick: clamp(76px, 12vh, 132px); --step: 14px; }
  .quote { padding: clamp(40px, 6vh, 64px) clamp(36px, 4.4vw, 72px) clamp(36px, 5.4vh, 56px); }
  .quote + .quote { margin-top: 30vh; }
  .quote p { font-size: clamp(1.5rem, 2.1vw, 2.2rem); line-height: 1.44; }
  .quote footer { margin-top: 30px; font-size: 1.3rem; }
  .rail__in { font-size: 13px; }
}

/* ==========================================================================
   R.S.V.P.
   ========================================================================== */
.rsvp { position: relative; overflow: hidden; background: var(--wine); color: var(--paper); padding: 92px 0 290px; }
.rsvp__bg { position: absolute; inset: 0; }
.rsvp__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.rsvp__bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, rgba(24, 1, 4, .78) 0%, rgba(24, 1, 4, .62) 40%, rgba(24, 1, 4, .8) 100%);
}
.rsvp__grid { position: relative; display: grid; gap: 52px; }
.rsvp__script { font: 400 3.4rem/1 var(--script); margin-bottom: 10px; }
.rsvp__text .h2 { margin-bottom: 22px; }
.rsvp__intro { font-size: 18px; line-height: 1.6; max-width: 27em; color: rgba(244, 241, 234, .92); margin-bottom: 26px; }
.rsvp__direct { display: flex; flex-wrap: wrap; gap: 10px 28px; }
.rsvp__direct a {
  display: inline-flex; align-items: center; min-height: 44px; font: 500 16px/1 var(--sans); text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 calc(50% + 14px) / 100% 1px no-repeat;
}

.env { --env-h: 290px; --env-drop: 176px; --env-out: 12px; position: relative; width: min(560px, 100%); margin: 0 auto; perspective: 1500px; }
.env__clip { position: relative; z-index: 2; overflow: hidden; }
.env__card { position: relative; background: var(--paper); color: var(--ink); padding: 34px 24px 150px; }
.env__back, .env__front, .env__flap { position: absolute; left: calc(var(--env-out) * -1); width: calc(100% + 2 * var(--env-out)); }
.env__back { z-index: 1; bottom: calc(var(--env-drop) * -1); height: var(--env-h); background: #CDC4B2; }
.env__front { z-index: 3; bottom: calc(var(--env-drop) * -1); height: var(--env-h); filter: drop-shadow(0 -3px 8px rgba(20, 0, 2, .2)); }
.env__f1 { fill: #E4DDCE; }
.env__f2 { fill: #EFEADF; }
.env__mono { position: absolute; z-index: 3; left: 50%; margin-left: -10px; bottom: calc(var(--env-drop) * -1 + 30px); color: var(--oxblood); }
.env__mono svg { height: 42px; width: auto; }
.env__flap { z-index: 4; top: calc(100% + var(--env-drop) - var(--env-h)); height: 172px; transform-origin: 50% 0; display: none; }
.js .env__flap { display: block; }
.env__flap-face { position: absolute; inset: 0; background: #E9E3D5; clip-path: polygon(0 0, 100% 0, 50% 100%); filter: drop-shadow(0 4px 6px rgba(20, 0, 2, .18)); }
.seal {
  position: absolute; left: 50%; top: 100%; width: 70px; height: 70px; margin: -48px 0 0 -35px; border-radius: 50%;
  display: grid; place-items: center; color: rgba(244, 241, 234, .9);
  background: radial-gradient(circle at 34% 28%, #9a1a1a 0%, #6D0101 52%, #480000 100%);
  box-shadow: 0 4px 12px rgba(20, 0, 2, .45), inset 0 0 0 5px rgba(0, 0, 0, .14), inset 0 0 0 6px rgba(255, 255, 255, .06);
}
.seal svg { height: 30px; width: auto; }

.env__title { font: 600 13px/1 var(--caps); letter-spacing: .34em; text-transform: uppercase; text-align: center; color: var(--oxblood); margin: 4px 0 30px; padding-left: .34em; }
.field { display: flex; flex-direction: column; gap: 3px; margin-bottom: 18px; min-width: 0; }
.field label, .chips legend { font: 500 13.5px/1.3 var(--sans); color: var(--ink-2); letter-spacing: .01em; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 44px; padding: 8px 0 9px; border: 0; border-bottom: 1px solid rgba(109, 1, 1, .38); border-radius: 0;
  background: transparent; color: var(--ink); font: 400 17px/1.4 var(--sans); outline: none;
  -webkit-appearance: none; appearance: none; transition: border-color .3s, box-shadow .3s;
}
.field textarea { resize: vertical; min-height: 64px; }
.field select {
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%236D0101' stroke-width='1.3'/%3E%3C/svg%3E") right 2px center / 12px 8px no-repeat;
  padding-right: 22px; cursor: pointer;
}
.field input::placeholder { color: rgba(77, 56, 57, .62); }
.field input:focus, .field select:focus, .field textarea:focus { border-bottom-color: var(--oxblood); box-shadow: 0 1px 0 var(--oxblood); }
.field-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; }
.chips { border: 0; padding: 0; margin: 2px 0 20px; display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.chips legend { padding: 0; margin-bottom: 10px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 17px; border: 1px solid rgba(109, 1, 1, .42); border-radius: 999px;
  font: 500 15px/1 var(--sans); color: var(--oxblood); transition: background-color .3s, color .3s; pointer-events: none;
}
.chip input:checked + span { background: var(--oxblood); color: var(--paper); border-color: var(--oxblood); }
.chip input:focus-visible + span { outline: 2px solid var(--oxblood); outline-offset: 2px; }
.env__error { color: #8b0d0d; font-size: 15px; margin: 0 0 14px; }
.env__card .btn { width: 100%; margin-top: 6px; }
.env__thanks { text-align: center; padding: 34px 6px 10px; }
.env__thanks .env__title--script { font: 400 3.4rem/1 var(--script); letter-spacing: 0; text-transform: none; padding: 0; margin-bottom: 18px; }
.env__thanks p { font-size: 18px; line-height: 1.55; max-width: 22em; margin: 0 auto; }
.env__demo { margin-top: 18px !important; font-size: 15px !important; color: var(--ink-2); }
[hidden] { display: none !important; }

@media (min-width: 900px) {
  .rsvp { padding: clamp(110px, 16vh, 190px) 0 clamp(300px, 36vh, 360px); }
  .rsvp__bg::after {
    background:
      linear-gradient(90deg, rgba(24, 1, 4, .88) 0%, rgba(24, 1, 4, .68) 38%, rgba(24, 1, 4, .36) 72%, rgba(24, 1, 4, .48) 100%),
      linear-gradient(to bottom, rgba(24, 1, 4, .3) 0%, rgba(24, 1, 4, 0) 30%, rgba(24, 1, 4, .55) 100%);
  }
  .rsvp__grid { grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); align-items: start; }
  .rsvp__text { grid-column: 1 / span 5; position: sticky; top: calc(var(--nav-h) + 36px); }
  .rsvp__script { font-size: clamp(3.6rem, 5.4vw, 5.6rem); margin-bottom: 14px; }
  .rsvp__text .h2 { margin-bottom: 30px; }
  .rsvp__intro { font-size: clamp(1.05rem, 1.35vw, 1.3rem); margin-bottom: 34px; }
  .env { grid-column: 7 / span 6; --env-out: 18px; --env-h: 310px; }
  .env__card { padding: 46px 48px 158px; }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.footer { position: relative; background: var(--oxblood); color: var(--paper); padding: 64px 0 max(24px, env(safe-area-inset-bottom)); overflow: hidden; }
.footer__top { display: grid; gap: 30px; margin-bottom: 52px; }
.footer__line { font: 400 1.7rem/1.2 var(--serif); max-width: 12em; }
.footer__nav { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.footer__nav a { display: flex; align-items: center; min-height: 44px; text-decoration: none; font: 500 16px/1 var(--sans); }
.footer__back {
  display: inline-flex; align-items: center; gap: 14px; min-height: 48px; padding: 0; border: 0; background: none; cursor: pointer;
  font: 500 16px/1 var(--sans); justify-self: start; -webkit-tap-highlight-color: transparent;
}
.footer__back i {
  width: 44px; height: 44px; border: 1px solid currentColor; border-radius: 50%; position: relative; flex: none;
  transition: background-color .5s var(--ease), color .5s var(--ease);
}
.footer__back i::before {
  content: ""; position: absolute; inset: 0; margin: auto; width: 10px; height: 16px; background: currentColor;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 16'%3E%3Cpath d='M5 16V1.5M1 5.5l4-4 4 4' fill='none' stroke='%23000' stroke-width='1.2'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 16'%3E%3Cpath d='M5 16V1.5M1 5.5l4-4 4 4' fill='none' stroke='%23000' stroke-width='1.2'/%3E%3C/svg%3E") center / contain no-repeat;
}
.footer__mark { color: var(--paper); }
.footer__mark svg { width: 100%; height: auto; aspect-ratio: 1523.2 / 1000; overflow: hidden; }
.footer__base { display: flex; justify-content: space-between; gap: 16px; margin-top: 30px; font-size: 14.5px; color: rgba(244, 241, 234, .82); }
@media (hover: hover) {
  .footer__nav a:hover, .rsvp__direct a:hover { opacity: .7; }
  .footer__back:hover i { background: var(--paper); color: var(--oxblood); }
}
@media (min-width: 900px) {
  .footer { padding: clamp(72px, 11vh, 130px) 0 30px; }
  .footer > .wrap { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); align-items: end; }
  .footer__mark { grid-column: 1 / span 7; grid-row: 1; }
  .footer__top { grid-column: 9 / span 4; grid-row: 1; margin: 0; gap: clamp(28px, 5vh, 48px); align-self: end; }
  .footer__line { font-size: clamp(1.8rem, 2.5vw, 2.6rem); }
  .footer__base { grid-column: 1 / -1; grid-row: 2; margin-top: clamp(40px, 7vh, 80px); }
}

/* ==========================================================================
   Tablets held upright: the phone layout, with images and cards kept in proportion
   ========================================================================== */
@media (min-width: 600px) and (max-width: 899px) {
  :root { --gutter: 36px; }
  .hero__lead { font-size: 1.45rem; max-width: 21em; }
  .about__media { width: 58%; }
  .about__lead { font-size: 2.5rem; }
  .door, .door:nth-child(n) { position: relative; top: auto; margin-bottom: 16px; box-shadow: none; }
  .door:last-child { margin-bottom: 0; }
  .door__content { display: grid; grid-template-columns: minmax(0, 42%) minmax(0, 1fr); }
  .door__img { aspect-ratio: auto; height: 100%; min-height: 340px; }
  .door__body { justify-content: center; padding: 34px 32px; }
  .edit__script { font-size: 22vw; margin-bottom: -6vw; }
  .card { flex-basis: 42vw; }
  .edit__end { flex-basis: 46vw; }
  .order__media { width: 60%; aspect-ratio: 4 / 5; }
  .reviews { grid-template-columns: 64px minmax(0, 1fr) 64px; }
  .quote { padding: 46px 42px 40px; }
  .quote p { font-size: 1.6rem; }
  .quote footer { margin-top: 26px; font-size: 1.25rem; }
  .footer__mark { width: 78%; }
}

/* ==========================================================================
   Reduced motion: no pins, no gate animation, everything in normal flow
   ========================================================================== */
.rm .hero__pin { height: auto; min-height: 0; display: flex; flex-direction: column; }
.rm .hero__inner { position: relative; order: 1; min-height: 78vh; visibility: visible; }
.rm .hero__room { position: relative; order: 2; height: 78vh; clip-path: none; }
.rm .hero__room img { transform: none; }
.rm .hero__room-shade { opacity: 1; }
.rm .hero__ghost { display: none; }
.rm .hero__cue { display: none; }
.rm .hero__eyebrow { opacity: 1; }
.rm .hero__h2 .line > span { transform: none; }
.rm .nav { visibility: visible; }
.rm .card .card__img img { filter: none; transform: none; }
.rm .rail__in, .rm .hero__cue i, .rm .edit__hint i { animation: none; }
.rm .env__flap { display: none; }
.rm .quotes::after { display: none; }
.rm .quote { position: static; }
.rm .quote + .quote { margin-top: 40px; box-shadow: none; }
@media (min-width: 900px) {
  .rm .edit__pin { height: auto; min-height: 0; padding: 110px 0 80px; overflow: visible; }
  .rm .edit__script { position: relative; top: auto; margin-bottom: -7vw; }
  .rm .edit__track { position: relative; bottom: auto; width: auto; overflow-x: auto; }
  .rm .edit__progress { display: none; }
}
