/* RoofForma Scroll Craft: one construction sequence, then a readable workbench. */
:root{
  --sc-canvas:var(--bg);--sc-surface:var(--paper);--sc-ink:var(--ink);--sc-ink-soft:var(--muted);
  --sc-accent:var(--accent);--sc-accent-ink:var(--accent-ink);
  --sc-font-display:var(--sans);--sc-font-text:var(--sans);--sc-font-mono:var(--mono);
  --sc-z-chrome:50;--sc-d-base:240ms;
}
::selection{background:var(--accent);color:var(--accent-ink)}
:root{accent-color:var(--accent);caret-color:var(--accent)}
html{scrollbar-color:var(--line) transparent}
body{overflow-x:clip}
/* Existing reveal classes must never hide the information or first frame. */
.rv,.rv.in,.js .rv{opacity:1;transform:none;transition:none;will-change:auto}
.wave i{animation:none;height:12px}
.wave i:nth-child(3n){height:20px}
.wave i:nth-child(3n + 1){height:7px}

/* The normal-flow composition is the complete no-script/mobile fallback. */
#roof-story{padding:0;overflow:visible;isolation:isolate;background:none;border-bottom:0}
#roof-story::after{display:none}
html:not(.craft-active) #roof-story{height:auto!important;min-height:0!important}
#roof-story .hero-stage{position:relative;top:auto;height:auto;min-height:0;overflow:visible;padding:48px 0 0;isolation:isolate;background:var(--bg)}
#roof-story .hero-stage::before,#roof-story .hero-stage::after{content:"";position:absolute;pointer-events:none;z-index:0}
#roof-story .hero-stage::before{inset:0;background-image:linear-gradient(var(--grid-major) 1px,transparent 1px),linear-gradient(90deg,var(--grid-major) 1px,transparent 1px),linear-gradient(var(--grid-minor) 1px,transparent 1px),linear-gradient(90deg,var(--grid-minor) 1px,transparent 1px);background-size:144px 144px,144px 144px,24px 24px,24px 24px}
#roof-story .hero-stage::after{inset:0;background:linear-gradient(180deg,transparent 45%,var(--bg) 100%)}
#roof-story .hero-stage>.wrap{position:relative;z-index:1;width:100%;display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);gap:24px 40px;align-items:center}
#roof-story #sheet{margin-top:0;transform:none}
#roof-story .sheet-in img,#roof-story .sheet-in img.on{transform:none;transform-origin:50% 90%;transition:opacity 240ms ease}
#roof-story .callout{transition:opacity 180ms ease,transform 180ms ease}
#roof-story .callout.on{transform:none}
#roof-story .hero-top{position:relative;z-index:2}
#roof-story .hero-note{padding-block:16px 20px}
#roof-story .hero-note>a{min-height:44px}
#roof-story .hero-note>a b{display:none}
#motionBtn{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:44px;padding:8px 12px;border:1px solid var(--line);border-radius:6px;background:var(--paper);color:var(--ink-2);font:500 11px/1.3 var(--sans);white-space:normal;text-align:center;flex:none;transition:background 160ms ease,border-color 160ms ease}
#motionBtn:hover{border-color:var(--accent);background:var(--accent-soft)}
#motionBtn[aria-pressed=true]{color:var(--accent);border-color:color-mix(in srgb,var(--accent) 28%,var(--line))}
#motionBtn[hidden]{display:none!important}
#motionBtn svg{width:14px;height:14px;flex:none;fill:none;stroke:currentColor;stroke-width:1.5}
#roof-story .sheet-foot{align-items:center;min-height:42px;gap:10px}

/* Only the capability-tested desktop mode receives added scroll travel. */
html.craft-active #roof-story{overflow:visible}
html.craft-active #roof-story .hero-stage{position:sticky;top:72px;height:calc(100vh - 72px);height:calc(100svh - 72px);min-height:0;padding:0;display:flex;align-items:center;overflow:visible}
html.craft-active #roof-story .hero-stage>.wrap{padding-block:24px}
html.craft-active #roof-story .hero-stage::before{inset:-20px 0;transform:translate3d(0,calc(var(--sc-p,0) * -18px),0)}
html.craft-active #roof-story #sheet{transform:translate3d(0,calc(var(--sc-p,0) * -16px),0)}
html.craft-active #roof-story .sheet-in img,html.craft-active #roof-story .sheet-in img.on{transform:scale(calc(1.025 - var(--sc-p,0) * .025))}
html.craft-active #roof-story .callout.on{transform:translate3d(0,calc(var(--sc-p,0) * -4px),0)}
/* Keep flow entries legible throughout their short settle. */
html.craft-active [data-sc-in],html.craft-active [data-sc-stagger]>*{opacity:1;transform:translate3d(0,10px,0);transition:transform 240ms cubic-bezier(.2,.7,.2,1)}
html.craft-active [data-sc-in].sc-in,html.craft-active [data-sc-stagger]>.sc-in{opacity:1;transform:none}
html:not(.craft-active) [data-sc-in],html:not(.craft-active) [data-sc-stagger]>*{opacity:1!important;transform:none!important;transition:none!important}
html:not(.craft-active) [data-sc-reveal]{clip-path:none!important}

/* A process reads as a ledger, not three interchangeable marketing cards. */
#how{padding-block:80px}
#how .steps{display:block;margin-top:38px;border-block:1px solid var(--line)}
#how .step{display:grid;grid-template-columns:48px minmax(170px,.7fr) minmax(220px,1.2fr) 230px;grid-template-rows:auto auto;gap:10px 26px;align-items:center;padding:28px 0;border:0;border-bottom:1px solid var(--line);border-radius:0;background:transparent;overflow:visible;box-shadow:none;min-height:190px}
#how .step:last-child{border-bottom:0}
#how .step .n{grid-column:1;grid-row:1 / span 2;align-self:start;margin:0;padding-top:3px;font:400 16px/1.5 var(--mono);color:var(--accent);letter-spacing:0}
#how .step .n::after{display:none}
#how .step h3{grid-column:2;grid-row:1;align-self:end;margin:0;font-size:25px;line-height:1.2;font-weight:500;letter-spacing:-.025em}
#how .step p{grid-column:3;grid-row:1 / span 2;margin:0;font-size:15px;line-height:1.65;max-width:47ch;color:var(--ink-2)}
#how .step .modes{grid-column:2;grid-row:2;min-height:0;margin:0;align-self:start;gap:5px}
#how .step:nth-child(n+2) h3{grid-row:1 / span 2;align-self:center}
#how .step .shot{grid-column:4;grid-row:1 / span 2;margin:0;border:1px solid var(--line);border-radius:6px;aspect-ratio:auto;width:100%;height:134px;min-height:0;background:var(--panel);overflow:hidden}
#how .step .shot img{width:100%;height:100%;object-fit:cover;object-position:center}
#how .step:first-child .shot img{object-position:50% 45%}
#how .step:nth-child(3) .shot img{object-position:top center}
#how .pill{font-size:10px;letter-spacing:0}
#how .start-guide{margin-top:32px;background:var(--bg)}
/* Distinct breaths between evidence, practical detail and the final decision. */
#why{padding-block:72px}
#features{padding-block:88px}
#results{padding-block:96px}
.examples{padding-bottom:80px}
#faq{padding-block:80px}
.hero .btn-primary:active,.final .btn-primary:active{transform:translateY(1px)}
.result-tab,.stg,.gallery-controls .chip{transition:background 160ms ease,color 160ms ease,border-color 160ms ease}
.result-tab:focus-visible,.stg:focus-visible,#motionBtn:focus-visible{outline:3px solid var(--accent);outline-offset:3px}

@media(min-width:1440px){#roof-story .hero-stage{padding-top:58px}}
@media(min-width:981px) and (min-height:700px) and (max-height:820px){
 html.craft-active #roof-story .hero-stage>.wrap{padding-block:14px;row-gap:14px}
 html.craft-active #roof-story .hero-top{padding-block:0}
 html.craft-active #roof-story h1{font-size:clamp(49px,4.3vw,60px);margin-block:18px}
 html.craft-active #roof-story .hero-sub{font-size:16px;line-height:1.55}
 html.craft-active #roof-story .cta-row{margin-top:20px}
 html.craft-active #roof-story .micro{margin-top:12px}
 html.craft-active #roof-story .sheet-in{aspect-ratio:2.2}
 html.craft-active #roof-story .hero-note{padding-block:10px 12px}
 html.craft-active #roof-story .sheet-heading{min-height:40px;padding-block:9px}
 html.craft-active #roof-story .sheet-foot{padding-block:5px}
}
@media(max-width:1150px){
 #how .step{grid-template-columns:38px minmax(150px,.7fr) minmax(200px,1fr) 190px;column-gap:20px}
 #how .step h3{font-size:23px}
 #how .step .shot{height:122px}
 #roof-story .hero-stage>.wrap{column-gap:28px}
}
@media(max-width:980px){
 #roof-story .hero-stage{padding-top:48px}
 #roof-story .hero-stage>.wrap{grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:28px}
 #how .step{grid-template-columns:38px minmax(0,1fr) 200px;grid-template-rows:auto auto auto;gap:12px 24px;padding-block:25px}
 #how .step .n{grid-row:1 / span 3}
 #how .step h3,#how .step:nth-child(n+2) h3{grid-column:2;grid-row:1;align-self:center}
 #how .step p{grid-column:2;grid-row:2;font-size:15px;max-width:none}
 #how .step .modes{grid-column:2;grid-row:3}
 #how .step .shot{grid-column:3;grid-row:1 / span 3;height:145px}
 #how .step:nth-child(n+2) .shot{grid-row:1 / span 2}
}
@media(max-width:760px){
 #roof-story .hero-stage{padding-top:36px}
 #roof-story .hero-stage>.wrap{grid-template-columns:1fr;gap:28px}
 #roof-story .hero-note{margin-top:0;padding-block:8px 18px}
 #roof-story .hero-note>a{min-height:44px}
 #roof-story .sheet-foot{min-height:40px}
 #how,#why,#features,#results,#faq{padding-block:60px}
 #how .steps{margin-top:28px}
 #how .step{grid-template-columns:30px minmax(0,1fr);grid-template-rows:auto auto auto auto;gap:12px 16px;padding-block:25px;min-height:0}
 #how .step .n{grid-column:1;grid-row:1 / span 4;font-size:14px}
 #how .step h3,#how .step:nth-child(n+2) h3{grid-column:2;grid-row:1;font-size:24px}
 #how .step p{grid-column:2;grid-row:2;font-size:15px}
 #how .step .modes{grid-column:2;grid-row:3;gap:5px}
 #how .step .shot,#how .step:nth-child(n+2) .shot{grid-column:2;grid-row:4;height:clamp(130px,35vw,210px);max-width:440px}
 #how .step:nth-child(n+2) .shot{grid-row:3}
 #how .step .pill{font-size:10px;padding:4px 6px}
 #how .start-guide{margin-top:24px}
 .examples{padding-bottom:60px}
}
@media(max-width:360px){
 #roof-story .hero-stage{padding-top:30px}
 #how .step{grid-template-columns:25px minmax(0,1fr);column-gap:12px}
 #how .step h3,#how .step:nth-child(n+2) h3{font-size:22px}
}
@media(prefers-reduced-motion:reduce){
 #roof-story{height:auto!important;min-height:0!important}
 #roof-story .hero-stage{position:relative!important;top:auto!important;height:auto!important;min-height:0!important;padding-top:36px!important;display:block!important}
 #roof-story .hero-stage>.wrap{padding-block:0!important}
 #roof-story #sheet,#roof-story .sheet-in img,#roof-story .sheet-in img.on,#roof-story .callout.on,#roof-story .hero-stage::before{transform:none!important}
 [data-sc-in],[data-sc-stagger]>*{opacity:1!important;transform:none!important;transition:none!important}
 [data-sc-reveal]{clip-path:none!important}
 .wave i{animation:none!important}
}

/* Native comparison semantics with a readable stacked presentation on phones. */
table.vs{width:100%;table-layout:fixed;border-collapse:separate;border-spacing:0}
.vs .vs-head,.vs .vs-row{display:table-row}
.vs .vs-head th{width:50%;text-align:left;vertical-align:top;padding:16px 24px;font:500 10px/1.5 var(--mono);letter-spacing:.08em;text-transform:uppercase}
.vs .vs-row>td{width:50%;vertical-align:top;padding:19px 24px;border-top:1px solid var(--line);font-size:15px;line-height:1.6}
.vs .cell-copy{display:flex;align-items:flex-start;gap:12px}
.vs .cell-copy svg{flex:none}
.vs .cell-label{display:none}
.result-tabs[hidden]{display:none!important}
html:not(.js) .js-only{display:none!important}
html:not(.js) .result-panel+.result-panel{margin-top:18px;border-radius:10px}
footer .footer-heading{font:500 10px/1.5 var(--mono);text-transform:uppercase;letter-spacing:.08em;color:#929d8d;margin:0 0 14px}
@media(max-width:760px){
 .vs thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);clip-path:inset(50%);white-space:nowrap}
 .vs tbody{display:block}
 .vs .vs-row{display:grid;grid-template-columns:1fr;border:0}
 .vs .vs-row>td{display:block;width:100%;padding:15px 18px;font-size:14px}
 .vs .vs-row:first-child>td:first-child{border-top:0}
 .vs .vs-row>.no{border-right:0;border-bottom:0}
 .vs .vs-row>.yes{border-top:1px dashed var(--line)}
 .vs .cell-label{display:block;font:500 9px/1.5 var(--mono);letter-spacing:.05em;text-transform:uppercase;margin-bottom:8px;color:var(--muted)}
 .vs .yes .cell-label{color:var(--accent)}
 footer .footer-heading{font-size:9px}
 html:not(.js) .nav{position:relative}
 html:not(.js) .nav .wrap{height:auto;min-height:66px;flex-wrap:wrap;padding-block:12px;row-gap:6px}
 html:not(.js) .nav-links{display:flex!important;position:static;order:3;flex:1 0 100%;flex-wrap:wrap;gap:4px;padding:0;margin:0;border:0;box-shadow:none;background:transparent}
 html:not(.js) .nav-links a{padding:9px 12px;font-size:13px;min-height:40px}
}

/* Final accessibility pass: readable annotations and equivalent motion-off modes. */
:root{--craft-small-accent:#b33b12}
:root[data-theme=dark]{--craft-small-accent:var(--accent)}
@media(prefers-color-scheme:dark){:root:not([data-theme=light]){--craft-small-accent:var(--accent)}}
.vs .vs-head .yes,.vs .yes .cell-label,#motionBtn[aria-pressed=true]:hover{color:var(--craft-small-accent)}
#roof-story .callout{font-size:11px;transition:opacity 180ms ease}
@media(max-width:760px){#roof-story .callout{display:none}}
html:not(.js) .vbox>.poster{display:none}
html:not(.js) .vbox noscript{display:contents}
html:not(.js) .vbox noscript video{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;background:#14171b}
html.craft-reduced{scroll-behavior:auto!important}
html.craft-reduced *,html.craft-reduced *::before,html.craft-reduced *::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:0s!important;scroll-behavior:auto!important}
html.craft-reduced #roof-story{height:auto!important;min-height:0!important}
html.craft-reduced #roof-story .hero-stage{position:relative!important;top:auto!important;height:auto!important;min-height:0!important;padding-top:36px!important;display:block!important}
html.craft-reduced #roof-story .hero-stage>.wrap{padding-block:0!important}
html.craft-reduced #roof-story #sheet,html.craft-reduced #roof-story .sheet-in img,html.craft-reduced #roof-story .sheet-in img.on,html.craft-reduced #roof-story .callout.on,html.craft-reduced #roof-story .hero-stage::before{transform:none!important}
html.craft-reduced [data-sc-in],html.craft-reduced [data-sc-stagger]>*{opacity:1!important;transform:none!important;transition:none!important}
html.craft-reduced [data-sc-reveal]{clip-path:none!important}
html.craft-reduced .wave i{animation:none!important}
