/* Deo Gratias: tradição sagrada, experiência contemporânea.
   Latim em itálico, português em redondo. Azul é função, dourado é gesto solene. */
@font-face{font-family:"Libre Baskerville";src:url(../assets/fonts/libre-baskerville-400.woff) format("woff");font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:"Libre Baskerville";src:url(../assets/fonts/libre-baskerville-400-italic.woff) format("woff");font-weight:400;font-style:italic;font-display:swap}
@font-face{font-family:"Libre Baskerville";src:url(../assets/fonts/libre-baskerville-700.woff) format("woff");font-weight:700;font-style:normal;font-display:swap}
@font-face{font-family:"Nunito Sans";src:url(../assets/fonts/nunito-sans-400.woff) format("woff");font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:"Nunito Sans";src:url(../assets/fonts/nunito-sans-700.woff) format("woff");font-weight:700;font-style:normal;font-display:swap}

:root{
  /* tokens do aplicativo */
  --night:#0b1420;--raised:#172a3f;--active:#203b58;--marian-blue:#245a91;--marian-deep:#1b4672;--soft-blue:#eaf2fb;--navy:#1a2433;
  --sacred-ivory:#f4e8d0;--sacred-gold:#d9bd6d;--gold-light:#f0d98a;--subtle-gold:#c7a24b;--on-gold:#1a1408;--sacred-blue:#7fb2e3;--sacred-muted:#a9b7c8;
  /* tipografia */
  --font-display:"Libre Baskerville",Baskerville,"Iowan Old Style",Georgia,serif;
  --font-body:"Nunito Sans","Avenir Next",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  --font-mono:"SFMono-Regular",Consolas,monospace;
  --text-hero:clamp(2.75rem,1.1rem + 5.4vw,6.5rem);
  --text-h2:clamp(2rem,1.35rem + 2.5vw,3.75rem);
  --text-lede:clamp(1.125rem,1.02rem + .4vw,1.375rem);
  --text-body:1.0625rem;--text-small:.9375rem;--text-note:.875rem;
  /* espaço */
  --gutter:clamp(1.25rem,5vw,5rem);--section:clamp(5rem,11vw,10.5rem);--page:1360px;
  --s1:.5rem;--s2:1rem;--s3:1.5rem;--s4:2.5rem;--s5:4rem;--s6:6rem;
  /* linhas e tempo */
  --rule:1px;--ease:cubic-bezier(.22,.61,.36,1);--quick:180ms;--slow:1100ms;--fade:2200ms;
  /* chão padrão */
  --bg:var(--night);--fg:var(--sacred-ivory);--muted:var(--sacred-muted);--title:var(--sacred-ivory);--line:rgb(127 178 227/.24);--functional:var(--sacred-blue);--accent:var(--sacred-gold);--rule-gold:rgb(217 189 109/.6);
}
/* Três azuis de fundo e um claro */
.ground-night,.hero,.site-header,dialog{--bg:var(--night)}
.ground-raised{--bg:var(--raised);--muted:#b6c3d2}
.ground-marian{--bg:var(--marian-deep);--muted:#cfdcea;--line:rgb(234 242 251/.26);--functional:#b5d5f2}
.ground-soft{--bg:var(--soft-blue);--fg:var(--navy);--muted:#4d5c70;--title:var(--marian-blue);--line:rgb(36 90 145/.22);--functional:var(--marian-blue);--accent:var(--subtle-gold);--rule-gold:var(--subtle-gold)}

*{box-sizing:border-box}
html{scroll-behavior:smooth;-webkit-text-size-adjust:100%;background:var(--night);color-scheme:dark}
body{margin:0;background:var(--bg);color:var(--fg);font:400 var(--text-body)/1.65 var(--font-body);-webkit-font-smoothing:antialiased;position:relative;overflow-x:clip}
[class*="ground-"]{background:var(--bg);color:var(--fg)}
h1,h2,h3,p,figure,dl,dd{margin:0}
h1,h2,h3{font-family:var(--font-display);font-weight:400}
h2{color:var(--title);font-size:var(--text-h2);line-height:1.14;letter-spacing:-.028em;text-wrap:balance}
p{text-wrap:pretty}
img{display:block;max-width:100%;height:auto}
a{color:inherit}
button,input{font:inherit;color:inherit}
button{cursor:pointer}
button,a,input{touch-action:manipulation;-webkit-tap-highlight-color:transparent}
svg{fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;width:22px;height:22px;flex-shrink:0}
:lang(la){font-style:italic}
:focus-visible{outline:2px solid var(--functional);outline-offset:4px}
::selection{background:var(--sacred-gold);color:var(--night)}
[hidden]{display:none!important}
.wrap{width:min(var(--page),100% - 2*var(--gutter));margin-inline:auto}
.skip{position:fixed;z-index:100;top:10px;left:10px;padding:12px 16px;background:var(--sacred-gold);color:var(--night);transform:translateY(-200%)}
.skip:focus{transform:none}
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}

/* Cabeçalho */
.site-header{position:absolute;z-index:10;inset:0 0 auto;display:flex;align-items:center;gap:clamp(1.25rem,2.6vw,2.75rem);padding:1.5rem var(--gutter);color:var(--fg);width:calc(100% - var(--art-w))}
.brand{font:italic 400 1.625rem/1 var(--font-display);letter-spacing:-.02em;text-decoration:none;min-height:44px;display:flex;align-items:center;white-space:nowrap;margin-right:auto}
.nav{display:flex;gap:inherit}
.nav a{font-size:var(--text-small);text-decoration:none;min-height:44px;display:flex;align-items:center;white-space:nowrap}
.nav a,.footer-links a{text-decoration:underline transparent;text-decoration-thickness:1px;text-underline-offset:6px;transition:text-decoration-color var(--quick) ease}
.nav a:hover,.footer-links a:hover{text-decoration-color:currentColor}
.launch-tag{display:none;font-size:var(--text-small);color:var(--accent);white-space:nowrap}
.menu-button{display:none;background:none;border:0;width:44px;height:44px;margin-right:-10px;align-items:center;justify-content:center}

/* Abertura */
:root{--art-w:min(48vw,78svh)}
.hero{position:relative;background:var(--bg);color:var(--fg);min-height:max(660px,min(100svh,1080px));display:grid;grid-template-columns:minmax(0,1fr) var(--art-w);grid-template-rows:1fr auto}
.hero-art{grid-column:2;grid-row:1/-1;position:relative;overflow:hidden;background:#070d15}
.hero-slide{position:absolute;inset:0;opacity:0;visibility:hidden;transition:opacity var(--fade) var(--ease),visibility 0s linear var(--fade)}
.hero-slide.active{opacity:1;visibility:visible;transition:opacity var(--fade) var(--ease),visibility 0s}
.hero-slide img{width:100%;height:100%;object-fit:cover;object-position:50% 30%}
.hero-copy{grid-column:1;grid-row:1;align-self:center;padding:7.5rem 0 2rem;min-width:0}
.hero h1{font-size:var(--text-hero);line-height:1.1;letter-spacing:-.035em}
.hero-line{display:block;padding-left:var(--gutter)}
.hero-line--sung{display:flex;align-items:center;gap:.28em;padding-left:0}
.hero-line--sung>span{flex:none;white-space:nowrap;color:var(--accent)}
.staff{--l:linear-gradient(var(--accent),var(--accent));flex:1 1 0;height:43px;margin-top:.12em;opacity:.75;background:var(--l) 0 0,var(--l) 0 14px,var(--l) 0 28px,var(--l) 0 42px;background-size:100% 1px;background-repeat:no-repeat}
.staff:first-child{flex:0 0 calc(var(--gutter) + 1.1em)}
.hero-lede{display:flex;flex-direction:column;align-items:flex-start;gap:2rem;padding:clamp(2rem,4.5vh,3.5rem) 2rem 0 var(--gutter)}
.hero-description{max-width:33ch;font-size:var(--text-lede);line-height:1.55;color:var(--muted)}
.hero-action{display:flex;align-items:center;flex-wrap:wrap;gap:1rem 1.75rem}
.hero-cta{display:inline-flex;align-items:center;min-height:56px;padding:.5rem 1.875rem;background:var(--accent);color:var(--on-gold);font-weight:700;text-decoration:none;border-radius:2px;transition:background var(--quick) ease}
.hero-cta:hover{background:var(--gold-light)}
.hero-cta:focus-visible{outline-color:var(--fg)}
.hero-availability{font-size:var(--text-small);color:var(--muted)}
.hero-foot{grid-column:1;grid-row:2;display:flex;align-items:center;justify-content:space-between;gap:1.5rem;padding:1.25rem 2rem 1.75rem var(--gutter)}
.hero-caption{display:flex;flex-wrap:wrap;align-items:baseline;gap:.1rem .9rem;font-size:var(--text-small);color:var(--muted);transition:opacity 500ms ease}
.hero-caption :lang(la){font-family:var(--font-display);font-size:1.0625rem;color:var(--accent)}
.hero-caption.changing{opacity:0}
.motion-toggle{display:inline-flex;align-items:center;gap:.6rem;background:none;border:0;min-height:44px;padding:0;font-size:var(--text-note);color:var(--muted);white-space:nowrap;transition:color var(--quick) ease}
.motion-toggle:hover{color:var(--fg)}
.motion-toggle svg{width:14px;height:14px}

/* Introdução */
.intro{padding-top:var(--section);padding-bottom:var(--section)}
.intro-head{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));column-gap:2rem}
.intro-head h2{grid-column:1/9}
.intro-head p{grid-column:8/13;margin-top:var(--s4);font-size:var(--text-lede);line-height:1.6;color:var(--muted)}
.specimen{margin-top:clamp(4rem,9vw,8.5rem)}
.specimen-latin{font:italic 400 clamp(2.4rem,1rem + 6.1vw,7rem)/1.16 var(--font-display);letter-spacing:-.04em;color:var(--title);margin-left:-.04em}
.specimen-latin br{display:block}
.specimen-notes{display:grid;grid-template-columns:3fr 4fr 5fr;gap:2rem clamp(2rem,4vw,4.5rem);margin-top:clamp(2.5rem,5vw,4.5rem);padding-top:1.75rem;border-top:var(--rule) solid var(--rule-gold)}
.specimen-note{display:flex;flex-direction:column}
.specimen-line{font:400 clamp(1.125rem,1rem + .55vw,1.5rem)/1.4 var(--font-display);letter-spacing:-.012em;margin-bottom:1.5rem}
.specimen-note h3{font:700 var(--text-body)/1.4 var(--font-body);margin-top:auto}
.specimen-note h3+p{font-size:var(--text-small);color:var(--muted);margin-top:.35rem;max-width:36ch}

/* Parede de pinturas */
.gallery{padding-block:var(--section)}
.gallery-head{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));column-gap:2rem;align-items:end;margin-bottom:clamp(2.5rem,5vw,4.5rem)}
.gallery-head h2{grid-column:1/8}
.gallery-head p{grid-column:9/13;color:var(--muted);max-width:30ch}
.wall{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));column-gap:2rem;row-gap:clamp(3.5rem,7vw,7rem);align-items:start}
.work img{width:100%}
.work figcaption{color:var(--accent);font:400 1.125rem/1.35 var(--font-display);margin-top:1rem}
.work figcaption small{display:block;font:400 var(--text-note)/1.5 var(--font-body);color:var(--muted)}
.work--miguel{grid-column:1/9;margin-left:calc(-1*max(var(--gutter),(100vw - var(--page))/2))}
.work--miguel figcaption{margin-left:max(var(--gutter),(100vw - var(--page))/2)}
.work--gloria{grid-column:9/13;margin-top:clamp(3rem,11vw,11rem)}
.work--anima{grid-column:2/5;margin-top:clamp(0rem,3vw,3rem)}
.work--salve{grid-column:6/13}

/* Demonstração */
.experience{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,7fr)}
.experience-art{position:relative;background:#070d15;min-height:100%}
.experience-art img{position:sticky;top:0;width:100%;height:min(100%,100svh);min-height:100%;object-fit:cover;object-position:58% 40%}
.experience-body{padding:clamp(4rem,7vw,6.5rem) var(--gutter);max-width:860px;min-width:0}
.experience-head p{max-width:50ch;margin-top:1.5rem;color:var(--muted)}
.karaoke{margin-top:clamp(2.25rem,3.4vw,3.25rem)}
.demo-heading{display:flex;align-items:center;justify-content:space-between;gap:1rem}
.demo-heading h3{color:var(--accent);font-size:1.75rem;line-height:1.2;letter-spacing:-.02em}
.demo-heading p{font-size:var(--text-small);color:var(--muted);margin-top:.25rem}
.favorite,.control-button{background:none;border:0;width:48px;height:48px;display:grid;place-items:center;color:var(--muted);transition:color var(--quick) ease}
.favorite:hover,.control-button:hover{color:var(--fg)}
.favorite[aria-pressed=true],.control-button[aria-pressed=true]{color:var(--functional)}
.favorite[aria-pressed=true] svg{fill:currentColor}
.demo-tabs{display:flex;gap:2rem;margin-top:1rem;border-bottom:var(--rule) solid var(--line)}
.demo-tab{background:none;border:0;padding:0;min-height:48px;font-size:var(--text-small);color:var(--muted);border-bottom:2px solid transparent;margin-bottom:-1px;transition:color var(--quick) ease}
.demo-tab:hover{color:var(--fg)}
.demo-tab[aria-selected=true]{color:var(--functional);border-color:currentColor}
.lyrics-window{height:330px;position:relative;overflow:hidden;margin:.75rem 0;-webkit-mask:linear-gradient(transparent,#000 14%,#000 72%,transparent);mask:linear-gradient(transparent,#000 14%,#000 72%,transparent)}
.lyrics-track{transition:transform 700ms var(--ease);will-change:transform}
.lyric{display:block;width:100%;padding:.7rem 0;border:0;background:none;text-align:left;font:400 1.25rem/1.4 var(--font-display);letter-spacing:-.012em;color:#8797aa;min-height:48px;transition:color 300ms ease}
.lyric span{display:block}
.lyric.past{color:var(--sacred-muted)}
.lyric:hover{color:var(--fg)}
.lyric.current{color:var(--sacred-ivory);font-size:clamp(1.45rem,1.2rem + 1vw,2rem);line-height:1.3}
.lyric.current span::after{content:"";display:block;width:3.5rem;height:2px;margin-top:.55rem;background:var(--sacred-gold)}
.lyric small{display:block;font:400 var(--text-small)/1.5 var(--font-body);letter-spacing:0;color:var(--muted);margin-top:.25rem}
.lyric:focus-visible{outline-offset:-3px}
.demo-seek{appearance:none;-webkit-appearance:none;display:block;width:100%;height:28px;margin:0;cursor:pointer;background:transparent;--progress:0%}
.demo-seek::-webkit-slider-runnable-track{height:2px;background:linear-gradient(to right,var(--functional) var(--progress),var(--line) var(--progress))}
.demo-seek::-moz-range-track{height:2px;background:var(--line)}
.demo-seek::-moz-range-progress{height:2px;background:var(--functional)}
.demo-seek::-webkit-slider-thumb{-webkit-appearance:none;width:12px;height:12px;border-radius:50%;background:var(--functional);margin-top:-5px}
.demo-seek::-moz-range-thumb{width:12px;height:12px;border:0;border-radius:50%;background:var(--functional)}
.time-row{display:flex;justify-content:space-between;font:400 .8125rem/1.5 var(--font-mono);color:var(--muted)}
.demo-controls{display:flex;align-items:center;gap:1.75rem;margin-top:1rem;justify-content:center}
.play-button{width:64px;height:64px;display:grid;place-items:center;background:var(--accent);color:var(--on-gold);border:0;border-radius:50%;transition:background var(--quick) ease}
.play-button:hover{background:var(--gold-light)}
.play-button:focus-visible{outline-color:var(--fg)}
.play-button svg{width:24px;height:24px;fill:currentColor;stroke-width:0}
.demo-caption,.demo-note{text-align:center;font-size:var(--text-note);color:var(--muted)}
.demo-caption{margin-top:1rem;color:var(--fg)}

/* Aplicativo */
.app{padding-block:var(--section)}
.app-layout{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));column-gap:2rem;align-items:start}
.app-head{grid-column:1/6;grid-row:1;align-self:start}
.app-head p{margin-top:1.75rem;color:var(--muted);max-width:30ch}
.screen figcaption{margin-top:1.5rem;font-size:var(--text-small);line-height:1.55;color:var(--muted);max-width:27ch}
.screen figcaption strong{display:block;font:400 1.1875rem/1.4 var(--font-display);color:var(--accent)}
.device{background:#050a12;box-shadow:0 0 0 1px rgb(217 189 109/.45);border-radius:clamp(26px,3.2vw,44px);padding:clamp(6px,.65vw,9px);max-width:330px}
.device img{border-radius:clamp(20px,2.7vw,36px);width:100%}
.screen--a{grid-column:2/5;grid-row:1;margin-top:clamp(18rem,27vw,25rem)}
.screen--b{grid-column:6/9;grid-row:1;margin-top:clamp(4rem,9vw,8rem)}
.screen--c{grid-column:10/13;grid-row:1;margin-top:clamp(8rem,19vw,17rem)}

/* Índice das orações */
.library{padding-block:var(--section)}
.library-head{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));column-gap:2rem;align-items:end}
.library-head h2{grid-column:1/8}
.library-head p{grid-column:9/13;color:var(--muted);max-width:30ch}
.library-layout{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));column-gap:2rem;margin-top:clamp(2.5rem,5vw,4.5rem);align-items:start}
.library-layout>div:first-child{grid-column:1/9}
.plate{grid-column:9/13;position:sticky;top:2rem;aspect-ratio:3/4;background:var(--active);overflow:hidden;margin-left:1rem}
.plate img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:58% 40%;opacity:0;transition:opacity 700ms var(--ease)}
.plate img.on{opacity:1}
.filters{display:flex;flex-wrap:wrap;gap:.25rem 2rem;margin-bottom:1rem}
.filter{background:none;border:0;padding:0;min-height:44px;font-size:var(--text-small);color:var(--muted);text-decoration:underline transparent;text-decoration-thickness:2px;text-underline-offset:8px;transition:color var(--quick) ease}
.filter:hover{color:var(--fg)}
.filter[aria-pressed=true]{color:var(--functional);font-weight:700;text-decoration-color:currentColor}
.prayer-index{border-top:var(--rule) solid var(--rule-gold)}
.prayer-card{border-bottom:var(--rule) solid var(--line)}
.card-open{width:100%;display:grid;grid-template-columns:minmax(0,1fr) 8.5rem 9.5rem;align-items:baseline;gap:1.5rem;background:none;border:0;padding:clamp(1.1rem,1.9vw,1.75rem) 0;text-align:left}
.card-open:focus-visible{outline-offset:-2px}
.card-thumb{display:none}
.card-names{display:flex;flex-wrap:wrap;align-items:baseline;gap:.2rem 1.25rem}
.card-title{color:var(--title);font:italic 400 clamp(1.625rem,1.1rem + 1.75vw,2.75rem)/1.15 var(--font-display);letter-spacing:-.03em;transition:color 300ms ease}
.card-subtitle,.card-category,.card-state{font-size:var(--text-small);color:var(--muted)}
.card-state{text-align:right}
.card-state.is-ready{color:var(--functional);font-weight:700}
.card-open:hover .card-title,.card-open:focus-visible .card-title{text-decoration:underline;text-decoration-color:var(--accent);text-decoration-thickness:2px;text-underline-offset:.18em}
.library-foot{display:flex;justify-content:space-between;align-items:baseline;gap:1rem 3rem;margin-top:2.5rem;font-size:var(--text-small);color:var(--muted)}
.library-foot p{max-width:56ch}
.library-foot a{color:var(--functional);text-underline-offset:6px;text-decoration-thickness:1px;min-height:44px;display:inline-flex;align-items:center;white-space:nowrap}
.library-foot a:hover{text-decoration-thickness:2px}

/* Contemplação */
.contemplation{position:relative;min-height:min(56.25vw,100svh);display:grid;align-items:end;overflow:hidden;isolation:isolate}
.contemplation-art{position:absolute;z-index:-1;inset:0 0 0 auto;width:74%}
.contemplation-art img{width:100%;height:100%;object-fit:cover;object-position:50% 35%;-webkit-mask:linear-gradient(90deg,transparent,#000 46%);mask:linear-gradient(90deg,transparent,#000 46%)}
.contemplation-copy{padding:var(--section) 0 clamp(3rem,7vw,6.5rem) var(--gutter);max-width:44vw}
.contemplation h2{font-size:clamp(2.5rem,1.2rem + 3.4vw,4.75rem);line-height:1.1;white-space:nowrap}
.contemplation p{margin-top:1.75rem;max-width:27ch;color:#d5dde7;font-size:var(--text-lede)}

/* Projeto */
.project{padding-top:var(--section)}
.project-layout{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));column-gap:2rem}
.project h2{grid-column:1/6}
.project-copy{grid-column:7/13}
.project-lede{font:400 clamp(1.25rem,1.1rem + .8vw,1.75rem)/1.55 var(--font-display);letter-spacing:-.015em}
.project-list{display:grid;grid-template-columns:1fr 1fr;gap:2rem;margin-top:3rem}
.project-item{border-top:var(--rule) solid var(--rule-gold);padding-top:1.1rem}
.project-item h3{font:700 var(--text-body)/1.4 var(--font-body)}
.project-item p{font-size:var(--text-small);color:var(--muted);margin-top:.4rem}
.project-art{grid-column:1/-1;margin-top:clamp(4rem,8vw,7.5rem);margin-inline:calc(-1*max(var(--gutter),(100vw - var(--page))/2))}
.project-art img{width:100%}

/* Em breve */
.soon{padding-block:var(--section)}
.soon .wrap{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));column-gap:2rem;align-items:end}
.soon h2{grid-column:1/8;font-size:clamp(2.25rem,1.3rem + 3.6vw,4.75rem);line-height:1.1}
.soon-body{grid-column:9/13}
.soon-body>p{color:var(--muted)}
.platforms{margin:1.75rem 0;border-top:var(--rule) solid var(--line)}
.platforms div{display:flex;justify-content:space-between;align-items:baseline;border-bottom:var(--rule) solid var(--line);padding:.8rem 0}
.platforms dt{font:400 1.25rem/1.3 var(--font-display)}
.platforms dd{font-size:var(--text-small);color:var(--accent)}
.soon-bottom{font-size:var(--text-note)}

/* Rodapé */
.footer{padding:clamp(3rem,7vw,6rem) 0 2rem;overflow:hidden}
.footer-mark{display:block;font:italic 400 clamp(3.2rem,17.4vw,16.5rem)/1.12 var(--font-display);letter-spacing:-.05em;text-decoration:none;color:var(--accent);margin-left:-.03em;white-space:nowrap;padding-bottom:.06em}
.footer-row{display:flex;justify-content:space-between;align-items:center;gap:1rem 2rem;flex-wrap:wrap;margin-top:clamp(1.5rem,3vw,3rem);padding-top:1rem;border-top:var(--rule) solid var(--line);font-size:var(--text-small);color:var(--muted)}
.footer-links{display:flex;gap:2rem}
.footer-links a{color:var(--fg);min-height:44px;display:flex;align-items:center}

/* Diálogo */
dialog{border:0;background:var(--bg);color:var(--fg);width:min(820px,100% - 2.5rem);max-height:calc(100svh - 2.5rem);padding:0;overflow:auto}
dialog[open]{display:grid;grid-template-columns:5fr 6fr}
dialog::backdrop{background:rgb(5 10 18/.85)}
.dialog-art{background:#070d15;min-height:440px}
.dialog-art img{width:100%;height:100%;object-fit:cover;object-position:50% 30%}
.dialog-body{padding:4.5rem 2.5rem 2.5rem;align-self:end}
.dialog-state{font-size:var(--text-small);color:var(--accent)}
.dialog-body h2{font-size:2.25rem;margin:.5rem 0 1rem}
.dialog-body>p:not(.dialog-state){color:var(--muted);max-width:38ch}
.dialog-close{position:absolute;z-index:1;top:.75rem;right:.75rem;width:48px;height:48px;border:0;background:none;display:grid;place-items:center;color:var(--fg)}
.dialog-close:hover{color:var(--accent)}
.dialog-action{min-height:44px;margin-top:1.5rem;background:none;border:0;padding:0;font-weight:700;color:var(--functional);text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:6px;text-align:left}
.dialog-action:hover{text-decoration-thickness:2px}

/* Movimento: só opacidade, uma vez, nas obras */
.js-reveals .reveal{transition:opacity var(--slow) var(--ease)}
.js-reveals .reveal:not(.visible){opacity:0}
body.motion-paused .reveal{transition:none;opacity:1!important}

@media(min-width:1180px){.launch-tag{display:block}}
@media(max-width:1080px){
  .screen--a{grid-column:1/5}.screen--b{grid-column:5/9}.screen--c{grid-column:9/13}
  .app-head{grid-column:1/8;grid-row:auto}.screen{grid-row:2!important}.screen--a{margin-top:6rem}.screen--b{margin-top:3rem}.screen--c{margin-top:0}
  .card-open{grid-template-columns:minmax(0,1fr) 9rem}.card-category{display:none}
  .experience{grid-template-columns:minmax(0,4fr) minmax(0,7fr)}
}
@media(max-width:900px){
  :root{--art-w:0px}
  .site-header{padding-block:.75rem}
  .menu-button{display:flex}
  .launch-tag{display:block}
  .nav{display:none;position:absolute;top:100%;left:0;right:0;flex-direction:column;gap:0;padding:.5rem var(--gutter) 1.25rem;background:var(--bg);border-bottom:var(--rule) solid var(--line)}
  .nav.open{display:flex}
  .nav a{min-height:52px;font-size:var(--text-body)}
  .hero{display:flex;flex-direction:column;min-height:0;padding-top:68px}
  .hero-art{aspect-ratio:1/1.02;max-height:62svh;width:100%;flex:none}
  .hero-slide img{object-position:50% 22%}
  .hero-foot{order:1;padding:.5rem var(--gutter) 0}
  .hero-copy{order:2;align-self:stretch;padding:1.75rem 0 4.5rem}
  .hero-lede{padding-right:var(--gutter);gap:1.75rem}
  .intro-head,.gallery-head,.library-head,.library-layout,.project-layout,.soon .wrap{grid-template-columns:minmax(0,1fr)}
  .intro-head h2,.intro-head p,.gallery-head h2,.gallery-head p,.library-head h2,.library-head p,.project h2,.project-copy,.soon h2,.soon-body{grid-column:1/-1}
  .gallery-head p,.library-head p,.project-copy,.soon-body{margin-top:1.5rem}
  .specimen-notes{grid-template-columns:1fr;gap:2.25rem}
  .specimen-note h3{margin-top:0}.specimen-line{margin-bottom:.75rem}
  .experience{grid-template-columns:1fr}
  .experience-art img{position:static;height:auto;min-height:0;aspect-ratio:4/3}
  .experience-body{padding-top:4rem;max-width:none}
  .library-layout>div:first-child{grid-column:1/-1}
  .plate{display:none}
  .card-thumb{display:block;width:76px;height:96px;overflow:hidden;background:var(--active)}
  .card-thumb img{width:100%;height:100%;object-fit:cover;object-position:58% 35%}
  .card-open{grid-template-columns:76px minmax(0,1fr) auto;align-items:center;padding:.9rem 0}
  .library-foot{display:block}.library-foot a{margin-top:.5rem}
}
@media(max-width:760px){
  .staff{height:25px;background-position:0 0,0 8px,0 16px,0 24px}
  .wall{display:flex;flex-direction:column;gap:3rem;align-items:stretch}
  .work--miguel,.work--salve{margin-inline:calc(-1*var(--gutter))}
  .work--miguel figcaption,.work--salve figcaption{margin-left:var(--gutter)}
  .work--gloria{width:78%;margin:0 0 0 auto}
  .work--anima{width:78%;margin:0}
  .app-layout{display:flex;flex-direction:column;gap:3.5rem}
  .screen--a,.screen--b,.screen--c{margin-top:0}
  .screen--b{align-self:flex-end}
  .device{max-width:270px;border-radius:36px;padding:7px}.device img{border-radius:29px}
  .contemplation{display:block}
  .contemplation-art{position:relative;width:100%;aspect-ratio:1/1}
  .contemplation-art img{-webkit-mask:linear-gradient(#000 70%,transparent);mask:linear-gradient(#000 70%,transparent)}
  .contemplation-copy{max-width:none;padding:1.5rem var(--gutter) 5rem}
  .project-art img{aspect-ratio:4/3;object-fit:cover;object-position:50% 20%}
  .soon-body{margin-top:2rem}
  dialog[open]{grid-template-columns:1fr}
  .dialog-art{min-height:0;aspect-ratio:4/3}
  .dialog-body{padding:1.75rem 1.5rem 2rem}
  .dialog-close{background:var(--bg)}
}
@media(max-width:480px){
  .card-open{grid-template-columns:76px minmax(0,1fr)}
  .card-open{row-gap:.15rem}
  .card-thumb{grid-row:1/3}
  .card-names{align-self:end;display:block}.card-subtitle{display:block}
  .card-state{grid-column:2;align-self:start;text-align:left}
  .project-list{grid-template-columns:1fr}
  .hero-foot .motion-toggle span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
  .motion-toggle{width:44px;justify-content:center;flex:none}
  .lyrics-window{height:300px}
}
@media(prefers-reduced-motion:reduce){
  html{scroll-behavior:auto}
  .motion-toggle{display:none}
  *,*::before,*::after{animation:none!important;transition:none!important}
  .js-reveals .reveal:not(.visible){opacity:1}
}
