/* A screen at a time, with ordinary scrolling inside longer sections. */
:root { --screen-header-height:96px; --screen-panel-height:calc(100svh - var(--screen-header-height)); --screen-progress:0%; }
html:has(body[data-site="saywell"]) { scroll-padding-top:var(--screen-header-height); scroll-behavior:smooth; }
body[data-site="saywell"] { --screen-space:clamp(24px,4.5svh,60px); --saywell-header-height:var(--screen-header-height); --saywell-panel-height:var(--screen-panel-height); }
body[data-site="saywell"] > .site-header { position:sticky; top:0; z-index:65; background:#FAF7F2F5; backdrop-filter:blur(16px); }
body[data-site="saywell"] #main .screen-panel {
 box-sizing:border-box; position:relative; width:100%; height:var(--screen-panel-height); min-height:var(--screen-panel-height); max-height:var(--screen-panel-height);
 margin-block:0; padding-block:var(--screen-space); overflow-x:hidden; overflow-y:auto; scrollbar-width:thin; scrollbar-color:#A8BAB0 transparent;
 scroll-padding-block:24px; scroll-margin-top:0; overscroll-behavior-y:auto; border:0; border-top:1px solid #C8D1C5;
 background:radial-gradient(ellipse at 88% 12%,#DFE9E280,transparent 65%),linear-gradient(135deg,#FAF7F2,#F4F1E9);
}
body[data-site="saywell"] #main .screen-panel:nth-child(3n+2) { background:radial-gradient(ellipse at 92% 24%,#EAD9CA75,transparent 68%),linear-gradient(130deg,#FAF7F2,#F3F1E7); }
body[data-site="saywell"] #main .screen-panel:nth-child(3n) { background:radial-gradient(ellipse at 8% 86%,#CBDDD055,transparent 65%),linear-gradient(135deg,#F5F3EC,#EEF2E8); }
body[data-site="saywell"] #main .screen-panel:focus { outline:none; }
body[data-site="saywell"] #main .screen-panel:focus-visible { box-shadow:inset 3px 0 #B9563D; }
body[data-site="saywell"] #main .screen-panel :is([id],a,button,summary,input,select,textarea) { scroll-margin-block:24px; }
body[data-site="saywell"] .screen-panel > :first-child { margin-top:0; }
body[data-site="saywell"] .screen-panel > :last-child { margin-bottom:0; }

/* Gradient rules divide the canvas without adding another label. */
body[data-site="saywell"] #main .screen-panel { border-image:linear-gradient(90deg,#D8DDD0,#A9BCB1 38%,#C79C8666 72%,#E5E1D6) 1; }
body.screen-experience::before { content:""; position:fixed; inset:0 auto auto 0; width:var(--screen-progress); height:3px; background:linear-gradient(90deg,#164E4B,#B9563D); z-index:95; pointer-events:none; transition:width .12s linear; }
.screen-nav { position:fixed; z-index:60; right:24px; bottom:20px; display:flex; align-items:center; gap:3px; padding:5px; color:#164E4B; background:#FAF7F2F5; border:1px solid #B7C5BA; border-radius:999px; box-shadow:0 4px 20px #24333112; backdrop-filter:blur(12px); }
.screen-nav[hidden],.screen-nav[inert] { display:none; }
.screen-nav button { display:grid; place-items:center; width:42px; height:42px; padding:0; border:0; border-radius:50%; background:transparent; color:inherit; font:400 22px/1 var(--sans); cursor:pointer; transition:color .2s,background .2s; }
.screen-nav button:hover:not(:disabled) { background:#164E4B; color:#FAF7F2; }
.screen-nav button:focus-visible { outline:2px solid #A84A33; outline-offset:2px; }
.screen-nav button:disabled { opacity:.3; cursor:default; }
.screen-position { min-width:44px; text-align:center; font:500 12px/1.2 var(--sans); font-variant-numeric:tabular-nums; color:#5F6B68; }
body[data-site="saywell"] > .site-footer { padding-bottom:92px; }

/* Shared studio chrome stays identical across the public pages. */
body[data-site="saywell"] > .site-header { display:flex; justify-content:space-between; align-items:center; box-sizing:border-box; gap:32px; min-height:96px; padding:18px 52px; }
body[data-site="saywell"] > .site-header .wordmark img { width:180px; height:auto; }
body[data-site="saywell"] > .site-header #site-nav { display:flex; align-items:center; gap:30px; font-size:16px; line-height:1.5; }
body[data-site="saywell"] > .site-header #site-nav > a:not(.button) { min-height:44px; display:inline-flex; align-items:center; padding:0; color:#243331; }
body[data-site="saywell"] > .site-header #site-nav > a[aria-current] { text-decoration:underline; text-decoration-thickness:1px; text-underline-offset:6px; color:#164E4B; }
body[data-site="saywell"] > .site-header #site-nav > .button { margin:0; padding:11px 20px; min-height:46px; font-size:16px; color:#FAF7F2; }
body[data-site="saywell"] > .site-footer { grid-template-columns:190px minmax(0,1fr) auto; gap:36px; align-items:start; padding:42px max(40px,calc((100vw - 1280px)/2)) 92px; }
body[data-site="saywell"] .site-footer > .studio-footer-main { display:block; max-width:none; min-width:0; grid-column:auto; }
body[data-site="saywell"] .studio-footer-main > p { max-width:600px; font-size:14px; line-height:1.8; }
body[data-site="saywell"] .site-footer .studio-footer-links { display:flex; flex-wrap:wrap; gap:4px 20px; margin-top:14px; font-size:14px; line-height:1.5; }
body[data-site="saywell"] .studio-footer-links > a { display:inline-flex; align-items:center; min-height:38px; color:#FAF7F2; }
body[data-site="saywell"] .site-footer .studio-footer-legal { display:flex; flex-wrap:wrap; justify-content:flex-end; align-items:center; max-width:190px; gap:8px 20px; grid-column:auto; font-size:14px; }
body[data-site="saywell"] .studio-footer-legal button { display:inline-flex; align-items:center; min-height:38px; font-size:14px; }
body[data-site="saywell"] .studio-footer-legal > span { width:100%; text-align:right; font-size:13px; }
body[data-site="saywell"] .site-footer :is(a,button):hover { color:#FFFFFF; text-decoration:underline; text-underline-offset:5px; }
body[data-site="saywell"] .site-footer :focus-visible { outline:2px solid #FAF7F2; outline-offset:4px; }
@media(max-width:1000px) {
 body[data-site="saywell"] > .site-header { padding-inline:32px; gap:24px; }
 body[data-site="saywell"] > .site-header .wordmark img { width:160px; }
 body[data-site="saywell"] > .site-header #site-nav { gap:20px; font-size:14px; }
 body[data-site="saywell"] > .site-header #site-nav > .button { font-size:14px; }
 body[data-site="saywell"] > .site-footer { grid-template-columns:170px minmax(0,1fr); padding-inline:32px; gap:24px 30px; }
 body[data-site="saywell"] .site-footer .studio-footer-legal { grid-column:2; justify-content:flex-start; max-width:none; }
 body[data-site="saywell"] .studio-footer-legal > span { width:auto; flex-basis:auto; text-align:left; }
}
@media(max-width:800px) {
 body[data-site="saywell"] > .site-header { min-height:80px; padding:14px 24px; }
 body[data-site="saywell"] > .site-header #site-nav { display:none; position:absolute; inset:calc(100% - 1px) 0 auto; padding:12px 24px 24px; align-items:stretch; flex-direction:column; gap:0; max-height:calc(100dvh - 80px); overflow-y:auto; background:#FAF7F2; border-bottom:1px solid #DEDfD5; }
 body[data-site="saywell"] > .site-header #site-nav.is-open { display:flex; }
 body[data-site="saywell"] > .site-header #site-nav > a:not(.button) { min-height:48px; padding:9px 0; font-size:16px; }
 body[data-site="saywell"] > .site-header #site-nav > .button { margin-top:12px; justify-content:space-between; font-size:16px; }
 body[data-site="saywell"] .studio-footer-links > a,body[data-site="saywell"] .studio-footer-legal button { min-height:44px; }
}
@media(max-width:550px) {
 body[data-site="saywell"] > .site-header { padding:13px 22px; }
 body[data-site="saywell"] > .site-header .wordmark img { width:150px; }
 body[data-site="saywell"] > .site-footer { grid-template-columns:1fr; padding-inline:24px; gap:24px; }
 body[data-site="saywell"] .site-footer .studio-footer-legal { grid-column:auto; }
 body[data-site="saywell"] .studio-footer-legal > span { flex-basis:100%; }
}

/* Homepage: retain the original composition and the planner's two panes. */
body.saywell-editorial #main > .editorial-hero.screen-panel { display:grid; align-content:start; align-content:safe center; align-items:center; }
body.saywell-editorial #main > .editorial-hero .editorial-hero-art { height:min(500px,calc(var(--screen-panel-height) - var(--screen-space)*2)); min-height:0; }
body.saywell-editorial #main > .home-selected.screen-panel { display:flex; flex-direction:column; justify-content:flex-start; justify-content:safe center; }
body.saywell-editorial #main > .home-selected.screen-panel > * { flex-shrink:0; }
body.saywell-editorial #main > .addon-showcase.screen-panel { display:flex; flex-direction:column; justify-content:flex-start; justify-content:safe center; }
body.saywell-editorial #main > .addon-showcase.screen-panel > * { flex-shrink:0; }
body.saywell-editorial #main > #pricing.screen-panel { padding-block:clamp(20px,3svh,36px); display:flex; flex-direction:column; overflow:hidden; }
body.saywell-editorial #main > #faq.screen-panel { align-content:start; align-content:safe center; }
body.saywell-editorial #main > #ai-summary.screen-panel { height:var(--screen-panel-height); min-height:var(--screen-panel-height); max-height:var(--screen-panel-height); overflow-y:auto; padding-block:var(--screen-space); display:flex; flex-direction:column; justify-content:center; align-items:center; gap:36px; background:radial-gradient(ellipse at 15% 0,#3A686255,transparent 60%),linear-gradient(125deg,#164E4B,#243331 75%); color:#FAF7F2; border-top-color:#8AA393; }
body.saywell-editorial #ai-summary.screen-panel h2 { font-size:clamp(36px,4.5vw,64px); }
body.saywell-editorial #ai-summary.screen-panel .saywell-ai-providers { gap:clamp(22px,4vw,54px); }

/* The services hero includes its page navigation on the same canvas. */
body.saywell-services #main > .sw-services-hero.screen-panel { --services-art-height:min(450px,calc(var(--screen-panel-height) - 240px)); grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr); align-content:start; align-content:safe center; column-gap:48px; row-gap:28px; }
body.saywell-services .sw-services-hero-copy { min-width:0; }
body.saywell-services .sw-services-hero-copy h1 { max-width:10ch; font-size:clamp(46px,4.8vw,70px); line-height:1.06; letter-spacing:-.055em; }
body.saywell-services .sw-services-hero-copy > p:not(.eyebrow) { max-width:360px; margin:22px 0 0; font-size:20px; line-height:1.6; }
body.saywell-services .sw-services-hero.screen-panel .sw-service-nav { grid-column:1/-1; position:relative; z-index:2; width:100%; padding-inline:0; max-width:none; margin-top:0; }
body.saywell-services .sw-services-hero .sw-service-nav a { min-height:64px; }
body.saywell-services #main > .sw-services-hero .sw-services-hero-art { height:var(--services-art-height); width:100%; max-width:calc(var(--services-art-height)*1.5); justify-self:end; padding:0; min-height:0; margin:0; }
/* Both mockups fit the art's height, including their rotation and movement. */
body.saywell-services .sw-services-hero .sw-hero-desktop { position:absolute; left:14px; bottom:24px; width:min(calc(100% - 54px),calc((var(--services-art-height) - 76px)*1.6)); max-width:none; transform:rotate(-3deg); }
body.saywell-services .sw-services-hero .sw-hero-desktop > img { display:block; width:100%; height:auto; aspect-ratio:1.6; object-fit:cover; object-position:top; }
body.saywell-services .sw-services-hero .sw-hero-phone { box-sizing:border-box; top:12px; right:14px; width:auto; height:calc(var(--services-art-height) - 40px); max-height:380px; max-width:none; aspect-ratio:390/844; transform:rotate(5deg); }
body.saywell-services .sw-services-hero .sw-hero-phone > img { display:block; width:100%; height:100%; aspect-ratio:auto; object-fit:cover; object-position:top; }
body.saywell-services #main > .sw-redesign-section.screen-panel { display:grid; align-content:start; align-content:safe center; }
body.saywell-services #main > .sw-care-section.screen-panel { display:flex; flex-direction:column; justify-content:flex-start; justify-content:safe center; }
body.saywell-services .sw-care-section.screen-panel > * { flex-shrink:0; }
body.saywell-services #main > .sw-growth-section.screen-panel { display:flex; flex-direction:column; justify-content:flex-start; justify-content:safe center; }
body.saywell-services .sw-growth-section.screen-panel > * { flex-shrink:0; }
body.saywell-services .sw-faq-section .sw-services-contact-compact { height:auto; min-height:0; max-height:none; display:block; padding:22px 0 0; margin:24px 0 0; }
body.saywell-services .sw-faq-section .sw-services-contact-compact .sw-contact-actions { padding:0; }

/* Collections are one screen-sized workspace, never a blank title screen. */
body.studio-library-page #main > .project-library.screen-panel,
body.template-library-page #main > .library-section.screen-panel { display:block; padding-bottom:88px; }
body.studio-library-page .project-library > .library-page-intro,
body.template-library-page .library-section > .library-hero { width:100%; max-width:none; height:auto; min-height:0; padding:0 0 22px; margin:0; display:block; background:transparent; border:0; }
body.studio-library-page .library-heading-only h1,
body.template-library-page .library-section .library-hero h1 { font-size:clamp(30px,3.5vw,48px); line-height:1.12; margin:0; }
body.template-library-page .library-section .library-hero p { margin:14px 0 0; font-size:18px; }
body.studio-library-page .library-controls { margin-bottom:24px; padding-block:16px 18px; }
body.studio-library-page .library-grid,
body.template-library-page .template-grid { padding-bottom:20px; }

/* Project heroes show the finished website beside a short introduction. */
body.redesign-case-page #main > .comparison-hero.screen-panel { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1.1fr); gap:28px 64px; align-items:center; align-content:start; align-content:safe center; }
body.redesign-case-page .comparison-hero .comparison-back { grid-column:1/-1; margin:0; }
body.redesign-case-page .comparison-hero .comparison-intro { display:flex; flex-direction:column; align-items:flex-start; gap:24px; min-width:0; }
body.redesign-case-page .comparison-hero .comparison-intro h1 { font-size:clamp(42px,5.5vw,78px); line-height:1.05; }
.screen-case-art { min-width:0; padding:14px; border:1px solid #B6C4B7; border-radius:8px; background:linear-gradient(135deg,#ECF0E5,#DCE5D7); box-shadow:0 16px 40px #24333112; transform:rotate(-2deg); }
.screen-case-art img { display:block; width:100%; height:auto; max-height:calc(var(--screen-panel-height) - 180px); object-fit:cover; object-position:top; border:1px solid #D2D7CA; border-radius:3px; }
body.redesign-case-page #main > .comparison-direction.screen-panel { display:flex; flex-direction:column; justify-content:flex-start; justify-content:safe center; }
body.redesign-case-page .comparison-direction .comparison-related { margin-top:28px; }
body.redesign-case-page .comparison-section .redesign-stage { height:clamp(220px,calc(var(--screen-panel-height) - 270px),580px); min-height:0; grid-template-columns:minmax(0,1fr); grid-template-rows:minmax(0,1fr); overflow:hidden; }
body.redesign-case-page .comparison-section .redesign-screen { height:100%; max-height:100%; min-height:0; }
body.redesign-case-page .comparison-section .redesign-screen img { height:100%; aspect-ratio:auto; object-fit:cover; object-position:top; }
body.redesign-case-page .comparison-section .redesign-showcase[data-device="mobile"] .redesign-stage { height:clamp(240px,calc(var(--screen-panel-height) - 290px),620px); min-height:0; }
body.redesign-case-page .comparison-section .redesign-showcase[data-device="mobile"] .redesign-screen { width:auto; max-width:300px; height:100%; aspect-ratio:390/844; }
body.redesign-case-page .comparison-section .redesign-showcase[data-device="mobile"] .redesign-screen img { width:100%; height:100%; object-fit:cover; object-position:top; }

/* The fact sheet shares the same rhythm while keeping its tables readable. */
body.saywell-summary-page #main.summary-reader { max-width:1384px; width:100%; padding:0; }
body.saywell-summary-page .summary-reader .screen-panel { padding-inline:52px; }
body.saywell-summary-page .summary-reader .summary-intro.screen-panel { max-width:none; display:flex; flex-direction:column; justify-content:flex-start; justify-content:safe center; }
body.saywell-summary-page .summary-reader .summary-intro.screen-panel > * { flex-shrink:0; }
body.saywell-summary-page .summary-intro .summary-facts { margin:22px 0 0; }
body.saywell-summary-page .summary-intro .summary-back { margin-bottom:24px; }
body.saywell-summary-page .summary-reader article > section.screen-panel { display:flex; flex-direction:column; justify-content:flex-start; justify-content:safe center; }
body.saywell-summary-page .summary-reader article > section.screen-panel > * { flex-shrink:0; }
body.saywell-summary-page .summary-reader .summary-table-wrap { flex-shrink:0; }

/* Final surface details use the same paper, ink and accent as the wordmark. */
body.saywell-editorial .concept-front-image > picture { position:absolute; inset:0; }
body.saywell-editorial .concept-front { border-color:#BDC3B6; box-shadow:0 18px 40px -12px #24333124,0 1px 3px #2433310A; }
body.saywell-editorial .concept-phone { box-shadow:0 22px 40px -12px #24333138,0 2px 5px #2433310A; }
body[data-site="saywell"] .contact-card {
 position:relative; border:1px solid #CCD5C8; border-radius:12px;
 background:linear-gradient(145deg,#FFFDFA,#F8F7F0); box-shadow:0 16px 40px -14px #24333120;
}
body[data-site="saywell"] .contact-card::before { content:""; position:absolute; top:-1px; left:24px; width:52px; height:3px; border-radius:0 0 2px 2px; background:#B9563D; pointer-events:none; }
body[data-site="saywell"] .contact-fields :is(input,textarea) { background:#FFFFFFB3; border-color:#C8D2C5; border-radius:6px; transition:border-color .18s,box-shadow .18s; }
body[data-site="saywell"] .contact-fields :is(input,textarea):focus { background:#FFFEFB; border-color:#54776B; box-shadow:0 0 0 3px #164E4B0A; }
body[data-site="saywell"] .contact-fields label { color:#164E4B; }
body[data-site="saywell"] .contact-card .contact-note { color:#58665E; }
body.saywell-editorial #faq .faq-question-icon { background:#E3EBDF; color:#406357; }
body.saywell-editorial #faq details[open] .faq-question-icon { background:#164E4B; color:#FAF7F2; }
body.saywell-editorial #faq .faq-list details[open] summary { color:#164E4B; }
body[data-site="saywell"] .live-planner .lp-layout { border-color:#BFCDBC; border-radius:12px; box-shadow:0 16px 40px -18px #24333122; }
body[data-site="saywell"] .live-planner .lp-type-option { border-radius:6px; }
body[data-site="saywell"] .live-planner .lp-demo-window { border:1px solid #C5D1BD; border-radius:7px; box-shadow:0 8px 22px #2433310A; }
body[data-site="saywell"] .merged-services .as-visual,
body.saywell-services .sw-project-stage { border-radius:10px; box-shadow:inset 0 0 0 1px #FFFFFF99,0 12px 32px -18px #24333124; }
body.saywell-editorial .motion-stage { border-radius:8px; box-shadow:0 12px 30px -20px #24333144; }
body[data-site="saywell"] .library-card-preview,
body[data-site="saywell"] .template-card { border-radius:8px; }
body[data-site="saywell"] .button { border-radius:7px; }
body[data-site="saywell"] .screen-nav { box-shadow:0 7px 24px -6px #24333126; }

@media(max-width:1000px) {
 body.redesign-case-page #main > .comparison-hero.screen-panel { column-gap:36px; }
 body.saywell-summary-page .summary-reader .screen-panel { padding-inline:32px; }
}
@media(max-width:850px) {
 :root { --screen-header-height:80px; }
 body[data-site="saywell"] { --screen-space:clamp(22px,4svh,36px); }
 body.saywell-editorial #main > #pricing.screen-panel { overflow-y:auto; }
 body.saywell-editorial #pricing .lp-layout { flex:0 0 auto; }
 body.saywell-editorial #pricing #live-planner-form { overflow-y:visible; }
 body.saywell-editorial #main > .editorial-hero .editorial-hero-art { height:clamp(210px,34svh,330px); }
 body.saywell-editorial #main > .editorial-hero.screen-panel { gap:22px; }
 body.saywell-services #main > .sw-services-hero.screen-panel { --services-art-height:clamp(180px,27svh,250px); grid-template-columns:1fr; row-gap:20px; }
 body.saywell-services .sw-services-hero-copy h1 { max-width:none; font-size:clamp(36px,8vw,52px); }
 body.saywell-services .sw-services-hero-copy > p:not(.eyebrow) { max-width:420px; margin-top:14px; font-size:18px; line-height:1.5; }
 body.saywell-services .sw-services-hero-copy .sw-hero-actions { margin-top:20px; }
 body.saywell-services #main > .sw-services-hero .sw-services-hero-art { height:var(--services-art-height); max-width:min(510px,calc(var(--services-art-height)*1.5)); justify-self:center; }
 body.saywell-services .sw-services-hero .sw-hero-phone { height:calc(var(--services-art-height) - 28px); }
 body.saywell-services .sw-services-hero .sw-service-nav { margin-top:0; }
 body.saywell-services .sw-services-hero .sw-service-nav a { min-height:48px; font-size:13px; }
 body.redesign-case-page #main > .comparison-hero.screen-panel { grid-template-columns:1fr; gap:22px; }
 body.redesign-case-page .comparison-hero .comparison-intro { gap:16px; }
 body.redesign-case-page .comparison-hero .comparison-intro h1 { font-size:clamp(36px,7vw,58px); }
 body.redesign-case-page .comparison-intro-copy p { font-size:18px; margin-bottom:14px; }
 .screen-case-art { max-width:560px; width:100%; justify-self:center; padding:8px; transform:rotate(-1deg); }
 .screen-case-art img { height:clamp(170px,29svh,300px); }
 body.saywell-summary-page .summary-reader .screen-panel { padding-inline:24px; }
 .screen-nav { right:14px; bottom:14px; padding:4px; }
 .screen-nav button { width:40px; height:40px; }
 .screen-position { min-width:40px; font-size:11px; }
 body[data-site="saywell"] #main .screen-panel { scroll-padding-bottom:74px; }
}
@media(max-height:650px) and (min-width:851px) {
 body[data-site="saywell"] { --screen-space:24px; }
 body.saywell-services #main > .sw-services-hero.screen-panel { --services-art-height:min(340px,calc(var(--screen-panel-height) - 160px)); }
 body.saywell-services .sw-services-hero .sw-service-nav { margin-top:0; }
 body.saywell-services #main > .sw-services-hero.screen-panel { row-gap:18px; }
}
@media(prefers-reduced-motion:reduce) {
 html:has(body[data-site="saywell"]) { scroll-behavior:auto; }
 body.screen-experience::before,.screen-nav button,body[data-site="saywell"] .contact-fields :is(input,textarea) { transition:none; }
}
@media print {
 body[data-site="saywell"] > .site-header { position:static; }
 body[data-site="saywell"] #main .screen-panel { height:auto!important; min-height:0!important; max-height:none!important; overflow:visible!important; break-inside:auto; }
 .screen-nav,body.screen-experience::before { display:none; }
}
