/* The welcome page and the album share the same paper and ink. */
html{scrollbar-gutter:stable}
[hidden]{display:none!important}
body.entry-locked{overflow:hidden}
.entry-gate{position:fixed;inset:0;z-index:100;overflow:auto;padding:44px 24px;background:var(--paper);isolation:isolate;transition:opacity .65s ease,translate .65s cubic-bezier(.22,1,.36,1)}
.entry-gate:before,.entry-gate:after{content:'';position:fixed;z-index:-1;pointer-events:none;width:min(70vw,700px);aspect-ratio:1;border:1px solid #99583f12;border-radius:50%}
.entry-gate:before{top:-35%;left:-24%;box-shadow:0 0 0 24px #99583f04,0 0 0 90px #99583f04}
.entry-gate:after{right:-32%;bottom:-49%;width:min(90vw,850px);box-shadow:0 0 0 40px #99583f03,0 0 0 95px #99583f03}
.entry-inner{width:min(100%,420px);min-height:calc(100svh - 88px);margin-inline:auto;display:flex;flex-direction:column;justify-content:center;text-align:center;padding-block:18px}
.entry-mark{width:62px;height:62px;margin:0 auto 23px;color:var(--accent);animation:entry-arrive 1.1s both}
.entry-inner>.eyebrow{color:var(--accent);font-size:9px;letter-spacing:2.8px;margin:0 0 20px;animation:entry-arrive .9s .08s both}
.entry-inner h1{font:400 clamp(49px,6vw,69px)/1.02 var(--serif);letter-spacing:-1.8px;margin:0;animation:entry-arrive 1s .16s both}
.entry-description{font-size:12px;color:var(--muted);max-width:280px;margin:23px auto 29px;animation:entry-arrive .9s .23s both}
.entry-form{width:min(100%,304px);margin-inline:auto;animation:entry-arrive .9s .3s both}
.entry-form label{font-size:10px;margin:0 0 10px;letter-spacing:.4px}
.entry-form input{text-align:center;font-size:23px;line-height:1.5;letter-spacing:4px;min-height:59px;margin:0;background:#fffdf960;border:0;border-bottom:1px solid #b9ad9a;padding:12px 10px;color:var(--ink);font-variant-numeric:tabular-nums;transition:border-color .25s,background .25s}
.entry-form input::placeholder{color:#a29a8a;font-size:17px;letter-spacing:2.5px}
.entry-form input:focus{outline:0;border-bottom-color:var(--accent);box-shadow:0 1px 0 var(--accent);background:#fffdf9}
.entry-form input[aria-invalid=true]{border-bottom-color:#a13f2d;background:#99583f06}
.entry-hint{font-size:9px;color:var(--muted);letter-spacing:.5px;margin:10px 0 25px}
.entry-submit{width:100%;min-height:51px;justify-content:center;gap:28px;border-radius:1px}
.entry-submit .entry-submit-label{font-size:11px}
.entry-submit:disabled{cursor:wait;opacity:.7}
.entry-feedback{min-height:36px;margin:14px 0 0;color:var(--accent);font-size:10px;line-height:1.7}
.entry-signature{font:italic 20px/1.4 var(--serif);margin:22px 0 0;color:#85806f;animation:entry-arrive 1s .4s both}
.entry-gate.is-leaving{opacity:0;translate:0 -20px;pointer-events:none}
.album-intro .entry-gate.is-leaving{transition-duration:.45s;translate:0 -8px}
.entry-form.has-error input{animation:entry-shake .32s ease}
.entry-noscript{position:fixed;z-index:101;bottom:0;left:0;right:0;margin:0;padding:14px 24px;background:var(--paper);text-align:center;color:var(--accent);font-size:11px}
@keyframes entry-arrive{from{opacity:0;translate:0 16px}to{opacity:1;translate:0 0}}
@keyframes entry-shake{0%,100%{translate:0 0}25%{translate:-4px 0}75%{translate:4px 0}}

/* Separate translate from the existing paper rotations so the photographs keep their character. */
.reveal{transition:opacity .85s ease,translate .85s cubic-bezier(.22,1,.36,1);transition-delay:var(--reveal-delay,0ms);translate:0 0}
.motion-ready .reveal:not(.visible){opacity:0;translate:var(--reveal-x,0px) var(--reveal-y,32px)}
.motion-ready .reveal:focus-within{opacity:1;translate:0 0;transition-delay:0ms}
.hero-art{--reveal-y:22px;--reveal-delay:170ms}
.journey-photo{--reveal-x:-24px;--reveal-y:18px}
.letter-paper{--reveal-x:24px;--reveal-y:22px}
.motion-ready .main-photo,.motion-ready .small-photo,.motion-ready .paper-tape{translate:0 var(--photo-drift,0px)}
.motion-ready .album-stamp{rotate:var(--stamp-turn,0deg)}
.motion-ready .journey-photo img{clip-path:inset(0);transition:clip-path 1.2s cubic-bezier(.22,1,.36,1)}
.motion-ready .journey-photo:not(.visible) img{clip-path:inset(10% 0 0)}
.motion-ready .section-heading em,.motion-ready .letter-intro em{background:linear-gradient(#99583f65,#99583f65) left bottom/100% 1px no-repeat;transition:background-size 1.1s .32s cubic-bezier(.22,1,.36,1)}
.motion-ready .section-heading:not(.visible) em,.motion-ready .letter-intro:not(.visible) em{background-size:0% 1px}
.chapters{position:relative}
.chapters:before,.chapters:after{content:'';position:absolute;left:-19px;top:32px;bottom:34px;width:1px;pointer-events:none}
.chapters:before{background:var(--line)}
.chapters:after{background:var(--accent);transform:scaleY(var(--journey-progress,0));transform-origin:top}
.chapter{position:relative}
.chapter:before{content:'';position:absolute;left:-22px;top:33px;width:7px;height:7px;border:1px solid #b39d87;border-radius:50%;background:var(--paper);z-index:1;transition:background .5s,border-color .5s}
.chapter.visible:before{background:var(--accent);border-color:var(--accent)}
.reading-progress{width:100%;transform:scaleX(var(--reading-progress,0));transform-origin:left center}
.motion-ready .drawn-arrow path,.motion-ready .letter-doodle path{stroke-dasharray:var(--stroke-length,260);stroke-dashoffset:0;transition:stroke-dashoffset 1.6s .3s ease}
.motion-ready .hero-art:not(.visible) .drawn-arrow path,.motion-ready .letter-intro:not(.visible) .letter-doodle path{stroke-dashoffset:var(--stroke-length,260)}
#accueil h1:focus{outline:none}
/* First entrance: the photographs land individually, including when reached on mobile. */
.album-intro .hero-copy>.reveal{transition:none;animation:album-copy-arrive .6s .18s both}
.album-intro .hero-copy>h1{animation-delay:.1s}
.album-intro .hero-copy>.hero-description{animation-delay:.3s}
.album-intro .hero-copy>.hero-actions{animation-delay:.42s}
.album-intro .hero-copy>.hero-signature{animation-delay:.72s}
.hero-art.intro-polaroids{transition:none}
.intro-polaroids.visible .main-photo{animation:album-photo-main .8s .22s cubic-bezier(.22,1,.36,1) both}
.intro-polaroids.visible .small-photo{animation:album-photo-small .8s .4s cubic-bezier(.22,1,.36,1) both}
.intro-polaroids.visible .paper-tape{animation:album-detail-arrive .4s .65s both}
.intro-polaroids.visible .album-stamp{animation:album-detail-arrive .45s .8s both}
.album-intro:not(.album-open) .hero-copy>.reveal,.album-intro:not(.album-open) .intro-polaroids.visible .polaroid,.album-intro:not(.album-open) .intro-polaroids.visible .paper-tape,.album-intro:not(.album-open) .intro-polaroids.visible .album-stamp{animation-play-state:paused}
@keyframes album-copy-arrive{from{opacity:0;translate:0 12px}to{opacity:1;translate:0 0}}
@keyframes album-detail-arrive{from{opacity:0}to{opacity:1}}
@keyframes album-photo-main{from{opacity:0;transform:translate3d(-14px,-30px,0) rotate(-12deg) scale(1.025);box-shadow:0 22px 38px #40392e20}to{opacity:1;transform:translate3d(0,0,0) rotate(-7deg) scale(1);box-shadow:0 6px 18px #40392e12}}
@keyframes album-photo-small{from{opacity:0;transform:translate3d(16px,-24px,0) rotate(16deg) scale(1.025);box-shadow:0 20px 34px #40392e20}to{opacity:1;transform:translate3d(0,0,0) rotate(10deg) scale(1);box-shadow:0 6px 18px #40392e12}}
/* Keep the moving photograph inside the modal's top layer, above its backdrop. */
.lightbox.photo-transition{overflow:visible;background:transparent;border-color:transparent}
.lightbox.photo-transition .close-button,.lightbox.photo-transition .lightbox-footer,.lightbox.photo-transition .remove-memory{opacity:0;pointer-events:none}
.lightbox .photo-motion-hidden{opacity:0}
.lightbox.photo-viewer .lightbox-footer{transition:opacity .16s ease}
.lightbox .photo-motion-proxy{position:fixed;max-width:none;max-height:none;margin:0;pointer-events:none;object-fit:fill;transform-origin:0 0;z-index:1;will-change:transform,clip-path}
.lightbox.photo-viewer::backdrop{animation:photo-backdrop-in .28s ease both}
.lightbox.photo-closing::backdrop{animation:photo-backdrop-out .28s ease both}
@keyframes photo-backdrop-in{from{background:#26291f00;backdrop-filter:blur(0)}to{background:#26291fcc;backdrop-filter:blur(5px)}}
@keyframes photo-backdrop-out{from{background:#26291fcc;backdrop-filter:blur(5px)}to{background:#26291f00;backdrop-filter:blur(0)}}
.featured-memory-section{padding-block:20px 45px}
.featured-memory{display:grid;grid-template-columns:1.25fr 1fr;align-items:center;gap:clamp(30px,5vw,70px);padding-top:55px;border-top:1px solid var(--line)}
.featured-memory-photo{margin:0;padding:12px 12px 0;background:#fffdf9;box-shadow:0 6px 18px #40392e12;min-width:0}
.featured-memory-photo img{width:100%;height:auto;aspect-ratio:16/9;object-fit:contain}
.featured-memory-photo figcaption{display:flex;justify-content:space-between;gap:15px;padding:14px 5px 17px;font-size:9px;color:var(--muted)}
.featured-memory-photo figcaption>span{font:italic 20px/1.2 var(--serif);color:var(--accent)}
.featured-memory-copy{min-width:0}
.featured-memory-copy>.eyebrow{color:var(--accent);font-size:9px;margin:0 0 18px}
.featured-memory-copy h3{font:400 clamp(38px,4vw,52px)/1.08 var(--serif);letter-spacing:-1px;margin:0 0 23px}
.featured-memory-story{font-size:12px;line-height:1.9;color:var(--muted);overflow-wrap:anywhere}
.featured-memory-story p{margin:0 0 17px}
.featured-memory-story p:last-child{margin-bottom:0}
.featured-memory--with-videos{row-gap:32px}
.featured-memory-videos{grid-column:1/-1;padding-top:25px;border-top:1px solid var(--line);min-width:0}
.featured-videos-heading{display:flex;align-items:baseline;justify-content:space-between;gap:15px;margin-bottom:20px}
.featured-videos-heading h4{font:400 29px/1.2 var(--serif);margin:0}
.featured-videos-heading p{font-size:10px;color:var(--muted);margin:0}
.featured-videos-grid{display:grid;grid-template-columns:1fr 1fr;gap:22px}
.featured-video-card{min-width:0;padding:8px 8px 0;text-align:left;border:1px solid var(--line);background:#fffdf940;transition:background .2s}
.featured-video-card:hover{background:#fffdf9}
.featured-video-thumbnail{display:block;position:relative;aspect-ratio:16/9;background:#e4dfd5;overflow:hidden}
.featured-video-thumbnail img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain}
.featured-video-play{position:absolute;left:50%;top:50%;translate:-50% -50%;display:grid;place-items:center;width:45px;height:45px;border-radius:50%;background:#fffdf9e8;color:var(--accent);font-size:23px;padding-left:3px;box-shadow:0 2px 15px #0002}
.featured-video-caption{display:flex;justify-content:space-between;gap:8px;padding:14px 5px 16px;font:italic 23px/1.2 var(--serif)}
.featured-video-caption>span{font:18px var(--sans);color:var(--accent)}
@media(max-width:760px){.featured-videos-heading{display:block}.featured-videos-heading h4{font-size:27px}.featured-videos-heading p{margin-top:8px;font-size:9px}.featured-videos-grid{gap:12px}.featured-video-card{padding:5px 5px 0}.featured-video-caption{font-size:19px;padding:11px 2px 13px}.featured-video-play{width:35px;height:35px;font-size:20px}.featured-video-thumbnail .video-duration{font-size:8px;right:5px;bottom:5px}}
@media(max-width:760px){.featured-memory-section{padding-block:0 20px}.featured-memory{grid-template-columns:1fr;gap:30px;padding-top:35px}.featured-memory-photo{padding:9px 9px 0}.featured-memory-photo figcaption{padding-block:12px 14px}.featured-memory-copy h3{font-size:43px}.featured-memory-copy>.eyebrow{font-size:8px;margin-bottom:14px}}
@media(max-width:760px){.entry-inner{max-width:360px}.entry-description{font-size:11px}.entry-mark{width:55px;height:55px;margin-bottom:20px}.entry-signature{margin-top:15px}.journey-photo{--reveal-x:0px;--reveal-y:24px}.letter-paper{--reveal-x:0px}.chapters:before,.chapters:after{left:-11px}.chapter:before{left:-14px;width:7px;height:7px}.hero-art{--reveal-delay:0ms}}
@media(prefers-reduced-motion:reduce){.entry-gate{transition:none}.reveal,.motion-ready .reveal:not(.visible){opacity:1;translate:none}.motion-ready .main-photo,.motion-ready .small-photo,.motion-ready .paper-tape{translate:none}.motion-ready .album-stamp{rotate:0deg}.journey-photo img{clip-path:none}.chapters:after{transform:scaleY(1)}}

.featured-memory--portrait{grid-template-columns:.85fr 1.15fr}
.featured-memory--portrait .featured-memory-photo{width:min(100%,360px);margin-inline:auto}
.featured-memory--portrait .featured-memory-photo img{aspect-ratio:3/4}
.featured-memory+.featured-memory{margin-top:65px}
@media(max-width:760px){.featured-memory--portrait{grid-template-columns:1fr}.featured-memory+.featured-memory{margin-top:45px}.featured-memory--portrait .featured-memory-photo{width:min(100%,330px)}}

.featured-memory--sleep .featured-memory-photo{width:min(100%,320px)}
.featured-memory--sleep .featured-memory-photo img{aspect-ratio:auto}
.featured-memory--sleep figcaption{justify-content:center}
