/* Single-page layout layer. Loads last on the homepage. */

html{scroll-behavior:smooth}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}}
#book,#b-work,#b-founders{scroll-margin-top:24px}

/* Header: logo left, booking button right. */
.b-legendary .b-nav{display:flex;justify-content:space-between;align-items:center}
.b-nav a.b-nav-cta{display:inline-flex;align-items:center;gap:10px;padding:10px 20px;background:#172423;color:#f9f4e9;text-decoration:none;font:700 12px/1 "DM Sans",sans-serif;letter-spacing:.07em;text-transform:uppercase;white-space:nowrap;transition:background .18s ease,transform .18s ease}
.b-nav a.b-nav-cta:hover{background:var(--brand-orange);transform:translateY(-2px)}
.b-nav-cta-flame{width:10px;height:14px;fill:var(--brand-orange-light,#e8894a);flex:0 0 10px}
.b-nav-cta-flame .b-social-flame-core{fill:#f3c78d}
.b-nav a.b-nav-cta:hover .b-nav-cta-flame{fill:#f9f4e9}
@media(max-width:700px){.b-nav a.b-nav-cta{padding:9px 14px;font-size:11px;gap:8px}}

/* Hero fills the first screen, with the proof strip at its foot. */
.b-legendary{--proof-h:104px}
@media(min-width:701px){
 .b-legendary .b-growth{--hero-stage:max(calc(var(--nav-h) + 500px),calc(100svh - var(--proof-h)))}
}
.b-growth + .b-publisher-wrap{box-sizing:border-box;display:flex;align-items:center;justify-content:center;gap:34px;height:var(--proof-h);padding:0 5%;border-top:1px solid #17242322;border-bottom:1px solid #17242322}
.b-publisher-label{flex:0 0 auto;font:600 11px/1.4 "DM Sans",sans-serif;letter-spacing:.12em;text-transform:uppercase;color:#172423b3;max-width:92px}
.b-growth + .b-publisher-wrap .b-publisher-marks{flex:0 1 980px;margin:0;padding-top:0;border-top:0;gap:28px;align-items:center}
.b-growth + .b-publisher-wrap .b-publisher-mark{height:44px}
.b-growth + .b-publisher-wrap .b-publisher-mark:not(.b-publisher-wsj,.b-publisher-fortune) img{height:30px;max-width:132px}
.b-growth + .b-publisher-wrap .b-publisher-business-insider img{height:22px}
.b-growth + .b-publisher-wrap .b-publisher-wsj img{width:235px}
.b-growth + .b-publisher-wrap .b-publisher-fortune img{width:225px}
.b-growth + .b-publisher-wrap .b-publisher-deep-view img{height:40px;max-width:112px}
@media(max-width:1000px) and (min-width:701px){
 .b-legendary{--proof-h:150px}
 .b-growth + .b-publisher-wrap .b-publisher-marks{grid-template-columns:repeat(6,minmax(0,1fr));gap:18px}
 .b-growth + .b-publisher-wrap{flex-wrap:wrap;gap:6px 24px;padding:12px 5%}
 .b-publisher-label{max-width:none;order:-1}
 .b-growth + .b-publisher-wrap .b-publisher-marks{flex-basis:100%;order:0}
 .b-growth + .b-publisher-wrap .b-publisher-wsj img{width:160px}
 .b-growth + .b-publisher-wrap .b-publisher-fortune img{width:150px}
}
@media(max-width:700px){
 .b-legendary{--proof-h:150px}
 .b-legendary .b-growth{--hero-stage:max(calc(var(--nav-h) + 470px),calc(100svh - var(--proof-h)))}
 .b-growth + .b-publisher-wrap{height:var(--proof-h);flex-direction:column;justify-content:center;gap:12px;padding:0 5%}
 .b-publisher-label{max-width:none}
 .b-growth + .b-publisher-wrap .b-publisher-marks{flex-basis:auto;width:100%;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px 18px}
 .b-growth + .b-publisher-wrap .b-publisher-mark{height:34px}
 .b-growth + .b-publisher-wrap .b-publisher-mark:not(.b-publisher-wsj,.b-publisher-fortune) img{height:24px}
 .b-growth + .b-publisher-wrap .b-publisher-business-insider img{height:18px}
 .b-growth + .b-publisher-wrap .b-publisher-wsj img{width:170px}
 .b-growth + .b-publisher-wrap .b-publisher-fortune img{width:185px}
 .b-growth + .b-publisher-wrap .b-publisher-deep-view img{height:32px}
}


/* Type that has to carry. */
.b-legendary .b-growth-end .b-hero-reveal-label{font-size:16px;letter-spacing:.08em}
@media(max-width:700px){.b-legendary .b-growth-end .b-hero-reveal-label{font-size:14px}}

/* More case studies, opened in place. */
.b-legendary .b-all-work{cursor:pointer;background:none;border:0;font:inherit}
.b-more-work{padding:8px 0 40px}
.b-more-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:16px;max-width:1180px;margin:0 auto;padding:0 6%}
.b-more-case{display:flex;flex-direction:column;gap:14px;padding:22px;border:1px solid #1724232e;background:#fff8e94d;color:#172423;text-decoration:none;cursor:pointer;transition:border-color .2s,background .2s,transform .2s,box-shadow .2s}
.b-more-case:hover{border-color:var(--brand-orange);background:#fff8e9;transform:translateY(-4px);box-shadow:0 12px 26px #17242318}
.b-more-case:hover strong{color:var(--brand-orange)}
.b-more-case strong{transition:color .2s}
@media (prefers-reduced-motion:reduce){.b-more-case:hover{transform:none}}
.b-more-case:focus-visible{outline:2px solid #172423;outline-offset:3px}
.b-more-brand{display:flex;align-items:center;min-height:32px}
.b-more-brand img{height:28px;width:auto;max-width:150px}
.b-more-brand img + b{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
.b-more-brand b{font:700 17px/1.2 "DM Sans",sans-serif}
.b-more-icon{gap:10px}.b-more-icon img{height:26px}.b-more-icon img + b{position:static;width:auto;height:auto;overflow:visible;clip:auto}
.b-more-case strong{font:500 21px/1.25 "DM Serif Display",Georgia,serif;flex:1}

/* Booking. */
.b-book{overflow-x:clip;padding:72px 6% 80px;border-top:1px solid #17242322}

/* One parchment card: garland on its top edge, sun on its corner, castle under the heading. */
.b-book-stage{position:relative;max-width:1120px;margin:0 auto;display:grid;grid-template-columns:minmax(0,1fr) 540px;gap:48px;align-items:center;padding:172px 56px 48px;background:linear-gradient(#e7dbbfd9,#e7dbbfd9),url(assets/parchment-light-optimized.webp) center/cover;border:1px solid #17242347;box-shadow:0 18px 40px -28px #17242366}
.b-book-bunting,.b-book-sun{position:absolute;pointer-events:none;user-select:none}
.b-book-bunting{top:-12px;left:-2%;width:104%;z-index:2}
.b-book-sun{top:-64px;left:-66px;width:170px;z-index:3}
.b-book-head{position:relative;z-index:1;text-align:left}
.b-book-head span{font:600 13px/1.4 "DM Sans",sans-serif;letter-spacing:.12em}
.b-book-head h2{margin:14px 0 22px}
.b-book-head p{margin:0}
.b-book-castle{display:block;width:min(340px,86%);margin:24px 0 -24px -10px;pointer-events:none;user-select:none}
.b-book-embed{position:relative;z-index:1;border:1px solid #1724232e;background:#f3eddf}
.b-book-embed iframe{display:block;width:100%;height:580px;border:0}
@media(max-width:1100px){.b-book-stage{grid-template-columns:1fr;padding:110px 32px 32px;gap:28px}.b-book-head{text-align:center}.b-book-castle{display:none}.b-book-embed{max-width:560px;width:100%;margin:0 auto}}
@media(max-width:700px){.b-book{padding:56px 4% 56px}.b-book-stage{padding:78px 12px 12px}.b-book-bunting{width:130%;left:-15%;top:-6px}.b-book-sun{display:none}.b-book-embed iframe{height:700px}}

/* Footer: closing line, then brand left and socials right on one row. */
.b-legendary .b-footer .b-footer-bottom{display:flex;align-items:center;justify-content:space-between;gap:24px}
@media(min-width:701px){
 .b-legendary .b-footer{padding-top:170px}
 .b-legendary .b-footer > .b-footer-closing{min-height:380px}
}
@media(max-width:700px){.b-legendary .b-footer .b-footer-bottom{flex-direction:column;align-items:flex-start}}

/* Minibar: slides in past the hero, hides at the booking section. */
.b-minibar{position:fixed;top:0;left:0;right:0;z-index:60;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:8px 6%;background:#f3eddf;border-bottom:1px solid #17242333;box-shadow:0 8px 20px -16px #17242366;transform:translateY(-110%);transition:transform .32s cubic-bezier(.16,1,.3,1)}
.b-minibar.is-shown{transform:none}
.b-minibar .sv-logo{width:74px;height:42px;color:#172423}
.b-minibar a.b-nav-cta{display:inline-flex;align-items:center;gap:10px;padding:10px 18px;background:#172423;color:#f9f4e9;text-decoration:none;font:700 12px/1 "DM Sans",sans-serif;letter-spacing:.07em;text-transform:uppercase;white-space:nowrap;transition:background .18s ease}
.b-minibar a.b-nav-cta:hover{background:var(--brand-orange)}
@media(prefers-reduced-motion:reduce){.b-minibar{transition:none}}
@media(max-width:700px){.b-minibar{padding:6px 4%}.b-minibar .sv-logo{width:64px;height:36px}.b-minibar a.b-nav-cta{padding:12px 14px;font-size:11px}}

/* Hero audience line: same label style as the reveal line it hands off to. */
.b-legendary .b-growth-heading p.b-hero-audience{max-width:none;margin:24px 0 0;font:600 16px/1.5 "DM Sans",sans-serif!important;letter-spacing:.08em;text-transform:uppercase;color:#172423}
@media(max-width:700px){.b-legendary .b-growth-heading p.b-hero-audience{margin:14px auto 0;font-size:14px!important}}

/* Booking reassurance. */
.b-book-head p{max-width:34ch;line-height:1.55}
.b-book-head .b-book-alt{margin-top:14px;font:500 15px/1.5 "DM Sans",sans-serif}
.b-book-alt a{color:#172423;text-decoration:underline;text-underline-offset:4px}
.b-book-alt a:hover{color:var(--brand-orange)}
@media(max-width:1100px){.b-book-head p{margin-left:auto;margin-right:auto}}

/* Booking link after the founders. */
.b-team a.b-inline-book{display:inline-flex;align-items:center;gap:10px;margin-top:40px;padding:12px 22px;background:#172423;color:#f9f4e9;text-decoration:none;font:700 12px/1 "DM Sans",sans-serif;letter-spacing:.07em;text-transform:uppercase}
.b-team a.b-inline-book:hover{background:var(--brand-orange)}

/* Readability. */
.b-legendary #b-insights-title em{color:#f3c78d!important}
.b-hatch-caption{font-size:11px!important}
.b-legendary .b-footer .b-motion-toggle{font-size:12px;min-height:44px;padding:0}
.b-legendary .b-footer-brand small{font-size:12px}
.b-sector-more{display:inline-block;padding:12px 0;margin:-12px 0}
