/* Moonveil Memories. Concept: every page is an hour of one wedding day. The light of the page follows the scroll, and a small clock keeps the time of the day. Single look by choice. */
:root{
  --bg:#F6F1EB;
  --fg:#24201D;
  --soft:#7C726A;
  --line:rgba(36,32,29,.16);
  --paper:#F6F1EB;
  --ink:#24201D;
  --golden:#E8D8C2;
  --dusk:#3A2A24;
  --night:#141112;
  --vino:#5A2219;
  --gold:#C2603F;
  --flag:#B4572B;
  --serif:"Instrument Serif","Didot","Bodoni 72",Georgia,serif;
  --didot:"Instrument Serif","Didot",Georgia,serif;
  --grot:"Archivo","Helvetica Neue",Arial,sans-serif;
  --ease:cubic-bezier(.2,.7,.2,1);
  color-scheme:light;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth;background:var(--bg);transition:background-color .5s var(--ease)}
body{margin:0;background:var(--bg);color:var(--fg);font-family:var(--grot);font-weight:300;font-size:15px;line-height:1.6;-webkit-font-smoothing:antialiased;overflow-x:hidden;transition:background-color 1.6s var(--ease),color 1.2s var(--ease),opacity .5s var(--ease)}
body.leaving{opacity:0}
img{display:block;width:100%;height:100%;max-width:100%;object-fit:cover}
a{color:inherit;text-decoration:none}
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:1px solid currentColor;outline-offset:4px}
.g{padding-left:max(28px,env(safe-area-inset-left,0px));padding-right:max(28px,env(safe-area-inset-right,0px))}
.lab{font-family:var(--serif);font-weight:400;font-size:13px;letter-spacing:.07em;text-transform:uppercase;line-height:1.4}
.soft{color:var(--soft);transition:color 1.2s var(--ease)}
.serif{font-family:var(--serif);font-weight:400}
i{font-style:italic}
.note{font-family:var(--grot);font-size:10px;letter-spacing:.03em;color:var(--flag);border:1px dashed var(--flag);padding:3px 7px;background:rgba(246,241,235,.94);display:inline-block;line-height:1.4;max-width:300px;text-transform:none;font-style:normal}
body.nonotes .note{display:none}
.say{font-family:var(--serif);font-size:clamp(24px,2.5vw,38px);line-height:1.16;max-width:24ch;margin:0;text-wrap:balance}
.uline{border-bottom:1px solid currentColor;padding-bottom:3px;align-self:flex-start}

/* header: centred logo, split menu; it reads on any light because it inverts */
.head{position:fixed;inset:0 0 auto;z-index:30;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;padding-top:calc(env(safe-area-inset-top,0px) + 26px);color:var(--hfg,var(--fg));transition:color .9s var(--ease),transform .6s var(--ease);pointer-events:none}
.head.hid{transform:translateY(-130%)}
.head > *{pointer-events:auto}
.head nav{display:flex;gap:28px;align-items:center}
.head nav.r{justify-content:flex-end}
.head nav a{position:relative}
.head nav a[aria-current="page"]::after{content:"";position:absolute;left:0;right:0;bottom:-4px;height:1px;background:currentColor}
.logo{font-family:"Bodoni Moda","Didot",Georgia,serif;letter-spacing:-.03em;white-space:nowrap;font-weight:400;text-transform:none;font-size:28px}
.lang span{opacity:.5;cursor:pointer}.lang span.on{opacity:1}
.mbtn{display:none;background:none;border:0;color:inherit;font:inherit;letter-spacing:inherit;text-transform:inherit;cursor:pointer;padding:0}

/* the clock of the day */
.clock{position:fixed;right:max(28px,env(safe-area-inset-right,0px));bottom:calc(22px + env(safe-area-inset-bottom,0px));z-index:30;color:var(--hfg,var(--fg));transition:color .9s var(--ease);font-family:var(--serif);font-style:italic;font-size:19px;letter-spacing:.02em;font-variant-numeric:tabular-nums;pointer-events:none;display:flex;align-items:baseline;gap:10px}
.clock small{font-style:normal;font-size:11px;letter-spacing:.08em;text-transform:uppercase;opacity:.7}

/* chapter titles, shared by every page */
.ctitle{display:grid;grid-template-columns:repeat(12,1fr);gap:18px;align-items:end;margin-bottom:9vh}
.ctitle .num{grid-column:1/3;font-family:var(--didot);font-size:clamp(64px,8vw,132px);line-height:.8;font-style:italic}
.ctitle h2{grid-column:3/9;margin:0;font-family:var(--serif);font-weight:400;font-size:clamp(46px,6.4vw,108px);line-height:.88;letter-spacing:-.01em}
.ctitle .time{grid-column:10/13;justify-self:end;text-align:right}

/* page opener for inner pages: a title card */
.ptitle{padding-top:calc(env(safe-area-inset-top,0px) + 24vh);padding-bottom:10vh;display:grid;grid-template-columns:repeat(12,1fr);gap:18px;align-items:end}
.ptitle h1{grid-column:1/10;margin:0;font-family:var(--serif);font-weight:400;font-size:clamp(72px,13vw,220px);line-height:.82;letter-spacing:-.02em}
.ptitle .side{grid-column:10/13;display:flex;flex-direction:column;gap:14px;padding-bottom:1.4vw}
.ptitle .side p{margin:0;font-family:var(--serif);font-size:clamp(18px,1.5vw,22px);line-height:1.35}

/* figures: they open like a curtain rising, never blur */
.fig{overflow:hidden;position:relative}
.fig img{transition:transform 2.4s var(--ease)}
.rv{transition:opacity 1.3s var(--ease),transform 1.5s var(--ease),clip-path 1.5s var(--ease)}
.rv.wait{opacity:0;transform:translateY(56px);clip-path:inset(0 0 22% 0)}
.fig.rv img{transition:transform 2.2s var(--ease)}
.fig.rv.wait img{transform:scale(1.1)}
.fig:hover img{transform:scale(1.025)}
[data-drift]{will-change:transform}

/* film cards */
.fc{display:block;cursor:none}
.fc .th{aspect-ratio:16/9;overflow:hidden;background:#000;position:relative}
.fc .th img{transition:transform 1.4s var(--ease)}
.fc:hover .th img{transform:scale(1.03)}
.fc .t{font-family:var(--serif);font-size:23px;margin-top:12px;line-height:1.1}
.fc .n{margin-top:4px}
.cursor{position:fixed;left:0;top:0;z-index:35;pointer-events:none;margin:-14px 0 0 -18px;color:#fff;mix-blend-mode:difference;font-family:var(--serif);font-style:italic;font-size:18px;opacity:0;transition:opacity .3s}
.cursor.on{opacity:1}
.more{display:flex;justify-content:center;margin-top:4vh}
.more a{font-family:var(--serif);font-size:28px;border-bottom:1px solid currentColor;line-height:1.1}

/* closing call, shared */
.close{padding-block:18vh;text-align:center;display:flex;flex-direction:column;align-items:center;gap:22px}
.close .call{font-family:var(--serif);font-style:italic;font-size:clamp(22px,2.2vw,32px);margin:0;max-width:30ch;text-wrap:balance}
.close a.go{font-family:var(--serif);font-size:clamp(48px,7vw,112px);line-height:.9;transition:color .5s}
.close a.go:hover{opacity:.7}

footer{border-top:1px solid var(--line);padding-block:64px calc(48px + env(safe-area-inset-bottom,0px));display:grid;grid-template-columns:repeat(12,1fr);gap:18px;align-items:end}
footer .logo{grid-column:1/9;font-size:clamp(40px,5.4vw,88px);line-height:.95}
footer .links{grid-column:10/13;display:flex;flex-direction:column;gap:6px}
footer .base{grid-column:1/13;display:flex;justify-content:space-between;flex-wrap:wrap;gap:12px;margin-top:40px}
.planners{opacity:.6}.planners:hover{opacity:1}

.menu{position:fixed;inset:0;z-index:50;background:#2A1512;color:#EFE8DF;opacity:0;pointer-events:none;transition:opacity .45s;display:flex;flex-direction:column;justify-content:center;gap:4px}
.menu.open{opacity:1;pointer-events:auto}
.menu a{font-family:var(--serif);font-size:50px;line-height:1.1}
.menu a:nth-of-type(even){font-style:italic}
.mclose{position:absolute;top:calc(env(safe-area-inset-top,0px) + 26px);right:max(28px,env(safe-area-inset-right,0px));background:none;border:0;color:inherit;cursor:pointer}
.notesbtn{position:fixed;left:max(16px,env(safe-area-inset-left,0px));bottom:calc(16px + env(safe-area-inset-bottom,0px));z-index:40;background:var(--flag);color:#fff;border:0;padding:6px 10px;cursor:pointer}

@media (max-width:820px){
  .head{grid-template-columns:1fr auto}
  .head nav.l,.head nav.r a,.head .lang{display:none}
  .logo{font-size:21px}
  .mbtn{display:block}
  .ctitle .num{grid-column:1/4}.ctitle h2{grid-column:4/13}.ctitle .time{grid-column:1/-1;justify-self:start;text-align:left}
  .ptitle h1,.ptitle .side{grid-column:1/-1}
  .fc{cursor:auto}.cursor{display:none}
  footer .logo,footer .links{grid-column:1/-1}
  .clock{font-size:16px}.clock small{display:none}
}
@media (prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}.rv.wait{opacity:0;transform:translateY(28px);clip-path:inset(0 0 12% 0)}}

[hidden]{display:none!important}

.th{position:relative}
.th .fbf{position:absolute;inset:0;opacity:0;transition:opacity .45s ease}
.th .fbf.on{opacity:1}
.th img.fbf:first-child{position:relative}
.th .fbv{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;opacity:0;transition:opacity .4s}
.th .fbv.on{opacity:1}
.vh{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
/* the quiet chain from one page to the next */
.nextp{padding-block:14vh 12vh}
.nextp a{display:flex;flex-direction:column;gap:16px;align-items:flex-end;text-align:right;padding-top:22px}
.nextp .nt{font-family:var(--serif);font-weight:400;font-size:clamp(46px,6.6vw,112px);line-height:.92;transition:transform .9s var(--ease),color .5s}
.nextp .nt::after{content:" →";font-size:.5em;vertical-align:.3em;opacity:.55}
.nextp a:hover .nt{transform:translateX(8px)}
.nextp a:hover .nt::after{opacity:1}

/* flow pages follow the scroll closely, the long transition would lag behind */
html.flow,html.flow body{transition:background-color .25s linear,color .9s var(--ease),opacity .5s var(--ease)}

/* one day across the site: every page opens at its own hour */
h1[data-hour]::before{content:attr(data-hour);display:block;font-family:var(--serif);font-style:italic;font-weight:400;font-size:clamp(16px,1.25vw,20px);line-height:1;letter-spacing:.02em;margin-bottom:2.2vh;opacity:.6;font-variant-numeric:tabular-nums}
/* one size for every page title */
.ptitle h1,.ftop h1,.ltitle h1,.jtop h1.big{font-size:clamp(72px,12vw,210px);line-height:.82;letter-spacing:-.02em}

/* motion: titles rise behind a curtain, the page glides */
.hr{transition:clip-path 1.5s var(--ease),transform 1.5s var(--ease),opacity 1.2s var(--ease)}
.hr.wait{clip-path:inset(0 0 100% 0);transform:translateY(24px);opacity:.001}
.hr.in{clip-path:inset(-20% -5% -30% -5%)}
html.lenis,html.lenis body{height:auto}.lenis.lenis-smooth{scroll-behavior:auto!important}
/* the reel */
.reel2{position:relative;height:260vh;background:#141112;color:#EFE8DF}
.reel2 .pin{position:sticky;top:0;height:100vh;display:flex;flex-direction:column;align-items:center;justify-content:center;overflow:hidden}
.reel2 .hd{text-align:center;display:flex;flex-direction:column;gap:12px;align-items:center;margin-bottom:5vh;will-change:opacity,transform}
.reel2 .hd h2{margin:0;font-family:var(--serif);font-weight:400;font-size:clamp(48px,7vw,128px);line-height:.88;letter-spacing:-.02em}
.reel2 .hd h2 i{font-style:italic}
.reel2 .vw{position:relative;width:34vw;aspect-ratio:16/9;overflow:hidden;will-change:width}
.reel2 .vw video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.reel2 .ft{display:flex;justify-content:space-between;gap:20px;width:34vw;margin-top:16px;will-change:width,opacity}
@media (max-width:820px){.reel2 .vw,.reel2 .ft{width:80vw}}
@media (prefers-reduced-motion:reduce){.hr.wait,.rv.wait{clip-path:none;transform:none;opacity:1}}

/* page transitions: the page settles in, and fades into the next one */

/* every letter and card in the site is the same cotton paper: grain, fibres, a hand torn edge */
.paperfx{background:none!important;box-shadow:none!important;isolation:isolate;position:relative;filter:drop-shadow(0 2px 3px rgba(0,0,0,.16)) drop-shadow(0 26px 46px rgba(0,0,0,.3))}
.paperfx::after{content:"";position:absolute;inset:0;z-index:-1;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .2 0 0 0 0 .16 0 0 0 0 .12 0 0 0 .11 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url%28%23n%29'/%3E%3C/svg%3E"),url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='600' height='600'%3E%3Cfilter id='f'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.012 .18' numOctaves='2' seed='4' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .35 0 0 0 0 .28 0 0 0 0 .2 0 0 0 .07 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url%28%23f%29'/%3E%3C/svg%3E"),linear-gradient(160deg,#FCF9F3,#F5EEE3);clip-path:polygon(0.00% 0.09%,1.25% 0.15%,2.50% 0.05%,3.75% 0.32%,5.00% 0.12%,6.25% 0.16%,7.50% 0.20%,8.75% 0.32%,10.00% 0.15%,11.25% 0.32%,12.50% 0.18%,13.75% 0.19%,15.00% 0.18%,16.25% 0.01%,17.50% 0.15%,18.75% 0.06%,20.00% 0.00%,21.25% 0.28%,22.50% 0.06%,23.75% 0.17%,25.00% 0.25%,26.25% 0.19%,27.50% 0.11%,28.75% 0.18%,30.00% 0.19%,31.25% 0.27%,32.50% 0.04%,33.75% 0.20%,35.00% 0.09%,36.25% 0.10%,37.50% 0.27%,38.75% 0.18%,40.00% 0.20%,41.25% 0.27%,42.50% 0.32%,43.75% 0.16%,45.00% 0.21%,46.25% 0.18%,47.50% 0.18%,48.75% 0.24%,50.00% 0.16%,51.25% 0.19%,52.50% 0.17%,53.75% 0.33%,55.00% 0.24%,56.25% 0.31%,57.50% 0.33%,58.75% 0.09%,60.00% 0.20%,61.25% 0.33%,62.50% 0.29%,63.75% 0.05%,65.00% 0.04%,66.25% 0.15%,67.50% 0.03%,68.75% 0.08%,70.00% 0.03%,71.25% 0.23%,72.50% 0.27%,73.75% 0.31%,75.00% 0.05%,76.25% 0.25%,77.50% 0.23%,78.75% 0.05%,80.00% 0.31%,81.25% 0.34%,82.50% 0.08%,83.75% 0.33%,85.00% 0.14%,86.25% 0.17%,87.50% 0.35%,88.75% 0.29%,90.00% 0.06%,91.25% 0.15%,92.50% 0.18%,93.75% 0.12%,95.00% 0.07%,96.25% 0.11%,97.50% 0.25%,98.75% 0.01%,99.81% 0.00%,99.85% 1.25%,99.99% 2.50%,99.88% 3.75%,99.78% 5.00%,99.82% 6.25%,99.98% 7.50%,99.66% 8.75%,99.72% 10.00%,99.66% 11.25%,99.96% 12.50%,99.91% 13.75%,99.99% 15.00%,99.73% 16.25%,99.91% 17.50%,99.95% 18.75%,99.85% 20.00%,99.68% 21.25%,99.71% 22.50%,99.91% 23.75%,99.95% 25.00%,99.68% 26.25%,99.80% 27.50%,99.75% 28.75%,99.97% 30.00%,99.98% 31.25%,99.76% 32.50%,99.85% 33.75%,99.97% 35.00%,99.67% 36.25%,99.78% 37.50%,99.72% 38.75%,99.97% 40.00%,99.70% 41.25%,99.98% 42.50%,99.70% 43.75%,99.84% 45.00%,99.88% 46.25%,99.81% 47.50%,99.68% 48.75%,99.91% 50.00%,99.95% 51.25%,99.82% 52.50%,99.92% 53.75%,99.96% 55.00%,99.94% 56.25%,99.98% 57.50%,99.93% 58.75%,99.89% 60.00%,99.89% 61.25%,99.73% 62.50%,99.90% 63.75%,99.82% 65.00%,99.94% 66.25%,99.88% 67.50%,99.99% 68.75%,99.91% 70.00%,99.99% 71.25%,99.74% 72.50%,99.81% 73.75%,99.93% 75.00%,99.83% 76.25%,99.67% 77.50%,99.96% 78.75%,99.71% 80.00%,99.85% 81.25%,99.83% 82.50%,99.71% 83.75%,99.86% 85.00%,99.82% 86.25%,99.76% 87.50%,99.66% 88.75%,99.88% 90.00%,99.71% 91.25%,99.75% 92.50%,99.78% 93.75%,99.86% 95.00%,99.88% 96.25%,99.98% 97.50%,99.95% 98.75%,100.00% 99.98%,98.75% 99.74%,97.50% 99.91%,96.25% 99.94%,95.00% 99.97%,93.75% 99.71%,92.50% 99.70%,91.25% 99.77%,90.00% 99.90%,88.75% 99.92%,87.50% 99.90%,86.25% 99.84%,85.00% 99.94%,83.75% 99.84%,82.50% 99.91%,81.25% 99.66%,80.00% 99.66%,78.75% 99.81%,77.50% 99.91%,76.25% 99.66%,75.00% 99.89%,73.75% 99.88%,72.50% 100.00%,71.25% 99.87%,70.00% 99.83%,68.75% 99.82%,67.50% 99.93%,66.25% 99.82%,65.00% 100.00%,63.75% 99.91%,62.50% 99.97%,61.25% 99.86%,60.00% 99.99%,58.75% 99.99%,57.50% 99.89%,56.25% 99.92%,55.00% 99.80%,53.75% 99.81%,52.50% 99.74%,51.25% 99.77%,50.00% 99.75%,48.75% 99.69%,47.50% 99.86%,46.25% 99.89%,45.00% 99.66%,43.75% 99.95%,42.50% 99.75%,41.25% 99.77%,40.00% 99.98%,38.75% 99.71%,37.50% 99.69%,36.25% 99.78%,35.00% 99.74%,33.75% 99.72%,32.50% 99.95%,31.25% 99.82%,30.00% 99.82%,28.75% 99.71%,27.50% 99.72%,26.25% 99.71%,25.00% 99.80%,23.75% 99.69%,22.50% 99.76%,21.25% 99.76%,20.00% 99.92%,18.75% 99.99%,17.50% 99.95%,16.25% 99.87%,15.00% 99.96%,13.75% 99.71%,12.50% 99.80%,11.25% 99.78%,10.00% 99.78%,8.75% 99.76%,7.50% 99.83%,6.25% 100.00%,5.00% 99.72%,3.75% 99.74%,2.50% 99.82%,1.25% 99.81%,0.23% 100.00%,0.02% 98.75%,0.26% 97.50%,0.09% 96.25%,0.03% 95.00%,0.09% 93.75%,0.26% 92.50%,0.07% 91.25%,0.26% 90.00%,0.34% 88.75%,0.17% 87.50%,0.13% 86.25%,0.17% 85.00%,0.24% 83.75%,0.27% 82.50%,0.22% 81.25%,0.22% 80.00%,0.03% 78.75%,0.05% 77.50%,0.09% 76.25%,0.26% 75.00%,0.11% 73.75%,0.20% 72.50%,0.00% 71.25%,0.02% 70.00%,0.09% 68.75%,0.24% 67.50%,0.24% 66.25%,0.24% 65.00%,0.10% 63.75%,0.18% 62.50%,0.16% 61.25%,0.16% 60.00%,0.04% 58.75%,0.31% 57.50%,0.07% 56.25%,0.34% 55.00%,0.33% 53.75%,0.01% 52.50%,0.16% 51.25%,0.29% 50.00%,0.34% 48.75%,0.16% 47.50%,0.09% 46.25%,0.07% 45.00%,0.33% 43.75%,0.07% 42.50%,0.20% 41.25%,0.05% 40.00%,0.18% 38.75%,0.33% 37.50%,0.05% 36.25%,0.29% 35.00%,0.18% 33.75%,0.31% 32.50%,0.25% 31.25%,0.08% 30.00%,0.31% 28.75%,0.17% 27.50%,0.01% 26.25%,0.00% 25.00%,0.17% 23.75%,0.16% 22.50%,0.11% 21.25%,0.05% 20.00%,0.12% 18.75%,0.11% 17.50%,0.29% 16.25%,0.00% 15.00%,0.26% 13.75%,0.29% 12.50%,0.04% 11.25%,0.32% 10.00%,0.25% 8.75%,0.32% 7.50%,0.10% 6.25%,0.13% 5.00%,0.14% 3.75%,0.35% 2.50%,0.21% 1.25%)}
.paperfx > *{position:relative}

/* the curtain between pages: night falls over the page, the next hour appears, and the curtain lifts */
.curtain{position:fixed;inset:0;z-index:90;background:#141112;color:#EFE8DF;display:grid;place-items:center;transform:translateY(101%);visibility:hidden;pointer-events:none}
.curtain::after{content:"";position:absolute;inset:0;opacity:.55;mix-blend-mode:overlay;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='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url%28%23n%29' opacity='.6'/%3E%3C/svg%3E")}
.curtain.in{visibility:visible;transform:none;transition:transform .82s cubic-bezier(.77,0,.18,1)}
html.ct-cover .curtain{visibility:visible;transform:none;transition:none}
html.ct-lift .curtain{transform:translateY(-101%);transition:transform 1.15s cubic-bezier(.77,0,.18,1)}
html.ct-fade .curtain{opacity:0;transition:opacity .5s ease}
.ct-h{position:relative;z-index:1;font-family:var(--serif);font-style:italic;font-size:clamp(56px,8vw,140px);line-height:1;letter-spacing:.01em;font-variant-numeric:tabular-nums}
.ct-h span{display:inline-block;opacity:0;transform:translateY(45%);transition:opacity .55s ease,transform .8s cubic-bezier(.16,1,.3,1)}
.curtain.show .ct-h span{opacity:1;transform:none}
.curtain.hide .ct-h span{opacity:0;transform:translateY(-35%);transition-duration:.45s}
html.ct-cover body{overflow:hidden}
/* the first headline rises out of its line, word by word */
h1 .wd{display:inline-block;overflow:hidden;vertical-align:top;padding:0 .08em .1em 0;margin:0 -.08em -.1em 0}
h1 .wd > span{display:inline-block}
h1.wait-rise .wd > span{transform:translateY(108%);transition:transform 1.25s cubic-bezier(.16,1,.3,1)}
h1.wait-rise.risen .wd > span{transform:none}
/* the footer rises to meet you */
footer{--fp:1}
footer .logo{display:block;transform:translateY(calc((1 - var(--fp)) * 70px));letter-spacing:calc(-.03em + (1 - var(--fp)) * .09em);opacity:calc(.25 + var(--fp) * .75)}
footer .links{transform:translateY(calc((1 - var(--fp)) * 40px))}
footer .totop{display:inline-flex;gap:8px;align-items:baseline}
footer .totop i{font-family:var(--serif);font-style:italic;text-transform:none;letter-spacing:0;font-size:1.15em}
/* the menu on a phone: the words rise one after another */
.menu a{transform:translateY(40%);opacity:0;transition:transform .9s cubic-bezier(.16,1,.3,1),opacity .6s ease}
.menu.open a{transform:none;opacity:1}
.menu.open a:nth-of-type(2){transition-delay:.05s}.menu.open a:nth-of-type(3){transition-delay:.1s}.menu.open a:nth-of-type(4){transition-delay:.15s}.menu.open a:nth-of-type(5){transition-delay:.2s}.menu.open a:nth-of-type(6){transition-delay:.25s}.menu.open a:nth-of-type(7){transition-delay:.3s}
@media (prefers-reduced-motion:reduce){footer .logo,footer .links{transform:none;letter-spacing:-.03em;opacity:1}.menu a{transform:none;opacity:1}}

/* footer: the same menu as the header plus planners, a short film, credits and the legal links, with room for the clock */
footer{grid-template-columns:repeat(12,1fr);padding-block:72px calc(110px + env(safe-area-inset-bottom,0px))}
footer .logo{grid-column:1/7;grid-row:1}
footer .fv{grid-column:7/10;grid-row:1;align-self:end;aspect-ratio:16/9;overflow:hidden;width:100%;max-width:300px;justify-self:center}
footer .fv video{width:100%;height:100%;object-fit:cover;display:block}
footer .links{grid-column:10/13;grid-row:1}
footer .base{grid-column:1/13;margin-top:56px;padding-top:22px;border-top:1px solid var(--line);align-items:baseline}
footer .base .legal a{color:inherit}
@media (max-width:820px){footer .logo,footer .fv,footer .links{grid-column:1/-1;grid-row:auto}footer .fv{justify-self:start;max-width:none}footer .base{flex-direction:column;gap:10px}}

/* ===================== BLACK TIE =====================
   The same site in a quieter, more formal register: titles in uppercase Bodoni with air between the letters,
   labels in small spaced capitals, only bone and ink with granate as the one accent. The letters keep their warmth. */
html.bt{--paper:#F2EFE9;--ink:#161414}
html.bt body{background:var(--bg)}
html.bt .lab{font-family:var(--grot);font-size:10.5px;font-weight:400;letter-spacing:.22em}
html.bt .head .lab,html.bt .head nav a{font-family:var(--grot);font-size:10.5px;letter-spacing:.22em}
html.bt main h1:not(.lab){font-family:var(--serif)!important;font-weight:400!important;text-transform:uppercase;letter-spacing:.02em!important;font-size:clamp(40px,6vw,108px)!important;line-height:1!important}
html.bt main h1 i,html.bt main h2 i,html.bt .nt i{font-family:var(--serif)}
html.bt .mq h1{font-size:clamp(28px,2.8vw,50px)!important}
html.bt .loud h1{font-size:clamp(32px,5.8vw,108px)!important;letter-spacing:.01em!important}
html.bt main h2:not(.bl):not(.qq){font-family:var(--serif)!important;font-weight:400!important;text-transform:uppercase;letter-spacing:.03em!important;font-size:clamp(26px,3.1vw,56px)!important;line-height:1.08!important}
html.bt .selx .sh h2{font-size:clamp(18px,1.5vw,24px)!important;letter-spacing:.08em!important}
html.bt .nextp .nt{font-family:var(--serif);text-transform:uppercase;letter-spacing:.02em;font-size:clamp(34px,4.6vw,84px)}
html.bt .menu a{font-family:var(--serif);text-transform:uppercase;font-size:34px;letter-spacing:.03em}
html.bt .clock{font-family:var(--grot);font-style:normal;font-size:11px;letter-spacing:.2em}
html.bt footer .logo{font-size:clamp(34px,4.4vw,72px)}
/* the letters, cards and the Your day card stay warm: their own type, untouched */
html.bt .paperfx h1,html.bt .paperfx h2,html.bt .ycard *{text-transform:none}
/* small switch for the prototype */
.btsw{position:fixed;left:max(16px,env(safe-area-inset-left,0px));bottom:calc(52px + env(safe-area-inset-bottom,0px));z-index:40;display:flex;border:1px solid var(--flag);background:rgba(246,241,235,.96)}
.btsw button{all:unset;cursor:pointer;font-family:var(--grot);font-size:10px;letter-spacing:.14em;text-transform:uppercase;padding:6px 10px;color:var(--flag)}
.btsw button.on{background:var(--flag);color:#fff}
body.nonotes .btsw{display:none}
html:not(.bt) .bt-only{display:none!important}
html.bt .bt-hide{display:none!important}
html.bt .loud h1{font-size:clamp(28px,5vw,96px)!important}
html.bt .ln2 h2{font-style:normal!important;font-size:clamp(20px,1.7vw,28px)!important;line-height:1.2!important}
html.bt .ln2 h2 i{font-style:italic}
html.bt .tsl .tsw{min-height:clamp(340px,36vw,520px)}

video.pv{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;pointer-events:none;opacity:0;transition:opacity .8s var(--ease);z-index:1}
.live video.pv,.live > .scr video.pv{opacity:1}
footer{overflow-x:clip}

footer .links{grid-column:11/13!important;justify-self:end;text-align:right;align-items:flex-end}

html.leaving body,html.arriving body{opacity:0}
html.arriving body{transition:none}
body{transition:opacity .4s ease,background-color 1.6s var(--ease),color 1.2s var(--ease)}
html.flow,html.flow body{transition:opacity .4s ease,background-color .5s ease,color .5s ease}

/* tighter endings: next page and footer */
.nextp{padding-block:9vh 7vh!important}
footer{padding-block:52px calc(84px + env(safe-area-inset-bottom,0px))!important}
footer .base{margin-top:40px!important}
