/* IDX³ opening: the original signature, one continuous reveal. */
html.home .preloader {
    --opening-accent: #b8ff38;
    display: flex !important; flex-direction: column;
    background: #050506; color: #f4f1ea; isolation: isolate;
    transition: opacity .8s ease, visibility .8s;
    padding: 30px 5vw 24px; outline: none;
}
html.home .preloader::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
    background: var(--opening-accent); transform-origin: left;
    animation: opening-rule 1.4s cubic-bezier(.16,1,.3,1) both;
}
html.home .preloader__top, html.home .preloader__bottom {
    display: flex; justify-content: space-between; align-items: center; gap: 24px;
    width: 100%; font: 10px/1.5 "Geist Mono", monospace; letter-spacing: .12em;
    color: #a1a1a8;
}
html.home .preloader__top { position: relative; z-index: 1; }
html.home .preloader__line {
    position: static; margin: 26px 0 0; color: var(--opening-accent);
    font: 10px/1.5 "Geist Mono", monospace; letter-spacing: .22em;
}
html.home .preloader__stage {
    position: absolute; left: 50%; top: 43%; width: min(76vw, 970px);
    aspect-ratio: 1074 / 518; transform: translate(-50%, -50%);
}
html.home .preloader__full {
    opacity: 1; object-fit: contain; width: 100%; height: 100%;
    animation: opening-signature 1.85s cubic-bezier(.16,1,.3,1) both;
}
html.home .preloader__entry {
    position: absolute; left: 50%; top: 73%; width: min(90vw, 510px);
    transform: translateX(-50%); text-align: center;
    animation: opening-entry .8s .85s both;
}
html.home .preloader__invitation {
    margin: 0 0 16px; color: #f4f1ea; font: 11px/1.5 "Geist Mono", monospace; letter-spacing: .24em;
}
html.home .preloader__choices { display: flex; justify-content: center; gap: 10px; }
html.home .preloader__choices button {
    display: flex; align-items: center; justify-content: center; gap: 16px;
    min-height: 49px; min-width: 174px; padding: 13px 18px;
    border: 1px solid #4d4d53; background: transparent; color: #f4f1ea;
    font: 11px/1.5 "Geist Mono", monospace; letter-spacing: .12em; cursor: pointer;
    transition: background .2s, color .2s, border-color .2s;
}
html.home .preloader__choices button:first-child { background: var(--opening-accent); color: #0b0c0d; border-color: var(--opening-accent); }
html.home .preloader__choices button:hover { background: #f4f1ea; border-color: #f4f1ea; color: #050506; }
html.home .preloader__choices button:focus-visible { outline: 2px solid #fff; outline-offset: 5px; }
html.home .preloader__choices button:disabled { opacity: .45; cursor: default; }
html.home .preloader__hint { margin: 13px 0 0; font-size: 11px; color: #99999f; letter-spacing: .02em; }
html.home .preloader__sound-icon { display: flex; align-items: center; gap: 2px; height: 15px; }
html.home .preloader__sound-icon i { width: 2px; height: 7px; background: currentColor; }
html.home .preloader__sound-icon i:nth-child(2) { height: 15px; }
html.home .preloader__sound-icon i:nth-child(3) { height: 11px; }
html.home .preloader__bottom { position: absolute; left: 5vw; bottom: 25px; width: 90vw; }
html.home .preloader__bottom [data-loader-status] { min-width: 240px; font-size: 9px; }
html.home .preloader__meter { position: static; flex: 1; height: 1px; background: #303036; }
html.home .preloader__meter i { height: 1px; background: var(--opening-accent); transition: transform .45s ease; }
html.home .preloader__count { white-space: nowrap; font-variant-numeric: tabular-nums; }
html.home .preloader__meter span { position: static; }
html.home .preloader.is-through { background: #050506; opacity: 0; visibility: hidden; pointer-events: none; }
html.home .preloader.is-through .preloader__stage {
    transform: translate(-50%, -53%) scale(1.07); opacity: 0;
    transition: transform .85s cubic-bezier(.4,0,.2,1), opacity .65s;
}
html.home .preloader.is-quiet *, html.home .preloader.is-quiet::before { animation: none !important; }
html.home .preloader.is-quiet.is-through { transition-duration: .1s; }
html.home .preloader.is-quiet.is-through .preloader__stage { transform: translate(-50%, -50%); transition-duration: .1s; }
@keyframes opening-rule { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes opening-signature {
    0% { opacity: 0; clip-path: inset(0 100% 0 0); transform: translateY(22px) scale(.97); }
    12% { opacity: 1; }
    70% { clip-path: inset(0 0 0 0); }
    100% { opacity: 1; clip-path: inset(0); transform: none; }
}
@keyframes opening-entry { from { opacity: 0; translate: 0 8px; } to { opacity: 1; translate: 0; } }
@media (max-width: 700px) {
    html.home .preloader { padding-top: max(22px, env(safe-area-inset-top)); }
    html.home .preloader__top { font-size: 8px; letter-spacing: .06em; gap: 12px; }
    html.home .preloader__line { margin-top: 24px; font-size: 9px; }
    html.home .preloader__stage { width: 92vw; top: 41%; }
    html.home .preloader__entry { top: 64%; }
    html.home .preloader__invitation { font-size: 10px; }
    html.home .preloader__choices button { min-width: 0; flex: 1; max-width: 180px; gap: 10px; padding: 12px; font-size: 10px; }
    html.home .preloader__bottom { flex-wrap: wrap; gap: 12px; bottom: max(22px, env(safe-area-inset-bottom)); }
    html.home .preloader__bottom [data-loader-status] { width: calc(100% - 90px); min-width: 0; font-size: 8px; }
    html.home .preloader__meter { order: 3; flex-basis: 100%; }
    html.home .preloader__count { font-size: 9px; }
}
@media (max-height: 520px) and (min-width: 701px) {
    html.home .preloader__stage { width: min(48vw, 510px); top: 43%; }
    html.home .preloader__entry { top: 72%; }
    html.home .preloader__hint { display: none; }
    html.home .preloader__invitation { margin-bottom: 8px; }
    html.home .preloader__choices button { min-height: 38px; padding: 8px 16px; }
}
@media (prefers-reduced-motion: reduce) {
    html.home .preloader *, html.home .preloader::before { animation: none !important; }
}
/* Shared editorial rhythm and touch affordances. */
html.home .nav { max-height: calc(100svh - 100px); overflow: auto; }
html.home .chapter-action {
    align-self: flex-start; min-height: 44px; padding: 10px 0; color: inherit; background: transparent;
    border: 0; border-bottom: 1px solid #777; font: 11px/1.5 "Geist Mono", monospace; letter-spacing: .14em; cursor: pointer;
}
html.home .chapter-action:focus-visible, html.home [data-close]:focus-visible,
html.home [data-sheet-url]:focus-visible, html.home .nav a:focus-visible {
    outline: 2px solid #b8ff38; outline-offset: 5px;
}
html.home [data-close] { cursor: pointer; min-height: 44px; opacity: .9; }
html.home [data-actions] { flex-wrap: wrap; }
html.home [data-folio-open] { min-height: 44px; text-align: left; }
html.home .glass.is-playing .glass__lamp { box-shadow: inset -1px 0 0 #fff, 0 0 18px #73b9ff; }
html.home .glass.is-playing [data-sound] { opacity: 1; }
html.home .glass input[type="range"] { min-height: 18px; background: linear-gradient(#9ab7da66,#9ab7da66) center / 100% 1px no-repeat; }
html.home [data-beat="motion"] li, html.home [data-beat="sound"] li { padding-top: 12px; border-top: 1px solid #333; }
html.home [data-beat="motion"] li span, html.home [data-beat="sound"] li span { color: #a9bfff; }
@media (max-width: 700px) {
    html.home .nav { right: 5vw; width: 90vw; padding: 24px; }
    html.home [data-beat]:not([data-beat="create"]) { justify-content: flex-start; padding: 155px 6vw 70px; overscroll-behavior: contain; touch-action: pan-y; }
    html.home [data-beat="fisico"] .media-row { grid-template-rows: auto; flex-shrink: 0; }
    html.home [data-beat="fisico"] .media-row figure { aspect-ratio: 16 / 11; }
    html.home [data-beat="fisico"] .media-row figure:first-child { aspect-ratio: 16 / 9; }
    html.home [data-beat="sobre"] { align-content: start; }
    html.home [data-beat="sobre"] .founder-row img { max-height: 35svh; object-fit: cover; object-position: center; }
    html.home [data-beat="sobre"] .founder-row > div p { margin: 4px 0; font-size: 12px; }
    html.home [data-beat="sobre"] > p { font-size: 12px; }
    html.home [data-beat="sobre"] > h2 { font-size: clamp(2.7rem, 14vw, 4rem); }
    html.home .glass__cap button, html.home .glass__transport button, html.home .glass__vol button { min-height: 32px; }
}
html.home .nav { max-height: none; width: 100%; height: 100svh; inset: 0; padding: 90px 8vw 50px; gap: 12px; }
html.home .nav a { font-size: clamp(1.65rem, 6svh, 4rem); line-height: 1.05; }
html.home .nav-close { position: absolute; top: 24px; right: 5vw; min-height: 44px; padding: 10px; border: 0; background: transparent; color: inherit; cursor: pointer; font: 11px "Geist Mono", monospace; letter-spacing: .12em; }
html.home [data-detail]::before { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, #000e 0%, #000a 25%, #0000 72%); opacity: var(--case-reveal, 0); }
html.home [data-detail][data-tone] [data-hero] { left: 6vw; right: auto; top: auto; bottom: 12vh; width: min(620px, 78vw); align-items: flex-start; text-align: left; color: #fff; text-shadow: 0 2px 18px #0006; }
html.home [data-title] { font-size: clamp(3rem, 6.5vw, 6rem); line-height: .93; max-width: 12ch; text-wrap: balance; }
html.home [data-actions] { gap: 20px; align-items: center; }
html.home [data-actions] a, html.home [data-actions] button { white-space: nowrap; line-height: 1.5; }
html.home .contact-channels { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; margin: 20px 0; }
html.home .contact-channels a { color: inherit; font-size: clamp(.9rem, 2.2vw, 1.5rem); letter-spacing: -.02em; text-decoration: none; border-bottom: 1px solid #555; padding: 8px 0; min-height: 44px; }
html.home .contact-channels a span { display: inline-block; margin-left: 16px; color: #a9bfff; }
html.home .contact-channels a:focus-visible, html.home .nav-close:focus-visible { outline: 2px solid #b8ff38; outline-offset: 5px; }
html.home.is-reduced, html.home.is-reduced body { height: 100%; overflow: hidden; }
html.home.is-reduced .index { position: fixed; inset: 0; overflow: auto; background: #080808; padding: 150px 7vw 70px; margin: 0; list-style: none; z-index: 4; }
html.home.is-reduced .index a { display: block; padding: 18px 0; text-decoration: none; border-bottom: 1px solid #444; }
@media (max-width: 700px) {
    html.home .nav { padding: 100px 6vw 50px; }
    html.home [data-detail][data-tone] [data-hero] { bottom: 18vh; width: 88vw; }
    html.home [data-title] { font-size: clamp(2.7rem, 12vw, 4rem); }
    html.home [data-actions] { align-items: flex-start; gap: 8px; }
    html.home [data-beat="contato"] { gap: 8px; }
    html.home [data-beat="contato"] h2 { font-size: clamp(2.8rem, 14vw, 4rem); }
    html.home .contact-channels { gap: 8px; margin: 14px 0; }
}
html.home [data-folio] { width: min(520px, 78vw); }
html.home [data-folio-name] { font-size: clamp(2.4rem, 4.2vw, 3.8rem); line-height: .95; }
@media (min-width: 701px) {
    html.home [data-beat="fisico"] { justify-content: flex-start; padding: 130px 7vw 50px; gap: 18px; }
    html.home [data-beat="fisico"] h2 { font-size: clamp(3rem, 6vw, 5.5rem); }
    html.home [data-beat="fisico"] > p { margin: 0; }
    html.home [data-beat="fisico"] .media-row { grid-template-rows: minmax(115px, 22vh) minmax(115px, 22vh); }
}
@media (max-width: 700px) {
    html.home [data-folio] { width: 88vw; }
    html.home [data-folio-name] { font-size: clamp(2rem, 10vw, 3rem); }
}
html.home [data-beat="sobre"] > p { text-wrap: balance; }
@media (max-width: 700px) {
    html.home [data-beat="sobre"] > p:nth-of-type(n) { grid-column: 1; grid-row: auto; width: min(78vw, 340px); margin: 0; }
    html.home [data-beat="sobre"] > h2 { max-width: 100%; }
}
@media (max-height: 600px) and (max-width: 700px) {
    html.home .preloader__stage { top: 38%; width: 80vw; }
    html.home .preloader__entry { top: 62%; }
    html.home .preloader__hint { font-size: 10px; }
}
html.home [data-sheet] { padding-top: 0; }
html.home [data-sheet-body] { min-height: 100svh; padding: 12vh 8vw 16vh; }
html.home.is-open .nav-btn { text-shadow: 0 1px 8px #000; background: #080808b3; padding: 8px 10px; margin: -8px -10px; border-radius: 2px; }
@media (max-width: 700px) {
    html.home [data-sheet] { padding-top: 0; }
    html.home [data-sheet-body] { padding: 125px 6vw 130px; }
}
html.home [data-sound] { white-space: nowrap; padding: 0; text-align: left; }

/* Checkpoint D: preserve the portrait without stretching its pixels or crossing the header. */
@media (min-width: 701px) {
    html.home [data-beat="sobre"] .founder-row img {
        height: min(64svh, 620px); object-fit: cover; object-position: 54% center;
    }
}
@media (max-width: 700px) {
    html.home [data-beat="sobre"] .founder-row img { height: auto; }
}
@media (prefers-reduced-motion: reduce) {
    html.home, html.home a, html.home button { cursor: auto; }
    html.home .cursor { display: none !important; }
}

html.home .skip:focus-visible { position: fixed; left: 20px; top: 16px; z-index: 80; padding: 14px 18px; background: #f4f1ea; color: #080808; outline: 2px solid currentColor; }
