/* Hero rebuild demo + Acme audit mockup: mechanics and the fictional sites' own look.
   Extracted from the original styles.css; main.js depends on these classes.
   The site theme (type, colour, components) lives in theme.css. */
:root{--paper:#f4f1ea;--paper-deep:#e9e5dc;--ink:#292e29;--muted:#65665e;--accent:#a84d2e;--line:#cfcec3;--serif:'Instrument Serif',Georgia,serif;--sans:Arial,Helvetica,sans-serif;--ease:cubic-bezier(.22,.68,.16,1)}
@font-face{font-family:'Instrument Serif';src:url('assets/instrument-serif-latin.woff2') format('woff2');font-weight:400;font-display:swap}
.hero{position:relative}
.hero.is-enhanced{height:calc(100svh + 560px - 96px);min-height:1180px}
.hero-pin{padding:35px 0 14px}
.is-enhanced .hero-pin{position:sticky;top:0;min-height:calc(100svh - 14px)}
.hero-copy{text-align:center}
.hero-copy .eyebrow{display:flex;align-items:center;justify-content:center;gap:9px;color:var(--muted)}
.tiny-cross{color:var(--accent);font-size:20px;line-height:1}
.hero h1{max-width:1140px;margin:17px auto 16px;font-size:clamp(48px,5.3vw,76px);line-height:1.015;text-wrap:balance}
.hero h1 em{white-space:nowrap}
.hero-description{font-size:15px;color:var(--muted);max-width:710px;margin:0 auto}
.hero-actions{display:flex;justify-content:center;gap:12px;margin:23px 0 32px}
.demo-area{width:min(1090px,calc(100% - 112px));margin:0 auto}
.demo-caption{display:flex;justify-content:space-between;align-items:center;gap:15px;font-size:9px;font-weight:500;letter-spacing:.09em;margin:0 1px 10px}
.demo-caption>span:first-child{display:flex;align-items:center;gap:8px}
.status-dot{width:5px;height:5px;background:var(--accent);border-radius:50%}
.demo-step{letter-spacing:0;color:var(--muted);font-size:11px}
.browser-frame{border:1px solid #aaa99f;border-radius:7px;overflow:hidden;box-shadow:0 18px 40px -25px #32342c45;background:#f6f4ee}
.browser-toolbar{height:32px;display:flex;align-items:center;justify-content:space-between;padding:0 15px;border-bottom:1px solid #c1c0b7;background:#e4e3dc;position:relative;z-index:3}
.browser-dots{display:flex;gap:5px}
.browser-dots i{border:1px solid #a6a79e;border-radius:50%;width:6px;height:6px}
.browser-address{font-size:9px;color:#64665e;display:flex;gap:6px;align-items:center}
.demo-label{font-size:8px;color:#64665e;letter-spacing:.09em}
.demo-canvas{position:relative;height:310px;overflow:hidden}
.old-site{position:absolute;inset:0;background:#d5d5d5;color:#323232;font-family:'Times New Roman',serif;opacity:0;visibility:hidden}
.old-banner{height:20px;background:#a5a5a5;text-align:center;font-size:11px;line-height:20px}
.old-masthead{display:flex;gap:10px;align-items:center;height:70px;padding:5px 30px;border:3px ridge #eee;background:#c5c5c5}
.old-roof{font-size:54px;line-height:1}
.old-masthead b{font-size:27px;letter-spacing:1px;text-shadow:2px 2px #eee}
.old-masthead small{display:block;font-size:10px}
.old-phone{margin-left:auto;text-align:right;line-height:1.25}
.old-nav{text-align:center;line-height:23px;background:#555;color:white;font-family:Arial,sans-serif;font-size:9px;text-decoration:underline}
.old-columns{display:grid;grid-template-columns:160px 1fr 150px;gap:8px;margin:8px}
.old-columns aside{font-size:10px;line-height:1.8;border:1px solid #8e8e8e;background:#e1e1e1;padding:8px}
.old-columns aside b{display:block;background:#b5b5b5;text-align:center;border-bottom:1px solid #888;margin-bottom:4px}
.old-columns aside span{display:block;text-decoration:underline;border-bottom:1px dotted #999}
.old-sticker{font-weight:bold;text-align:center;border:3px double #555;background:#cecece;margin-top:8px}
.old-sticker small{font-size:9px;font-weight:normal}
.old-content{background:#ececec;border:1px solid #9c9c9c;padding:10px;line-height:1.2}
.old-content h2{font-family:'Times New Roman',serif;font-weight:700;font-size:20px;letter-spacing:0;text-decoration:underline;margin-bottom:7px}
.old-content p{font-size:11px;margin-bottom:8px}
.old-content small{font-size:9px}
.roof-sketch{font-size:63px;text-align:center;line-height:1.1}
.modern-site{position:absolute;inset:0;background:#f5f3ec}
.modern-nav{height:50px;display:flex;align-items:center;justify-content:space-between;padding:0 30px;gap:20px;background:#f5f3ec;position:relative;z-index:2}
.modern-brand{display:flex;align-items:center;gap:8px;font-size:17px;font-weight:600;letter-spacing:-.5px;white-space:nowrap}
.modern-brand small{font-size:7px;font-weight:400;letter-spacing:1px;margin-left:2px}
.modern-brand svg{stroke:var(--accent)}
.modern-links{font-size:10px;margin-left:auto;color:#585e55}
.demo-phone{display:flex;align-items:center;justify-content:center;gap:7px;min-height:44px;font-size:11px;text-decoration:none;font-weight:600}
.modern-body{height:260px;position:relative;overflow:hidden}
.modern-photo{position:absolute;inset:0 0 0 auto;width:56%;height:100%;object-fit:cover;object-position:center 65%}
.modern-copy{position:relative;width:44%;padding:20px 30px;background:#f5f3ec;height:100%}
.modern-kicker{font-size:8px;letter-spacing:.11em;color:#5a6157;margin-bottom:9px}
.modern-copy h2{font-size:46px;line-height:.9;letter-spacing:-.015em}
.modern-description{font-size:10px;line-height:1.4;margin:12px 0 9px;color:#525a50}
.demo-quote{display:inline-flex;align-items:center;justify-content:space-between;min-height:44px;gap:48px;background:var(--accent);color:white;padding:0 16px;font-size:10px;text-decoration:none}
.image-note{position:absolute;right:10px;bottom:8px;font-size:6px;letter-spacing:.08em;color:white;background:#20251ecc;padding:3px 6px}
.demo-bottom{display:flex;align-items:center;justify-content:space-between;position:relative;min-height:45px;font-size:11px;color:var(--muted)}
.scroll-hint{display:flex;gap:9px;align-items:center}
.scroll-hint>span:first-child{font-size:16px}
.demo-progress{display:flex;gap:5px;position:absolute;left:50%;transform:translateX(-50%)}
.demo-progress i{width:24px;height:2px;background:#b6b8ab}
.demo-progress i.is-done{background:var(--accent)}
.demo-toggle{background:none;border:0;color:var(--ink);display:flex;align-items:center;gap:15px;padding:0 1px 0 12px;min-height:44px;font-size:11px}
.demo-toggle[hidden]{display:none}
.demo-toggle:hover{color:var(--accent)}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.audit-figure{margin:0;padding-top:14px}
.audit-window{position:relative;background:#c8c8c5;color:#393c37;border:1px solid #aeb0a9;padding-bottom:24px;transform:rotate(-2deg);font-family:'Times New Roman',serif}
.audit-toolbar{background:#999e94;padding:5px 12px;font-family:Arial,sans-serif;font-size:10px}
.audit-logo{position:relative;background:#b7b8b2;margin:8px;padding:8px;border:3px ridge #e6e6e2;font-size:26px;font-weight:700;text-align:center}
.audit-number{position:relative;display:block;text-align:center;font-size:9px;padding:0 0 8px}
.audit-navigation{background:#65695f;color:white;text-align:center;font-size:10px;padding:5px}
.audit-columns{display:grid;grid-template-columns:90px 1fr;gap:10px;margin:10px;font-size:10px;line-height:1.4}
.audit-columns>div{background:#e0e1da;padding:9px;position:relative}
.audit-columns h3{font-family:'Times New Roman',serif;font-size:14px;font-weight:bold;text-decoration:underline;margin-bottom:9px}
.audit-columns p{margin-bottom:9px}
.audit-tiny-link{text-decoration:underline;font-size:9px}
.callout{display:grid;place-items:center;border:2px solid #e8cfba;border-radius:50%;width:27px;height:27px;background:var(--accent);color:#fff;font-size:12px;font-family:var(--sans);font-weight:500;position:absolute;z-index:1}
.point-3{top:5px;left:28px}
.point-2{top:-3px;right:22%}
.point-1{top:60px;right:12px}
.point-4{bottom:10px;right:3px}
.audit-figure figcaption{color:#bfc4b8;font-size:12px;margin-top:25px;text-align:center}
@media(min-width:1500px){.hero-pin{padding-top:45px}.hero-actions{margin-bottom:40px}.demo-canvas{height:350px}.modern-body{height:300px}.modern-copy{padding-top:30px}.modern-copy h2{font-size:51px}.modern-description{margin-top:17px;margin-bottom:12px}}
@media(max-width:1100px){.demo-area{width:calc(100% - 100px)}.hero h1{font-size:63px;max-width:890px}.hero-description{max-width:650px}.demo-canvas{height:290px}.modern-body{height:240px}.modern-copy h2{font-size:40px}.modern-copy{padding:15px 25px}.modern-description{margin:9px 0 5px}.modern-photo{width:54%}.modern-copy{width:46%}}
@media(max-width:760px){.hero.is-enhanced{height:auto;min-height:0}.is-enhanced .hero-pin{position:relative;min-height:0}.hero-pin{padding-top:30px;padding-bottom:12px}.hero-copy .eyebrow{font-size:8px;letter-spacing:.095em;gap:7px}.tiny-cross{font-size:15px}.hero h1{font-size:47px;line-height:1.02;max-width:540px;margin:19px auto 19px;letter-spacing:-.026em}.hero h1 em{white-space:normal}.hero-description{font-size:17px;line-height:1.55;max-width:470px}.hero-actions{margin:23px 0 30px;gap:8px}.hero-actions .button{font-size:12px;gap:12px;padding:12px 13px;min-height:49px}.demo-area{width:calc(100% - 32px)}.demo-caption{font-size:7px;letter-spacing:.055em;gap:5px;margin-bottom:8px}.demo-step{font-size:8px;max-width:100px;text-align:right}.demo-caption>span:first-child{gap:5px}.browser-toolbar{height:27px;padding-inline:9px}.browser-address{font-size:8px}.demo-label{font-size:6px;letter-spacing:0}.browser-dots{gap:3px}.browser-dots i{width:4px;height:4px}.demo-canvas{height:254px}.old-banner{font-size:7px;height:18px;line-height:18px}.old-masthead{height:61px;padding:4px 8px;gap:5px}.old-roof{font-size:35px}.old-masthead b{font-size:19px}.old-masthead small{font-size:7px}.old-phone{max-width:75px}.old-nav{font-size:6px;line-height:20px;white-space:nowrap}.old-columns{grid-template-columns:70px 1fr;gap:5px;margin:5px}.old-columns aside{font-size:6px;padding:5px}.old-columns .old-news{display:none}.old-content{padding:7px}.old-content h2{font-size:15px;line-height:1.1}.old-content p{font-size:7px;line-height:1.2;margin-bottom:6px}.old-content small{font-size:6px}.old-sticker{font-size:8px}.old-sticker small{font-size:5px}.modern-nav{height:47px;gap:6px;padding:0 13px}.modern-brand{font-size:14px;gap:5px}.modern-brand svg{width:20px}.modern-brand small{font-size:5px;letter-spacing:.5px;max-width:33px;white-space:normal;line-height:1.2}.modern-links{display:none}.demo-phone{font-size:8px;gap:4px}.demo-phone svg{width:11px}.modern-body{height:207px}.modern-photo{width:49%;object-position:63% center}.modern-copy{width:51%;padding:13px 0 0 14px}.modern-kicker{font-size:5px;letter-spacing:.1em;margin-bottom:10px}.modern-copy h2{font-size:33px;line-height:.96}.modern-description{font-size:7px;line-height:1.4;margin:12px 0 5px}.demo-quote{min-height:44px;padding:0 12px;font-size:8px;gap:22px;position:relative;z-index:1}.image-note{font-size:4px;right:4px;bottom:5px;padding:2px 3px}.demo-bottom{font-size:9px;min-height:45px}.demo-toggle{font-size:9px;gap:8px}.demo-progress i{width:12px}.demo-progress{gap:3px}.audit-figure{width:100%;padding:0 8px}.audit-logo{font-size:25px}.audit-columns{font-size:10px;min-height:130px;grid-template-columns:85px 1fr}.audit-columns h3{font-size:14px}.audit-number{font-size:8px}.audit-navigation{font-size:9px}.audit-figure figcaption{font-size:13px}}
@media(max-width:374px){.hero h1{font-size:43px}.hero-copy .eyebrow{font-size:7.5px}.hero-description{font-size:17px}.hero-actions .button{font-size:11px;gap:10px;padding-inline:12px}.demo-area{width:calc(100% - 24px)}.modern-copy h2{font-size:31px}.demo-caption{font-size:6.5px}}
@media(min-width:761px) and (max-height:780px){.hero-pin{padding-top:20px}.hero h1{font-size:58px;margin:12px auto}.hero-actions{margin:17px 0 21px}.demo-canvas{height:266px}.modern-body{height:216px}.modern-copy{padding-top:14px}.modern-copy h2{font-size:36px}.modern-description{margin:9px 0 5px}.hero-description{font-size:14px}.hero.is-enhanced{min-height:1110px}}
@media(prefers-reduced-motion:reduce){.hero.is-enhanced{height:auto;min-height:0}.is-enhanced .hero-pin{position:relative;min-height:0}.old-site{opacity:0!important;visibility:hidden!important}.modern-site,.modern-nav,.modern-photo,.modern-copy,.demo-quote,.demo-phone{opacity:1!important;transform:none!important}.demo-progress,.scroll-hint,.demo-toggle{display:none!important}}
.hero.is-enhanced{height:calc(100svh + 820px - 96px);min-height:1440px}
.demo-stage{position:relative}
.portal-ring{position:absolute;left:0;top:0;width:512px;height:512px;max-width:none;pointer-events:none;z-index:4;opacity:0;transform-origin:50% 50%;will-change:transform,opacity}
.modern-site{z-index:3}
.pop{position:absolute;z-index:6;display:flex;align-items:center;gap:10px;padding:9px 14px 9px 9px;background:#fbf9f4;border:1px solid #d6cbbb;border-radius:3px;box-shadow:0 16px 30px -16px #2b2a2266;font-size:13px;font-weight:500;line-height:1.2;color:var(--ink);white-space:nowrap;pointer-events:none;opacity:0}
.pop b{display:grid;place-items:center;flex:none;width:22px;height:22px;border-radius:50%;background:var(--accent);color:#fff;font-size:11px;font-weight:600}
.pop-quote{left:-46px;bottom:22px}
.pop-call{right:-40px;top:78px}
.pop-phone{right:15%;bottom:-20px}
.demo-quote,.demo-phone{will-change:transform}
.hero h1 .w{display:inline-block;animation:wordIn .95s var(--ease) both}
.hero h1 em.w{display:inline}
.hero h1 .w:nth-child(2){animation-delay:.06s}
.hero h1 .w:nth-child(3){animation-delay:.12s}
.hero h1 .w:nth-child(4){animation-delay:.18s}
.hero h1 .w:nth-child(5){animation-delay:.24s}
.hero h1 .w:nth-child(6){animation-delay:.32s}
@keyframes wordIn{from{filter:blur(12px);transform:translateY(12px)}to{filter:blur(0);transform:none}}
@media(max-width:1100px){.pop-quote{left:-24px}.pop-call{right:-22px}}
@media(max-width:760px){.hero.is-enhanced{height:auto;min-height:0}.pop{font-size:11px;gap:7px;padding:6px 10px 6px 6px}.pop b{width:18px;height:18px;font-size:10px}.pop-quote{left:6px;bottom:-15px}.pop-call{right:6px;top:66px}.pop-phone{right:6px;bottom:-15px}}
@media(prefers-reduced-motion:reduce){.hero.is-enhanced{height:auto;min-height:0}.portal-ring{display:none}.pop{opacity:1!important;transform:none!important}.hero h1 .w{animation:none}.modern-site{clip-path:none!important}}
.audit-toolbar{color:#222820}
@media(min-width:761px){.demo-canvas{height:clamp(240px,calc(100svh - 560px),420px)}.modern-body{height:calc(100% - 50px)}}
.pop-quote,.pop-call{left:0;top:0;bottom:auto;right:auto}
@media(max-width:760px){.pop-phone{bottom:52px}}
@media(min-width:761px){.modern-copy{display:flex;flex-direction:column;justify-content:center;align-items:flex-start;padding-bottom:30px}.modern-copy h2{font-size:clamp(46px,4.2vw,64px)}}
