:root {
  --mx: 50vw;
  --my: 18vh;
  --scroll: 0;
  --pour: 0;
}
@property --pour {
  syntax: "<number>";
  inherits: true;
  initial-value: 0;
}

* { box-sizing: border-box; }
fieldset { border: 0; margin: 0; padding: 0; min-inline-size: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 5.5rem; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ivory);
  font-family: Outfit, "Avenir Next", sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.5;
  text-rendering: optimizeLegibility;
}
body.theme-house {
  --bg: #0c0a08;
  --ivory: #f8f1e4;
  --muted: rgba(248, 241, 228, .76);
  --gold: #e8c98a;
  --gold-2: #fff6df;
  --gold-deep: #c4964a;
  --line: rgba(232, 201, 138, .55);
  --display: "Bodoni Moda", Didot, "Times New Roman", serif;
  --serif: "Cormorant Garamond", Palatino, "Palatino Linotype", serif;
  background:
    radial-gradient(1100px 640px at 88% -8%, rgba(196, 150, 74, .09), transparent 52%),
    radial-gradient(820px 520px at -12% 36%, rgba(167, 116, 52, .06), transparent 48%),
    var(--bg);
}
body.theme-evening {
  --bg: #070605;
  --ivory: #f4e7d6;
  --muted: rgba(244, 231, 214, .76);
  --gold: #e8c98a;
  --gold-2: #fff1cf;
  --gold-deep: #b88945;
  --line: rgba(232, 201, 138, .48);
  --display: "Bodoni Moda", Didot, "Times New Roman", serif;
  --serif: "Bodoni Moda", Didot, "Times New Roman", serif;
  --ember: #c46a3a;
}
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
::selection { background: rgba(232, 201, 138, .35); color: #fffaf2; }

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(820px circle at var(--mx) var(--my), rgba(232, 201, 138, .045), transparent 70%);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: .07;
  background-image: radial-gradient(rgba(255, 246, 223, .55) .45px, transparent .7px);
  background-size: 3px 3px;
  mix-blend-mode: overlay;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--gold-2);
  color: #1a1208;
  padding: .6rem 1rem;
  z-index: 90;
}
.skip:focus { top: 1rem; }

.noscript {
  padding: 1rem;
  text-align: center;
  color: var(--gold);
}

.kicker {
  font-family: Cinzel, serif;
  font-size: .68rem;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 .85rem;
}
.display {
  font-family: var(--display, var(--serif));
  font-weight: 500;
  letter-spacing: -.015em;
  line-height: .9;
}
.foil {
  color: var(--gold-2);
}
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .foil {
    background-image: linear-gradient(102deg, #7a5624 0%, #e8c98a 16%, #fff8e8 34%, #f0d48a 46%, #fff6df 58%, #c4964a 74%, #fff1cf 88%, #8d642e 100%);
    background-size: 240% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: foil 16s ease-in-out infinite;
  }
}
@keyframes foil {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
.lede {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.35rem, 2vw, 1.85rem);
  line-height: 1.25;
  color: var(--ivory);
}
.meta {
  font-family: Cinzel, serif;
  font-size: .64rem;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--gold);
}

.veil {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: radial-gradient(circle at 50% 42%, #1a140e, #090807 62%);
  display: grid;
  place-items: center;
}
.veil-inner { position: relative; display: grid; place-items: center; color: var(--gold-2); }
.veil-ring { position: absolute; width: 190px; height: 190px; }
.veil-ring circle {
  fill: none;
  stroke: currentColor;
  stroke-width: .6;
  stroke-dasharray: 340;
  stroke-dashoffset: 340;
  animation: ring 1.5s cubic-bezier(.2, .7, .2, 1) forwards;
}
@keyframes ring { to { stroke-dashoffset: 0; } }
.veil .mark { width: 54px; height: 54px; position: relative; }
.veil-word {
  margin-top: 5.5rem;
  font-family: var(--serif);
  letter-spacing: .46em;
  font-size: .78rem;
  text-indent: .46em;
  color: var(--gold-2);
  animation: word .9s ease .35s both;
}
@keyframes word {
  from { opacity: 0; letter-spacing: .8em; }
  to { opacity: 1; letter-spacing: .46em; }
}
.veil.is-away { animation: veilOut .9s ease forwards; }
@keyframes veilOut {
  to { opacity: 0; visibility: hidden; }
}

.thread {
  position: fixed;
  left: 0;
  top: 0;
  height: 100vh;
  width: 120px;
  z-index: 6;
  pointer-events: none;
  overflow: visible;
}
.thread-line { filter: drop-shadow(0 0 2px rgba(232, 201, 138, .28)); }

.nav {
  position: fixed;
  z-index: 40;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: calc(.9rem + env(safe-area-inset-top)) 1.6rem .9rem 1.3rem;
  border-bottom: 1px solid transparent;
  transition: background .5s ease, border-color .5s ease, backdrop-filter .5s;
}
.nav.scrolled {
  background: rgba(9, 8, 7, .78);
  border-bottom-color: var(--line);
  backdrop-filter: blur(16px);
}
.nav-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-2), var(--gold-deep));
  transform: scaleX(0);
  transform-origin: left;
  pointer-events: none;
}
.brand {
  display: flex;
  align-items: center;
  gap: .75rem;
  text-decoration: none;
  color: var(--ivory);
  margin-right: auto;
}
.mark { width: 28px; height: 28px; color: var(--gold-2); display: block; }
.brand-name {
  display: block;
  font-family: var(--serif);
  letter-spacing: .16em;
  font-size: 1.25rem;
  line-height: 1;
}
.brand-sub {
  display: block;
  margin-top: .28rem;
  font-family: Cinzel, serif;
  font-size: .56rem;
  letter-spacing: .32em;
  text-transform: uppercase;
  color: var(--gold);
}
.nav-links { display: flex; gap: 1.35rem; align-items: center; }
.nav-links a {
  position: relative;
  text-decoration: none;
  color: var(--muted);
  font-size: .68rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  padding: .3rem 0;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  background: var(--gold-2);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .55s cubic-bezier(.2, .7, .2, 1);
}
.nav-links a:hover::after,
.nav-links a.is-here::after { transform: scaleX(1); }
.nav-links a.is-here { color: var(--gold-2); }
.langs { display: flex; align-items: center; gap: .35rem; color: var(--gold); }
.langs button {
  background: none;
  border: 0;
  padding: .2rem;
  letter-spacing: .16em;
  font-size: .68rem;
  color: var(--muted);
  cursor: pointer;
}
.langs button[aria-pressed="true"] { color: var(--gold-2); }
.burger {
  display: none;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: transparent;
  padding: 0;
  place-items: center;
  gap: 6px;
  cursor: pointer;
}
.burger span {
  display: block;
  width: 18px;
  height: 1px;
  background: var(--gold-2);
  transition: transform .45s ease;
}
.burger[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(40deg); }
.burger[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-40deg); }

.sheet {
  position: fixed;
  inset: 0;
  z-index: 30;
  background:
    radial-gradient(circle at 20% 20%, rgba(230, 211, 174, .14), transparent 40%),
    rgba(9, 8, 7, .96);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: .4rem;
  padding: 6rem 2rem;
  transform: translateY(-102%);
  transition: transform .7s cubic-bezier(.7, 0, .2, 1);
  pointer-events: none;
}
.sheet.open { transform: none; pointer-events: auto; }
.sheet a {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 10vw, 4.2rem);
  text-decoration: none;
  color: var(--ivory);
  line-height: 1.05;
}
.sheet a:hover { color: var(--gold-2); }

.btn {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .7rem;
  min-height: 48px;
  padding: 1rem 1.5rem;
  border: 1px solid rgba(248, 237, 212, .72);
  background: transparent;
  color: var(--gold-2);
  text-decoration: none;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-family: Outfit, sans-serif;
  font-size: .68rem;
  font-weight: 400;
  cursor: pointer;
  overflow: hidden;
  transition: color .45s ease, border-color .45s ease;
}
.btn span, .btn svg { position: relative; z-index: 1; }
.btn svg { width: 18px; height: 10px; }
.btn::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(105deg, #6a4c22 0%, #fff6df 38%, #e0bc6a 68%, #f8e7c0 100%);
  transform: translateY(102%);
  transition: transform .7s cubic-bezier(.2, .7, .2, 1);
}
.btn:hover { color: #1a1208; }
.btn:hover::before { transform: none; }
.btn .ripple {
  position: absolute;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  border: 1px solid rgba(255, 250, 242, .28);
  background: radial-gradient(circle, rgba(255, 250, 242, .08) 40%, transparent 68%);
  transform: scale(1);
  animation: ripple 1.85s cubic-bezier(.18, .45, .2, 1) forwards;
  pointer-events: none;
  z-index: 2;
}
@keyframes ripple {
  0% { transform: scale(.35) scaleY(.8); opacity: 0; }
  22% { opacity: .42; }
  100% { transform: scale(8) scaleY(.92); opacity: 0; }
}

.cursor, .cursor-dot {
  position: fixed;
  left: 0;
  top: 0;
  z-index: 70;
  pointer-events: none;
  opacity: 0;
}
body.moved .cursor, body.moved .cursor-dot { opacity: 1; }
.cursor {
  width: 34px;
  height: 34px;
  margin: -17px 0 0 -17px;
  border: 1px solid rgba(248, 237, 212, .85);
  border-radius: 50%;
  transition: width .35s ease, height .35s ease, margin .35s ease, background .35s ease;
}
.cursor.hot {
  width: 64px;
  height: 64px;
  margin: -32px 0 0 -32px;
  background: rgba(248, 237, 212, .08);
}
.cursor-dot {
  width: 4px;
  height: 4px;
  margin: -2px 0 0 -2px;
  border-radius: 50%;
  background: var(--gold-2);
  box-shadow: 0 0 12px var(--gold-2);
}
body.fine.moved, body.fine.moved a, body.fine.moved button { cursor: none; }
body.fine.moved input, body.fine.moved textarea, body.fine.moved select, body.fine.moved label { cursor: auto; }

.dust {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.ornament {
  position: absolute;
  inset: 12px;
  pointer-events: none;
  background:
    linear-gradient(var(--gold-2), var(--gold-2)) left top / 22px 1px no-repeat,
    linear-gradient(var(--gold-2), var(--gold-2)) left top / 1px 22px no-repeat,
    linear-gradient(var(--gold-2), var(--gold-2)) right top / 22px 1px no-repeat,
    linear-gradient(var(--gold-2), var(--gold-2)) right top / 1px 22px no-repeat,
    linear-gradient(var(--gold-2), var(--gold-2)) left bottom / 22px 1px no-repeat,
    linear-gradient(var(--gold-2), var(--gold-2)) left bottom / 1px 22px no-repeat,
    linear-gradient(var(--gold-2), var(--gold-2)) right bottom / 22px 1px no-repeat,
    linear-gradient(var(--gold-2), var(--gold-2)) right bottom / 1px 22px no-repeat;
}

.seam { height: 90px; margin: 0 6vw; pointer-events: none; }
.seam svg { width: 100%; height: 90px; display: block; overflow: visible; }
.seam path {
  fill: none;
  stroke: rgba(240, 212, 138, .92);
  stroke-width: 1.25;
  stroke-dasharray: 1600;
  stroke-dashoffset: 1600;
}
.seam.draw path { animation: seam 2.4s cubic-bezier(.2, .7, .2, 1) forwards; }
@keyframes seam { to { stroke-dashoffset: 0; } }

.reveal {
  opacity: 0;
  transform: translateY(36px);
  filter: blur(3px);
  transition: opacity 1.25s ease, transform 1.35s cubic-bezier(.16, .84, .24, 1), filter 1.2s ease;
}
.reveal.in { opacity: 1; transform: none; filter: none; }
.d1 { transition-delay: .12s; }
.d2 { transition-delay: .24s; }
.d3 { transition-delay: .4s; }

.melt { position: relative; overflow: hidden; }
.melt img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 56%, transparent 80%);
  mask-image: radial-gradient(ellipse at center, #000 56%, transparent 80%);
}

.card-form, .form-success {
  position: relative;
  background:
    linear-gradient(180deg, rgba(248, 237, 212, .05), transparent 30%),
    linear-gradient(180deg, #16130f, #0d0b09);
  border: 1px solid var(--line);
  padding: clamp(1.3rem, 3vw, 2.2rem);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .35), inset 0 1px 0 rgba(248, 237, 212, .18);
}
.hp {
  position: absolute;
  left: -9999px;
  height: 0;
  overflow: hidden;
}
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.2rem; }
.field, .choice { display: flex; flex-direction: column; gap: .35rem; margin-bottom: 1.05rem; position: relative; }
.lab, .choice legend {
  font-family: Cinzel, serif;
  font-size: .62rem;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--gold);
  padding: 0;
}
.field input, .field textarea, .field select {
  width: 100%;
  background: transparent;
  border: 0;
  border-bottom: 1px solid rgba(230, 211, 174, .32);
  border-radius: 0;
  padding: .75rem 0;
  font-family: var(--serif);
  font-size: 1.35rem;
  color: var(--ivory);
  outline: none;
  background-image: linear-gradient(var(--gold-2), var(--gold-2));
  background-repeat: no-repeat;
  background-size: 0 1px;
  background-position: left bottom;
  transition: background-size .55s ease;
}
.field textarea { min-height: 7.5rem; resize: vertical; font-size: 1.2rem; }
.field select {
  appearance: none;
  background-image: linear-gradient(var(--gold-2), var(--gold-2));
}
.field:focus-within input,
.field:focus-within textarea,
.field:focus-within select { background-size: 100% 1px; }
.rule { display: none; }
.err { min-height: 1em; color: #f0c2c2; font-size: .75rem; letter-spacing: .02em; }
.field.bad input, .field.bad textarea, .choice.bad { border-bottom-color: #c47a7a; }
.choice-grid { display: flex; flex-wrap: wrap; gap: .55rem; }
.choice label {
  position: relative;
  border: 1px solid rgba(230, 211, 174, .38);
  padding: .75rem .9rem;
  cursor: pointer;
  color: var(--muted);
  letter-spacing: .12em;
  text-transform: uppercase;
  font-size: .68rem;
  transition: border-color .4s ease, color .4s ease, background .5s ease;
}
.choice input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
}
.choice label:hover { border-color: var(--gold-2); color: var(--ivory); }
.choice label:has(input:checked),
.choice label:focus-within {
  background: linear-gradient(110deg, #7a5a30, #f8edd4 46%, #c6a15a);
  color: #1a1208;
  border-color: transparent;
}
.consent {
  position: relative;
  display: flex;
  gap: .8rem;
  align-items: flex-start;
  margin: .4rem 0 1.3rem;
  color: var(--muted);
  font-size: .92rem;
  cursor: pointer;
}
.consent input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
}
.sealbox {
  width: 22px;
  height: 22px;
  flex: none;
  margin-top: .15rem;
  border-radius: 50%;
  border: 1px solid var(--gold);
  transition: background .4s ease, box-shadow .4s ease;
}
.consent input:focus-visible + .sealbox { outline: 1px solid var(--gold-2); outline-offset: 3px; }
.consent input:checked + .sealbox {
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 236, 200, .9), transparent 28%),
    radial-gradient(circle at 50% 55%, #c45555, #6e1d28 70%);
  border-color: transparent;
  box-shadow: 0 0 16px rgba(180, 60, 70, .45);
}
.form-success { display: none; text-align: center; min-height: 280px; place-items: center; align-content: center; }
.form-success.show { display: grid; }
.form-success h3 {
  font-family: var(--serif);
  font-size: 3rem;
  font-weight: 500;
  margin-bottom: .4rem;
}
.wax {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  margin: 0 auto 1rem;
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 230, 190, .85), transparent 28%),
    radial-gradient(circle at 50% 50%, #c24a52, #6a1c26 72%);
  box-shadow: inset 0 0 0 1px rgba(248, 237, 212, .45), 0 12px 30px rgba(0, 0, 0, .35);
  opacity: 0;
}
.form-success.show .wax { animation: seal .8s cubic-bezier(.2, .8, .2, 1) forwards; }
@keyframes seal {
  0% { transform: scale(1.5); opacity: 0; }
  70% { transform: scale(.94); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}

.footer {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  padding: 3rem 6vw 2.4rem;
  border-top: 1px solid var(--line);
}
.footer-brand, .legal { display: flex; gap: 1rem; align-items: center; }
.legal { flex-direction: column; align-items: flex-start; gap: .25rem; }
.legal small, .footer small { color: var(--muted); letter-spacing: .04em; }
.footer-side { display: flex; flex-direction: column; align-items: flex-end; gap: .55rem; }
.footer a { color: var(--gold-2); }
.credit { letter-spacing: .08em; font-size: .78rem; color: var(--muted); }
.credit a { text-underline-offset: .28em; }

.quiet {
  font-family: Cinzel, serif;
  letter-spacing: .22em;
  text-transform: uppercase;
  font-size: .64rem;
  color: var(--gold);
  text-decoration: none;
}

:focus-visible { outline: 1px solid var(--gold-2); outline-offset: 3px; }
body.locked { overflow: hidden; }

main { position: relative; z-index: 2; }

@media (max-width: 979px) {
  html, body { overflow-x: clip; }
  .nav { gap: .45rem; padding-left: .85rem; padding-right: .7rem; }
  .brand { min-width: 0; }
  .brand-name { font-size: 1rem; letter-spacing: .08em; }
  .brand-sub { letter-spacing: .14em; font-size: .5rem; }
  .langs, .burger { flex: none; }
  .mark { width: 22px; height: 22px; }
  .nav-links { display: none; }
  .burger { display: grid; flex: none; }
  .grid2 { grid-template-columns: 1fr; }
  .footer, .footer-side, .legal { align-items: flex-start; }
  .footer { flex-direction: column; padding: 2.4rem 1.25rem 6rem; }
  .thread { width: 36px; }
  .field input, .field textarea { font-size: 1.15rem; }
  .card-form .btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; filter: none !important; }
  .seam path { stroke-dashoffset: 0; }
}
