/* Scroll chapter: same type, paper and brand accents, with a short reading hold. */
:root{--ink:#3d3245;--product-gradient:linear-gradient(100deg,#963c53,#694788 55%,#445aa3)}
.hero-scroll{position:relative;scroll-margin-top:0}
.hero{min-height:calc(100svh - var(--hero-offset,112px));padding-top:clamp(40px,6svh,72px);padding-bottom:36px}
.hero h1{max-width:1180px;font-size:clamp(64px,8.2vw,118px);line-height:1.12;letter-spacing:-.065em;text-wrap:balance;margin-bottom:34px}
.hero h1>span{white-space:nowrap}
.hero h1>.product-word{font-weight:600}
.hero h1>span:not(.scroll-word),.hero h1>.product-word{background-image:var(--product-gradient);background-clip:text;-webkit-background-clip:text;color:transparent}
.scroll-cue{display:flex;align-items:center;gap:24px;font-size:12px;color:var(--muted);margin-top:auto;padding-top:36px}
.scroll-cue>span:last-child{display:grid;place-items:center;width:28px;height:28px;border:1px solid var(--line);border-radius:50%;color:var(--purple)}
/* Clip the ink directly to the glyphs so the fill scrubs without duplicate text. */
.scroll-word{position:relative;display:inline-block;padding:.12em .08em;margin:-.12em -.08em}
.motion-enabled .scroll-word{background-image:linear-gradient(90deg,var(--ink) var(--word-fill,100%),#b8b5b7 var(--word-fill,100%));background-clip:text;-webkit-background-clip:text;color:transparent}
.motion-enabled .hero h1>.product-word{background-image:linear-gradient(90deg,transparent var(--word-fill,100%),#b8b5b7 var(--word-fill,100%)),var(--product-gradient);color:transparent}
.motion-enabled .hero-scroll::after{content:"";display:block;height:clamp(220px,38svh,380px)}
.motion-enabled .hero{position:sticky;top:var(--hero-offset,112px)}
.motion-enabled [data-scroll-reveal]{opacity:var(--reveal-opacity,1);transform:translate3d(0,var(--reveal-y,0px),0)}
.motion-enabled .contact-wallpaper{translate:0 var(--wallpaper-scroll,0px);scale:1.08}
@media(max-width:1000px){.hero h1{font-size:clamp(60px,8.3vw,82px)}}
@media(max-width:700px){.hero h1{font-size:clamp(46px,11.8vw,76px);line-height:1.12;letter-spacing:-.06em;text-wrap:pretty;margin-bottom:26px}.hero{padding-top:32px;padding-bottom:26px}.hero-summary>p{font-size:17px}.hero-summary .actions{margin-top:24px;gap:18px}.scroll-cue{padding-top:28px}.motion-enabled .hero-scroll::after{height:220px}}
/* Short landscape screens keep the entire introduction in normal document flow. */
@media(max-height:650px){.hero{min-height:0;padding-block:32px}.hero h1{font-size:clamp(44px,7vw,82px)}.scroll-cue{padding-top:24px}.motion-enabled .hero{position:relative;top:auto}.motion-enabled .hero-scroll::after{display:none}}
@media(prefers-reduced-motion:reduce){.hero-scroll{padding-bottom:0!important}.hero{position:relative!important;top:auto!important}.scroll-word{color:inherit!important}.hero h1>.product-word{background-image:var(--product-gradient);background-clip:text;-webkit-background-clip:text;color:transparent!important}.scroll-word::after{display:none}[data-scroll-reveal]{opacity:1!important;transform:none!important}}
@media(forced-colors:active){.hero h1>span,.motion-enabled .hero h1>.product-word{background:none;color:CanvasText!important}.scroll-word::after{display:none}.motion-enabled .scroll-word{color:CanvasText}}
@media print{.hero-scroll{padding-bottom:0!important}.hero{position:relative!important;min-height:0;top:auto!important}.scroll-cue{display:none}.motion-enabled .scroll-word{color:var(--ink)}[data-scroll-reveal]{opacity:1!important;transform:none!important}.scroll-word::after{display:none}}

@media(prefers-reduced-motion:reduce){.hero-scroll::after{display:none!important}}
@media print{.hero-scroll::after{display:none!important}}
[data-scroll-reveal]:focus-within{opacity:1!important;transform:none!important}

/* The opening frame contains only the wordmark and the first two headline words. */
.motion-enabled .hero h1>.scroll-word{background:none;color:var(--ink);opacity:var(--hero-word-opacity,0)}
.motion-enabled .hero h1>.scroll-word:nth-child(-n+2){opacity:1}
.motion-enabled .hero h1>.product-word{background-image:var(--product-gradient);background-clip:text;-webkit-background-clip:text;color:transparent}
.motion-enabled .hero>.eyebrow,.motion-enabled .hero-summary,.motion-enabled .header nav,.motion-enabled .menu-toggle{opacity:var(--hero-details-opacity,0);visibility:hidden}
.motion-enabled.hero-ready .hero>.eyebrow,.motion-enabled.hero-ready .hero-summary,.motion-enabled.hero-ready .header nav,.motion-enabled.hero-ready .menu-toggle{visibility:visible}
.motion-enabled .header::before{border-bottom-color:transparent}
.motion-enabled.hero-ready .header::before{border-bottom-color:var(--line)}
@media print{.motion-enabled .hero h1>.scroll-word{opacity:1}.motion-enabled .hero>.eyebrow,.motion-enabled .hero-summary{opacity:1;visibility:visible}}

/* A quiet signature; the headline owns the opening screen. */
.header .wordmark{font-size:25px;font-weight:500;letter-spacing:-1.15px;color:#736778}
@media(max-width:700px){.header .wordmark{font-size:23px;letter-spacing:-1px}}

.section-intro .intro-action{display:block;margin-top:14px}

/* Let the work enter the first screen as the introduction resolves. */
.hero-scroll{--hero-hold:40px}
.header{height:80px}
.header::before{border-bottom:0!important}
.hero{min-height:0;justify-content:flex-start;padding-top:48px;padding-bottom:0}
.hero>.eyebrow{margin-bottom:14px}
.hero h1{font-size:clamp(56px,6.5vw,92px);margin-bottom:24px}
.motion-enabled .hero-scroll::after{height:var(--hero-hold)}
.work{border-top:0;padding-top:8px}
@media(min-width:701px){.hero-summary{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);align-items:center;gap:32px;max-width:1100px}.hero-summary>p{font-size:18px;line-height:1.5;margin-bottom:0;max-width:520px}.hero-summary .actions{margin-top:0;gap:22px}.hero-summary .button{padding-inline:20px}}
@media(max-width:700px){.header{height:72px}.hero{padding-top:32px;padding-bottom:0}.hero h1{font-size:clamp(44px,11.4vw,72px);margin-bottom:22px}.hero-summary>p{margin-bottom:0}.hero-summary .actions{margin-top:22px}.work{padding-top:8px}}
@media(max-height:650px){.hero{min-height:0;padding-block:18px}.hero h1{font-size:clamp(44px,6vw,74px)}}
.motion-enabled:not(.hero-ready) .work-carousel{visibility:hidden}
.motion-enabled .work-carousel{opacity:calc(var(--reveal-opacity,1)*var(--hero-details-opacity,0))}

/* Smaller artwork keeps a wider selection in view without a tall blank lead-in. */
@media(min-width:701px){.work-slide{flex-basis:calc((100% - 24px)/3)}}


/* Keep portfolio captions below the fold while leaving the artwork in view. */
.hero-scroll{--artwork-height:calc((100vw - 24px)/3)}
.hero{min-height:calc(100svh - var(--hero-offset,80px) - var(--artwork-height) - 8px);padding-bottom:48px}

@media(max-width:700px){.hero-scroll{--artwork-height:80vw}.hero{padding-bottom:48px}}
@media(max-height:650px){.hero{min-height:0;padding-bottom:48px}}

/* Balance the complete introduction, including the short scroll hold below it. */
.hero{justify-content:center;padding-top:calc(48px + var(--hero-hold,40px) + 8px);padding-bottom:48px}
@media(max-height:650px){.hero{padding-top:56px}}
@media(prefers-reduced-motion:reduce){.hero{padding-top:56px}}

@media(prefers-reduced-motion:no-preference){
  .motion-enabled [data-scroll-reveal]{transition:opacity .65s cubic-bezier(.22,1,.36,1),transform .65s cubic-bezier(.22,1,.36,1)}
  .motion-enabled .hero>.eyebrow,.motion-enabled .hero-summary,.motion-enabled .header nav,.motion-enabled .menu-toggle{transition:opacity .3s ease-out}
}

/* The hero and portfolio now move together in normal document flow. */
.hero-scroll{--hero-hold:0px}
.motion-enabled .hero-scroll::after{display:none}
.motion-enabled .hero{position:relative;top:auto}

/* A brief timed introduction, then ordinary page scrolling resumes. */
html{scrollbar-gutter:stable}
html.hero-playing,html.hero-playing body{overflow:hidden;overscroll-behavior:none}
@media(prefers-reduced-motion:reduce){html.hero-playing,html.hero-playing body{overflow:visible;overscroll-behavior:auto}}

/* One quiet second, then the opening phrase and the rest of the message. */
.motion-enabled .hero h1>.scroll-word:nth-child(-n+2),.motion-enabled .header .wordmark{opacity:var(--hero-opening-opacity,0)}
@media print{.motion-enabled .hero h1>.scroll-word:nth-child(-n+2),.motion-enabled .header .wordmark{opacity:1}}
/* Timed opacity already eases each frame, so no transition extends the intro. */
.motion-enabled .hero>.eyebrow,.motion-enabled .hero-summary,.motion-enabled .header nav,.motion-enabled .menu-toggle{transition:none}
.motion-enabled:not(.hero-finished) .work-carousel{transition:none}
