/* Gilded printed card · Luxe (core/hero/016). The printed card the Luxe doors open onto, full screen on every screen.
   The card lies on satin: on a phone or a tablet held upright it steps back with the doors and comes forward again (the
   same camera as the opening, from the same tap), then the gold is laid on as it returns: the corners, the ornaments,
   the "and", its swashes, the heart. Black type is printed from the start. Pairs only with core/opening/032. */
.he016 {
  --he016-w: min(100vw, 72svh);
  --he016-k: clamp(.9, min(tan(atan2(var(--he016-w), 390px)), tan(atan2(100svh, 800px))), 1.6);
  --he016-g: 1.25; --he016-n: 1.06;
  --he016-e: cubic-bezier(.45, 0, .25, 1);
  position: relative; isolation: isolate; overflow: hidden; min-height: 100vh; min-height: 100svh;
  color: var(--k-ink, #2F2A22); text-align: center;
  font-family:var(--k-font-display, "Cormorant Garamond", Georgia, serif); font-variant-numeric: lining-nums;
  -webkit-font-smoothing: antialiased; text-rendering: geometricPrecision; background: #FBF8F1;
}
.he016 p { margin: 0; font-weight: inherit; }
.he016 svg { display: block; max-width: none; }
.he016 .he016-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
/* the card: the cover's paper stack (the doors fade onto it) */
.he016 .he016__card { position: relative; isolation: isolate; overflow: hidden; overflow: clip; z-index: 1;
  min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 22svh var(--k-gutter, 20px) calc(var(--he016-k) * 150px);
  background-color: #FBF8F1; background-image:
    linear-gradient(to bottom, rgb(248 244 236 / 0) calc(100% - 90px), rgb(248 244 236) 100%),
    linear-gradient(145deg, rgb(255 253 247 / .30) 0%, rgb(255 253 247 / 0) 42%, rgb(120 92 48 / 0) 60%, rgb(120 92 48 / .06) 100%),
    radial-gradient(120% 90% at 50% 42%, rgb(255 253 247 / .6) 0%, rgb(255 253 247 / 0) 62%),
    radial-gradient(160% 130% at 50% 50%, rgb(140 108 58 / 0) 55%, rgb(140 108 58 / .14) 100%),
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .45 0 0 0 0 .36 0 0 0 0 .22 0 0 0 .09 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>"); }
.he016 .he016__lift { position: absolute; z-index: 0; inset: 0; opacity: 0; pointer-events: none;
  box-shadow: 0 40px 70px -18px rgb(74 55 25 / .42), 0 12px 24px rgb(74 55 25 / .16); }
@media (min-aspect-ratio: 18/25) {
  .he016 .he016__card { padding: 12svh var(--k-gutter, 20px) calc(var(--he016-k) * 120px); }
}
/* tablets held upright: a touch more type; computers: their own rhythm */
@media (min-width: 700px) and (max-aspect-ratio: 999/1000) {
  .he016 { --he016-k: clamp(.9, min(tan(atan2(var(--he016-w), 390px)), tan(atan2(100svh, 800px))) * 1.12, 1.6); }
}
@media (min-aspect-ratio: 1/1) and (min-width: 1000px) and (hover: hover) and (pointer: fine) {
  .he016 { --he016-g: 1.40; --he016-n: 1.10; }
  /* laptops: the words grow with the screen's height, so the card stays one screen tall */
  .he016 .he016__card { padding-top: 7svh; padding-bottom: 7svh; }
  .he016 .he016__col { --he016-k: min(clamp(.9, min(tan(atan2(var(--he016-w), 390px)), tan(atan2(100svh, 800px))), 1.6) * 1.55, tan(atan2(100svh, 545px))); --he016-g: 1.17; }
  .he016 .he016__btn { min-height: calc(var(--he016-k) * 38px); padding: 0 calc(var(--he016-k) * 24px); font-size: calc(var(--he016-k) * 11.5px); }
}

/* the border: a foil outer line (a gradient masked to a ring), a gold inner line and four corner flourishes */
.he016 .he016__frame { position: absolute; z-index: 0; inset: calc(var(--he016-k) * 12px); border-radius: calc(var(--he016-k) * 10px); padding: 1.4px; pointer-events: none;
  background: linear-gradient(to bottom right, #7E6233 0%, #B08E52 22%, #E4CF9C 38%, #A3834A 52%, #C6A866 72%, #806437 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); }
.he016 .he016__inner { position: absolute; z-index: 0; inset: calc(var(--he016-k) * 17.5px); border: .7px solid var(--k-line, #B89A62); border-radius: calc(var(--he016-k) * 6px); pointer-events: none; }
.he016 .he016__corner { position: absolute; z-index: 0; width: calc(var(--he016-k) * 56px); height: calc(var(--he016-k) * 56px); overflow: visible; transform-origin: 0 0; color: var(--k-line, #B89A62); pointer-events: none; }
.he016 .he016__corner--tl { left: calc(var(--he016-k) * 17.5px); top: calc(var(--he016-k) * 17.5px); }
.he016 .he016__corner--tr { left: calc(100% - var(--he016-k) * 17.5px); top: calc(var(--he016-k) * 17.5px); transform: rotate(90deg); }
.he016 .he016__corner--br { left: calc(100% - var(--he016-k) * 17.5px); top: calc(100% - var(--he016-k) * 17.5px); transform: rotate(180deg); }
.he016 .he016__corner--bl { left: calc(var(--he016-k) * 17.5px); top: calc(100% - var(--he016-k) * 17.5px); transform: rotate(270deg); }

/* the corner sprays, anchored to the card's corners; they drift up a little as the card scrolls away (section.js) */
.he016 .he016__art { position: absolute; z-index: 0; display: block; pointer-events: none; background-position: center; background-size: 100% 100%; background-repeat: no-repeat; }
.he016 .he016__tl { left: -4%; top: -2.5%; width: calc(var(--he016-k) * 180px); background-image: var(--he016-art-spray-tl); aspect-ratio: var(--he016-ar-spray-tl); translate: 0 var(--he016-dtl, 0px); }
.he016 .he016__br { --he016-brw: calc(var(--he016-k) * 212px); right: -5%; bottom: -3%; width: var(--he016-brw); transform: rotate(-12deg); transform-origin: 100% 100%; background-image: var(--he016-art-spray-br); aspect-ratio: var(--he016-ar-spray-br); translate: 0 var(--he016-dbr, 0px);
  filter: drop-shadow(0 8px 12px rgb(66 46 18 / .2)); -webkit-mask-image: linear-gradient(to bottom, #000 82%, transparent); mask-image: linear-gradient(to bottom, #000 82%, transparent); }
@media (min-aspect-ratio: 18/25) {
  .he016 .he016__tl { left: -3%; top: -2%; width: calc(var(--he016-k) * 180px * 1.4); }
  .he016 .he016__br { --he016-brw: calc(var(--he016-k) * 190px * 1.4); right: -3%; bottom: -2%; transform: rotate(-7deg); }
}

/* after the opening the bottom-right spray spills below the card's foot (where clip exists; older browsers keep it inside) */
@supports (overflow: clip) {
  html.kjy-opened .he016, html:not(.kjy-opening) .he016, html.kjy-opened .he016 .he016__card, html:not(.kjy-opening) .he016 .he016__card { overflow: clip visible; }
  html.kjy-opened .he016, html:not(.kjy-opening) .he016 { z-index: 2; }
  html.kjy-opened .he016 .he016__br, html:not(.kjy-opening) .he016 .he016__br { margin-bottom: calc(var(--he016-brw) / var(--he016-ar-spray-br) * -.18); }
  /* the card is clipped while it steps back, so the spray sits inside it then; when the opening ends it settles down over
     the edge instead of jumping there (38 px on a phone) */
  html.kjy-opened:not(.motion-reduce) .he016 .he016__br { transition: margin-bottom 600ms var(--k-print-ease); }
}

/* the column of words */
.he016 .he016__col { position: relative; z-index: 1; width: min(84%, calc(var(--he016-k) * 330px)); display: flex; flex-direction: column; align-items: center; }
.he016 .he016__bless { margin-bottom: calc(var(--he016-k) * 10px * var(--he016-g)); font-size: calc(var(--he016-k) * 24px); line-height: 1.35; color: var(--k-gold-ink, #84632A); }
.he016 .he016__bless[lang="ar"], .he016 .he016__bless[lang="ur"], .he016 .he016__bless[lang="fa"] { font-family: "Geeza Pro", "Noto Naskh Arabic", "Amiri", serif; }
.he016 .he016__kick, .he016 .he016__inv { padding-left: .22em; font-weight: 600; font-size: calc(var(--he016-k) * 10.5px); letter-spacing: .22em; line-height: 1.7; text-transform: uppercase; color: var(--k-ink-soft, #5A4A33);
  text-shadow: 0 1px 0 rgb(255 255 255 / .7), 0 -.5px 0 rgb(90 70 40 / .18); }
.he016 .he016__inv { margin-top: calc(var(--he016-k) * 6px * var(--he016-g)); }
.he016 .he016__div { width: calc(var(--he016-k) * 96px); height: calc(var(--he016-k) * 10px); margin: calc(var(--he016-k) * 11px * var(--he016-g)) 0; color: #B89A62; }
.he016 .he016-names { display: flex; flex-direction: column; align-items: center; margin: calc(var(--he016-k) * 3px * var(--he016-g)) 0;
  font-weight: 500; font-size: calc(var(--he016-k) * min(44px, 300px / (var(--he016-len, 6) * .82)) * var(--he016-n)); letter-spacing: .12em; line-height: 1.05; text-transform: uppercase; color: var(--k-ink, #2F2A22); }
.he016 .he016__nm { display: block; padding-left: .12em; }
.he016 .he016__and { display: flex; align-items: center; gap: calc(var(--he016-k) * 8px); margin: calc(var(--he016-k) * -1px) 0;
  font-family:var(--k-font-script, "Great Vibes", cursive); font-weight: 400; font-size: calc(var(--he016-k) * 36px); line-height: 1.05; letter-spacing: 0; text-transform: none; color: var(--k-gold-ink, #84632A); }
/* "and": a blind impression under the gold, so the card is never empty while the gold is laid on */
.he016 .he016__t { position: relative; padding: 0 .12em; }
.he016 .he016__t::before { content: "and"; position: absolute; inset: 0; padding: 0 .12em; color: transparent;
  text-shadow: 0 1px 0 rgb(255 255 255 / .9), 0 -1px 0 rgb(110 84 44 / .22); }
.he016 .he016__g { position: relative; display: inline-block; font-style: normal; padding: .2em .3em .3em; margin: -.2em -.3em -.3em; }
.he016 .he016__sw { width: calc(var(--he016-k) * 60px); height: calc(var(--he016-k) * 10px); color: #B89A62; }
.he016 .he016__sw--r { transform: scaleX(-1); }
.he016 .he016__dblock { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; width: 100%; margin-top: calc(var(--he016-k) * 2px * var(--he016-g)); }
.he016 .he016__side { padding: calc(var(--he016-k) * 7px) 0; border-top: 1px solid #B89A62; border-bottom: 1px solid #B89A62;
  font-weight: 600; font-size: calc(var(--he016-k) * 10px); letter-spacing: .18em; text-transform: uppercase; color: var(--k-ink-soft, #5A4A33); }
.he016 .he016__mid { display: flex; flex-direction: column; align-items: center; padding: calc(var(--he016-k) * 2px) calc(var(--he016-k) * 16px); border-left: 1px solid #B89A62; border-right: 1px solid #B89A62; }
.he016 .he016__mo, .he016 .he016__yr { padding-left: .2em; font-weight: 600; font-size: calc(var(--he016-k) * 10px); letter-spacing: .2em; text-transform: uppercase; color: var(--k-ink-soft, #5A4A33); }
.he016 .he016__day { font-weight: 600; font-size: calc(var(--he016-k) * 42px); line-height: 1.02; color: var(--k-ink, #2F2A22); }
.he016 .he016__heart { width: calc(var(--he016-k) * 13px); height: calc(var(--he016-k) * 12px); margin-top: calc(var(--he016-k) * 13px * var(--he016-g)); color: var(--k-gold-ink, #84632A); }
.he016 .he016__cta { margin-top: calc(var(--he016-k) * 14px * var(--he016-g)); }

/* the camera, phones and tablets held upright: the card steps back onto satin with the doors and comes forward again;
   held to the screen's height while it is stepped back, so a long card twins the gate */
@media (max-aspect-ratio: 999/1000) {
  .he016 { background: #E9DDC8 url("/skins/gilded_arch_luxe/assets/art/satin.webp") center / cover no-repeat; }
  html.kjy-opening:not(.kjy-opened) .he016 .he016__card { max-height: 100svh; }
  html.kjy-opening:not(.kjy-instant):not(.motion-reduce) .he016 .he016__card { animation: k-ga-cam 3000ms linear both; }
  html.kjy-opening:not(.kjy-instant):not(.motion-reduce) .he016 .he016__lift { animation: k-ga-cam 3000ms linear both, he016-lift 3000ms linear both; }
}
@keyframes he016-lift { 0%, 11.333% { opacity: 0; } 34.667%, 76.667% { opacity: 1; } 100% { opacity: 0; } }

/* the gold is laid on as the card returns (from the opening's reveal time) */
html.kjy-enter:not(.kjy-instant):not(.motion-reduce) .he016 .he016__corner { animation: he016-corner 900ms var(--he016-e) var(--kjy-reveal-at, 2350ms) both; }
html.kjy-enter:not(.kjy-instant):not(.motion-reduce) .he016 .he016__div { animation: he016-draw 700ms var(--he016-e) calc(var(--kjy-reveal-at, 2350ms) + var(--he016-i, 1) * 100ms) both; }
html.kjy-enter:not(.kjy-instant):not(.motion-reduce) .he016 .he016__g { animation: he016-gild 1200ms var(--he016-e) calc(var(--kjy-reveal-at, 2350ms) + 150ms) both; }
html.kjy-enter:not(.kjy-instant):not(.motion-reduce) .he016 .he016__sw { animation: he016-swash 800ms var(--he016-e) calc(var(--kjy-reveal-at, 2350ms) + 350ms) both; }
html.kjy-enter:not(.kjy-instant):not(.motion-reduce) .he016 .he016__heart { animation: he016-settle 400ms cubic-bezier(.2, .7, .1, 1) calc(var(--kjy-reveal-at, 2350ms) + 650ms) both; }
html.kjy-enter:not(.kjy-instant):not(.motion-reduce) .he016 .he016__cta { animation: he016-settle 500ms cubic-bezier(.2, .7, .1, 1) calc(var(--kjy-reveal-at, 2350ms) + 750ms) both; }
@keyframes he016-corner { from { opacity: 0; scale: .4; } }
@keyframes he016-draw { from { scale: 0 1; } }
@keyframes he016-gild { from { -webkit-mask-position: 100% 0; mask-position: 100% 0; } to { -webkit-mask-position: 0 0; mask-position: 0 0; } }
@keyframes he016-swash { from { clip-path: inset(0 0 0 100%); } to { clip-path: inset(0 0 0 0); } }
@keyframes he016-settle { from { opacity: 0; translate: 0 -4px; } }
.he016 .he016__flakes { display: none; position: absolute; left: 0; right: 0; top: 70%; height: 0; pointer-events: none; z-index: 0; filter: drop-shadow(0 .5px .5px rgb(66 46 18 / .25)); }
.he016 .he016__nm { position: relative; z-index: 1; }
.he016 .he016__flakes > i { position: absolute; top: 0; display: block; width: calc(var(--he016-k) * var(--he016-fw, 7px)); aspect-ratio: 1.5; background: #C9A867; clip-path: polygon(8% 12%, 96% 0, 88% 86%, 0 100%); }
.he016 .he016__flakes > i:nth-child(1) { left: 16%; --he016-fw: 7px; --he016-fx1: -4px; --he016-fx2: 3px; --he016-fx3: -2px; --he016-fy: 10px; --he016-fr: 160deg; --he016-fd: 140ms; }
.he016 .he016__flakes > i:nth-child(2) { left: 33%; --he016-fw: 5px; --he016-fx1: 5px; --he016-fx2: -3px; --he016-fx3: 6px; --he016-fy: 8px; --he016-fr: -220deg; --he016-fd: 300ms; background: #B08E52; clip-path: polygon(0 20%, 78% 0, 100% 70%, 22% 100%); }
.he016 .he016__flakes > i:nth-child(3) { left: 50%; --he016-fw: 9px; --he016-fx1: -6px; --he016-fx2: 2px; --he016-fx3: -5px; --he016-fy: 12px; --he016-fr: 120deg; --he016-fd: 470ms; background: #DCC58F; clip-path: polygon(14% 0, 100% 28%, 84% 100%, 0 72%); }
.he016 .he016__flakes > i:nth-child(4) { left: 67%; --he016-fw: 6px; --he016-fx1: 3px; --he016-fx2: -6px; --he016-fx3: 2px; --he016-fy: 9px; --he016-fr: -140deg; --he016-fd: 640ms; background: #A3834A; clip-path: polygon(0 0, 100% 18%, 70% 100%, 10% 80%); }
.he016 .he016__flakes > i:nth-child(5) { left: 82%; --he016-fw: 5px; --he016-fx1: -3px; --he016-fx2: 5px; --he016-fx3: -6px; --he016-fy: 11px; --he016-fr: 250deg; --he016-fd: 800ms; }
html.kjy-enter:not(.kjy-instant):not(.motion-reduce):not(.kjy-lite) .he016 .he016__flakes { display: block; }
html.kjy-enter:not(.kjy-instant):not(.motion-reduce):not(.kjy-lite) .he016 .he016__flakes > i { animation: he016-flake 1600ms cubic-bezier(.25, .6, .3, 1) calc(var(--kjy-reveal-at, 2350ms) + 350ms + var(--he016-fd)) both; }
@keyframes he016-flake {
  0% { opacity: 0; translate: 0 0; rotate: 0deg; scale: 1 1; }
  10% { opacity: 1; }
  35% { translate: var(--he016-fx1) calc(var(--he016-fy) * .35 * var(--he016-k)); rotate: calc(var(--he016-fr) * .4); scale: 1 .4; }
  60% { translate: var(--he016-fx2) calc(var(--he016-fy) * .7 * var(--he016-k)); scale: 1 .9; }
  85% { opacity: .9; scale: 1 .5; }
  100% { opacity: 0; translate: var(--he016-fx3) calc(var(--he016-fy) * var(--he016-k)); rotate: var(--he016-fr); scale: 1 1; } }
html.kjy-enter:not(.kjy-instant):not(.motion-reduce) .he016 .he016__g {
  -webkit-mask-image: linear-gradient(100deg, #000 42%, transparent 58%); mask-image: linear-gradient(100deg, #000 42%, transparent 58%);
  -webkit-mask-size: 280% 100%; mask-size: 280% 100%; -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat; }
html.motion-reduce .he016 *, html.motion-reduce .he016 *::before, html.motion-reduce .he016 *::after { animation: none !important; }

/* the art (the cover's, by absolute URL) */
.he016 {
  --he016-art-spray-tl: image-set(url("/skins/gilded_arch/assets/art/spray-tl-480.webp") 1x, url("/skins/gilded_arch/assets/art/spray-tl-640.webp") 2x);
  --he016-art-spray-br: image-set(url("/skins/gilded_arch/assets/art/spray-br-480.webp") 1x, url("/skins/gilded_arch/assets/art/spray-br-640.webp") 2x);
  --he016-ar-spray-tl: 0.9816;
  --he016-ar-spray-br: 1.0063;
}
/* the same sprays as AVIF where the browser reads image-set types (the skin's Luxe block swaps the cover's the same way) */
@supports (background-image: image-set(url("a.avif") type("image/avif") 1x)) { .he016 {
  --he016-art-spray-tl: image-set(url("/skins/gilded_arch_luxe/assets/art/spray-tl-480.avif") type("image/avif") 1x, url("/skins/gilded_arch_luxe/assets/art/spray-tl-640.avif") type("image/avif") 2x);
  --he016-art-spray-br: image-set(url("/skins/gilded_arch_luxe/assets/art/spray-br-480.avif") type("image/avif") 1x, url("/skins/gilded_arch_luxe/assets/art/spray-br-640.avif") type("image/avif") 2x); }
}
