/* Homepage art direction. Existing brand, portrait renderer and scroll controllers remain authoritative. */
body[data-page-type="home"][data-studio-home] {
  --studio-ease: cubic-bezier(.22,.75,.25,1);
  --studio-rule: color-mix(in oklab,var(--fg),transparent 82%);
}

/* One strong opening, then a quieter personal aside; mobile uses its canonical short intro. */
body[data-page-type="home"][data-studio-home] .hero-copy {
  width: 100%;
  max-width: none;
  gap: clamp(28px,4vw,58px);
}
body[data-page-type="home"][data-studio-home] .hero-main {
  display: grid;
  gap: clamp(18px,2.1vw,30px);
  min-width: 0;
  max-width: 760px;
}
body[data-page-type="home"][data-studio-home] .hero-main > * { margin-block: 0; }
body[data-page-type="home"][data-studio-home] .hero-eyebrow { max-width: 54ch; line-height: 1.6; }
body[data-page-type="home"][data-studio-home] .hero-title { letter-spacing: -.055em; }
body[data-page-type="home"][data-studio-home] .hero-lead { max-width: 43ch; font-size: clamp(1.08rem,1.55vw,1.35rem); line-height: 1.5; }
body[data-page-type="home"][data-studio-home] .hero-context { max-width: 56ch; color: var(--muted); font-size: .94rem; line-height: 1.7; }
body[data-page-type="home"][data-studio-home] .hero-supporting {
  display: grid;
  gap: 18px;
  align-content: end;
  max-width: 41ch;
  padding-top: 22px;
  border-top: 1px solid var(--studio-rule);
}
body[data-page-type="home"][data-studio-home] .hero-supporting p { margin: 0; font-size: .81rem; line-height: 1.7; color: var(--muted); }
body[data-page-type="home"][data-studio-home] .hero-supporting .section-actions { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; }
body[data-page-type="home"][data-studio-home] .hero-lead--mobile {display:none;}

@media screen and (max-width:820px) {
  body[data-page-type="home"][data-studio-home] :is(.hero-lead--desktop,.hero-context,.hero-supporting > .home-support) {display:none;}
  body[data-page-type="home"][data-studio-home] .hero-lead--mobile {display:block;font-size:1rem;line-height:1.55;max-width:36ch;}
  body[data-page-type="home"][data-studio-home] .hero-copy {gap:22px;}
  body[data-page-type="home"][data-studio-home] .hero-supporting {display:none;}
  body[data-page-type="home"][data-studio-home] .hero-actions {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;}
  body[data-page-type="home"][data-studio-home] .hero-actions .button {width:100%;min-width:0;min-height:44px;box-sizing:border-box;padding:12px 24px 12px 10px;font-size:clamp(.72rem,3vw,.875rem);line-height:1.35;text-align:center;white-space:normal;}
}


@media(min-width:1181px){body[data-page-type="home"][data-studio-home] .hero {grid-template-columns:1fr;padding-left:var(--section-content-inset);}body[data-page-type="home"][data-studio-home] .hero-copy {grid-template-columns:minmax(0,760px) minmax(180px,240px);align-items:end;justify-content:space-between;}}
body[data-page-type="home"][data-studio-home] .hero-main .hero-title {max-width:11ch;}
/* Reading, exploring and experimenting each get a different pace. */
body[data-studio-home] :is(#lab,#site-agent,#latest) {min-height:0;display:block;}
body[data-studio-home] :is(#lab,#latest) .section-head h2 {font-size:clamp(2.4rem,4.5vw,4.5rem);max-width:20ch;line-height:1.04;}
body[data-studio-home] :is(#lab,#latest) .section-head > p:last-child {max-width:70ch;line-height:1.75;}
body[data-studio-home] #lab .studio-workflow-list {
  --workflow-index:40px;--workflow-gap:20px;
  --workflow-signal:var(--scene-accent,var(--green));
  display:block;margin-top:38px;
}
body[data-studio-home] #lab .studio-workflow-list::before,
body[data-studio-home] #lab .workflow-card::after {display:none;}
body[data-studio-home] #lab .workflow-card {
  min-height:0;margin:0;padding:0;border:0;border-top:1px solid var(--line);
  border-radius:0;background:none;box-shadow:none;overflow:visible;
}
body[data-studio-home] #lab .workflow-card:last-child {border-bottom:1px solid var(--line);}
body[data-studio-home] .studio-workflow > summary {position:relative;list-style:none;cursor:pointer;padding:28px 0;}
body[data-studio-home] .studio-workflow > summary::after {
  content:"";position:absolute;inset:auto 0 0;height:1px;pointer-events:none;
  background:linear-gradient(90deg,var(--workflow-signal),color-mix(in srgb,var(--workflow-signal),transparent 72%) 60%,transparent);
  transform:scaleX(0);transform-origin:left;transition:transform 650ms var(--studio-ease);
}
body[data-studio-home] .studio-workflow[open] > summary::after,
body[data-studio-home] .studio-workflow > summary:is(:hover,:focus-visible)::after {transform:scaleX(1);}
body[data-studio-home] #lab .studio-workflow > summary > h3 {display:grid;grid-template-columns:var(--workflow-index) minmax(0,1fr) 28px;gap:var(--workflow-gap);align-items:baseline;}
body[data-studio-home] .studio-workflow > summary::-webkit-details-marker,
body[data-studio-home] #lab .workflow-card h3 {margin:0;max-width:none;font-size:clamp(1.22rem,2.2vw,2rem);font-weight:620;letter-spacing:-.035em;line-height:1.24;}
body[data-studio-home] .studio-workflow-title {display:block;min-width:0;transition:color 220ms ease;}
body[data-studio-home] .studio-workflow-number {
  position:relative;padding-bottom:8px;font:500 .68rem/1.5 var(--font-mono);
  font-variant-numeric:tabular-nums;letter-spacing:.08em;color:var(--muted);transition:color 220ms ease;
}
body[data-studio-home] .studio-workflow-number::after {
  content:"";position:absolute;left:0;bottom:0;width:22px;height:2px;pointer-events:none;
  background:var(--workflow-signal);transform:scaleX(.24);transform-origin:left;opacity:.55;
  transition:transform 420ms var(--studio-ease),opacity 220ms ease;
}
body[data-studio-home] .studio-workflow[open] .studio-workflow-number,
body[data-studio-home] .studio-workflow > summary:is(:hover,:focus-visible) :is(.studio-workflow-number,.studio-workflow-title) {color:var(--workflow-signal);}
body[data-studio-home] .studio-workflow[open] .studio-workflow-number::after,
body[data-studio-home] .studio-workflow > summary:is(:hover,:focus-visible) .studio-workflow-number::after {transform:scaleX(1);opacity:1;}
body[data-studio-home] .studio-workflow-copy {
  position:relative;padding:20px 48px 34px calc(var(--workflow-index) + var(--workflow-gap));max-width:80ch;
  color:var(--muted);font-size:1.01rem;line-height:1.8;
}
body[data-studio-home] .studio-workflow-copy::before {
  content:"";position:absolute;left:10px;top:24px;bottom:34px;width:1px;pointer-events:none;
  background:linear-gradient(var(--workflow-signal),color-mix(in srgb,var(--workflow-signal),transparent 88%));
}
body[data-studio-home] .studio-workflow-copy > * + * {margin-top:1em;}
body[data-studio-home] .studio-disclosure-symbol {justify-self:end;font:300 1.6rem/1 var(--font-sans);transition:transform 350ms var(--studio-ease);}
body[data-studio-home] details[open] > summary .studio-disclosure-symbol {transform:rotate(45deg);}
body[data-studio-home] .studio-lab-link {display:inline-block;margin-top:28px;color:var(--fg);text-underline-offset:6px;}
body[data-studio-home] #site-agent .section-head h2 {font-size:clamp(2.8rem,5.6vw,5.6rem);max-width:19ch;line-height:1;}

html.site-agent-premium body[data-studio-home] .showcase-project {border-block-color:var(--scene-accent,var(--green));}
html.site-agent-premium body[data-studio-home] .showcase-project h3 {text-decoration:underline;text-decoration-color:var(--scene-accent,var(--green));text-underline-offset:.18em;}
body[data-studio-home] #latest .education-list {display:block;margin-top:32px;padding:0;border:0;border-radius:0;background:none;box-shadow:none;backdrop-filter:none;}
body[data-studio-home] #latest .home-article {display:grid;grid-template-columns:minmax(140px,.32fr) minmax(0,1fr);gap:12px 32px;padding:25px 0;border-top:1px solid var(--line);}
body[data-studio-home] #latest .home-article-meta {grid-row:1/3;min-width:0;}
body[data-studio-home] #latest .home-article time {display:block;color:var(--muted);font:.7rem/1.7 var(--font-mono);}
body[data-studio-home] #latest .home-article h3 {margin:0;font-size:clamp(1.3rem,2.2vw,2rem);line-height:1.15;max-width:36ch;}
body[data-studio-home] #latest .home-article p {margin:0;max-width:76ch;font-size:.95rem;line-height:1.75;color:var(--muted);}
/* Small source plates distinguish the reading list without turning it into cards.
   Text, hit areas and row geometry stay stationary throughout the interaction. */
body[data-studio-home] #latest .home-article {position:relative;}
body[data-studio-home] #latest .home-article-art {position:relative;isolation:isolate;width:min(180px,100%);aspect-ratio:16/9;margin-top:12px;overflow:hidden;pointer-events:none;}
body[data-studio-home] #latest .home-article-art img {display:block;width:100%;height:100%;object-fit:contain;border:0;border-radius:0;}
body[data-studio-home] #latest .home-article-art::after {content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(115deg,transparent 30%,rgba(255,255,255,.16) 49%,transparent 68%);transform:translateX(-125%);}
body[data-studio-home] #latest .home-article::after {content:"";position:absolute;top:-1px;left:0;width:100%;height:1px;background:var(--scene-accent,var(--green));transform:scaleX(0);transform-origin:left;pointer-events:none;}
body[data-studio-home] #latest .home-article h3 a {text-decoration-thickness:.045em;text-underline-offset:.15em;text-decoration-color:var(--line-strong);}
body[data-studio-home] #latest .home-article:has(h3 a:is(:hover,:focus-visible)) h3 a {text-decoration-color:var(--scene-accent,var(--green));}
body[data-studio-home] #latest .home-article:has(h3 a:is(:hover,:focus-visible))::after {transform:scaleX(1);}
body[data-studio-home] #latest .home-article h3 a:focus-visible {outline:2px solid var(--scene-accent,var(--green));outline-offset:5px;border-radius:0;}
@media screen and (prefers-reduced-motion:no-preference) {
  html:not([data-locale-transition]) body[data-studio-home]:not(.live-edit-active) #latest .home-article::after {transition:transform 560ms cubic-bezier(.16,1,.3,1);}
  html:not([data-locale-transition]) body[data-studio-home]:not(.live-edit-active) #latest .home-article:has(h3 a:is(:hover,:focus-visible)) .home-article-art::after {animation:home-reading-reflection 780ms cubic-bezier(.2,.7,.2,1) both;}
}
@keyframes home-reading-reflection {to {transform:translateX(125%);}}
@media (max-width:700px) {body[data-studio-home] #latest .home-article-art {width:96px;flex:none;margin-top:0;}}
@media print {body[data-studio-home] #latest .home-article-art {display:none;}body[data-studio-home] #latest .home-article::after {display:none;}}
body[data-studio-home] [data-disclosure-body] {box-sizing:border-box;}
@media(max-width:700px){
  body[data-studio-home] #lab .studio-workflow-list {--workflow-index:24px;--workflow-gap:12px;}
  body[data-studio-home] .studio-workflow > summary {padding-block:22px;}
  body[data-studio-home] #lab .studio-workflow > summary > h3 {grid-template-columns:var(--workflow-index) minmax(0,1fr) 18px;}
  body[data-studio-home] .studio-workflow-copy {padding:18px 28px 26px calc(var(--workflow-index) + var(--workflow-gap));font-size:.97rem;}
  body[data-studio-home] .studio-workflow-copy::before {left:6px;top:22px;bottom:26px;}
  body[data-studio-home] #latest .home-article {grid-template-columns:1fr;gap:12px;}
  body[data-studio-home] #latest .home-article-meta {grid-row:auto;display:flex;align-items:center;justify-content:space-between;gap:16px;}
}
@media(prefers-reduced-motion:reduce){body[data-studio-home] .studio-disclosure-symbol {transition:none;}}
@media print{body[data-studio-home] .studio-workflow-copy {padding-left:0;}body[data-studio-home] .studio-disclosure-symbol {display:none;}}

/* The reference's read-more grammar, on the existing native disclosures. */
body[data-studio-home] {--studio-ease:cubic-bezier(.2,.76,.24,1);}
body[data-studio-home] .studio-disclosure-symbol,
body[data-studio-home] .studio-disclosure-mark {position:relative;display:inline-block;width:.8rem;height:.8rem;font-size:0;transform:none!important;flex:none;}
body[data-studio-home] :is(.studio-disclosure-symbol,.studio-disclosure-mark)::before,
body[data-studio-home] :is(.studio-disclosure-symbol,.studio-disclosure-mark)::after {content:"";position:absolute;inset:50% auto auto 50%;width:100%;height:1px;background:currentColor;transform:translate(-50%,-50%);transition:transform 360ms var(--studio-ease);}
body[data-studio-home] :is(.studio-disclosure-symbol,.studio-disclosure-mark)::after {transform:translate(-50%,-50%) rotate(90deg);}
body[data-studio-home] details[open]>summary :is(.studio-disclosure-symbol,.studio-disclosure-mark)::before,
body[data-studio-home] details[open]>summary :is(.studio-disclosure-symbol,.studio-disclosure-mark)::after {transform:translate(-50%,-50%) rotate(180deg);}
/* The workflow's end mark uses the same open registration detail as the digital actions. */
body[data-studio-home] .studio-workflow .studio-disclosure-symbol {
  align-self:center;width:18px;height:18px;color:var(--muted);
  background:linear-gradient(currentColor,currentColor) left top/5px 1px no-repeat,
    linear-gradient(currentColor,currentColor) left top/1px 5px no-repeat,
    linear-gradient(currentColor,currentColor) right bottom/5px 1px no-repeat,
    linear-gradient(currentColor,currentColor) right bottom/1px 5px no-repeat;
  transition:color 220ms ease;
}
body[data-studio-home] .studio-workflow .studio-disclosure-symbol::before,
body[data-studio-home] .studio-workflow .studio-disclosure-symbol::after {width:9px;}
body[data-studio-home] .studio-workflow[open] .studio-disclosure-symbol,
body[data-studio-home] .studio-workflow > summary:is(:hover,:focus-visible) .studio-disclosure-symbol {color:var(--workflow-signal);}
body[data-studio-home] .studio-workflow > summary:focus-visible {outline-color:var(--workflow-signal);}
:root[data-theme-mode="light"] body[data-studio-home] #lab .studio-workflow-list {--workflow-signal:color-mix(in srgb,var(--scene-accent,var(--green)),#000 58%);}
@media(prefers-reduced-motion:reduce) {
  body[data-studio-home] .studio-workflow > summary::after,
  body[data-studio-home] .studio-workflow-number,
  body[data-studio-home] .studio-workflow-number::after,
  body[data-studio-home] .studio-workflow-title,
  body[data-studio-home] .studio-workflow .studio-disclosure-symbol {transition:none;}
}
@media print {
  body[data-studio-home] .studio-workflow > summary::after,
  body[data-studio-home] .studio-workflow-copy::before {display:none;}
}
/* Existing hero prism, bounded by its real content height. The final quarter
   fades into the shared plain background; no scroll repaint controller. */
body[data-studio-home] .hero {isolation:isolate;}
body[data-studio-home] .hero.scene::before,
body[data-studio-home] .hero > .ambient-field {
  position:absolute;top:0;bottom:0;right:auto;
  left:calc(50% - var(--public-rail-space)/2);width:100vw;max-width:none;height:auto;
  transform:translateX(-50%);border-radius:0;pointer-events:none;
  -webkit-mask-image:linear-gradient(#000 0 55%,transparent 100%);
  mask-image:linear-gradient(#000 0 55%,transparent 100%);
}
body[data-studio-home] .hero.scene::before {
  z-index:-2;background:var(--page-atmosphere),var(--page-background);
  opacity:.9;filter:none;transition:none;
}
body[data-studio-home] .hero > .ambient-field {z-index:-1;}
/* Preserve the original soft radial prism vignette inside the hero. */
body[data-studio-home] .hero > .ambient-field {
  -webkit-mask-image:radial-gradient(ellipse at 50% 42%,#000 0 26%,transparent 52%);
  mask-image:radial-gradient(ellipse at 50% 42%,#000 0 26%,transparent 52%);
}

@media(prefers-reduced-motion:reduce) {body[data-studio-home] :is(.studio-disclosure-symbol,.studio-disclosure-mark)::before,body[data-studio-home] :is(.studio-disclosure-symbol,.studio-disclosure-mark)::after {transition:none;}}


/* Personal prose gets a reading measure; companion actions share the studio trace. */
body[data-studio-home] #about .section-head > h2 {line-height:1.04;}
body[data-studio-home] #about .section-head > p:last-of-type {
  max-width:70ch;font-size:clamp(1.03rem,1.25vw,1.18rem);line-height:1.8;
  color:var(--muted);margin:22px 0 0;
}
body[data-studio-home] .showcase-play-links {
  display:flex;flex-wrap:wrap;align-items:center;gap:10px 28px;margin:32px 0 0;
}
@media print {
  body[data-studio-home] #about .section-head > p:last-of-type {font-size:10pt;line-height:1.5;}
  body[data-studio-home] .showcase-play-links {gap:8px 20px;}
}

/* Progressive enhancement survives both a native load and DOMParser page imports. */
body[data-studio-home] #site-agent:not(.site-agent-css-only) .site-agent-shell {display:none;}

/* Home projects are a free-flowing editorial index, without scroll capture. */
body[data-studio-home] .home-project-track {display:block;}
body[data-studio-home] .home-project-track > .home-project {
  display:grid;grid-template-columns:minmax(0,.7fr) minmax(0,1fr);gap:clamp(24px,5vw,72px);
  align-items:center;max-width:none;min-width:0;margin:0;padding:36px 0;
  border:0;border-top:1px solid var(--line);border-radius:0;background:none;box-shadow:none;
  backdrop-filter:none;overflow:visible;transform:none;
}
body[data-studio-home] .home-project-track > .home-project::before {display:none;}
body[data-studio-home] .home-project-track .showcase-project-image {min-width:0;padding:0;}
body[data-studio-home] .home-project-track .project-media-link {display:block;}
body[data-studio-home] .home-project-track .project-media-link > img {display:block;width:100%;height:auto;max-height:320px;object-fit:contain;border-radius:0;}
body[data-studio-home] .home-project-track .project-scroll-window {display:block;aspect-ratio:16/10;max-height:320px;overflow:hidden;}
body[data-studio-home] .home-project-track .showcase-project-copy {display:flex;flex-direction:column;align-items:start;gap:14px;min-width:0;padding:0;}
body[data-studio-home] .home-project-track .showcase-project-number {font:.65rem/1.5 var(--font-mono);color:var(--muted);}
body[data-studio-home] .home-project-track small {font:.65rem/1.6 var(--font-mono);letter-spacing:.1em;color:var(--scene-accent);}
body[data-studio-home] .home-project-track h3 {margin:0;font-size:clamp(1.8rem,3vw,3rem);line-height:1.05;}
body[data-studio-home] .home-project-track p {margin:0;color:var(--muted);font-size:.95rem;line-height:1.75;}
body[data-studio-home] .home-project-track .section-actions {display:flex;flex-wrap:wrap;align-items:center;gap:12px;margin:4px 0 0;padding:0;}
/* The existing reel now carries the latest canonical article records. */
body[data-studio-home] #latest .showcase-reel-track > .home-article {
  flex:0 0 90%;min-width:0;max-width:none;scroll-snap-align:start;
  grid-template-columns:minmax(0,.95fr) minmax(0,1fr);grid-template-rows:auto 1fr;
  align-content:start;gap:20px clamp(24px,4vw,56px);padding:24px 0;margin:0;
}
body[data-studio-home] #latest .home-article h3 {font-size:clamp(1.6rem,2.8vw,2.9rem);line-height:1.1;max-width:28ch;}
body[data-studio-home] #latest .home-article-art {width:100%;aspect-ratio:16/10;max-height:300px;}
body[data-studio-home] #latest .home-article p {font-size:.95rem;line-height:1.7;}
body[data-studio-home] #latest .section-actions {margin-top:20px;}
@media(max-width:767px) {
  body[data-studio-home] .home-project-track > .home-project {grid-template-columns:1fr;gap:24px;padding-block:28px;}
  body[data-studio-home] .home-project-track .project-media-link > img {max-height:260px;}
  body[data-studio-home] #latest .showcase-reel-track > .home-article {grid-template-columns:1fr;grid-template-rows:auto auto 1fr;gap:18px;}
  body[data-studio-home] #latest .home-article-meta {grid-row:auto;display:block;}
  body[data-studio-home] #latest .home-article-art {margin-top:12px;max-height:240px;}
}
@media print {
  body[data-studio-home] #latest .showcase-reel-track > .home-article {display:block;break-inside:avoid;}
  body[data-studio-home] .home-project-track > .home-project {break-inside:avoid;}
}

/* Keep the native introduction outside the full-height reading stage; its rail stays with the articles. */
body[data-studio-home] #latest .showcase-reel-sticky > .scene-rail {left:clamp(-28px,-1.4vw,-18px);}
@media(min-width:1024px) and (prefers-reduced-motion:no-preference) {
  body[data-studio-home] #latest [data-scroll-reel].is-reel-pinned .showcase-reel-sticky {
    height:calc(100svh - 125px);box-sizing:border-box;display:flex;flex-direction:column;
  }
  body[data-studio-home] #latest [data-scroll-reel].is-reel-pinned .showcase-reel-controls,
  body[data-studio-home] #latest [data-scroll-reel].is-reel-pinned .section-actions {flex:none;}
  body[data-studio-home] #latest [data-scroll-reel].is-reel-pinned .showcase-reel-viewport {flex:1;min-height:0;padding-bottom:0;}
  body[data-studio-home] #latest [data-scroll-reel].is-reel-pinned .showcase-reel-track {height:100%;}
  body[data-studio-home] #latest [data-scroll-reel].is-reel-pinned .home-article {
    flex-basis:100%;height:100%;box-sizing:border-box;grid-template-rows:1fr 1fr;
    opacity:calc(1 - var(--reel-panel-distance,0)*.55);
  }
  body[data-studio-home] #latest [data-scroll-reel].is-reel-pinned .home-article-meta {height:100%;min-height:0;display:flex;flex-direction:column;}
  body[data-studio-home] #latest [data-scroll-reel].is-reel-pinned .home-article-art {flex:1;min-height:0;max-height:none;aspect-ratio:auto;}
  body[data-studio-home] #latest [data-scroll-reel].is-reel-pinned .home-article-art img {transform:scale(calc(1 + var(--reel-panel-distance,0)*.04));}
  body[data-studio-home] #latest [data-scroll-reel].is-reel-pinned .home-article h3 {align-self:end;}
  body[data-studio-home] #latest [data-scroll-reel].is-reel-pinned .home-article p {align-self:start;}
  body[data-studio-home] #latest [data-scroll-reel].is-reel-pinned .showcase-reel-sticky > .scene-rail {
    top:0;bottom:0;left:clamp(-28px,-1.4vw,-18px);
  }
}
body[data-studio-home] .scroll-rail i {height:var(--reel-page-progress,var(--progress));}
body[data-studio-home] .scroll-rail b {top:var(--reel-page-progress,var(--progress));transform:translate(-3px,-50%);}
