/* DECORIUM — coming soon. Ivory, ink and one gold line: the mark, given room. */
:root {
  --paper: #f4efe6;
  --paper-2: #ece5d7;
  --ink: #0b0a09;
  --ink-2: rgba(11, 10, 9, 0.64);
  --ink-3: rgba(11, 10, 9, 0.44);
  --rule: rgba(11, 10, 9, 0.12);
  --gold: #b0915a;
  --serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --sans: 'Manrope', 'Helvetica Neue', Arial, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --gut: clamp(22px, 6vw, 88px);
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100dvh;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
button, input, select { font: inherit; color: inherit; }
a { color: inherit; }
:focus-visible { outline: 1px solid var(--ink); outline-offset: 5px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Paper: a soft light from above and a fine grain. */
.paper {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(70% 55% at 50% 30%, #fbf8f2 0%, rgba(251, 248, 242, 0) 72%),
    radial-gradient(120% 70% at 50% 115%, var(--paper-2), rgba(236, 229, 215, 0) 62%),
    var(--paper);
}
.paper::after {
  content: ''; position: absolute; inset: -50%; opacity: 0.06;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Small capitals used for every quiet label */
.kicker {
  font-size: 10.5px; font-weight: 500; letter-spacing: 0.42em; text-transform: uppercase; color: var(--ink-2);
  padding-left: 0.42em; /* balances the trailing letter-spacing */
}

/* ------------------------------------------------------------------ I. The threshold */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid; place-items: center;
  padding: clamp(56px, 9vh, 110px) var(--gut) clamp(96px, 14vh, 150px);
  text-align: center;
}
.arch {
  position: absolute; left: 50%; bottom: 0;
  width: min(88vw, 820px); height: min(88svh, 940px);
  transform: translateX(-50%);
  overflow: visible; pointer-events: none;
}
.arch path { fill: none; stroke: var(--gold); stroke-width: 1; vector-effect: non-scaling-stroke; opacity: 0.55; }
.arch .arch__inner { opacity: 0.22; }
.hero__inner {
  --logo-w: min(66vw, 600px);
  position: relative;
  display: grid; justify-items: center; gap: clamp(22px, 3.4vh, 36px);
  width: min(100%, 820px);
}
.hero__logo { width: var(--logo-w); height: auto; }
/* Sits under the logo's tagline, which the official artwork places 4.92% of its width right of centre. */
.hairline { position: relative; left: calc(var(--logo-w) * 0.0492); display: block; width: 72px; height: 1px; background: var(--gold); }
.hero__line { font-family: var(--serif); font-weight: 300; font-size: clamp(22px, 2.6vw, 32px); line-height: 1.3; color: #4f463b; }
.hero__line em { font-style: italic; }

.count { display: flex; justify-content: center; gap: clamp(18px, 4vw, 52px); margin-top: 6px; }
.count__unit { display: grid; justify-items: center; gap: 8px; min-width: clamp(56px, 8vw, 96px); }
.count__num { font-family: var(--serif); font-weight: 300; font-size: clamp(40px, 6vw, 84px); line-height: 0.9; font-variant-numeric: tabular-nums lining-nums; }
.count__num.tick { animation: tick 700ms var(--ease); }
@keyframes tick { from { opacity: 0.3; } to { opacity: 1; } }
.count__label { font-size: 9.5px; font-weight: 500; letter-spacing: 0.34em; text-transform: uppercase; color: var(--ink-3); }
.when { font-size: 12.5px; letter-spacing: 0.06em; color: var(--ink-3); }
.open-now { margin-top: 8px; }

.cue {
  position: absolute; left: 0; right: 0; bottom: clamp(26px, 5vh, 48px); width: max-content; margin: 0 auto;
  display: grid; justify-items: center; gap: 12px;
  font-size: 10px; font-weight: 500; letter-spacing: 0.38em; text-transform: uppercase; text-decoration: none; color: var(--ink-2);
  padding-left: 0.38em;
}
.cue span { width: 1px; height: 38px; background: linear-gradient(var(--gold), rgba(176, 145, 90, 0)); animation: fall 2.8s var(--ease) infinite; transform-origin: top; }
@keyframes fall { 0% { transform: scaleY(0); opacity: 1; } 60% { transform: scaleY(1); opacity: 1; } 100% { transform: scaleY(1); opacity: 0; } }

/* ------------------------------------------------------------------ Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 56px; padding: 0 40px; border: 1px solid var(--ink); border-radius: 0;
  background: var(--ink); color: var(--paper);
  font-size: 10.5px; font-weight: 500; letter-spacing: 0.36em; text-transform: uppercase; text-decoration: none;
  cursor: pointer; transition: background-color 400ms var(--ease), color 400ms var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { background: transparent; color: var(--ink); }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--line { background: transparent; color: var(--ink); }
.btn--line:hover { background: var(--ink); color: var(--paper); }
.btn--block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: progress; }

/* ------------------------------------------------------------------ II. The list */
.list {
  max-width: 620px; margin: 0 auto;
  padding: clamp(80px, 12vw, 150px) var(--gut) clamp(80px, 11vw, 140px);
  display: grid; justify-items: center; text-align: center;
}
.list__title { margin-top: 22px; font-family: var(--serif); font-weight: 300; font-size: clamp(38px, 5.4vw, 64px); line-height: 1.02; }
.list__title em { font-style: italic; color: #5d5245; }
.perks {
  list-style: none; padding: 0; margin: clamp(36px, 5vw, 52px) 0 clamp(36px, 5vw, 48px);
  width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule);
}
.perks li { display: grid; gap: 6px; align-content: start; padding: 22px 14px; font-size: 12.5px; line-height: 1.5; color: var(--ink-2); }
.perks li + li { border-left: 1px solid var(--rule); }
.perks strong { font-family: var(--serif); font-weight: 400; font-size: 21px; line-height: 1.15; color: var(--ink); }

.form { width: 100%; display: grid; gap: 26px; text-align: left; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; }
.field { display: grid; gap: 4px; }
.field__label { font-size: 9.5px; font-weight: 500; letter-spacing: 0.32em; text-transform: uppercase; color: var(--ink-2); }
.field__label small { letter-spacing: 0.08em; text-transform: none; color: var(--ink-3); font-size: 11px; margin-left: 6px; }
.field input, .field select {
  width: 100%; min-height: 50px; padding: 0 2px;
  border: 0; border-bottom: 1px solid rgba(11, 10, 9, 0.28); border-radius: 0;
  background: transparent; font-size: 17px; font-weight: 300;
  transition: border-color 300ms var(--ease);
}
.field select {
  appearance: none; padding-right: 26px; cursor: pointer;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='7'%3E%3Cpath d='M1 1l4.5 4.5L10 1' fill='none' stroke='%230b0a09' stroke-width='1.1'/%3E%3C/svg%3E") no-repeat right 4px center;
}
.field input::placeholder { color: var(--ink-3); }
.field input:focus, .field select:focus { outline: none; border-bottom-color: var(--gold); }
.field input[aria-invalid='true'] { border-bottom-color: #a4473d; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form .btn { margin-top: 6px; }
.form__msg { min-height: 1.4em; margin-top: -12px; font-size: 13px; text-align: center; color: #a4473d; }
.form__fine { margin-top: -14px; font-size: 12px; text-align: center; color: var(--ink-3); }

.joined { display: grid; gap: 14px; justify-items: center; animation: rise 1s var(--ease); }
.joined__mark { width: 44px; height: auto; opacity: 0.85; margin-bottom: 6px; }
.joined__title { font-family: var(--serif); font-size: clamp(32px, 4.4vw, 46px); font-weight: 300; font-style: italic; }
.joined__text { color: var(--ink-2); max-width: 40ch; }
.joined__actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 10px; }

/* ------------------------------------------------------------------ III. The house */
.house {
  max-width: 1120px; margin: 0 auto; padding: 0 var(--gut);
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 4vw, 64px);
}
.house article { display: grid; gap: 10px; align-content: start; padding-top: 26px; border-top: 1px solid var(--rule); text-align: center; }
.house__k { font-family: var(--serif); font-style: italic; font-size: 17px; color: var(--gold); }
.house h3 { font-family: var(--serif); font-weight: 300; font-size: clamp(26px, 2.6vw, 34px); letter-spacing: 0.08em; text-transform: uppercase; line-height: 1.1; }
.house p:last-child { font-size: 13.5px; color: var(--ink-2); max-width: 32ch; margin: 0 auto; }

.promise {
  margin: clamp(72px, 10vw, 120px) auto clamp(56px, 8vw, 90px); padding: 0 var(--gut);
  text-align: center; font-family: var(--serif); font-style: italic; font-size: clamp(18px, 2vw, 22px); color: #5d5245;
}
.promise span { color: var(--gold); margin: 0 0.6em; font-style: normal; }

/* ------------------------------------------------------------------ Footer */
.foot {
  display: grid; justify-items: center; gap: 16px;
  padding: 40px var(--gut) calc(40px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--rule);
  font-size: 11px; letter-spacing: 0.08em; color: var(--ink-3); text-align: center;
}
.foot__mark { width: 40px; height: auto; opacity: 0.85; }
.foot__ig { font-size: 10px; font-weight: 500; letter-spacing: 0.34em; text-transform: uppercase; text-decoration: none; color: var(--ink); padding: 6px 0 6px 0.34em; border-bottom: 1px solid var(--gold); }

/* ------------------------------------------------------------------ Arrival: the mark first, then the words */
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes reveal { from { opacity: 0; filter: blur(6px); transform: scale(0.985); } to { opacity: 1; filter: none; transform: none; } }
@keyframes draw { from { stroke-dashoffset: 2600; } to { stroke-dashoffset: 0; } }
.arch path { stroke-dasharray: 2600; animation: draw 3.2s var(--ease) both; }
.arch .arch__inner { animation-delay: 0.3s; }
.hero__logo { animation: reveal 1.8s var(--ease) 0.25s both; }
.hero .kicker { animation: rise 1.2s var(--ease) 0.1s both; }
.hairline { animation: rise 1.2s var(--ease) 0.9s both; }
.hero__line, .count, .when, .open-now { animation: rise 1.4s var(--ease) 1.1s both; }
.cue { animation: rise 1.4s var(--ease) 1.6s both; }

/* ------------------------------------------------------------------ Phone */
@media (max-width: 700px) {
  .arch { width: 94vw; height: 78svh; }
  .hero__inner { --logo-w: 78vw; }
  .perks { grid-template-columns: 1fr; }
  .perks li { grid-template-columns: 112px 1fr; align-items: baseline; gap: 14px; padding: 16px 4px; text-align: left; }
  .perks li + li { border-left: 0; border-top: 1px solid var(--rule); }
  .perks strong { font-size: 19px; }
  .form__row { grid-template-columns: 1fr; }
  .house { grid-template-columns: 1fr; gap: 40px; }
  .count { gap: 10px; }
  .count__unit { min-width: 62px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .arch path { stroke-dasharray: none; }
}
