@font-face {font-family:Onest;src:url(../fonts/onest-latin-wght.woff2) format('woff2');font-weight:200 800;font-display:swap}
/* the page's palette lives in variables, so the site's invert tab flips the
   whole feature: cream and ink by day, charcoal and bone in dark mode */
#project-2 {--am-bg:#f5f0e8;--am-ink:#30281f;--am-muted:#6d6457;--am-dim:#ab9d88;--am-line:#d8cfc0;--am-role:#a39781;
 color:var(--am-ink);background:var(--am-bg)}
html[data-theme="dark"] #project-2 {--am-bg:#131110;--am-ink:#ece5d9;--am-muted:#a39889;--am-dim:#776c5c;--am-line:#39342c;--am-role:#8d8271}
/* The cover is the macro portrait, full bleed. It stops at 80svh — a 20vh band
   of the paper below stays in the first viewport, so the reader knows the page
   continues — and its foot dissolves into that same paper tone. */
.am-cover {position:relative;height:85svh;min-height:560px;padding:clamp(1.5rem,4vw,4rem) 7vw;display:grid;align-items:end;
  background:linear-gradient(199deg,#0000 46%,#2e1d1259 100%),url(hero.webp) center/cover}
/* the cover settles in reading order: the label, then the wordmark, then the
   deck, and last the scroll plate — one soft rise, Apple-timed */
@keyframes am-rise {from{opacity:0;transform:translateY(26px)}to{opacity:1;transform:none}}
.pv__view.is-current .am-cover .am-label {animation:am-rise 1s cubic-bezier(.22,1,.36,1) .35s both}
.pv__view.is-current .am-cover .pv__title {animation:am-rise 1.1s cubic-bezier(.22,1,.36,1) .5s both}
.pv__view.is-current .am-cover .am-deck {animation:am-rise 1.1s cubic-bezier(.22,1,.36,1) .68s both}
.pv__view.is-current .am-cta {animation:am-rise 1s cubic-bezier(.22,1,.36,1) .9s both}
@media(prefers-reduced-motion:reduce){.pv__view.is-current .am-cover .am-label,.pv__view.is-current .am-cover .pv__title,.pv__view.is-current .am-cover .am-deck,.pv__view.is-current .am-cta{animation:none}}
.am-cover header {display:flex;align-items:flex-start;flex-direction:column;gap:clamp(.9rem,1.6vw,1.4rem);max-width:62ch;color:#fff}
.am-cover .am-label {color:#fffc;font-family:Onest,Arial,sans-serif}
.am-cover .am-sep {font-style:normal;margin:0 .42em;font-size:1.65em;line-height:0;vertical-align:-.14em;opacity:.55}
.am-break {display:none}
#project-2 .pv__title,.am-body h3 {font:normal clamp(2.8rem,6vw,6.8rem)/.96 Georgia,serif;letter-spacing:-.06em;margin:0}
/* the cover speaks in the clinic's own voice: the rounded Onest of the aimie wordmark */
#project-2 .pv__title {font:600 clamp(3.2rem,7vw,7rem)/.98 Onest,system-ui,sans-serif;text-transform:lowercase;letter-spacing:-.045em;color:#fff}
/* the inset stays in the DOM unseen: it is the [data-hero] the open, close and
   carousel transitions read, but the cover shows only the portrait */
.am-inset {display:none}
.am-deck {font:300 clamp(1.3rem,2.1vw,2.05rem)/1.3 Onest,system-ui,sans-serif;max-width:24ch}
.am-deck b {font-weight:600}
/* the sage plate from the clinic's site, repurposed: it invites the scroll */
.am-cta {position:absolute;right:7vw;bottom:clamp(1.6rem,6vh,3.2rem);display:flex;align-items:center;gap:.7rem;
  border:0;background:#c9c5aaa6;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);
  color:#33301f;padding:1.15rem 2rem;font:italic 500 1.05rem/1 Georgia,serif;letter-spacing:.05em;cursor:pointer;transition:background .3s}
.am-cta:hover {background:#d6d2b8cc}
.am-cta svg {width:13px;height:9px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;
  animation:am-scrollhint 2.2s ease-in-out infinite}
/* the chevron keeps dipping: a quiet loop that says "this way down" */
@keyframes am-scrollhint {0%{transform:translateY(-5px);opacity:0}30%{transform:translateY(0);opacity:1}62%{transform:translateY(2px);opacity:1}100%{transform:translateY(6px);opacity:0}}
@media(prefers-reduced-motion:reduce){.am-cta svg{animation:none}}
.am-label,.am-print figcaption,.am-frames figcaption {font:500 .75rem/1.55 Arial,sans-serif;letter-spacing:.09em;text-transform:uppercase}
.am-route summary {font:inherit;color:inherit;background:none;border:0;border-bottom:1px solid;padding:.5rem 0;cursor:pointer}
#project-2 .am-body {padding:clamp(4rem,9vw,9rem) 7vw 0;gap:clamp(4rem,8vw,8rem);background:var(--am-bg)}
.am-route,.am-credits {display:grid;grid-template-columns:1fr 2fr;gap:5vw}
/* the statement: the claim lands in full ink, its continuation in a quieter
   tone, centred like a held breath before the feature begins */
.am-intro {display:grid;justify-items:center;align-content:center;text-align:center;gap:2.4rem;min-height:54svh;padding-block:clamp(2rem,6vh,5rem)}
#project-2 .am-intro h3 {font:500 clamp(1.85rem,3.3vw,3.4rem)/1.32 Onest,system-ui,sans-serif;letter-spacing:-.025em;max-width:27ch;margin:0;text-wrap:balance}
.am-intro h3 span {color:var(--am-dim)}
.am-intro .am-mini {font:500 .85rem/1.75 Onest,system-ui,sans-serif;letter-spacing:.02em;max-width:46ch;margin:0;text-wrap:balance}
.am-intro .am-mini span {color:var(--am-dim)}
/* ——— scroll choreography: every passage settles into place as it arrives,
   one soft rise on the same long ease as the cover, children in reading order ——— */
#project-2 [data-rv] {opacity:0;transform:translateY(30px);transition:opacity .9s ease,transform 1.15s cubic-bezier(.22,1,.36,1)}
#project-2 [data-rv].is-in {opacity:1;transform:none}
.am-intro[data-rv],.am-about[data-rv],.am-gallery[data-rv],.am-credits[data-rv] {opacity:1;transform:none;transition:none}
.am-intro[data-rv] :is(h3,.am-mini),
.am-about[data-rv] :is(h3,p),
.am-credits[data-rv] :is(h3,dl > div) {opacity:0;transform:translateY(26px);transition:opacity .9s ease,transform 1.15s cubic-bezier(.22,1,.36,1)}
.am-intro[data-rv] .am-mini,.am-about[data-rv] p {transition-delay:.14s}
.am-gallery[data-rv] figure {opacity:0;transform:translateY(34px);transition:opacity .9s ease,transform 1.15s cubic-bezier(.22,1,.36,1)}
.am-gallery[data-rv] figure:nth-child(2),.am-credits[data-rv] dl > div:nth-child(1) {transition-delay:.08s}
.am-gallery[data-rv] figure:nth-child(3),.am-credits[data-rv] dl > div:nth-child(2) {transition-delay:.16s}
.am-gallery[data-rv] figure:nth-child(4),.am-credits[data-rv] dl > div:nth-child(3) {transition-delay:.24s}
.am-gallery[data-rv] figure:nth-child(5),.am-credits[data-rv] dl > div:nth-child(4) {transition-delay:.32s}
.am-gallery[data-rv] figure:nth-child(6),.am-credits[data-rv] dl > div:nth-child(5) {transition-delay:.4s}
.am-intro[data-rv].is-in :is(h3,.am-mini),
.am-about[data-rv].is-in :is(h3,p),
.am-credits[data-rv].is-in :is(h3,dl > div),
.am-gallery[data-rv].is-in figure {opacity:1;transform:none}
@media(prefers-reduced-motion:reduce){
 #project-2 [data-rv],.am-intro[data-rv] :is(h3,.am-mini),.am-about[data-rv] :is(h3,p),
 .am-credits[data-rv] :is(h3,dl > div),.am-gallery[data-rv] figure {opacity:1;transform:none;transition:none}
}
/* About: a quiet left-set block in the clinic's voice, held in empty space */
.am-about {padding:clamp(3rem,9vh,8rem) 0 clamp(4rem,10vh,9rem);max-width:min(54rem,70vw);margin-left:clamp(0rem,9vw,9rem)}
#project-2 .am-about h3 {font:500 clamp(1.55rem,2.3vw,2.2rem)/1.2 Onest,system-ui,sans-serif;letter-spacing:-.02em;margin:0 0 2.1rem}
#project-2 .am-about p {font:400 clamp(1rem,1.25vw,1.18rem)/1.75 Onest,system-ui,sans-serif;color:var(--am-muted);margin:0;max-width:none}
/* Impact mirrors About, set deeper into the page like the reference */
.am-about.am-impact {margin-left:clamp(0rem,31vw,34rem);padding-top:clamp(2rem,6vh,5rem)}
/* credits in the same voice: Onest, quiet caps for the roles, ink for the names */
#project-2 .am-credits h3 {font:500 clamp(1.55rem,2.3vw,2.2rem)/1.2 Onest,system-ui,sans-serif;letter-spacing:-.02em;margin:0}
.am-credits {border-color:var(--am-line)}
/* each credit reads as one line: the role, a quiet leader, the name at the end */
.am-credits dl {display:block;margin:0;font:400 .95rem/1.6 Onest,system-ui,sans-serif}
.am-credits dl > div {display:grid;grid-template-columns:1fr 1.2fr;gap:2.2rem;align-items:baseline;padding:.6rem 0}
.am-credits dt {color:var(--am-role);font:500 .74rem/1.5 Onest,system-ui,sans-serif;letter-spacing:.1em;text-transform:uppercase;text-align:right}
.am-credits dd {margin:0;color:var(--am-ink)}
/* the gallery from the clinic's site: three columns, middle column shifted,
   natural portrait crops, the reel running quietly among the stills */
.am-gallery {display:grid;grid-template-columns:repeat(3,1fr);gap:clamp(14px,1.8vw,26px);
  margin:0 0 clamp(4rem,8vw,8rem);padding-bottom:clamp(2rem,6vw,5rem)}
.am-gallery figure {margin:0;overflow:hidden}
.am-gallery figure:nth-child(3n-1) {translate:0 clamp(2rem,6vw,5rem)}
.am-gallery img,.am-gallery video {display:block;width:100%;height:auto;aspect-ratio:800/1517;object-fit:cover;
  transition:transform .8s cubic-bezier(.22,1,.36,1)}
@media(hover:hover){.am-gallery figure:hover img,.am-gallery figure:hover video{transform:scale(1.04)}}
.am-gallery .am-gallery-open {display:block;width:100%;padding:0;border:0;background:none;cursor:zoom-in}
.am-gallery .am-gallery-open:focus-visible {outline:2px solid #917657;outline-offset:4px}
/* the lightbox reuses the site's tvOS stage; its video sits like the image card */
.am-lightbox video {place-self:center;display:block;max-width:100%;max-height:100%;width:auto;height:auto;
  border-radius:clamp(10px,1.3vw,18px);box-shadow:0 40px 90px rgba(0,0,0,.5);background:#000}
/* the clinic's film, full width, breathing between the statement and the spread */
.am-film {margin:0 0 clamp(4rem,8vw,8rem)}
.am-sweep {margin-top:clamp(1rem,4vh,3rem);margin-bottom:clamp(3rem,7vw,6rem)}
.am-film video {display:block;width:100%;aspect-ratio:16/9;object-fit:cover;background:var(--am-line)}
.am-body h3 {font-size:clamp(2.5rem,4.8vw,5rem)}
.am-body section p:not(.am-label) {max-width:52ch;font-size:clamp(1.05rem,1.5vw,1.4rem);line-height:1.5;margin:1.3rem 0}
.am-body figure {margin:0}
.am-print img {width:100%;display:block}
.am-print figcaption {display:flex;justify-content:space-between;gap:1rem;padding-top:.8rem}
.am-print a {color:inherit}
.am-route,.am-credits {border-top:1px solid var(--am-line);padding-top:2rem}
.am-route ol {padding-left:1.3rem;line-height:1.6}
.am-route strong {display:block}
.am-result strong {font-size:.85rem}
.am-frames {display:grid;grid-template-columns:repeat(3,1fr);gap:1.3vw;margin-top:2rem}
.am-frames img,.am-frames video {width:100%;aspect-ratio:3/4;object-fit:cover}
.am-credits dd {margin:0}
@media(max-width:650px){.am-gallery{grid-template-columns:1fr 1fr;gap:10px;padding-bottom:3rem}.am-gallery figure:nth-child(3n-1){translate:none}.am-gallery figure:nth-child(2n){translate:0 clamp(1.5rem,6vw,2.6rem)}
.am-about{margin-inline:auto;text-align:center}.am-about.am-impact{margin-inline:auto;padding-top:1rem}
.am-credits dl > div{gap:1rem}
.am-cover{padding:2rem 5vw 2.6rem;height:85svh;min-height:480px}.am-cover header{gap:1rem}.am-break{display:inline}.am-cover .am-sep--cut{display:none}.am-cta{position:static;align-self:flex-start;margin-top:.5rem;padding:.95rem 1.9rem}.am-intro,.am-route,.am-credits{grid-template-columns:1fr}.am-frames{grid-template-columns:1fr 1fr;gap:1rem}.am-frames figure:last-child{grid-column:1/-1}.am-print figcaption{flex-wrap:wrap}}
