/* Off Silence — site v2
   A house, not a demo: warm white and black, oxblood once at the end.
   Everything sits on a central axis. Titles are Roman capitals with air between the letters;
   running text is a light grotesque; the calligraphic italic is kept for one thing only —
   words that are spoken.
   Shared system lives here; page scenes live in home.css / pages.css. */

@font-face { font-family: "TRJN DaVinci"; src: url(../fonts/TRJNDaVinci-Display.otf) format("opentype"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "TRJN DaVinci"; src: url(../fonts/TRJNDaVinci-ItalicDisplay.otf) format("opentype"); font-weight: 100 900; font-style: italic; font-display: swap; }

:root {
  --white: #f8f7f4;
  --ink: #0f0d0c;
  --oxblood: #4a0c0f;
  --red: #a3262d;      /* accent and data ink on white (validated against the white surface) */
  --rose: #d1575d;     /* the same accent on dark grounds */

  --serif: "TRJN DaVinci", "Noto Serif SC", "Songti SC", "Times New Roman", serif;
  --sans: "Inter", "PingFang SC", "Noto Sans SC", -apple-system, "Helvetica Neue", Arial, sans-serif;

  --pad: clamp(20px, 2.6vw, 44px);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-io: cubic-bezier(.65, 0, .25, 1);
}

*, *::before, *::after { box-sizing: border-box; }
/* no default tap flash on touch screens (the blue or grey box some browsers draw over whatever was touched);
   the things that can be pressed answer in their own way, further down */
* { margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html { -webkit-text-size-adjust: 100%; }
html, body { overflow-x: clip; }
body {
  font-family: var(--sans);
  font-weight: 300;
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-variant-numeric: lining-nums;
}
img, canvas, svg, video { display: block; }
img, video { width: 100%; height: 100%; object-fit: cover; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; text-align: inherit; letter-spacing: inherit; text-transform: inherit; }
ul, ol { list-style: none; }
em { font-style: normal; }
b, h1, h2, h3, h4 { font-weight: inherit; }
::selection { background: var(--oxblood); color: var(--white); }
/* a ring for the keyboard only: older phone browsers draw their own ring around whatever was just touched */
:focus { outline: none; }
:focus-visible { outline: 1px solid currentColor; outline-offset: 5px; }
/* controls are pressed, not selected: a quick double tap must not paint a selection over them */
a, button, label, summary, [role="slider"], [data-open], [data-close], .lbl, .lnk, .btn { -webkit-user-select: none; user-select: none; }
a[href^="mailto:"] { -webkit-user-select: text; user-select: text; }   /* an address is something people copy */
a, button, label, [data-open] { touch-action: manipulation; }
/* a touch is answered by the thing itself, briefly */
@media (hover: none) {
  a:active, button:active, label:active { opacity: .55; transition: opacity 0s; }
  .inv-stage:active .inv { scale: .985; }
}

/* every section declares the ground it stands on */
[data-theme="light"] { --fg: var(--ink); --bg: var(--white); --mute: #8a857d; --line: rgba(15, 13, 12, .13); --accent: var(--red); color: var(--fg); }
[data-theme="dark"] { --fg: var(--white); --bg: var(--ink); --mute: rgba(248, 247, 244, .6); --line: rgba(248, 247, 244, .2); --accent: var(--rose); color: var(--fg); }

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

/* a little grain, as on printed stock */
body::after {
  content: "";
  position: fixed; inset: -50%;
  pointer-events: none;
  z-index: 100;
  opacity: .045;
  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='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); }
  33% { transform: translate(-3%, 2%); }
  66% { transform: translate(2%, -3%); }
  100% { transform: translate(0, 0); }
}

/* ---------- type ---------- */
/* titles: capitals, set wide, always centred on the axis */
.t-caps, .t-mega { font-family: var(--serif); text-transform: uppercase; text-wrap: balance; }
.t-caps { font-size: clamp(22px, 2.9vw, 54px); line-height: 1.16; letter-spacing: .1em; }
.t-mega { font-size: clamp(27px, 4.5vw, 86px); line-height: 1.1; letter-spacing: .075em; }
.t-caps em, .t-mega em { display: block; }
/* running text: light, large, quiet */
.t-lead { font-size: clamp(19px, 2.1vw, 36px); line-height: 1.36; letter-spacing: -.018em; text-wrap: pretty; }
.t-body { font-size: clamp(15px, 1.12vw, 18px); line-height: 1.7; color: var(--mute); text-wrap: pretty; }
.t-small { font-size: 13px; line-height: 1.6; color: var(--mute); }
/* the italic is speech: what she says, what her body says, what Boddi tells her */
.speech, .t-lead em { font-family: var(--serif); font-style: italic; letter-spacing: -.012em; }
.t-lead em { font-size: 1.13em; line-height: 1; }
.lbl { font-size: 10.5px; font-weight: 500; line-height: 1.4; letter-spacing: .22em; text-transform: uppercase; }
.num { font-variant-numeric: tabular-nums; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.nobr { white-space: nowrap; }

html[lang="zh"] h1, html[lang="zh"] h2, html[lang="zh"] h3 { word-break: keep-all; }
html[lang="zh"] .t-caps { font-size: clamp(21px, 2.5vw, 46px); line-height: 1.36; letter-spacing: .2em; }
html[lang="zh"] .t-mega { font-size: clamp(25px, 3.7vw, 70px); line-height: 1.3; letter-spacing: .18em; }
html[lang="zh"] .t-lead { font-size: clamp(17px, 1.75vw, 30px); line-height: 1.75; letter-spacing: .02em; }
html[lang="zh"] .t-body { line-height: 1.95; }
html[lang="zh"] .speech, html[lang="zh"] .t-lead em { font-style: normal; letter-spacing: .04em; }
html[lang="zh"] .t-lead em { font-size: 1em; line-height: inherit; }
html[lang="zh"] .lbl { letter-spacing: .26em; font-size: 11px; }

/* the brand marks are masks, so they take any ink (the images themselves live in marks.css) */
.wordmark, .monogram { display: block; background: currentColor; -webkit-mask: center / contain no-repeat; mask: center / contain no-repeat; }
.wordmark { aspect-ratio: 2317 / 440; -webkit-mask-image: var(--mark-word); mask-image: var(--mark-word); }
.monogram { aspect-ratio: 593 / 439; -webkit-mask-image: var(--mark-mono); mask-image: var(--mark-mono); }

.ic { display: inline-block; width: 1.25em; height: 1.25em; vertical-align: -0.25em; flex: 0 0 auto; }
.ic svg { width: 100%; height: 100%; overflow: visible; fill: none; stroke: currentColor; stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- the head of a room: a small label, a title in capitals, sometimes a line of text ---------- */
.head { display: grid; justify-items: center; gap: clamp(18px, 3vh, 30px); text-align: center; padding: 0 var(--pad); }
.head .lbl { color: var(--mute); }
.head .t-body { max-width: 33em; }

/* ---------- links and the one button ---------- */
.lnk { position: relative; display: inline-block; padding-bottom: 6px; font-size: 10.5px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; white-space: nowrap; }
.lnk::after { content: ""; position: absolute; left: 0; right: .22em; bottom: 0; height: 1px; background: currentColor; transform-origin: left; }
.lnk:hover::after { animation: redraw .9s var(--ease-io); }
@keyframes redraw {
  0% { transform: scaleX(1); transform-origin: right; } 45% { transform: scaleX(0); transform-origin: right; }
  46% { transform: scaleX(0); transform-origin: left; } 100% { transform: scaleX(1); transform-origin: left; }
}
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center;
  height: 56px; padding: 0 38px 0 calc(38px + .22em);
  border: 1px solid currentColor; border-radius: 999px;
  font-size: 10.5px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; white-space: nowrap;
  transition: color .5s var(--ease);
}
.btn::before { content: ""; position: absolute; inset: -1px; z-index: -1; border-radius: inherit; background: var(--fg); transform: translateY(102%); transition: transform .6s var(--ease-out); }
.btn:hover { color: var(--bg); }
.btn:hover::before { transform: none; }
/* a button that leans toward the pointer before it is pressed */
.magnet { display: inline-block; padding: 26px 34px; margin: -26px -34px; }
.magnet > * { will-change: transform; }

/* ---------- header: the mark on the axis, the pages to either side ---------- */
.hd {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  padding: 26px var(--pad);
  color: var(--ink);
  transition: transform .9s var(--ease-out), color .5s var(--ease), background-color .5s var(--ease), padding .5s var(--ease), opacity 1.2s var(--ease);
}
html.js:not(.is-ready) .hd { opacity: 0; }
.hd.on-dark { color: var(--white); }
.hd.is-solid { padding-top: 16px; padding-bottom: 16px; background: rgba(248, 247, 244, .88); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.hd.is-hidden, html.drawer-open .hd { transform: translateY(-102%); }
.hd-l, .hd-r { display: flex; align-items: center; gap: clamp(18px, 2.6vw, 42px); }
.hd-r { justify-self: end; }
.hd-mark .wordmark { width: clamp(100px, 8.6vw, 132px); }
.hd-l > a, .hd-r > button { position: relative; padding: 5px 0; }
.hd-l > a::after, .hd-r > button::after { content: ""; position: absolute; left: 0; right: .22em; bottom: 0; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .6s var(--ease-out); }
.hd-l > a:hover::after, .hd-r > button:hover::after, .hd-l > a[aria-current]::after { transform: scaleX(1); transform-origin: left; }
.hd-menu { display: none; padding: 5px 0; }
.hd-menu span + span, html.menu-open .hd-menu span:first-child { display: none; }
html.menu-open .hd-menu span + span { display: inline; }
.lang { display: flex; align-items: center; gap: 12px; }
.lang button { padding: 5px 0; opacity: .4; transition: opacity .3s; }
.lang button:hover { opacity: .8; }
.lang button.on { opacity: 1; }

/* ---------- the small-screen menu: four words on black ---------- */
.menu { position: fixed; inset: 0; z-index: 45; display: flex; flex-direction: column; justify-content: space-between; padding: 22vh var(--pad) 30px; background: var(--ink); color: var(--white); clip-path: inset(0 0 100% 0); visibility: hidden; transition: clip-path .9s var(--ease-io), visibility 0s .9s; }
html.menu-open { overflow: hidden; }
html.menu-open .menu { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .9s var(--ease-io); }
html.menu-open .hd { color: var(--white); background: transparent; transform: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.menu-nav { display: grid; gap: 4.2vh; justify-items: center; text-align: center; }
.menu-nav > * { font-size: clamp(26px, 8vw, 40px); opacity: 0; transform: translate3d(0, 18px, 0); transition: opacity .5s var(--ease), transform .5s var(--ease); }
html.menu-open .menu-nav > * { opacity: 1; transform: none; transition: opacity 1s var(--ease) calc(.35s + var(--i) * 80ms), transform 1.2s var(--ease-out) calc(.35s + var(--i) * 80ms); }
.menu-nav [aria-current] { opacity: .45 !important; }
html[lang="zh"] .menu-nav > * { font-size: clamp(24px, 7.4vw, 36px); }
.menu-foot { display: flex; justify-content: space-between; align-items: center; gap: 20px; color: rgba(248, 247, 244, .7); }
.menu-foot a { letter-spacing: .06em; text-transform: none; font-weight: 400; font-size: 12px; }

/* ---------- reveals (armed only when JS is running) ---------- */
html.js .rv { opacity: 0; transform: translate3d(0, 18px, 0); transition: opacity 1.4s var(--ease), transform 1.7s var(--ease-out); transition-delay: var(--d, 0s); }
html.js .rv.in { opacity: 1; transform: none; }

/* a picture is uncovered like a print under a sheet: the frame stays whole, the sheet slides off */
.cur { position: relative; overflow: hidden; margin: 0; }
html.js .cur > .cur-in { clip-path: inset(0 0 100% 0); transition: clip-path 1.5s var(--ease-io); transition-delay: var(--d, 0s); }
html.js .cur > .cur-in > img { transform: scale(1.16); transition: transform 2.6s var(--ease-out); transition-delay: var(--d, 0s); }
html.js .cur.in > .cur-in { clip-path: inset(0 0 0 0); }
html.js .cur.in > .cur-in > img { transform: none; }

/* titles arrive letter by letter, out of soft focus; text arrives word by word */
.w { display: inline-block; }
html.js [data-split] .wi { display: inline-block; opacity: 0; filter: blur(7px); transform: translate3d(0, .22em, 0); transition: opacity 1.3s var(--ease), filter 1.3s var(--ease), transform 1.5s var(--ease-out); transition-delay: calc(var(--d, 0s) + var(--i, 0) * 55ms); }
html.js [data-split="chars"] .wi { transform: none; transition-delay: calc(var(--d, 0s) + var(--i, 0) * 30ms); }
html.js [data-split].in .wi { opacity: 1; filter: none; transform: none; }
html[lang="zh"] [data-split] .wi { transition-delay: calc(var(--d, 0s) + var(--i, 0) * 55ms); }

/* ---------- the readout: three signals, each on its own scale, read at one day of the cycle ---------- */
.ro { --series: var(--accent); display: grid; gap: clamp(30px, 5.5vh, 60px); width: min(1180px, 100%); margin: 0 auto; }
.ro-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ro-tile { display: grid; justify-items: center; gap: 12px; padding: 4px clamp(12px, 2.4vw, 40px) 0; text-align: center; }
.ro-tile + .ro-tile { border-left: 1px solid var(--line); }
.ro-lbl { font-size: 13px; line-height: 1.3; color: var(--mute); }
/* the figures tick as the day moves, so their digits keep one width */
.ro-val { font-weight: 200; font-size: clamp(38px, 5.9vw, 104px); line-height: 1.02; letter-spacing: -.045em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ro-val i { font-style: normal; font-weight: 300; font-size: .2em; letter-spacing: .02em; margin-left: .5em; color: var(--mute); }
.ro-spark { width: 100%; height: clamp(40px, 7vh, 70px); margin-top: 8px; overflow: visible; }
.ro-spark .ghost { fill: none; stroke: var(--fg); stroke-width: 1.2; opacity: .2; stroke-linecap: round; stroke-linejoin: round; }
.ro-spark .line { fill: none; stroke: var(--series); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ro-spark .dot { fill: var(--series); stroke: var(--bg); stroke-width: 2; }
.ro-rail { position: relative; height: 62px; margin: 0 30px; cursor: grab; touch-action: pan-y; -webkit-user-select: none; user-select: none; }
.ro.is-drag .ro-rail { cursor: grabbing; }
.ro-rail:focus-visible { outline-offset: 12px; }
.ro-track, .ro-fill { position: absolute; left: 0; top: 13px; height: 1px; }
.ro-track { right: 0; background: var(--line); }
.ro-fill { width: var(--x, 0px); background: var(--fg); }
.ro-ticks i { position: absolute; top: 9px; width: 1px; height: 9px; background: var(--fg); opacity: .22; }
/* the thumb is the stone */
.ro-thumb { position: absolute; left: var(--x, 0px); top: 0; width: 60px; height: 27px; margin-left: -30px; border-radius: 999px; background: var(--fg); color: var(--bg); display: grid; place-items: center; font-size: 11px; font-weight: 500; letter-spacing: .06em; font-variant-numeric: tabular-nums; box-shadow: 0 6px 16px rgba(15, 13, 12, .18); transition: scale .4s var(--ease-out), box-shadow .4s var(--ease); }
.ro-rail:hover .ro-thumb { scale: 1.07; }
.ro.is-drag .ro-thumb { scale: 1.14; box-shadow: 0 12px 26px rgba(15, 13, 12, .24); }
.ro-phases span { position: absolute; top: 40px; transform: translateX(-50%); color: var(--mute); opacity: .55; white-space: nowrap; transition: opacity .5s var(--ease), color .5s var(--ease); }
.ro-phases span.on { opacity: 1; color: var(--fg); }
.ro-say { display: grid; justify-items: center; gap: 16px; text-align: center; }
.ro-say .lbl { color: var(--mute); }
.ro-msg { font-size: clamp(22px, 2.6vw, 44px); line-height: 1.1; max-width: 21em; min-height: 2.2em; text-wrap: balance; transition: opacity .4s var(--ease); }
.ro-msg.swap { opacity: 0; }
html[lang="zh"] .ro-msg { font-size: clamp(19px, 2vw, 34px); line-height: 1.5; }
.ro-note { font-size: 12px; color: var(--mute); text-align: center; }

/* ---------- the one room in the house colour; every page ends in it. One light on the wall. ---------- */
.closing { --bg: var(--oxblood); min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: clamp(24px, 4.4vh, 42px); padding: 22vh var(--pad); background: var(--oxblood) radial-gradient(115% 80% at 50% 40%, #631418 0%, var(--oxblood) 48%, #36080b 100%); text-align: center; }
.closing .lbl { color: var(--mute); }
.closing .t-body { max-width: 31em; color: rgba(248, 247, 244, .72); }
.closing.is-wait { gap: clamp(24px, 4.4vh, 44px); padding: 14vh var(--pad) 12vh; }
/* what the room says changes once she is on the list */
.wl-1, html.wl-in .wl-0 { display: none; }
html.wl-in .wl-1 { display: inline; }

/* ---------- the invitation: the waitlist is a card with a number and her name on it ----------
   Every size inside is a share of the card's own width, so the same card stands in the room and heads the form. */
.inv-stage { width: min(640px, calc(100vw - 2 * var(--pad)), 76vh); cursor: pointer; }
.inv { --u: 4.6px; width: 100%; transition: scale .25s var(--ease); }   /* --u is one hundredth of the card's width; a fixed size where container units are missing */
@supports (width: 1cqw) { .inv { container-type: inline-size; --u: 1cqw; } }
.inv-card {
  position: relative; display: grid; grid-template-rows: auto 1fr auto; aspect-ratio: 3 / 2;
  padding: calc(var(--u) * 5.4) calc(var(--u) * 6) calc(var(--u) * 5); border-radius: calc(var(--u) * .7);
  color: #15110f;
  background: linear-gradient(var(--ang, 118deg), #fdfbf6 0%, #f4f1ea 44%, #e8e3d8 100%);   /* cotton stock under one light */
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .55), 0 calc(var(--u) * 2.6) calc(var(--u) * 4.4) calc(var(--u) * -2.2) rgba(8, 2, 2, .55), 0 calc(var(--u) * 10) calc(var(--u) * 13) calc(var(--u) * -7) rgba(8, 2, 2, .6);
  text-align: center;
  will-change: transform;
}
.inv-top { display: flex; justify-content: space-between; align-items: center; }
.inv-top .wordmark { width: calc(var(--u) * 19.5); }
/* the stone on the card: an outline while the number is still to come, the house colour once it is given */
.inv-stone { display: inline-flex; align-items: center; justify-content: center; gap: calc(var(--u) * 1); height: calc(var(--u) * 5.2); min-width: calc(var(--u) * 15); padding: 0 calc(var(--u) * 2.2); border-radius: 999px; box-shadow: inset 0 0 0 1px rgba(21, 17, 15, .32); font-size: max(8px, calc(var(--u) * 1.8)); font-weight: 500; line-height: 1; letter-spacing: .16em; transition: background-color 1s var(--ease), color 1s var(--ease), box-shadow 1s var(--ease); }
.inv-stone small { font-size: inherit; text-transform: uppercase; }
.inv-no:empty::before { content: ""; display: block; width: calc(var(--u) * 4.4); height: 1px; background: currentColor; opacity: .45; }
.inv.is-in .inv-stone { background: var(--oxblood); color: #f4f1ea; box-shadow: inset 0 0 0 1px var(--oxblood); }
/* the number arrives the way a counter does */
.inv-no { display: inline-flex; }
.dg { display: block; height: 1em; overflow: hidden; }
.dg > i { display: block; font-style: normal; transition: transform 1.7s var(--ease-out) calc(.3s + var(--i) * .13s); }
.dg span { display: block; height: 1em; }
.inv.is-in .dg > i { transform: translateY(calc(var(--v) * -10%)); }
.inv-h { align-self: center; padding-left: .1em; font-family: var(--serif); text-transform: uppercase; font-size: calc(var(--u) * 7.5); line-height: 1.14; letter-spacing: .1em; }
.inv-h em { display: block; }
html[lang="zh"] .inv-h { padding-left: .2em; font-size: calc(var(--u) * 7.4); line-height: 1.34; letter-spacing: .2em; }
.inv-foot { display: grid; grid-template-columns: 1.25fr 1fr auto; column-gap: calc(var(--u) * 4.2); align-items: end; text-align: left; }
.inv-slot { display: grid; gap: calc(var(--u) * .8); min-width: 0; }
.inv-card .lbl { font-size: max(7.5px, calc(var(--u) * 1.62)); color: rgba(21, 17, 15, .56); }
/* her name and her city are written in as she types them */
.inv-val { display: block; height: max(18px, calc(var(--u) * 5)); border-bottom: 1px solid rgba(21, 17, 15, .3); font-size: max(12.5px, calc(var(--u) * 3.7)); line-height: max(16px, calc(var(--u) * 4.5)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-synthesis: none; }
html[lang="zh"] .inv-val { font-size: max(12px, calc(var(--u) * 3.3)); letter-spacing: .06em; }
.inv-ch { padding-bottom: calc(var(--u) * .5); line-height: 1.75; text-align: right; }
@keyframes stamp { 0% { scale: 1; } 28% { scale: .962; } 100% { scale: 1; } }
.inv.is-in .inv-card { animation: stamp .9s var(--ease-out); }

/* ---------- the waitlist form: the same room, brought to wherever she asked for it ---------- */
html.drawer-open { overflow: hidden; }
.scrim { position: fixed; inset: 0; z-index: 70; background: rgba(15, 13, 12, .56); opacity: 0; pointer-events: none; transition: opacity .7s var(--ease); }
.drawer {
  --bg: var(--oxblood);
  position: fixed; z-index: 80; top: 0; right: 0; bottom: 0; width: min(540px, 100vw);
  background: var(--oxblood) radial-gradient(130% 60% at 50% 22%, #631418 0%, var(--oxblood) 52%, #3b090c 100%); color: var(--white);
  transform: translateX(100%); transition: transform 1s var(--ease-out), visibility 0s 1s;
  visibility: hidden;
  display: flex; flex-direction: column; overflow-y: auto; overscroll-behavior: contain;
}
html.drawer-open .scrim { opacity: 1; pointer-events: auto; }
html.drawer-open .drawer { transform: none; visibility: visible; transition: transform 1s var(--ease-out); }
.drawer-top { display: flex; justify-content: space-between; align-items: center; padding: 26px 44px; }
.dw-close { display: flex; align-items: center; gap: 10px; }
.dw-close .ic { width: 13px; height: 13px; }
.drawer-body { padding: 2vh 44px 40px; flex: 1; display: flex; flex-direction: column; justify-content: center; }
.drawer .inv { margin-bottom: clamp(26px, 4.4vh, 40px); }
.dw-lead { font-size: 14px; line-height: 1.7; color: rgba(248, 247, 244, .7); margin-bottom: 14px; max-width: 34em; }
.dw-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 24px; }
/* what she writes is in the spoken hand, like everything else that is said on this site */
.dw-fields input {
  width: 100%; font-family: var(--serif); font-style: italic; font-weight: 300; font-size: 22px; line-height: 1.2; letter-spacing: 0; color: var(--white); caret-color: var(--rose);
  padding: 15px 0 9px; border: 0; border-bottom: 1px solid rgba(248, 247, 244, .28); border-radius: 0; background: transparent; outline: none;
  font-synthesis: none; -webkit-user-select: text; user-select: text;
  transition: border-color .3s;
}
.dw-fields input::placeholder { color: rgba(248, 247, 244, .42); }
.dw-fields input:focus { border-color: var(--white); }
/* a browser's autofill must not repaint the field */
.dw-fields input:-webkit-autofill { -webkit-text-fill-color: var(--white); transition: background-color 99999s ease-out, border-color .3s; }
.dw-fields .full { grid-column: 1 / -1; }
.dw-stage { display: block; margin: 30px 0 13px; color: rgba(248, 247, 244, .6); }
.dw-chips { display: flex; flex-wrap: wrap; gap: 7px; }
.dw-chips input { position: absolute; opacity: 0; pointer-events: none; }
.dw-chips label { padding: 8px 15px; border: 1px solid rgba(248, 247, 244, .26); border-radius: 999px; font-size: 13px; line-height: 1.5; color: rgba(248, 247, 244, .86); cursor: pointer; transition: background .25s, color .25s, border-color .25s; }
.dw-chips label:hover { border-color: var(--white); }
.dw-chips input:checked + label { background: var(--white); color: var(--oxblood); border-color: var(--white); }
.dw-chips input:focus-visible + label { outline: 1px solid var(--white); outline-offset: 3px; }
.dw-submit { position: relative; isolation: isolate; overflow: hidden; width: 100%; height: 58px; margin-top: 30px; border-radius: 999px; background: var(--white); color: var(--ink); font-size: 10.5px; font-weight: 500; letter-spacing: .22em; text-transform: uppercase; text-align: center; transition: color .5s var(--ease); }
.dw-submit::before { content: ""; position: absolute; inset: 0; z-index: -1; background: var(--ink); transform: translateY(102%); transition: transform .6s var(--ease-out); }
@media (hover: hover) {
  .dw-submit:hover { color: var(--white); }
  .dw-submit:hover::before { transform: none; }
}
.dw-fine { font-size: 12px; line-height: 1.6; color: rgba(248, 247, 244, .52); margin-top: 14px; text-align: center; }
.dw-thanks { display: none; justify-items: center; gap: 18px; padding: 8px 0 20px; text-align: center; }
.dw-thanks .lbl { color: rgba(248, 247, 244, .6); }
.dw-thanks p { font-size: 28px; line-height: 1.14; max-width: 14em; text-wrap: balance; }
html[lang="zh"] .dw-thanks p { font-size: 21px; line-height: 1.6; }
.drawer.done form { display: none; }
.drawer.done .dw-thanks { display: grid; }
/* a short laptop screen: everything a little closer, so the whole form is there without scrolling */
@media (max-height: 800px) and (min-width: 901px) {
  .drawer-top { padding: 18px 44px; }
  .drawer-body { padding: 0 44px 22px; }
  .drawer .inv { width: 300px; align-self: center; margin-bottom: 20px; }
  .dw-lead { margin-bottom: 8px; }
  .dw-fields input { padding: 11px 0 7px; font-size: 20px; }
  .dw-stage { margin: 22px 0 11px; }
  .dw-submit { height: 52px; margin-top: 22px; }
  .dw-fine { margin-top: 10px; }
}
/* the form arrives in order: the card is set down first, then each line of the form after it */
@media (prefers-reduced-motion: no-preference) {
  .drawer .inv-card { opacity: 0; transform: translate3d(0, 30px, 0) rotate(-2.4deg); transition: opacity .3s var(--ease), transform .3s var(--ease); }
  .drawer form > *, .dw-thanks > * { opacity: 0; transform: translate3d(0, 14px, 0); transition: opacity .3s var(--ease), transform .3s var(--ease); }
  html.drawer-open .drawer .inv-card { opacity: 1; transform: none; transition: opacity 1s var(--ease) .28s, transform 1.4s var(--ease-out) .28s; }
  html.drawer-open .drawer form > *, html.drawer-open .dw-thanks > * { opacity: 1; transform: none; transition: opacity 1s var(--ease) calc(.5s + var(--n, 0) * 70ms), transform 1.2s var(--ease-out) calc(.5s + var(--n, 0) * 70ms); }
  .drawer form > :nth-child(2), .dw-thanks > :nth-child(2) { --n: 1; }
  .drawer form > :nth-child(3) { --n: 2; }
  .drawer form > :nth-child(4) { --n: 3; }
  .drawer form > :nth-child(5) { --n: 4; }
  .drawer form > :nth-child(6) { --n: 5; }
}

/* ---------- footer ---------- */
.ft { position: relative; z-index: 1; background: var(--ink); padding: 30px var(--pad); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 20px 30px; }
.ft .wordmark { width: 96px; }
.ft-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px clamp(18px, 2.4vw, 36px); }
.ft-nav a, .ft-nav button { opacity: .72; transition: opacity .3s; }
.ft-nav a:hover, .ft-nav button:hover { opacity: 1; }
.ft-nav .mail { letter-spacing: .08em; text-transform: none; font-size: 12px; font-weight: 400; }
.ft-c { justify-self: end; color: var(--mute); }

@media (max-width: 900px) {
  .hd { padding: 18px var(--pad); }
  .hd-l > a, .hd-r > .lang { display: none; }
  .hd-menu { display: inline-block; }
  .hd-mark .wordmark { width: 96px; }
  .btn { height: 52px; }
  .closing { min-height: 92vh; }
  .closing.is-wait { padding: 15vh var(--pad) 13vh; }
  .inv-card { padding: calc(var(--u) * 5.8) calc(var(--u) * 5.8) calc(var(--u) * 5.4); border-radius: calc(var(--u) * 1); }
  .dw-fields input { font-size: 20px; }
  .dw-thanks p { font-size: 24px; }
  .ro { gap: 28px; }
  .ro-tiles { grid-template-columns: 1fr; }
  .ro-tile { grid-template-columns: minmax(0, 1fr) auto; justify-items: start; align-items: center; text-align: left; gap: 2px 16px; padding: 16px 0; border-top: 1px solid var(--line); }
  .ro-tile + .ro-tile { border-left: 0; }
  .ro-tile:last-child { border-bottom: 1px solid var(--line); }
  .ro-val { grid-column: 2; grid-row: 1 / span 2; font-size: 40px; }
  .ro-spark { height: 34px; margin-top: 4px; }
  .ro-rail { margin: 0 24px; }
  .ro-phases span { font-size: 9px; letter-spacing: .14em; opacity: 0; }
  .drawer-top { padding: 20px 24px; }
  .drawer-body { padding: 2vh 24px 34px; }
  .ft { grid-template-columns: 1fr; justify-items: center; text-align: center; padding: 40px var(--pad) 30px; gap: 26px; }
  .ft-c { justify-self: center; }
}

@media (prefers-reduced-motion: reduce) {
  body::after { animation: none; }
  html.js .rv, html.js .cur > .cur-in, html.js .cur img, html.js [data-split] .wi { transition-duration: .01s; transition-delay: 0s; }
}
