@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700;800&family=Fraunces:opsz,wght,SOFT,WONK@9..144,650,50,1;9..144,750,50,1&display=swap');

:root{--paper:#f8f4ee;--ink:#282622;--muted:#6c665f;--wine:#a44356;--wine-dark:#833043;--outline:#ded5cc;--cream:#fffdf9;--lilac:#e9e0f4;--peach:#f9d9c9;--yellow:#f6e5b5;--shadow:0 18px 0 rgba(54,41,42,.07),0 22px 45px rgba(54,41,42,.08)}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--paper);color:var(--ink);font:16px/1.55 'DM Sans',ui-sans-serif,system-ui,-apple-system,'Segoe UI',sans-serif;overflow-x:hidden}
a{color:inherit;text-decoration:none}button,input,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:wait}h1,h2,h3,p{margin-top:0}h1,h2,h3{line-height:1.1}h1,h2,.step-header h3,.result-panel h3{font-family:'Fraunces',Georgia,serif;letter-spacing:-.048em}em,.italic-word{font-weight:650;font-style:italic}a:focus-visible,button:focus-visible,input:focus-visible,textarea:focus-visible{outline:3px solid #d15b74;outline-offset:3px}.wrap{max-width:1180px;margin-inline:auto;padding-inline:28px}
.announcement{min-height:35px;display:flex;gap:12px;align-items:center;justify-content:center;background:var(--ink);color:#fff7ed;font-size:12px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;text-align:center;padding:8px 12px}.pulse-dot,.status-circle{height:8px;width:8px;background:#8bda9e;border-radius:50%;display:inline-block;box-shadow:0 0 0 4px rgba(139,218,158,.16)}.announcement-spark{color:#e9c2a5}
.site-header{height:89px;display:flex;align-items:center;justify-content:space-between;gap:18px}.brand{display:flex;align-items:center;gap:12px;font-size:22px;font-weight:800;line-height:1;letter-spacing:-.08em}.brand-icon{width:43px;height:43px;display:grid;place-items:center;border-radius:13px;background:var(--wine);color:white;position:relative;font:700 28px Georgia,serif;transform:rotate(-8deg)}.brand-heart{font:700 12px sans-serif;position:absolute;right:4px;top:5px;color:#f4dfbf}.brand-small{display:block;letter-spacing:.09em;font-size:10px;text-transform:uppercase;font-weight:800;margin-top:6px}.site-header nav{display:flex;align-items:center;gap:28px;font-size:13px;font-weight:800}.site-header nav a:not(.nav-apply):hover{text-decoration:underline;text-underline-offset:5px}.nav-apply{padding:12px 18px;background:var(--ink);color:#fff;border-radius:100px;white-space:nowrap}.nav-apply:hover{background:var(--wine)}
.hero{padding-top:92px;padding-bottom:127px;display:grid;grid-template-columns:1.12fr .88fr;gap:45px;align-items:center;min-height:690px}.eyebrow{font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.15em;color:var(--wine);margin-bottom:25px}.eyebrow-dark{color:var(--wine)}.hero h1{font-size:clamp(57px,6.6vw,99px);line-height:1.03;margin:0 0 29px}.hero h1 .italic-word{color:var(--wine)}.highlight-word{position:relative;white-space:nowrap}.highlight-word:after{content:'';position:absolute;left:-2%;bottom:-5px;width:101%;height:11px;background:#eebaaa;border-radius:50%;transform:rotate(-2deg);z-index:-1}.scribble-heart{font:normal 60px Georgia,serif;color:var(--wine);position:absolute;right:-72px;top:-30px;transform:rotate(15deg)}.hero-description{max-width:520px;font-size:17px;line-height:1.85;color:var(--muted);margin-bottom:27px}.hero-description strong{font-weight:800;color:var(--ink)}.hero-actions{display:flex;align-items:center;gap:25px;flex-wrap:wrap}.button{min-height:51px;border:2px solid transparent;display:inline-flex;align-items:center;justify-content:center;gap:20px;border-radius:10px;font-size:13px;font-weight:800;line-height:1.2;padding:14px 20px;transition:transform .2s,background .2s,box-shadow .2s;text-align:center}.button:hover{transform:translateY(-2px)}.button-primary{background:var(--wine);color:white;box-shadow:0 6px 0 #75283c}.button-primary:hover{background:var(--wine-dark);box-shadow:0 7px 0 #75283c}.button-secondary{background:var(--cream);border-color:var(--outline);color:var(--ink)}.button-secondary:hover{background:#f3eee8}.text-link{font-size:13px;font-weight:800;border-bottom:1px solid var(--ink);padding-bottom:4px}.text-link:hover{color:var(--wine);border-color:var(--wine)}.fine-print{font-size:11px;color:#8c847a;margin-top:27px}
.hero-art{height:505px;position:relative;display:flex;align-items:center;justify-content:center;isolation:isolate}.hero-art:before{content:'';position:absolute;background:#f0e5d8;width:95%;height:90%;border-radius:49% 52% 42% 56%;transform:rotate(-12deg);z-index:-2}.file-card{position:relative;width:350px;max-width:89%;min-height:440px;padding:34px 28px 22px;border:2px solid var(--ink);border-radius:5px;background:#fffdf8;box-shadow:12px 13px 0 #ceae9d,20px 24px 0 rgba(63,45,38,.14);transform:rotate(6deg)}.file-pin{width:95px;height:20px;position:absolute;top:-10px;left:calc(50% - 47px);border:2px solid #a69e94;background:#d4cec5;border-radius:8px 8px 4px 4px;box-shadow:inset 0 4px 0 #e9e3db}.file-top{display:flex;justify-content:space-between;gap:10px;font-size:9px;letter-spacing:.12em;font-weight:800;border-bottom:2px solid #302b27;padding-bottom:11px}.file-heading{font-family:Georgia,serif;font-weight:900;font-size:40px;letter-spacing:-.055em;line-height:1.03;padding-top:43px;margin-bottom:24px}.file-heading em{color:var(--wine)}.file-line{border-top:1px dashed #c8beb2;padding:10px 0;display:flex;justify-content:space-between;gap:5px;font-size:12px}.file-line span{font-size:9px;letter-spacing:.09em;color:#766d65;font-weight:800}.file-line strong{text-align:right}.file-heart{font:70px Georgia,serif;color:var(--wine);text-align:center;line-height:1.2;transform:rotate(-12deg)}.file-footer{border-top:2px solid var(--ink);padding-top:11px;display:flex;gap:28px;font-size:10px;font-weight:800}.file-sticker{position:absolute;top:72px;right:-28px;transform:rotate(17deg);width:85px;height:85px;border-radius:50%;background:#f0d98c;border:2px solid var(--ink);display:flex;align-items:center;justify-content:center;text-align:center;font-size:16px;font-weight:900;line-height:1.05;box-shadow:4px 4px 0 rgba(0,0,0,.18)}.sticky-note{position:absolute;bottom:9px;left:10px;transform:rotate(-12deg);background:#f7df85;border-radius:3px;padding:16px 20px;line-height:1.35;box-shadow:5px 7px 15px #28262224;font-size:15px;font-weight:700;z-index:2}.float-star{position:absolute;color:var(--wine);font-size:50px}.star-one{right:13px;bottom:26px}.star-two{left:25px;top:7px;font-size:33px}
.ticker{height:66px;background:var(--wine);color:white;overflow:hidden;display:flex;align-items:center;transform:rotate(-1.2deg) scale(1.03)}.ticker-track{display:flex;align-items:center;gap:35px;min-width:max-content;animation:marquee 31s linear infinite;font-weight:900;font-size:14px;letter-spacing:.15em;white-space:nowrap}.ticker-track b{font-weight:400;font-size:23px;color:#f5d59f}@keyframes marquee{to{transform:translateX(-50%)}}
.about{padding-top:140px;padding-bottom:95px}.section-heading{text-align:center;max-width:720px;margin:0 auto 49px}.section-heading .eyebrow{margin-bottom:17px}.section-heading h2,.qualification-copy h2{font-size:clamp(38px,4.5vw,60px);margin-bottom:15px}.section-heading h2 em,.qualification-copy h2 em{color:var(--wine)}.section-heading p,.qualification-copy p{color:var(--muted);line-height:1.7}.about-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:19px}.about-card{border:1.5px solid #352f2a;border-radius:13px;min-height:310px;padding:28px;position:relative;box-shadow:5px 6px 0 #312721;transition:transform .2s}.about-card:hover{transform:translateY(-5px) rotate(-1deg)}.about-card-lilac{background:var(--lilac)}.about-card-peach{background:var(--peach)}.about-card-yellow{background:var(--yellow)}.about-emoji{font-size:38px;margin-bottom:20px}.about-number{font-size:10px;letter-spacing:.15em;font-weight:900}.about-card h3{font-family:'Fraunces',Georgia,serif;font-size:27px;letter-spacing:-.04em;margin:13px 0}.about-card p{font-size:14px;line-height:1.78;color:#504742;margin:0}
.qualifications{display:grid;grid-template-columns:.95fr 1.05fr;gap:80px;align-items:center;padding-top:25px;padding-bottom:115px}.qualification-copy .eyebrow{margin-bottom:18px}.qualification-copy p{max-width:420px}.qualification-list{background:var(--cream);border:1px solid var(--outline);border-radius:16px;padding:20px 33px;box-shadow:8px 9px 0 #ece3d9}.qualification-list>div{display:flex;align-items:center;gap:15px;padding:19px 0;font-size:15px;font-weight:700}.qualification-list>div+div{border-top:1px dashed var(--outline)}.checkmark{flex:0 0 28px;height:28px;width:28px;display:grid;place-items:center;background:#e4ecd8;color:#345b3f;border-radius:50%;font-weight:900}
.application-zone{background:#eee2da;padding:110px 0 60px;position:relative;overflow:hidden}.application-zone:before{content:'♡';position:absolute;left:-36px;top:190px;font-size:200px;color:rgba(164,67,86,.11);transform:rotate(-20deg)}.application-zone:after{content:'✳';position:absolute;right:-20px;bottom:180px;font-size:150px;color:rgba(164,67,86,.14)}.application-wrap{position:relative;z-index:1;max-width:900px}.application-heading{margin-bottom:45px}.application-heading .eyebrow{color:var(--wine)}.application-card{background:var(--cream);border:1.5px solid #342d2a;border-radius:16px;box-shadow:9px 10px 0 #bd948e;overflow:hidden}.form-topbar{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:21px 34px;color:#675d56;font-size:10px;font-weight:900;letter-spacing:.12em;border-bottom:1px solid #e7dcd2}.form-topbar span:first-child{display:flex;align-items:center;gap:12px}.status-circle{width:6px;height:6px;box-shadow:0 0 0 3px rgba(139,218,158,.2)}.progress-track{width:100%;height:6px;background:#f2e8de}.progress-fill{height:100%;background:var(--wine);width:33.333%;transition:width .35s}
.form-step{padding:43px 45px 17px}.form-step[hidden],.result-panel[hidden],[hidden]{display:none!important}.step-header{text-align:center;margin-bottom:38px}.step-kicker{color:var(--wine);letter-spacing:.14em;font-size:10px;font-weight:900}.step-header h3,.result-panel h3{font-size:clamp(31px,4vw,44px);margin:13px 0 9px}.step-header h3 em,.result-panel h3 em{color:var(--wine)}.step-header p{font-size:14px;color:var(--muted);margin:0}.field{margin-bottom:27px}.field-row{display:grid;grid-template-columns:1.4fr .6fr;gap:18px}.field label:not(.choice):not(.confirm-choice),.field legend{font-size:13px;font-weight:900;margin-bottom:10px;display:block}.field label>span[aria-hidden='true'],.field legend>span[aria-hidden='true']{color:var(--wine)}.optional{font-size:9px;font-weight:900;background:#eee8e1;color:#8a8177;border-radius:5px;padding:4px 6px;margin-left:7px;letter-spacing:.03em}.field input:not([type=radio]):not([type=checkbox]),.field textarea{display:block;width:100%;border:1.5px solid #ded4c9;background:#fffefa;color:var(--ink);padding:15px 16px;outline:none;border-radius:8px;transition:border-color .2s,box-shadow .2s}.field input:not([type=radio]):not([type=checkbox]):focus,.field textarea:focus{border-color:var(--wine);box-shadow:0 0 0 3px rgba(164,67,86,.12)}.field input::placeholder,.field textarea::placeholder{color:#a6a09a}.field textarea{resize:vertical;min-height:98px}.field-hint{font-size:11px;color:#877c72;margin-top:7px}.field fieldset,fieldset.field{border:0;padding:0;min-width:0}.choice-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:11px}.choice-grid-three{grid-template-columns:repeat(3,1fr)}.choice{position:relative;cursor:pointer;min-width:0}.choice input{position:absolute;opacity:0;width:100%;height:100%;margin:0;cursor:pointer}.choice span{display:flex;align-items:center;justify-content:center;text-align:center;border:1.5px solid #ded4c9;background:#fffefa;min-height:54px;padding:10px 8px;border-radius:8px;font-size:13px;font-weight:700;transition:all .15s}.choice:hover span{border-color:#ad7280;background:#fff8f7}.choice input:checked+span{background:#f8e7e7;border:2px solid var(--wine);color:#87354a;box-shadow:0 3px 0 #d6a1a7}.choice input:focus-visible+span{outline:3px solid var(--wine);outline-offset:3px}.confirm-choice{display:flex;gap:12px;align-items:flex-start;font-size:13px;color:#554e46;line-height:1.65;cursor:pointer}.confirm-choice input{flex:0 0 18px;width:18px;height:18px;margin:3px 0 0;accent-color:var(--wine)}.privacy-note{background:#f0f6f1;border:1px solid #d8e5d9;border-radius:7px;padding:12px 14px;color:#536559;font-size:11px;line-height:1.7;margin-top:25px}.form-navigation{border-top:1px solid #eee5dc;min-height:105px;padding:24px 45px;display:flex;gap:14px;align-items:center;justify-content:space-between}.form-navigation .button{min-width:162px}.step-help{font-size:11px;color:#8c8179;margin-right:auto}.form-navigation .button-secondary+.step-help{margin-left:12px}.below-form{text-align:center;font-size:11px;color:#77675c;margin:29px 0 0}.below-form span{color:var(--wine)}
.result-panel{padding:55px 46px 40px;text-align:center}.result-icon{font-size:54px;margin-bottom:8px}.result-panel h3{margin:12px 0}.result-panel>p{max-width:570px;color:var(--muted);font-size:14px;line-height:1.75;margin:0 auto 25px}.result-panel>p strong{color:var(--ink)}.preview-card{border:1px solid #d9c9bb;border-radius:10px;text-align:left;background:#f8f4ee;overflow:hidden;margin:26px 0}.preview-label{background:#eee7df;border-bottom:1px solid #d9c9bb;padding:11px 16px;text-align:left;color:#74665c;font-size:10px;letter-spacing:.1em;font-weight:900}.preview-card pre{white-space:pre-wrap;overflow-wrap:anywhere;padding:21px;font:12px/1.8 ui-monospace,SFMono-Regular,Consolas,monospace;max-height:320px;overflow:auto;margin:0}.result-buttons{display:flex;gap:12px;justify-content:center;flex-wrap:wrap}.result-buttons .button{min-width:145px}.result-helper{margin-top:21px!important;font-size:11px!important}.submission-status{font-size:13px;font-weight:800;min-height:20px;margin:8px auto}.edit-button{background:transparent;border:0;text-decoration:underline;text-underline-offset:5px;font-size:12px;font-weight:800;margin-top:12px;color:#746b62}.edit-button:hover{color:var(--wine)}.toast{position:fixed;bottom:22px;left:50%;z-index:10;transform:translate(-50%,100px);opacity:0;background:var(--ink);color:white;box-shadow:0 10px 25px #0003;border-radius:10px;padding:12px 19px;font-size:13px;font-weight:800;pointer-events:none;transition:transform .22s,opacity .22s;text-align:center}.toast.show{transform:translate(-50%,0);opacity:1}
.site-footer{min-height:114px;display:flex;align-items:center;justify-content:space-between;gap:15px;font-size:12px;color:#746b63}.footer-brand{font:800 23px Georgia,serif;color:var(--ink)}.footer-brand span{color:var(--wine)}.site-footer p{margin:0}.site-footer>a:last-child{font-weight:800}.site-footer>a:last-child:hover{color:var(--wine)}
@media (max-width:990px){.hero{gap:15px;padding-top:62px;min-height:580px}.hero h1{font-size:clamp(49px,6.3vw,77px)}.hero-art{transform:scale(.86)}.scribble-heart{font-size:42px;right:-43px;top:-20px}.qualifications{gap:35px}}
@media (max-width:720px){.wrap{padding-inline:20px}.announcement{font-size:9px;gap:8px}.site-header{height:73px}.brand{font-size:18px}.brand-icon{width:36px;height:36px;font-size:24px}.brand-small{font-size:8px}.site-header nav{gap:12px}.site-header .nav-about{display:none}.nav-apply{font-size:11px;padding:10px 14px}.hero{grid-template-columns:1fr;padding-top:51px;padding-bottom:76px;gap:20px;text-align:center}.hero h1{font-size:clamp(48px,11vw,70px)}.hero-description{font-size:15px;margin-inline:auto;line-height:1.75}.hero-actions{justify-content:center;gap:23px}.hero-art{height:410px;transform:scale(.84);margin-top:15px}.fine-print{margin-top:22px}.sticky-note{left:-7px}.about{padding-top:110px;padding-bottom:70px}.about-grid{grid-template-columns:1fr;max-width:520px;margin:auto}.about-card{min-height:230px;padding:26px}.about-emoji{margin-bottom:11px}.qualifications{grid-template-columns:1fr;gap:20px;padding-bottom:88px}.qualification-copy{text-align:center}.qualification-copy p{margin-inline:auto}.qualification-list{max-width:560px;width:100%;margin:auto}.application-zone{padding-top:88px}.form-step{padding:33px 25px 0}.form-navigation{padding:22px 25px}.form-topbar{padding:19px 25px;font-size:9px}.result-panel{padding:41px 22px 33px}.site-footer{flex-wrap:wrap;justify-content:center;text-align:center;padding-block:23px}.site-footer p{order:3;width:100%}}
@media(max-width:480px){.hero h1{font-size:clamp(44px,11.8vw,58px)}.scribble-heart{right:-30px;top:-16px;font-size:33px}.hero-art{transform:scale(.76);height:375px;margin-top:0}.hero-actions .button{width:100%}.ticker{height:53px}.ticker-track{font-size:11px;gap:22px}.section-heading h2,.qualification-copy h2{font-size:39px}.choice-grid-three{grid-template-columns:1fr 1fr}.choice-grid{gap:8px}.choice span{font-size:11px;min-height:54px;padding:10px 5px}.field-row{grid-template-columns:1fr 105px;gap:10px}.field input:not([type=radio]):not([type=checkbox]),.field textarea{padding:12px 11px}.form-step{padding:30px 17px 5px}.form-navigation{padding:20px 17px;gap:9px}.form-navigation .button{min-width:0;padding:12px;font-size:12px}.step-help{font-size:10px}.form-topbar{padding:15px;font-size:8px}.result-buttons .button{width:100%}.application-card{border-radius:11px}.about-card h3{font-size:25px}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}.ticker-track{animation:none}.button,.choice span,.progress-fill,.toast{transition:none}}

/* Version 2 — compatibility exam / certificate */
.application-notices{padding:12px 34px;background:#f8f0e7;border-bottom:1px solid #ebddd0;color:#766153;font-size:11px;line-height:1.5}
.question-hint{margin:-3px 0 13px!important}
.conditional-block{padding:17px 18px 2px;background:#f9f2ee;border-left:3px solid var(--wine);border-radius:0 8px 8px 0;margin:-2px 0 26px}
.conditional-block[hidden]{display:none!important}
.question{margin-bottom:32px}
.question .choice-grid{gap:9px}
.question .choice span{min-height:62px;padding:12px 15px;font-size:13px;line-height:1.45;text-align:left;justify-content:flex-start}
.outcome-panel{padding:58px 46px 51px;text-align:center}
.outcome-panel h3{font-family:'Fraunces',Georgia,serif;font-size:clamp(30px,4vw,42px);letter-spacing:-.04em;margin:15px 0}
.outcome-panel>p{max-width:610px;font-size:15px;line-height:1.8;color:#625a55;margin:8px auto 22px}
.gentle-note{margin:25px auto;max-width:590px;padding:19px;background:#faf0ee;border-radius:9px;font-size:13px;color:#64534d;line-height:1.65}
.locked-caption{font-size:11px;letter-spacing:.12em;font-weight:800;color:#88746b;text-transform:uppercase}
.code-label{display:block;font-size:13px;font-weight:700;margin:20px auto 7px}
#verificationCode{font-size:28px;letter-spacing:.28em;display:block;text-align:center;border-radius:9px;border:1.5px solid #d8b9b1;width:190px;max-width:100%;padding:12px;margin:0 auto 22px;background:#fffefa}
.score-display{max-width:480px;margin:29px auto 25px;text-align:center}
.score-display>strong{font-family:'Fraunces',Georgia,serif;font-size:70px;line-height:1;display:block;letter-spacing:-.075em;color:var(--wine)}
.score-display>strong span{font-size:25px;color:#98897e;letter-spacing:-.03em}
.score-display>span{font-size:10px;font-weight:900;color:#928279;letter-spacing:.14em}
.score-bar{margin:22px 0 12px;border-radius:15px;height:12px;overflow:hidden;background:#eee6de}
.score-bar>div{background:linear-gradient(90deg,#bf7283,#a44356);height:100%;border-radius:15px;transition:width .6s ease;width:0}
.discount-certificate{border:2px dashed #a44356;border-radius:12px;padding:23px 20px 18px;background:#fbedeb;max-width:590px;margin:0 auto 28px;box-shadow:5px 5px 0 #f0dad5}
.discount-certificate>span{font-weight:900;font-size:10px;letter-spacing:.1em;color:#8f4c5a}
.discount-certificate>strong{display:block;font-family:'Fraunces',Georgia,serif;font-size:clamp(39px,7vw,58px);color:#953e52;letter-spacing:-.05em;margin:6px 0}
.discount-certificate p{font-size:13px;color:#6c5157;margin:0;line-height:1.6}
.score-breakdown{max-width:560px;margin:4px auto 20px;text-align:left;background:#fffefa;border:1px solid #e8ddd3;border-radius:10px;padding:7px 18px}
.score-breakdown>div{display:flex;justify-content:space-between;gap:20px;padding:9px 0;font-size:13px;border-bottom:1px solid #f0e8df}
.score-breakdown>div:last-child{border-bottom:0}.score-breakdown-final{font-weight:900}
.privacy-footnote{font-size:11px!important;color:#84796f!important;max-width:650px!important;margin:25px auto 0!important}
@media(max-width:720px){.outcome-panel{padding:43px 22px 39px}.application-notices{padding:12px 23px}}
@media(max-width:480px){.question .choice-grid{grid-template-columns:1fr}.question .choice span{min-height:45px;font-size:12px;padding:11px 13px}.outcome-panel{padding:36px 18px}.discount-certificate{padding:19px 12px}.score-display>strong{font-size:62px}}

/* Version 3 — friendly repeat-applicant detection and reopenable results. */
.repeat-notice{margin:0 0 22px;padding:15px 17px;border:1px solid #e3c4a8;border-radius:9px;background:#fff2de;color:#694c38;font-size:13px;line-height:1.6}
.repeat-notice[hidden]{display:none!important}
.history-list{max-width:630px;margin:22px auto 26px;text-align:left}
.history-entry{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:16px 18px;margin:10px 0;background:#f8f4ee;border:1px solid #e7d8cc;border-radius:11px}
.history-entry-copy{display:flex;flex-direction:column;gap:5px;min-width:0}
.history-entry-copy strong{font-size:14px}
.history-entry-copy span{font-size:12px;color:#75645d}
.history-entry .button{min-height:43px;white-space:nowrap;font-size:12px;padding:10px 12px}
.history-empty{font-size:13px;color:#6d625e;line-height:1.7;background:#faf0ea;border-radius:9px;padding:18px}
.panel-new-button,.result-secondary-actions{margin-top:20px}
.result-secondary-actions .button{background:#fffdfa}
@media (max-width:520px){.history-entry{flex-direction:column;align-items:stretch}.history-entry .button{width:100%}}

/* Prevent subtle horizontal scrolling from rotated decorative elements on narrow screens. */
html{overflow-x:clip}


/* Version 4 — replaceable Patrick photo slideshow and expanded six-card bio. */
.about-gallery{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:clamp(26px,5vw,70px);align-items:center;max-width:1010px;margin:0 auto 70px}
.portrait-carousel{min-width:0;max-width:410px;width:100%;margin:0 auto}
.portrait-stage{position:relative;aspect-ratio:4/5;border:2px solid var(--ink);border-radius:16px;background:#efe5dc;box-shadow:9px 10px 0 #d4aca5;overflow:hidden}
.portrait-slide{position:absolute;inset:0;margin:0}
.portrait-slide[hidden]{display:none!important}
.portrait-slide img{display:block;width:100%;height:100%;object-fit:cover}
.portrait-stamp{position:absolute;top:20px;left:18px;max-width:calc(100% - 36px);background:#fff9f1;color:#47373b;transform:rotate(-5deg);border:1px solid #9a666d;border-radius:4px;padding:9px 13px;box-shadow:3px 4px 0 #a7525944;font-size:10px;font-weight:900;letter-spacing:.12em;pointer-events:none}
.portrait-stamp span{color:var(--wine)}
.portrait-counter{position:absolute;right:16px;bottom:16px;background:#fff9f1e9;color:#6e4650;border:1px solid #eadcd2;border-radius:100px;padding:6px 12px;font-size:11px;letter-spacing:.08em;font-weight:900;pointer-events:none}
.portrait-controls{display:flex;align-items:center;justify-content:center;gap:13px;min-height:64px;padding-top:13px;flex-wrap:wrap}
.portrait-arrow{display:grid;place-items:center;flex:0 0 39px;height:39px;border-radius:50%;border:1.5px solid #c6a29d;background:#fffaf5;color:var(--wine);font-size:21px;line-height:1;transition:background .2s,transform .2s}
.portrait-arrow:hover{background:#f8e4e6;transform:translateY(-2px)}
.portrait-dots{display:flex;justify-content:center;align-items:center;gap:9px;padding:9px 5px}
.portrait-dot{width:12px;height:12px;border-radius:50%;border:1px solid #aa7d7c;background:#ecd6d4;padding:0;transition:background .2s,transform .2s}
.portrait-dot.is-active{background:var(--wine);transform:scale(1.22)}
.portrait-play{border:0;background:transparent;color:#806c64;font-size:11px;min-width:74px;font-weight:800;padding:8px 4px}
.portrait-play:hover{color:var(--wine)}
.about-gallery-copy .eyebrow{margin-bottom:16px}
.about-gallery-copy h3{font-family:'Fraunces',Georgia,serif;font-size:clamp(34px,4.5vw,57px);line-height:1.1;letter-spacing:-.05em;margin:0 0 27px}
.about-gallery-copy h3 em{color:var(--wine)}
.about-gallery-copy p{color:var(--muted);font-size:16px;line-height:1.9;max-width:520px;margin-bottom:18px}
.about-gallery-handwritten{display:inline-block;font-family:'Fraunces',Georgia,serif;font-style:italic;font-weight:650;color:var(--wine);background:#fff2df;padding:10px 15px;transform:rotate(-2deg);border-radius:6px;margin-top:13px;box-shadow:3px 3px 0 #edd5c9}
.sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.about-card{min-height:310px}
@media(max-width:900px){.about-gallery{gap:30px}.about-gallery-copy h3{font-size:39px}.about-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:720px){.about-gallery{grid-template-columns:1fr;gap:26px;margin-bottom:55px}.about-gallery-copy{text-align:center;max-width:550px;margin:auto}.about-gallery-copy p{margin-inline:auto}.portrait-carousel{max-width:390px}.about-grid{grid-template-columns:1fr}.about-card{min-height:0}}
@media(max-width:480px){.portrait-carousel{max-width:350px}.portrait-controls{gap:9px}.about-gallery-copy h3{font-size:36px}.about-gallery-copy p{font-size:14px}.portrait-stamp{top:13px;left:13px}}
@media(prefers-reduced-motion:reduce){.portrait-arrow,.portrait-dot{transition:none}}


/* V5 — PDF-first results. The read-only viewer replaces the old text packet. */
.pdf-preview-card{border:1px solid #d9c9bb;border-radius:12px;background:#f8f4ee;overflow:hidden;margin:28px 0 24px}
.pdf-preview-heading{display:flex;justify-content:space-between;gap:15px;padding:12px 18px;background:#eee7df;color:#75655b;font-size:10px;font-weight:900;letter-spacing:.1em;text-align:left}
.pdf-preview-heading span:last-child{color:#a44356}
#applicationPdfPreview{display:block;width:100%;height:620px;background:#efe8df;border:0}
.pdf-preview-help{margin:0;padding:11px 18px 15px;font-size:11px;line-height:1.55;text-align:left;color:#72675f}
#resultDeliveryButtons .button{min-width:158px}
@media(max-width:720px){#applicationPdfPreview{height:460px}}
@media(max-width:480px){#applicationPdfPreview{height:390px}.pdf-preview-heading{font-size:9px;padding:11px}.pdf-preview-help{font-size:10px}}
