/* Local visual study. The same four DOM squares survive through the full sequence. */
body:not(.about-open),body:not(.about-open) .site-header,body:not(.about-open) .site-copyright{background:#fff}
.site-header{position:fixed;top:0;left:0;right:0;z-index:100;pointer-events:none;background:transparent!important}
.site-header>*{pointer-events:auto}
body.about-open #site-page{padding-top:124px}
.quadrant-home{outline:none}
.quadrant-study{position:relative;height:640svh;background:#fff}
.study-stage{position:sticky;top:0;height:100svh;width:100%;overflow:hidden;isolation:isolate}
.study-shape{position:absolute;left:0;top:0;z-index:2;width:200px;height:200px;visibility:hidden;transform-origin:0 0;will-change:transform;pointer-events:none}
.study-piece{position:absolute;left:0;top:0;width:100px;height:100px;background:#ff5900;transform-origin:0 0}
/* The lettering spans x=65.36..428.33 in the 407.47-unit SVG viewBox.
   Center its visible bounds (44.539474%); the orange square extends right. */
.study-wordmark{position:absolute;left:50%;top:50%;width:clamp(260px,34vw,460px);transform:translate(-44.539474%,-50%);opacity:0;z-index:1;pointer-events:none}
.study-brand-svg{display:block;width:100%;height:auto;overflow:visible}
.study-wordmark p{position:absolute;left:0;top:calc(100% + 27px);font:400 12px/1.5 var(--body);letter-spacing:0;color:#6d7565;white-space:nowrap;margin:0}
.study-guidance{position:absolute;left:clamp(24px,5.2vw,88px);bottom:42px;z-index:5;color:#131a0f;pointer-events:none}
.study-step-count{font-size:9px;letter-spacing:.1em}
.study-step-label{font-size:12px;margin-top:7px}
.study-scroll-hint{position:absolute;right:clamp(24px,5.2vw,88px);bottom:42px;z-index:5;font-size:11px;color:#6a7361}
.study-scroll-hint>span{margin-right:10px}
.study-stage .study-edge-control{position:absolute;left:auto;right:0;bottom:24px;z-index:7;display:grid;place-items:center;width:52px;height:80px;padding:0;border:0;border-radius:0 0 24px 0;background:#ff5900;color:#fff;box-shadow:none;cursor:pointer;pointer-events:auto;transition:background-color 180ms ease,opacity 700ms ease}
@media (hover: hover) and (pointer: fine){
.study-stage .study-edge-control:hover{background:#e95100}}
.study-stage .study-edge-control:focus-visible{outline:2px solid #171c15;outline-offset:4px}
.study-stage .study-edge-control[aria-disabled="true"]{cursor:wait}
.study-stage .study-edge-control svg{pointer-events:none}
@media(max-width:650px){.study-stage .study-edge-control{width:44px;height:64px;bottom:20px;border-bottom-right-radius:20px}}
@media(min-width:561px) and (max-height:500px){.study-stage .study-edge-control{width:44px;height:64px;bottom:12px}}
.study-scroll-prompt{position:absolute;left:50%;top:var(--study-prompt-top,65%);z-index:6;transform:translateX(-50%);display:inline-flex;flex-direction:column;align-items:center;gap:9px;max-width:calc(100% - 48px);min-height:48px;padding:5px 4px;border:0;border-radius:4px;background:transparent;color:#242b22;font:400 13px/1.3 var(--body);letter-spacing:.02em;text-align:center;white-space:nowrap;cursor:pointer;box-shadow:none;transition:opacity 700ms ease,color 180ms ease}
@media (hover: hover) and (pointer: fine){
.study-scroll-prompt:hover .study-scroll-prompt-icon{color:#ff5900;border-color:#ff5900;transform:translateY(2px)}}
.study-scroll-prompt[hidden]{display:none}
.study-scroll-prompt:focus-visible{outline:2px solid #ff5900;outline-offset:5px}
.study-scroll-prompt-icon{display:grid;place-items:center;flex:none;width:38px;height:38px;border:1px solid #ff590066;border-radius:50%;background:transparent;color:#ff5900;transition:transform 180ms ease,border-color 180ms ease}
.study-scroll-prompt-icon svg{animation:study-scroll-nudge 1.8s ease-in-out 3}
.study-scroll-touch{display:none}
.square-entry-active .study-scroll-prompt{opacity:0;pointer-events:none}
.square-entry-active .study-scroll-prompt-icon svg{animation:none}
@keyframes study-scroll-nudge{0%,100%{transform:translateY(-2px)}50%{transform:translateY(3px)}}
@media(hover:none),(max-width:650px){.study-scroll-desktop{display:none}.study-scroll-touch{display:inline}}
@media(max-width:560px) and (max-height:700px){.quadrant-study[data-scroll-prompt="true"] .study-guidance{visibility:hidden}}
@media(prefers-reduced-motion:reduce){.study-scroll-prompt-icon svg{animation:none}.study-scroll-prompt,.study-scroll-prompt-icon{transition:none}@media (hover: hover) and (pointer: fine){.study-scroll-prompt:hover .study-scroll-prompt-icon{transform:none}}}
.study-replay{position:absolute;right:clamp(24px,5.2vw,88px);bottom:33px;z-index:5;border:0;border-bottom:1px solid #d8ddcf;background:none;padding:9px 0;font:400 11px var(--body);color:#556248}
.study-replay>span{margin-left:22px}
@media(max-width:560px){body.about-open #site-page{padding-top:80px}.study-wordmark{width:min(280px,72vw)}.study-wordmark p{font-size:10px;top:calc(100% + 22px)}.study-guidance{bottom:70px}.study-step-label{font-size:11px}.study-scroll-hint{left:24px;right:auto;bottom:30px;font-size:10px}.study-replay{bottom:24px;font-size:10px}.quadrant-study{height:660svh}}

html:not(.js) .quadrant-study{height:100svh}
html:not(.js) .study-wordmark{opacity:1}
html:not(.js) .study-shape{display:none}

/* The opening and the presentation share the very same orange shape. */
.square-entry .square-entry-symbol{visibility:hidden}
.square-entry .study-shape{z-index:3}
.study-narrative{opacity:1;transition:opacity 700ms ease}
.square-entry-active .site-header,.square-entry-active .study-narrative,.square-entry-active .study-guidance,.square-entry-active .study-scroll-hint,.square-entry-active .site-copyright{opacity:0}
.square-entry-active .site-copyright{visibility:hidden}
.site-header,.study-guidance,.study-scroll-hint,.site-copyright{transition:opacity 700ms ease}
.study-copy{position:absolute;left:clamp(24px,5.2vw,88px);top:50%;width:min(440px,calc(50% - 130px));margin:0;transform:translateY(-50%);color:#161b15}
.study-copy[data-story="3"]{left:clamp(24px,5.2vw,88px);right:auto}
.study-copy[data-story="2"]{left:auto;right:clamp(24px,5.2vw,88px)}
.study-copy-eyebrow{font-size:9px;letter-spacing:.13em;color:#858d7a;margin-bottom:24px}
.study-copy h2{font:400 clamp(30px,3.45vw,49px)/1.12 var(--body);letter-spacing:-.04em;margin:0}
.study-copy>p:not(.study-copy-eyebrow){font-size:14px;line-height:1.65;max-width:370px;color:#747d69;margin-top:24px}
.study-products-link{display:inline-flex;align-items:center;gap:28px;margin-top:24px;padding:10px 0;border:0;border-bottom:1px solid #d8ddcf;background:none;color:#343f29;font-size:11px}
.study-products-link>span{font-size:18px}
@media(max-width:650px){.study-copy{left:24px;right:24px;top:clamp(100px,17vh,165px);width:auto;max-width:350px;transform:none}.study-copy[data-story="2"],.study-copy[data-story="3"]{left:24px;right:24px}.study-copy-eyebrow{font-size:8px;margin-bottom:15px}.study-copy h2{font-size:32px;line-height:1.12}.study-copy>p:not(.study-copy-eyebrow){font-size:12px;line-height:1.6;max-width:310px;margin-top:16px}.study-products-link{margin-top:13px;font-size:10px;padding-block:8px}}
@media(max-width:650px) and (max-height:700px){.study-copy{top:90px}.study-copy h2{font-size:27px}.study-copy-eyebrow{margin-bottom:11px}.study-copy>p:not(.study-copy-eyebrow){font-size:11px;margin-top:11px}.study-products-link{margin-top:8px;padding-block:5px}}
@media(prefers-reduced-motion:reduce){.study-narrative,.site-header,.study-guidance,.study-scroll-hint,.site-copyright{transition:opacity 700ms ease!important}}

html:not(.js) .study-narrative{display:none}

/* The opening text is centered above the continuous orange square. */
.study-intro-lead{left:50%;right:auto;top:clamp(112px,15svh,170px);width:min(660px,calc(100% - 48px));transform:translateX(-50%);text-align:center}
.study-intro-lead>p:not(.study-copy-eyebrow){max-width:520px;margin-inline:auto}
@media(min-width:651px) and (max-height:740px){.study-intro-lead{top:96px}.study-intro-lead .study-copy-eyebrow{font-size:8px;margin-bottom:10px}.study-intro-lead h2{font-size:30px;line-height:1.08}.study-intro-lead>p:not(.study-copy-eyebrow){font-size:12px;line-height:1.6;margin-top:12px}}
@media(max-width:650px){.study-intro-lead{top:100px;max-width:350px}}
@media(max-width:650px) and (max-height:700px){.study-intro-lead{top:90px}}

/* Copyright appears after the opening and stays fixed without adding scroll. */
body:not(.about-open) .site-copyright{position:fixed;inset-inline:0;bottom:0;z-index:100;background:transparent;pointer-events:none}
@media(max-width:560px){.study-guidance{bottom:150px}.study-scroll-hint,.study-replay{bottom:104px}}


/* The about symbol uses the opening square's viewport center and visible side.
   Its 360-unit canvas has 72-unit margins: the solid drawing occupies 60%. */
body[data-view="about"] #site-page{padding-top:0}
body[data-view="about"] #sobre-nos{position:relative;flex:none;min-height:100svh;padding:0 24px;background:#fff}
.square-anchor-viewport{position:fixed;inset:0 0 auto;width:auto;height:100svh;visibility:hidden;pointer-events:none;contain:strict}
.about-copy{position:fixed;left:var(--square-anchor-center-x,50vw);top:calc(var(--square-anchor-top,50svh) - clamp(28px,5svh,50px) - 8px);bottom:auto;width:min(370px,calc(100vw - 48px));transform:translate(-50%,-100%)}
.about-square{position:fixed;left:var(--square-anchor-left,50vw);top:var(--square-anchor-top,50svh);width:var(--square-anchor-side,87.872px);height:var(--square-anchor-side,87.872px);max-width:none;margin:0;transform:none}
.about-square canvas{position:absolute;left:50%;top:50%;width:calc(100%/.6);height:calc(100%/.6);max-width:none;transform:translate(-50%,-50%)}
body[data-view="about"] .site-copyright{position:fixed;inset-inline:0;bottom:0;z-index:100;background:transparent;pointer-events:none}

/* A shared brand on the left, with the view links on the right. */
.site-header{justify-content:space-between}
.site-brand{display:block;flex:none;line-height:1;padding:0;border:0;background:transparent;color:inherit}
.site-brand img{display:block;width:112px;height:auto}
@media(max-width:560px){.site-brand img{width:100px}.site-header{gap:20px}}
/* Brand and Home are reserved for internal views. */
body[data-view="home"] .site-brand{display:none}
body[data-view="home"] .site-header{justify-content:flex-end}
