:root{--green:#17231e;--scene-background:var(--green);--paper:#f7f4ec;--ink:#17231e;--muted:#4c6155;--light:#f7f4ec;--soft:#c7d0ca;--brand:MolardOptima,Optima,Georgia,serif;--gutter:clamp(22px,4.5vw,160px);--envelope-width:clamp(640px,58vw,1280px)}
*{box-sizing:border-box}html{background:var(--scene-background);color:var(--light);scrollbar-color:#87978a var(--green);-webkit-text-size-adjust:100%;text-size-adjust:100%}body{margin:0;font-family:var(--brand);-webkit-font-smoothing:antialiased}::selection{background:#b7c6bb;color:var(--green)}a{color:inherit;text-underline-offset:5px}a:focus-visible,button:focus-visible{outline:none;text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:6px}.skip{position:fixed;left:24px;top:-100px;z-index:1000;padding:14px 20px;background:var(--paper);color:var(--ink)}.skip:focus{top:20px}.scene{position:relative;min-height:100svh}.masthead{position:absolute;inset:0 0 auto;z-index:20;display:flex;align-items:center;justify-content:space-between;gap:18px;padding:clamp(16px,2.5vh,48px) var(--gutter) 0}.location{font-size:clamp(12px,.95vw,19px);letter-spacing:.075em}.language-switch{display:flex;gap:8px;font-size:clamp(13px,.95vw,18px)}.language-switch a{min-height:44px;min-width:44px;display:inline-flex;align-items:center;justify-content:center;text-decoration:none;color:var(--soft)}.language-switch a[aria-current]{color:var(--light);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:7px}
.identity{height:100svh;display:flex;flex-direction:column;justify-content:center;align-items:center;padding:70px var(--gutter) 100px;text-align:center}.identity h1{margin:0;width:min(65vw,1600px)}.identity img{display:block;width:100%;height:auto}.identity p{font-size:clamp(18px,1.65vw,38px);font-weight:400;color:var(--soft);margin:clamp(24px,3vw,66px) 0 0;line-height:1.35}
.envelope{width:var(--envelope-width);max-width:calc(100vw - 32px);margin:0 auto;position:relative}.env-back,.env-pocket,.env-flap{display:none}.letter{position:relative;margin:0 auto 70px;width:92%;padding:clamp(36px,3.8vw,76px) clamp(26px,4.3vw,90px) clamp(30px,3.4vw,68px);background:var(--paper);color:var(--ink);box-shadow:none;overflow-wrap:break-word;outline:none}.letter h2{font-size:clamp(27px,2.3vw,46px);font-weight:400;line-height:1.16;letter-spacing:.005em;text-wrap:balance;margin:0 0 15px}.letter p{margin:0;font-family:MolardGaramond,'EB Garamond',Georgia,'Times New Roman',serif;font-size:clamp(18px,1.28vw,24px);line-height:1.48;letter-spacing:.005em}.intro,.path p{color:var(--muted)}.paths{margin-top:clamp(22px,2.4vw,46px)}.path+.path{margin-top:clamp(18px,1.6vw,30px)}.path h3{font-weight:400;font-size:clamp(24px,1.85vw,36px);line-height:1.2;margin:0}.path-contact{display:flex;align-items:center;justify-content:space-between;gap:18px;min-height:44px;text-decoration:none}.path-contact svg{flex:none;transition:transform .2s ease-out}.signature{display:flex;align-items:center;gap:20px;margin-top:clamp(24px,2vw,36px)}.signed-mark{width:clamp(78px,7vw,140px);height:auto}.signature-attribution{display:flex;flex-direction:column;align-items:flex-start;min-width:0;font-family:MolardGaramond,'EB Garamond',Georgia,'Times New Roman',serif;font-size:clamp(17px,1.2vw,22px);line-height:1.4}.letter-contact{display:inline-flex;align-items:center;min-height:44px;overflow-wrap:anywhere;text-decoration-thickness:1px;text-decoration-color:#7e8c80}.scroll-cue{text-decoration:none;position:absolute;top:calc(100svh - 108px);left:50%;transform:translateX(-50%);display:flex;flex-direction:column;align-items:center;gap:14px;padding:12px 20px;border:0;background:transparent;color:var(--soft);font:400 clamp(13px,1vw,18px)/1.3 var(--brand);cursor:pointer;white-space:nowrap}.page-footer{padding:28px var(--gutter);font-size:clamp(11px,.9vw,17px);letter-spacing:.08em;color:var(--soft)}
@media(hover:hover) and (pointer:fine){.language-switch a:hover{color:var(--light)}.path-contact:hover{color:#102a1e}.path-contact:hover svg{transform:translateX(4px)}.scroll-cue:hover{color:white}.letter-contact:hover{text-decoration-color:currentColor}}
@media(max-width:760px){:root{--envelope-width:calc(100vw - 24px);--gutter:22px}.masthead{padding-top:14px}.location{font-size:11px;letter-spacing:.055em}.language-switch{font-size:13px;gap:0}.identity{padding:70px 22px 110px}.identity h1{width:88vw}.identity p{font-size:18px;margin-top:25px}.envelope{max-width:calc(100vw - 24px)}.letter{padding:34px 24px 26px}.letter h2{font-size:27px;margin-bottom:12px}.letter p{font-size:18px;line-height:1.44}.paths{margin-top:22px}.path+.path{margin-top:19px}.path h3{font-size:24px}.signature{margin-top:24px}.signed-mark{display:none}.signature-attribution{font-size:16px}.scroll-cue{top:calc(100svh - 102px);font-size:13px}.page-footer{padding:20px 22px;font-size:11px}.envelope-ready .scroll-cue{top:calc(100svh - 102px)}.wax-seal{width:20%}}
@media(max-width:359px){.letter{padding:28px 19px 24px}.letter h2{font-size:24px}.path h3{font-size:22px}.letter p{font-size:16px}.location{font-size:11px}.masthead{gap:8px;padding-left:18px;padding-right:18px}.identity p{font-size:16px}.letter-contact{font-size:15px}}

/* The opening and the interactive letter share one stage and one background. */
.intro-screen{position:relative;min-height:100svh;scroll-snap-align:start}
.letter-stage{position:relative;min-height:100svh;scroll-snap-align:start;background:transparent;overflow:hidden;isolation:isolate}
.scene{min-height:100svh;padding-top:clamp(24px,5vh,80px);display:flex;flex-direction:column;justify-content:center}
.envelope{width:min(880px,calc(100vw - 32px));max-width:none;z-index:3;transform-origin:0 0}
.letter{width:100%;margin-bottom:0;background:var(--paper);isolation:isolate}
.paper-material{position:absolute;inset:0;width:100%;height:100%;z-index:-1;pointer-events:none;opacity:1}
.letter-ink{position:relative}
.page-footer{position:relative;margin-top:auto;padding-top:28px;z-index:5}
.opening-film{display:none;position:absolute;inset:0 0 auto;height:100svh;z-index:6;pointer-events:none}
.envelope-video,.envelope-render,.scene-ground,.envelope-parts{position:absolute;left:50%;top:50svh;transform:translate(-50%,-50%);width:min(100vw,100svh);height:min(100vw,100svh)}
.envelope-video{display:block;object-fit:contain;opacity:0;pointer-events:none}
.envelope-render{display:block;pointer-events:none;filter:drop-shadow(0 3px 4px #00000030)}

.scene-ground{display:none;z-index:0;pointer-events:none}
.envelope-parts{display:none;pointer-events:none}
.envelope-parts canvas{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
/* Back and pocket are separate photographed surfaces, sharing the same movement. */
.envelope-parts{display:contents}
.envelope-back-photo,.envelope-front-photo{display:none;position:absolute!important;inset:auto!important;left:calc((100% - min(100vw,100svh))/2)!important;top:calc((100svh - min(100vw,100svh))/2)!important;width:min(100vw,100svh)!important;height:min(100vw,100svh)!important}
.envelope-back-photo{z-index:1;filter:drop-shadow(0 3px 4px #00000030)}.envelope-front-photo{z-index:4}
.film-ready .letter-stage:is([data-phase="ready"],[data-phase="opening"]) .opening-film{display:block}
.film-ready .letter-stage:is([data-phase="ready"],[data-phase="opening"]) .envelope,
.film-ready .letter-stage:not([data-phase="letter"]) .page-footer{visibility:hidden;opacity:0}
.film-ready .letter-stage[data-phase="extracting"] :is(.envelope-back-photo,.envelope-front-photo){display:block}
.film-ready .letter-stage:is([data-phase="extracting"],[data-phase="letter"]) .scene-ground{display:block}
.film-ready .letter-stage:not([data-phase="letter"]) .letter-ink{opacity:0}
.letter-stage[data-phase="letter"] .letter-ink{opacity:1}
@media(max-width:760px){.scene{padding-top:24px}.envelope{width:calc(100vw - 32px)}.letter{padding:30px 24px}.page-footer{margin-top:20px}}
@media(prefers-reduced-motion:no-preference){html{scroll-snap-type:y proximity}}
@media(prefers-reduced-motion:reduce){.opening-film,.scene-ground,.envelope-back-photo,.envelope-front-photo{display:none!important}.envelope,.page-footer{animation:none!important}.path-contact svg{transition:none}}

/* V10: the approved 3:2 shot retains its native proportions throughout handoff. */
.letter-stage{--frame-width:min(173vw,150svh,1800px)}
.envelope-video,.envelope-render,.scene-ground{width:var(--frame-width);height:calc(var(--frame-width) / 1.5)}
.envelope-render,.envelope-back-photo{filter:none}
.envelope-back-photo,.envelope-front-photo{left:calc((100% - var(--frame-width))/2)!important;top:calc((100svh - var(--frame-width)/1.5)/2)!important;width:var(--frame-width)!important;height:calc(var(--frame-width)/1.5)!important}

.film-ready .letter-stage[data-phase="extracting"] .opening-film{display:block}
.page-footer{transition:opacity 180ms ease-out}
@media(prefers-reduced-motion:reduce){.page-footer{transition:none}}

/* One shared masthead; the letter stays centered in its own screen. */
.letter-stage .scene{min-height:100svh;padding:92px 0;justify-content:center}
.letter-stage .page-footer{position:absolute;bottom:0;left:0;right:0;margin:0;padding-top:20px;padding-bottom:20px}
.film-ready .masthead{position:fixed;background:var(--scene-background);padding-bottom:6px;opacity:1;transition:opacity var(--chrome-enter) var(--chrome-ease),visibility 0s}
.film-ready[data-masthead="between"] .masthead{visibility:hidden;opacity:0;pointer-events:none;transition:opacity var(--chrome-exit) var(--chrome-ease),visibility 0s var(--chrome-exit)}
.scroll-cue[hidden]{display:none}
@media(max-width:760px){.letter-stage .scene{padding:80px 0}}
@media(prefers-reduced-motion:reduce){.masthead{transition:none!important}}

/* V14: approved letter proportions and copy, integrated locally. */
@media(min-width:761px){.letter{padding:52px 60px 44px}.letter h2{letter-spacing:0}}
:root{--paper-texture-rest:.24}
.paper-material{opacity:var(--paper-texture-rest);background-image:url('/assets/paper-stock-v20.png');background-repeat:repeat;background-size:68.4684684685% auto}
.letter h2{text-wrap:pretty}
/* Compact vertical rhythm on short phones; body type and touch targets remain intact. */
@media(max-width:760px) and (max-height:740px){
 .letter-stage .scene{padding:72px 0 54px}
 .letter{padding-top:22px;padding-bottom:22px}
 .letter h2{margin-bottom:10px}
 .paths{margin-top:14px}
 .path+.path{margin-top:14px}
 
 .signature{margin-top:22px}
}
/* Joint revision: typography carries hierarchy, arrows belong to the words. */
@media(min-width:761px){
 .envelope{width:min(clamp(744px,52vw,880px),calc(100vw - 32px))}
 .letter h2{font-size:clamp(30px,2.75vw,46px)}
 .path h3{display:flex}
 .path-contact{justify-content:flex-start;gap:14px}
}

@media(min-width:761px) and (max-height:820px){.letter-stage .scene{padding:76px 0 60px}.letter{padding-top:44px;padding-bottom:36px}}

/* Discreet social signatures, with generous touch targets. */
.page-footer{display:flex;align-items:center;justify-content:space-between;gap:16px}
.social-links{display:flex;align-items:center;gap:4px;margin-right:-13px}
.social-links a{width:44px;height:44px;display:inline-flex;align-items:center;justify-content:center;text-decoration:none}
.social-links svg{display:block;flex:none}
.letter-stage .page-footer{padding-top:8px;padding-bottom:8px}
@media(hover:hover){.social-links a:hover{color:var(--light)}}
@media(max-width:760px) and (max-height:740px){.letter-stage .scene{padding-bottom:80px}}

/* V22. A substantial cotton card, with a lit edge and one directional cast shadow. */
:root{--paper-texture-rest:.76;--card-shadow:1px 2px 2px #050e0a50,5px 9px 12px #050e0a40,15px 26px 36px #050e0a50}
.letter{background:#f1ebdf;border-radius:1px;box-shadow:var(--card-shadow)}
.letter::before{content:"";position:absolute;left:1px;right:-1px;bottom:-3px;height:3px;background:linear-gradient(to bottom,#e5ddca 0 33%,#c9bfa9 34% 66%,#a89f89 67% 100%);border-radius:0 0 1px 1px;pointer-events:none}
.letter::after{content:"";position:absolute;inset:0;z-index:2;border-radius:inherit;pointer-events:none;box-shadow:inset 0 1px 0 #fffdf3e0,inset 1px 0 0 #fffdf3a0,inset -1px 0 0 #b5aa9460,inset 0 -1px 0 #b5aa9480;background:linear-gradient(125deg,#fffdf71a,transparent 36%,transparent 76%,#99886a0a)}
.letter-ink{z-index:1}
@media(max-width:760px){:root{--card-shadow:1px 2px 2px #050e0a50,4px 7px 10px #050e0a40,8px 15px 24px #050e0a50}.letter::before{bottom:-2px;height:2px}}

/* Text-only actions, colour carries the interaction. */
.letter .path-contact,.letter .letter-contact{color:var(--card-action);text-decoration:none;transition:color 220ms ease}
@media(hover:hover) and (pointer:fine){.letter .path-contact:hover,.letter .letter-contact:hover{color:var(--card-action-hover);text-decoration:none}}
.letter .path-contact:active,.letter .letter-contact:active,.letter .path-contact:focus-visible,.letter .letter-contact:focus-visible{color:var(--card-action-hover);text-decoration:none}
@media(prefers-reduced-motion:reduce){.letter .path-contact,.letter .letter-contact{transition:none}}

/* Card ink and grouping: three distinct invitations on the same paper. */
.letter{--ink:#282722;--muted:#58554d;--card-action:#25251f;--card-action-hover:#686153}
.letter .letter-contact{color:#38362f}
.path+.path{margin-top:clamp(24px,1.8vw,34px)}
@media(max-width:760px){.path+.path{margin-top:25px}.signature{margin-top:28px}}
@media(max-width:760px) and (max-height:740px){.path+.path{margin-top:18px}.signature{margin-top:24px}}

/* The handwritten name is the only personal closing and opens email. */
.founder-calligraphy{display:block;width:170px;max-width:none;height:auto;flex:none;margin:-8px 0 -8px -22px}
.founder-contact{display:flex;flex-direction:row;align-items:center;justify-content:flex-start;width:150px;color:var(--ink);text-decoration:none;min-height:44px;transition:opacity 220ms ease}
@media(hover:hover) and (pointer:fine){.founder-contact:hover{opacity:.76}}
.founder-contact:active{opacity:.65}
@media(prefers-reduced-motion:reduce){.founder-contact{transition:none}}

/* A restrained personal closing, subordinate to the three invitations. */
.signature{gap:14px}
.signature .signature-attribution{font-size:14px;color:#625d53}
.signature .founder-calligraphy{opacity:1}

/* Smallest phones: the whole card starts below the two-row navigation. */
@media(max-width:360px) and (max-height:600px){
 .letter-stage .scene{padding:120px 0 68px}
 .letter{padding:14px 24px}
 .letter h2{font-size:22px;line-height:1.15;margin-bottom:6px}
 .letter .paths{margin-top:4px}
 .letter .path+.path{margin-top:10px}
 .letter .signature{margin-top:8px}
}
