/* Optional portrait-card composition for comparing the homepage. */
html[data-hero=card]{--card-pop:#c76c3c}
html[data-hero=card][data-palette=forest]{--card-pop:#708e69}
html[data-hero=card] body:not(.page-layout) .hero:has(.portrait-cinematic){position:relative;display:block;height:auto;min-height:0;margin:24px auto;padding:28px clamp(22px,5vw,64px) 40px;max-width:960px;border:1px solid var(--line);border-radius:18px;background:var(--surface)}
html[data-hero=card] body .hero-head{display:none}
html[data-hero=card] body :is(.hero,.home-composition) .hero-stage{position:relative;inset:auto;display:grid;grid-template-rows:auto 380px auto auto;gap:22px;height:auto;margin:0;isolation:isolate}
html[data-hero=card] body :is(.hero,.home-composition) .hero-stage::before{display:none}
html[data-hero=card] body :is(.hero,.home-composition) .hero-stage::after{content:"OPEN TO DATA & AI";position:relative;inset:auto;grid-row:1;justify-self:center;translate:none;rotate:3deg;z-index:1;background:var(--card-pop);color:#17120e;border:2px solid #17120e;border-radius:3px;box-shadow:4px 5px 0 #17120e;padding:12px 17px;font:700 12px/1.2 "DM Sans",sans-serif;letter-spacing:.04em;white-space:nowrap;pointer-events:none}
html[data-hero=card] body :is(.hero,.home-composition) .portrait-frame:has(.portrait-cinematic){position:relative;inset:auto;grid-row:2;width:auto;height:100%;aspect-ratio:1;max-width:100%;margin:0;justify-self:center;transform:none;translate:none;border-radius:50%;overflow:hidden;background:var(--card-pop)!important}
html[data-hero=card] body :is(.hero,.home-composition) .portrait-frame::after{display:none}
html[data-hero=card] body :is(.hero,.home-composition) .portrait-cinematic{display:block;width:100%;height:100%;max-width:100%;object-fit:cover;object-position:50% 18%;margin:0;transform:scale(1.5);transform-origin:50% 24%;filter:none!important;mask-image:none;-webkit-mask-image:none;animation:none!important}
html[data-hero=card] .portrait-particles{display:none}
html[data-hero=card] body :is(.hero,.home-composition) .giant{position:relative;inset:auto;grid-row:3;display:block;max-width:none;width:100%;margin:0;white-space:normal;color:var(--fg);font:700 clamp(32px,5vw,52px)/1.06 "DM Sans",sans-serif;letter-spacing:-.055em;text-align:left}
html[data-hero=card] body :is(.hero,.home-composition) .giant::before{content:"Hello! I’m";display:block;font:inherit;margin-bottom:2px}
html[data-hero=card] body :is(.hero,.home-composition) .giant>span{display:inline;white-space:normal}
html[data-hero=card] body :is(.hero,.home-composition) .giant>span+span::before{content:" "}
html[data-hero=card] body :is(.hero,.home-composition) .giant>span:last-child{box-shadow:inset 0 -.2em var(--card-pop)}
html[data-hero=card] body :is(.hero,.home-composition) .portrait-motion-choices{position:relative;inset:auto;grid-row:4;justify-self:center;max-width:100%;width:230px}
html[data-hero=card] .portrait-motion-row{display:none}
html[data-hero=card] body:not(.page-layout) .hero:has(.portrait-cinematic) .hero-description{position:relative;inset:auto;max-width:none;margin:24px 0 0}
html[data-hero=card] body .hero-description h2{font:700 22px/1.2 "DM Sans",sans-serif;letter-spacing:-.03em}
html[data-hero=card] body .hero-side{display:none!important}
html[data-hero=card] .paged .screen-viewport{padding-top:12px}
html[data-hero=card] .paged .home-composition{padding:14px;border:1px solid var(--line);border-radius:12px;background:var(--surface);grid-template-rows:minmax(130px,1fr) auto;gap:16px}
html[data-hero=card] .paged .home-composition .hero-stage{height:100%;min-height:0;grid-template-rows:auto minmax(60px,1fr) auto auto;gap:12px}
html[data-hero=card] .paged .home-composition .portrait-frame{max-height:340px;min-height:0;max-width:100%}
html[data-hero=card] .paged .home-composition .giant{font-size:clamp(24px,3.7dvh,42px)}
html[data-hero=card] .paged .home-composition .hero-description{max-width:none;margin:0}
html[data-hero=card] .paged .home-composition .hero-description h2{font:700 20px/1.2 "DM Sans",sans-serif;margin-bottom:8px}
html[data-hero=card] .paged .home-composition .hero-description p{font-size:13px;line-height:1.55;margin-bottom:10px}
html[data-hero=card] .paged .home-composition .hero-description p.availability{font-size:10px;margin-bottom:0}
@media(max-width:700px){
 html[data-hero=card] body:not(.page-layout) .hero:has(.portrait-cinematic){margin:16px 12px;padding:28px 22px;max-width:calc(100% - 24px)}
 html[data-hero=card] body:not(.page-layout) .hero .hero-stage{grid-template-rows:auto min(80vw,380px) auto auto;gap:20px}
 html[data-hero=card] body .hero .giant{font-size:clamp(30px,8vw,42px)}
 html[data-hero=card] .paged .home-composition{padding:12px;gap:12px}
 html[data-hero=card] .paged .home-composition .hero-stage::after{font-size:9px;padding:8px 10px;top:auto}
}
@media(max-height:650px){
 html[data-hero=card] .paged .home-composition{gap:8px;padding:8px}
 html[data-hero=card] .paged .home-composition .hero-stage{gap:7px}
 html[data-hero=card] .paged .home-composition .giant{font-size:24px}
 html[data-hero=card] .paged .home-composition .hero-description h2{display:none}
 html[data-hero=card] .paged .home-composition .hero-description p{font-size:12px}
 html[data-hero=card] .paged .home-composition .hero-description .btn{min-height:38px;padding:9px 12px}
}

/* Already trimmed cutouts need less zoom than the original full canvases. */
html[data-hero=card] body :is(.hero,.home-composition) .portrait-frame:is([data-portrait-choice=brown],[data-portrait-choice=grey]) .portrait-cinematic{transform:scale(1.08);transform-origin:50% 0%}
html[data-hero=card] body :is(.hero,.home-composition) .portrait-frame:is([data-portrait-choice=leather],[data-portrait-choice=main1]) .portrait-cinematic{transform:scale(1.12);transform-origin:50% 15%}

/* Keep the hero on one continuous page surface. */
html[data-hero=card] body :is(.hero,.home-composition){background:transparent!important;border-color:transparent;box-shadow:none}
html[data-hero=card] body :is(.hero,.home-composition) :is(.hero-stage,.giant,.hero-description){background:transparent!important;box-shadow:none}
html[data-hero=card] body :is(.hero,.home-composition) .giant>span:last-child{box-shadow:inset 0 -.2em var(--card-pop)}

/* Raise this original within its frame without changing the photo or its scale. */
html[data-hero=card] body :is(.hero,.home-composition) .portrait-frame[data-portrait-choice=image3] .portrait-cinematic{transform:translateY(-36px)!important}

/* Match the raised framing while retaining the original Blasser photo. */
html[data-hero=card] body :is(.hero,.home-composition) .portrait-frame[data-portrait-choice=blasser] .portrait-cinematic{transform:translateY(12px)!important}

/* Bring public-home actions higher without resizing or editing the portrait. */
html[data-release][data-hero=card] body :is(.hero,.home-composition) .hero-stage::after{display:none}
html[data-release][data-hero=card] body :is(.hero,.home-composition) .hero-stage{grid-template-rows:380px auto;gap:12px}
html[data-release][data-hero=card] body :is(.hero,.home-composition) .portrait-frame:has(.portrait-cinematic){grid-row:1}
html[data-release][data-hero=card] body :is(.hero,.home-composition) .giant{grid-row:2}
html[data-release][data-hero=card] body:not(.page-layout) .hero:has(.portrait-cinematic){margin-top:12px;padding-top:14px;padding-bottom:24px}
html[data-release][data-hero=card] body:not(.page-layout) .hero:has(.portrait-cinematic) .hero-description{margin-top:12px}
html[data-release][data-hero=card] body .hero-description h2{margin:0 0 8px}
html[data-release][data-hero=card] body .hero-description p{margin:8px 0 10px}
html[data-release][data-hero=card] body .hero-description .btn{margin-top:4px}
html[data-release][data-hero=card] .paged .home-composition .hero-stage{grid-template-rows:minmax(60px,1fr) auto;gap:10px}
@media(max-width:700px){
 html[data-release][data-hero=card] body:not(.page-layout) .hero .hero-stage{grid-template-rows:min(80vw,380px) auto;gap:12px}
 html[data-release][data-hero=card] body:not(.page-layout) .hero:has(.portrait-cinematic){margin-top:10px;padding-top:12px;padding-bottom:20px}
}

/* Public layout: keep the mobile composition; contain wider-screen content in normal flow. */
@media(min-width:701px){
 html[data-release][data-hero=card] body:not(.page-layout) .hero:has(.portrait-cinematic){
  position:relative;display:grid;grid-template-columns:minmax(0,1fr) minmax(280px,.9fr);grid-template-rows:auto auto;align-content:center;column-gap:clamp(28px,5vw,72px);height:auto;min-height:500px;max-width:1280px;width:calc(100% - 48px);margin:24px auto 40px;padding:40px clamp(28px,4vw,56px);overflow:visible;
 }
 html[data-release][data-hero=card] body:not(.page-layout) .hero:has(.portrait-cinematic) .hero-stage{display:contents;position:static;inset:auto;height:auto;margin:0}
 html[data-release][data-hero=card] body:not(.page-layout) .hero:has(.portrait-cinematic) .giant{position:relative;inset:auto;grid-column:1;grid-row:1;align-self:end;width:auto;max-width:100%;margin:0;font:700 clamp(32px,3.8vw,52px)/1.08 "DM Sans",sans-serif;letter-spacing:-.05em;white-space:normal}
 html[data-release][data-hero=card] body:not(.page-layout) .hero:has(.portrait-cinematic) .giant>span{display:inline;white-space:normal}
 html[data-release][data-hero=card] body:not(.page-layout) .hero:has(.portrait-cinematic) .portrait-frame{position:relative;inset:auto;grid-column:2;grid-row:1 / span 2;align-self:center;justify-self:center;width:min(100%,420px);height:auto;aspect-ratio:1;max-width:100%;margin:0;transform:none;translate:none}
 html[data-release][data-hero=card] body:not(.page-layout) .hero:has(.portrait-cinematic) .hero-description{position:relative;inset:auto;grid-column:1;grid-row:2;align-self:start;width:auto;max-width:100%;margin:20px 0 0}
 html[data-release][data-hero=card] body:not(.page-layout) .hero .hero-description>.micro{display:none}
 html[data-release][data-hero=card] body:not(.page-layout) .hero .hero-description h2{font-size:clamp(20px,2.2vw,28px);line-height:1.2}
 html[data-release][data-hero=card] body:not(.page-layout) .hero .hero-description p{max-width:52ch;font-size:15px;line-height:1.65}
 html[data-release][data-hero=card] body:not(.page-layout) .hero .scroll{display:none}
 html[data-release] body:not(.page-layout) .projects{grid-template-columns:repeat(2,minmax(0,1fr));gap:48px 32px;align-items:start}
 html[data-release] body:not(.page-layout) .projects>.project:nth-child(n){display:block;grid-column:auto}
 html[data-release] body:not(.page-layout) .projects>.project:nth-child(n) .project-art{grid-row:auto;height:auto;min-height:0}
 html[data-release] body:not(.page-layout) .projects>.project:last-child .project-art{height:auto;aspect-ratio:3/2}
 html[data-release] .section-intro{max-width:65ch}
}
@media(min-width:701px) and (max-width:900px){
 html[data-release][data-hero=card] body:not(.page-layout) .hero:has(.portrait-cinematic){grid-template-columns:1fr;min-height:0;gap:0;padding:28px 32px}
 html[data-release][data-hero=card] body:not(.page-layout) .hero:has(.portrait-cinematic) .portrait-frame{grid-column:1;grid-row:1;width:320px;margin-bottom:24px}
 html[data-release][data-hero=card] body:not(.page-layout) .hero:has(.portrait-cinematic) .giant{grid-column:1;grid-row:2;font-size:38px}
 html[data-release][data-hero=card] body:not(.page-layout) .hero:has(.portrait-cinematic) .hero-description{grid-column:1;grid-row:3}
 html[data-release] .expertise-grid{grid-template-columns:1fr}
 html[data-release] .about-grid{gap:32px;grid-template-columns:1fr 1fr}
 html[data-release] .projects{gap:40px 24px}
}
@media(min-width:701px) and (max-width:1000px){
 .scroll-case .case-layout{grid-template-columns:1fr;gap:24px;padding-top:28px}
 .scroll-case .case-nav{position:static;display:flex;flex-wrap:wrap;gap:0 24px;padding-bottom:18px;border-bottom:1px solid var(--line)}
 .scroll-case .evidence-grid{grid-template-columns:1fr}
}

/* The desktop landing composition occupies the first viewport beneath the header. */
@media(min-width:901px){
 html[data-release][data-hero=card] body:not(.page-layout) .hero:has(.portrait-cinematic){
  width:100%;max-width:1460px;min-height:calc(100svh - 94px);height:auto;margin:0 auto;padding:32px clamp(32px,5vw,76px);column-gap:clamp(32px,5vw,80px);border:0;border-radius:0;
 }
 html[data-release][data-hero=card] body:not(.page-layout) .hero:has(.portrait-cinematic) .giant{font-size:clamp(42px,4.6vw,72px);line-height:1.06}
 html[data-release][data-hero=card] body:not(.page-layout) .hero:has(.portrait-cinematic) .portrait-frame{width:min(100%,calc(100svh - 174px),630px)}
 html[data-release][data-hero=card] body:not(.page-layout) .hero:has(.portrait-cinematic) .hero-description{margin-top:24px}
 html[data-release][data-hero=card] body:not(.page-layout) .hero .hero-description h2{font-size:clamp(22px,2.25vw,32px)}
 html[data-release][data-hero=card] body:not(.page-layout) .hero .hero-description p{font-size:clamp(15px,1.15vw,17px);line-height:1.65}
 html[data-release][data-hero=card] body:not(.page-layout) .hero .hero-description p.availability{font-size:13px}
}

/* Bold desktop introduction, with the original portrait file kept intact. */
@media(min-width:901px){
 html[data-release][data-hero=card] body:not(.page-layout) .hero:has(.portrait-cinematic) .giant{font:900 clamp(64px,8vw,126px)/.88 "Barlow Condensed",sans-serif;letter-spacing:-.025em;color:var(--signal);text-transform:uppercase}
 html[data-release][data-hero=card] body:not(.page-layout) .hero:has(.portrait-cinematic) .giant::before{display:none}
 html[data-release][data-hero=card] body:not(.page-layout) .hero:has(.portrait-cinematic) .giant>span{display:block;white-space:nowrap}
 html[data-release][data-hero=card] body:not(.page-layout) .hero:has(.portrait-cinematic) .giant>span+span::before{content:none}
 html[data-release][data-hero=card] body:not(.page-layout) .hero:has(.portrait-cinematic) .giant>span:last-child{box-shadow:none}
}
@media(min-width:901px) and (max-height:700px){
 html[data-release][data-hero=card] body:not(.page-layout) .hero:has(.portrait-cinematic) .giant{font-size:clamp(58px,7vw,92px)}
}

/* Keep the portrait fixed and allow touch gestures to scroll the page. */
html[data-release] .hero .portrait-frame{pointer-events:none;translate:none!important;-webkit-touch-callout:none;user-select:none;-webkit-user-select:none}
html[data-release] .hero .portrait-frame img{pointer-events:none;-webkit-user-drag:none;-webkit-touch-callout:none;user-select:none;-webkit-user-select:none}
