@font-face {
    font-family: "DM Sans";
    src: url("assets/dm-sans-latin.woff2") format("woff2");
    font-weight: 400 700;
    font-display: swap;
}

@font-face {
    font-family: "Instrument Serif";
    src: url("assets/instrument-serif-latin.woff2") format("woff2");
    font-display: swap;
}

:root {
    --paper: #f8f5ef;
    --ink: #241b15;
    --muted: #60544b;
    --night: #272019;
    --white: #fffaf2;
    --orange: #ffa65f;
    --clay: #914119;
    --rule: #d9cfc2;
    --display: "Instrument Serif", Georgia, serif;
    --body: "DM Sans", system-ui, sans-serif;
    --gutter: clamp(1.25rem, 5vw, 5.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 4.5rem; }
html:has(.project-dialog[open]) { overflow: hidden; }
body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font: 1rem/1.55 var(--body);
}
main:focus { outline: none; }
img { display: block; max-width: 100%; }
a { color: inherit; }
a:focus-visible, summary:focus-visible, button:focus-visible {
    outline: 2px solid currentColor;
    outline-offset: 5px;
}
h1, h2, h3, p { margin: 0; }
h1, h2 {
    font: 400 clamp(3.45rem, 6vw, 6rem)/.94 var(--display);
    letter-spacing: -.025em;
}
h3 { font-weight: 600; }

.shell {
    width: min(100% - var(--gutter) * 2, 83rem);
    margin-inline: auto;
}
.section { padding-block: clamp(4.8rem, 8.4vw, 8rem); }
.section-intro {
    display: grid;
    grid-template-columns: 1.25fr .75fr;
    align-items: end;
    gap: 1.4rem 3rem;
    margin-bottom: clamp(2rem, 4vw, 3.8rem);
}
.section-intro > p { max-width: 32rem; color: var(--muted); }

.skip-link {
    position: fixed;
    z-index: 10;
    top: 1rem;
    left: 1rem;
    padding: .75rem 1rem;
    transform: translateY(-180%);
    background: var(--white);
    color: var(--ink);
    font-weight: 700;
}
.skip-link:focus { transform: none; }

.scroll-progress {
    position: fixed;
    z-index: 4;
    inset: 0 0 auto;
    height: 3px;
    background: var(--orange);
    transform: scaleX(0);
    transform-origin: left;
    pointer-events: none;
}

.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 5;
    color: var(--white);
    transition: background-color .4s, box-shadow .4s, backdrop-filter .4s;
}
.site-header.is-scrolled {
    background: #241b15d6;
    -webkit-backdrop-filter: blur(14px) saturate(1.25);
    backdrop-filter: blur(14px) saturate(1.25);
    box-shadow: 0 1px 0 #fff3df1c, 0 10px 30px #120a0430;
}
.header-inner {
    min-height: 6.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    border-bottom: 1px solid #fff3df45;
    transition: min-height .4s, border-color .4s;
}
.brand img { transition: width .4s; }
.site-header.is-scrolled .header-inner { min-height: 4.4rem; border-bottom-color: transparent; }
.site-header.is-scrolled .brand img { width: 6.4rem; }
.brand { display: inline-block; flex: 0 0 auto; }
.brand img { height: auto; }
.desktop-nav {
    display: flex;
    gap: clamp(1.2rem, 3vw, 3.25rem);
    align-items: center;
}
.desktop-nav a, .mobile-menu a {
    font-size: .95rem;
    font-weight: 600;
    text-decoration: none;
}
.desktop-nav a { text-shadow: 0 1px 6px #190f08; }
.desktop-nav a:hover, .mobile-menu a:hover { color: var(--orange); }
.mobile-menu { display: none; }

.button {
    display: inline-flex;
    width: fit-content;
    min-height: 3.15rem;
    align-items: center;
    justify-content: center;
    padding: .73rem 1.25rem;
    border: 1px solid transparent;
    border-radius: .2rem;
    font-size: .94rem;
    line-height: 1.25;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    transition: background-color .2s, color .2s, border-color .2s;
}
.button-accent { background: var(--orange); color: var(--ink); outline-color: var(--white); }
.button-accent:hover { background: #ffbb86; }
.button-outline { border-color: #fff4e5b5; background: #21150d60; }
.button-outline:hover { background: var(--white); color: var(--ink); }
.button-dark { background: var(--ink); color: var(--white); }
.button-dark:hover { background: #473226; }
.button-accent:focus-visible { outline-color: var(--white); }
.button-dark:focus-visible { outline-color: var(--ink); }
.text-link, .light-link {
    width: fit-content;
    font-size: .94rem;
    font-weight: 700;
    text-decoration-thickness: 1px;
    text-underline-offset: .31em;
    text-decoration-color: #9141199c;
}
.text-link:hover { color: var(--clay); }
.light-link { text-decoration-color: #fff3df91; }
.light-link:hover { color: var(--orange); text-decoration-color: currentColor; }

.hero {
    position: relative;
    isolation: isolate;
    display: grid;
    align-items: stretch;
    min-height: max(43rem, min(52rem, 88svh));
    color: var(--white);
    background: #3b291b;
    overflow: hidden;
}
.hero-image, .hero-shade {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}
.hero-image {
    z-index: -2;
    object-fit: cover;
    object-position: center 55%;
}
.hero-shade {
    z-index: -1;
    background: linear-gradient(90deg, #1a110de6, #21150cab 38%, #2a1a130d 77%),
                linear-gradient(180deg, #1d140d8c, transparent 24%, transparent 79%, #1d140d72);
}
.hero-inner {
    position: relative;
    display: grid;
    align-items: center;
    padding-block: 9.7rem 6.1rem;
}
.hero-copy { max-width: 53rem; }
.hero-location {
    display: flex;
    align-items: center;
    gap: .55rem;
    margin-bottom: 1rem;
    color: #ffddbf;
    font-weight: 600;
}
.hero-location span { color: var(--orange); }
.hero h1 { font-size: clamp(5.5rem, 8.9vw, 9.1rem); line-height: .86; }
.hero-description {
    max-width: 29rem;
    margin-top: 1.55rem;
    color: #f9ede1;
    font-size: clamp(1.04rem, 1.4vw, 1.19rem);
}
.hero-actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: .9rem 1.5rem;
    margin-top: 1.8rem;
}
.hero-credit {
    position: absolute;
    right: 0;
    bottom: 1.35rem;
    color: var(--white);
    text-shadow: 0 1px 5px #120a04;
    font-size: .81rem;
}

.material-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(1.15rem, 2.4vw, 2.35rem);
}
.material-image {
    overflow: hidden;
    aspect-ratio: 1.49;
    border-radius: .35rem;
}
.material-image img, .portfolio-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
@media (min-width: 56.01rem) {
    .material:nth-child(2) { margin-top: 3.5rem; }
    .material:nth-child(3) { margin-top: 1.6rem; }
}
.material h3 {
    margin-top: 1rem;
    font: 400 clamp(2.15rem, 3.1vw, 3.15rem)/1 var(--display);
}
.material > p { margin-block: .7rem 1rem; color: var(--muted); }
.material ul {
    display: grid;
    gap: .38rem;
    padding: .82rem 0 0 1.05rem;
    margin: 0;
    border-top: 1px solid var(--rule);
    font-size: .94rem;
}
.material li::marker { color: var(--clay); }

.portfolio { background: #231810; color: var(--white); }
.portfolio .section-intro p { color: #e0d1c2; }
.portfolio-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, .85fr);
    gap: clamp(.65rem, 1.6vw, 1.4rem);
}
.portfolio-card.portfolio-feature { grid-row: span 2; }
.portfolio-open {
    position: relative;
    isolation: isolate;
    display: block;
    width: 100%;
    height: 100%;
    min-height: 10rem;
    aspect-ratio: 1.96;
    overflow: hidden;
    border: 1px solid #fff1dc24;
    border-radius: .65rem;
    background: #3c2c21;
    text-decoration: none;
}
.portfolio-feature .portfolio-open { aspect-ratio: 1.56; }
.portfolio-media, .portfolio-open::after {
    position: absolute;
    inset: 0;
    pointer-events: none;
}
.portfolio-media { z-index: -2; overflow: hidden; }
.portfolio-open::after {
    z-index: -1;
    content: "";
    background: linear-gradient(0deg, #1e120ceb, #1e120c84 32%, #1e120c00 66%);
}
.portfolio-feature .portfolio-media img, .portfolio-feature .project-media img { object-position: center 76%; }
.portfolio-baseboard .portfolio-media img { object-position: center 86%; }
.portfolio-floor .portfolio-media img, .portfolio-floor .project-media img { object-position: center 76%; }
.portfolio-copy {
    position: absolute;
    inset: auto 0 0;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    padding: clamp(.9rem, 2vw, 1.85rem);
}
.portfolio-copy h3 { font: 400 clamp(1.8rem, 3vw, 2.75rem)/1.02 var(--display); }
.portfolio-feature .portfolio-copy h3 { font-size: clamp(2.4rem, 4.3vw, 4.65rem); }
.portfolio-type {
    margin-bottom: .3rem;
    color: var(--orange);
    font-size: .88rem;
    font-weight: 700;
}
.portfolio-plus {
    display: grid;
    flex: 0 0 auto;
    place-items: center;
    width: clamp(2.65rem, 4vw, 3.45rem);
    aspect-ratio: 1;
    border-radius: 50%;
    background: var(--orange);
    color: var(--ink);
    font-size: 1.8rem;
    line-height: 1;
    transition: rotate .4s, background-color .2s;
}
.portfolio-media img { transition: scale .55s cubic-bezier(.2, .7, .2, 1); }
@media (hover: hover) {
    .portfolio-open:hover .portfolio-media img { scale: 1.055; }
    .portfolio-open:hover .portfolio-plus { rotate: 90deg; background: #ffd0a9; }
}
.portfolio-open:focus-visible .portfolio-plus { background: #ffd0a9; }

.portfolio-details {
    display: grid;
    gap: 2rem;
    margin-top: 3rem;
}
.portfolio-details[hidden], .project-detail[hidden] { display: none; }
.project-detail {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(13rem, .8fr);
    align-items: center;
    gap: clamp(1.15rem, 3vw, 2.75rem);
    scroll-margin-top: 1.5rem;
}
.project-media {
    overflow: hidden;
    border-radius: .45rem;
    background: #281c15;
}
.project-media img { width: 100%; height: auto; aspect-ratio: 1.55; object-fit: cover; }
.project-media video {
    display: block;
    width: 100%;
    height: clamp(18rem, 55vh, 31rem);
    background: #160f0c;
    object-fit: contain;
}
.project-copy h3 {
    font: 400 clamp(2.35rem, 4.15vw, 3.9rem)/.97 var(--display);
    letter-spacing: -.015em;
}
.project-copy > p:not(.portfolio-type) { margin-top: .9rem; }
.project-copy .portfolio-type { margin-bottom: .55rem; }
.project-dialog {
    width: min(calc(100% - 2rem), 65rem);
    max-height: calc(100dvh - 2rem);
    border: 0;
    border-radius: .85rem;
    padding: 0;
    background: var(--paper);
    color: var(--ink);
    overscroll-behavior: contain;
}
.project-dialog::backdrop { background: #160e0bdf; }
.project-panel { padding: 0 clamp(1rem, 3vw, 2.3rem) clamp(1rem, 3vw, 2rem); }
.project-dialog[open] .project-panel { animation: project-enter .32s ease-out both; }
@keyframes project-enter {
    from { opacity: .55; transform: translateY(15px); }
    to { opacity: 1; transform: translateY(0); }
}
.project-toolbar {
    position: sticky;
    top: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-block: .75rem;
    background: var(--paper);
}
.project-count { color: var(--muted); font-size: .94rem; font-weight: 700; }
.project-dialog .portfolio-type { color: var(--clay); }
.project-control {
    min-height: 2.75rem;
    border: 1px solid var(--rule);
    border-radius: 2rem;
    padding: .55rem 1rem;
    background: transparent;
    color: var(--ink);
    font: 700 .95rem/1.2 var(--body);
    cursor: pointer;
}
.project-control:hover { background: #ebdfd0; }
.project-close span { margin-left: .3rem; font-size: 1.18em; }
.project-next { border-color: var(--orange); background: var(--orange); }
.project-next:hover { border-color: #ffbb86; background: #ffbb86; }
.project-navigation {
    display: flex;
    justify-content: space-between;
    gap: .8rem;
    margin-top: 1.25rem;
    padding-top: .9rem;
    border-top: 1px solid var(--rule);
}

.brand-list { margin: 0; padding: 0; border-top: 1px solid var(--rule); list-style: none; }
.brand-list > li {
    display: grid;
    grid-template-columns: minmax(13rem, .9fr) minmax(0, 1.75fr) minmax(8rem, .65fr);
    grid-template-rows: auto auto;
    column-gap: clamp(1rem, 3vw, 3.5rem);
    padding-block: 1.4rem;
    border-bottom: 1px solid var(--rule);
}
.brand-list .brand-category {
    grid-area: 1 / 1;
    color: var(--clay);
    font-size: .87rem;
    font-weight: 700;
}
.brand-list h3 {
    grid-area: 2 / 1;
    font: 400 clamp(2.05rem, 3.25vw, 3.15rem)/1.02 var(--display);
}
.brand-list li > p:not(.brand-category) { grid-area: 1 / 2 / 3; align-self: center; }
.brand-list li > .text-link, .brand-links { grid-area: 1 / 3 / 3; align-self: center; }
.brand-links { display: flex; flex-wrap: wrap; gap: .45rem .9rem; }

.visit {
    background: #f5a462;
    color: var(--ink);
}
.visit-inner {
    display: grid;
    align-items: center;
    gap: 2rem 4rem;
    grid-template-columns: 1.25fr .75fr;
}
.visit-copy p { max-width: 34rem; margin-block: 1.12rem 1.55rem; }
.visit-address {
    border-left: 1px solid #3c271e70;
    padding-left: clamp(1.5rem, 4vw, 4.75rem);
}
.visit-address h3 { font-size: .9rem; font-weight: 700; }
.visit-address address { margin-block: .35rem; font-style: normal; font-size: clamp(1.1rem, 2vw, 1.35rem); }
.visit-whatsapp { margin-top: 1.25rem; }
.visit-whatsapp a { display: inline-block; margin-top: .2rem; }
.visit .text-link:hover { color: #612905; }
.site-footer { background: var(--night); color: var(--white); }
.footer-inner {
    min-height: 8.15rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem 2rem;
    padding-block: 1.4rem;
}
.footer-inner p { color: #e0d1c2; }

@media (max-width: 56rem) {
    .header-inner { min-height: 5rem; }
    .header-inner .brand img { width: 7.15rem; }
    .desktop-nav, .header-contact { display: none; }
    .mobile-menu { display: block; position: relative; }
    .mobile-menu summary {
        display: flex;
        gap: .65rem;
        align-items: center;
        min-height: 2.75rem;
        padding: .35rem .72rem;
        border: 1px solid #fff3df75;
        border-radius: .2rem;
        background: #21150d60;
        font-weight: 700;
        list-style: none;
        cursor: pointer;
    }
    .mobile-menu summary::-webkit-details-marker { display: none; }
    .menu-icon {
        width: 1rem;
        height: .63rem;
        border-block: 1px solid currentColor;
    }
    .mobile-menu nav {
        position: absolute;
        inset: calc(100% + .55rem) 0 auto auto;
        display: grid;
        min-width: 13rem;
        border: 1px solid #fff3df4d;
        background: var(--night);
        box-shadow: 0 12px 30px #150e0a50;
    }
    .mobile-menu nav a { padding: .64rem 1rem; }
    .mobile-menu nav a + a { border-top: 1px solid #fff3df30; }
    .hero { min-height: max(39rem, 82svh); }
    .hero-inner { padding-block: 7.8rem 5.2rem; }
    .hero h1 { font-size: clamp(4.3rem, 11.5vw, 7.15rem); }
    .hero-image { object-position: 57% 55%; }
    .material-grid { gap: 1.25rem; }
    .portfolio-copy h3 { font-size: clamp(1.65rem, 4vw, 2.35rem); }
}

@media (max-width: 41rem) {
    .hero { min-height: max(37rem, 82svh); }
    .hero-image { object-position: 59% 53%; }
    .hero-shade {
        background: linear-gradient(90deg, #1a110dd6, #1a110d76 73%, #1a110d34),
                    linear-gradient(180deg, #21150e66, transparent 50%, #1d140d65);
    }
    .hero-inner { align-items: end; padding-bottom: 5rem; }
    .hero h1 { font-size: clamp(3.9rem, 12.3vw, 5.15rem); }
    .hero-description { margin-top: 1.15rem; }
    .hero-actions { margin-top: 1.45rem; }
    .hero-credit { bottom: 1.15rem; }
    .section-intro { grid-template-columns: 1fr; }
    .material-grid, .portfolio-grid, .visit-inner, .project-detail { grid-template-columns: 1fr; }
    .material-grid { gap: 2.4rem; }
    .material-image { aspect-ratio: 1.56; }
    .portfolio-card.portfolio-feature { grid-row: auto; }
    .portfolio-grid { grid-template-columns: minmax(0, 1fr); gap: .85rem; }
    .portfolio-copy { align-items: center; }
    .portfolio-feature .portfolio-copy h3 { font-size: clamp(2rem, 8vw, 2.65rem); }
    .project-dialog { width: calc(100% - 1rem); max-height: calc(100dvh - 1rem); }
    .project-media video { height: clamp(14rem, 42vh, 24rem); }
    .brand-list > li {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        row-gap: .42rem;
    }
    .brand-list li > :is(.brand-category, h3, p:not(.brand-category), .text-link, .brand-links) {
        grid-area: auto;
    }
    .brand-list li > .text-link, .brand-links { margin-top: .18rem; }
    .visit-address { border-left: 0; border-top: 1px solid #3c271e70; padding: 1.5rem 0 0; }
    .footer-inner { justify-content: flex-start; }
    .footer-inner .brand img { width: 6rem; }
    .footer-inner p { font-size: .92rem; }
}

@media (max-width: 24rem) {
    .hero-actions { align-items: start; flex-direction: column; }
    .hero h1 { font-size: clamp(3.5rem, 12.2vw, 4rem); }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .scroll-progress { display: none; }
    .button, .portfolio-media img, .portfolio-plus { transition: none; }
    .portfolio-open:hover .portfolio-media img { scale: 1; }
    .portfolio-open:hover .portfolio-plus { rotate: 0deg; }
    .project-dialog[open] .project-panel { animation: none; }
}


/* ---------- Movimento e simulador (v3) ---------- */
.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

/* Abertura: persiana sobe, luz entra, título sobe */
.hero-light {
    position: absolute;
    inset: -10% -20%;
    z-index: -1;
    pointer-events: none;
    background: repeating-linear-gradient(112deg,
        transparent 0 7%, #ffdcae1f 9%, #ffdcae4d 12%, #ffdcae1f 15%, transparent 17% 27%);
    background-size: 160% 100%;
    mix-blend-mode: screen;
    filter: blur(5px);
    -webkit-mask-image: linear-gradient(90deg, transparent 28%, #000 62%, #000 88%, transparent);
    mask-image: linear-gradient(90deg, transparent 28%, #000 62%, #000 88%, transparent);
    opacity: .8;
}
.motion .hero-light {
    animation: light-in 2.4s ease-out 1.4s both, light-drift 16s ease-in-out 1.4s infinite alternate;
}
@keyframes light-in { from { opacity: 0; } }
@keyframes light-drift {
    from { background-position: 0% 0; }
    to { background-position: 100% 0; }
}
.hero-blind { display: none; }
.motion .hero-blind {
    position: absolute;
    inset: 0;
    z-index: 3;
    display: block;
    pointer-events: none;
    background:
        repeating-linear-gradient(90deg, #ffffff0d 0 1px, transparent 1px 3px),
        repeating-linear-gradient(0deg, #3a281a12 0 1px, transparent 1px 4px),
        linear-gradient(180deg, #ddcbb0, #cdb796 72%, #bea581);
    animation: blind-up 1.45s cubic-bezier(.77, 0, .2, 1) .3s both;
}
.hero-blind-bar {
    position: absolute;
    inset: auto 0 0;
    height: 16px;
    background: linear-gradient(#6a4f3b, #3b2a1e);
    box-shadow: 0 8px 22px #1a0f0880;
}
@keyframes blind-up { to { transform: translateY(calc(-100% - 40px)); } }
.motion .site-header { animation: fade-in .7s ease-out 1.25s both; }
@keyframes fade-in { from { opacity: 0; } }

.hero h1 .line {
    display: block;
    overflow: hidden;
    padding-block: .1em .06em;
    margin-block: -.1em -.06em;
}
.hero h1 .line > span { display: block; }
.motion .hero h1 .line > span { animation: rise 1.05s cubic-bezier(.2, .8, .2, 1) 1.2s both; }
.motion .hero h1 .line + .line > span { animation-delay: 1.32s; }
@keyframes rise { from { transform: translateY(108%); } }
.motion :is(.hero-location, .hero-description, .hero-actions, .hero-credit) {
    animation: fade-up .9s cubic-bezier(.2, .8, .2, 1) 1.1s both;
}
.motion .hero-description { animation-delay: 1.5s; }
.motion .hero-actions { animation-delay: 1.62s; }
.motion .hero-credit { animation-delay: 2s; }
@keyframes fade-up { from { opacity: 0; transform: translateY(18px); } }
.motion .hero-image { animation: drift 22s ease-in-out infinite alternate; }
@keyframes drift {
    from { translate: 0 0; }
    to { translate: -1.6% -1%; }
}

/* Faixa de produtos */
.ticker {
    overflow: hidden;
    background: var(--orange);
    color: var(--ink);
}
.ticker-track {
    display: flex;
    width: max-content;
    animation: ticker 42s linear infinite;
}
.ticker span {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: .95rem 0 .95rem 1.5rem;
    font: 400 clamp(1.45rem, 2.3vw, 2.1rem)/1 var(--display);
    white-space: nowrap;
}
.ticker span::after {
    content: "";
    width: .5rem;
    height: .5rem;
    background: var(--clay);
    rotate: 45deg;
}
@keyframes ticker { to { transform: translateX(-50%); } }
@media (hover: hover) { .ticker:hover .ticker-track { animation-play-state: paused; } }

/* Títulos de seção: palavra por palavra */
.word {
    display: inline-block;
    overflow: hidden;
    vertical-align: top;
    padding-block: .14em .08em;
    margin-block: -.14em -.08em;
}
.word > span { display: inline-block; }

/* Materiais e marcas: resposta ao cursor */
.material-image img { transition: scale .7s cubic-bezier(.2, .7, .2, 1); }
.brand-list h3 { transition: translate .45s cubic-bezier(.2, .7, .2, 1), color .3s; }
.brand-list > li { position: relative; }
.brand-list > li::before {
    content: "";
    position: absolute;
    inset: auto 0 -1px;
    height: 2px;
    background: var(--clay);
    scale: 0 1;
    transform-origin: left;
    transition: scale .6s cubic-bezier(.2, .7, .2, 1);
}
@media (hover: hover) {
    .material:hover .material-image img { scale: 1.06; }
    .brand-list > li:hover h3 { translate: .6rem 0; color: var(--clay); }
    .brand-list > li:hover::before { scale: 1 1; }
}

/* Portfólio: vídeo e brilho que segue o cursor */
.portfolio-media video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 82%;
}
.video-badge {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    margin-left: .4rem;
    color: var(--white);
    font-weight: 600;
}
.video-badge::before {
    content: "";
    width: .5rem;
    height: .5rem;
    border-radius: 50%;
    background: #ff6b4a;
    box-shadow: 0 0 0 0 #ff6b4a80;
    animation: pulse 1.8s ease-out infinite;
}
@keyframes pulse { to { box-shadow: 0 0 0 .5rem #ff6b4a00; } }
.portfolio-open::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), #ffd9a838, transparent 42%);
    opacity: 0;
    transition: opacity .35s;
}
@media (hover: hover) { .portfolio-open:hover::before { opacity: 1; } }

/* Simulador */
.simulator { background: #efe7dc; }
.sim {
    display: grid;
    grid-template-columns: minmax(17rem, .78fr) minmax(0, 1.6fr);
    align-items: start;
    gap: clamp(1.75rem, 4vw, 4.25rem);
}
.sim-controls { display: grid; gap: 1.6rem; }
.sim-field {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: baseline;
    gap: .55rem 1rem;
}
.sim-field label { font-weight: 700; }
.sim-field output {
    font: 400 clamp(2rem, 3vw, 2.6rem)/1 var(--display);
    font-variant-numeric: tabular-nums;
}
.sim-field input {
    --p: 50%;
    grid-column: 1 / -1;
    width: 100%;
    height: 1.6rem;
    margin: 0;
    background: transparent;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}
.sim-field input::-webkit-slider-runnable-track {
    height: 4px;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--clay) var(--p), #d2c4b3 var(--p));
}
.sim-field input::-moz-range-track { height: 4px; border-radius: 4px; background: #d2c4b3; }
.sim-field input::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--clay); }
.sim-field input::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 1.4rem;
    height: 1.4rem;
    margin-top: calc(2px - .7rem);
    border: 3px solid var(--orange);
    border-radius: 50%;
    background: var(--ink);
    transition: scale .2s;
}
.sim-field input::-moz-range-thumb {
    width: 1rem;
    height: 1rem;
    border: 3px solid var(--orange);
    border-radius: 50%;
    background: var(--ink);
}
.sim-field input:active::-webkit-slider-thumb { scale: 1.2; }
.sim-field input:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.sim-tones {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin: 0;
    padding: 0;
    border: 0;
}
.sim-tones legend { margin-bottom: .65rem; padding: 0; font-weight: 700; }
.sim-tones label { position: relative; }
.sim-tones input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.sim-tones span {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    min-height: 2.6rem;
    padding: .45rem .9rem .45rem .5rem;
    border: 1px solid #cdbfae;
    border-radius: 2rem;
    font-size: .92rem;
    font-weight: 600;
    transition: background-color .25s, color .25s, border-color .25s;
}
.sim-tones span::before {
    content: "";
    width: 1.35rem;
    height: 1.35rem;
    border-radius: 50%;
    background: repeating-linear-gradient(90deg, #ffffff1f 0 2px, transparent 2px 5px), var(--c);
    box-shadow: inset 0 0 0 1px #0000002b;
}
.sim-tones label:hover span { border-color: var(--ink); }
.sim-tones input:checked + span { border-color: var(--ink); background: var(--ink); color: var(--white); }
.sim-tones input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 3px; }
.sim-result {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin: 0;
    padding-block: 1rem;
    border-block: 1px solid #d2c4b3;
}
.sim-result dt { color: var(--muted); font-size: .84rem; line-height: 1.3; }
.sim-result dd {
    margin: .35rem 0 0;
    font: 400 clamp(1.65rem, 2.3vw, 2.15rem)/1.05 var(--display);
    font-variant-numeric: tabular-nums;
}
.sim-cta { margin-top: -.2rem; }
.sim-note { color: var(--muted); font-size: .86rem; max-width: 28rem; }
.sim-stage {
    position: relative;
    margin: 0;
    padding: clamp(.75rem, 2vw, 1.5rem);
    overflow: hidden;
    border-radius: .7rem;
    background:
        linear-gradient(#fff3df0b 1px, transparent 1px) 0 0 / 2rem 2rem,
        linear-gradient(90deg, #fff3df0b 1px, transparent 1px) 0 0 / 2rem 2rem,
        #211710;
    color: #e8d9c6;
}
.sim-stage::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(90deg, transparent, #ffd9a814 45%, #ffd9a82b 50%, transparent 56%);
    translate: -100% 0;
}
.sim-stage.is-scanning::after { animation: scan 1.3s ease-in-out; }
@keyframes scan { to { translate: 100% 0; } }
.sim-svg {
    display: block;
    width: 100%;
    height: clamp(20rem, 44vw, 35rem);
    overflow: visible;
}
.sim-svg text { font-family: var(--body); font-weight: 700; fill: #ffd8b3; }
.sim-svg .row { transform-box: fill-box; }
.sim-svg.is-waiting .row { opacity: 0; }
.sim-svg.is-laying .row { animation: lay .55s cubic-bezier(.2, .8, .2, 1) both; animation-delay: var(--d); }
@keyframes lay { from { opacity: 0; transform: translateX(-12%); } }
.sim-stage figcaption { margin-top: .7rem; color: #cbb9a5; font-size: .84rem; }

/* Botão flutuante */
.float-cta {
    position: fixed;
    z-index: 4;
    right: clamp(1rem, 2.5vw, 2rem);
    bottom: clamp(1rem, 2.5vw, 2rem);
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    min-height: 3.2rem;
    padding: .7rem 1.15rem .7rem .95rem;
    border-radius: 3rem;
    background: var(--ink);
    color: var(--white);
    box-shadow: 0 12px 34px #1a0f0855;
    font-weight: 700;
    font-size: .94rem;
    text-decoration: none;
    transition: translate .45s cubic-bezier(.2, .8, .2, 1), opacity .3s, background-color .2s;
}
.float-cta svg { color: var(--orange); }
.float-cta:hover { background: #473226; }
.float-cta:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; }
.js .float-cta:not(.is-visible) { translate: 0 150%; opacity: 0; pointer-events: none; }

@media (max-width: 56rem) {
    .sim { grid-template-columns: 1fr; }
    .sim-stage { order: -1; }
    .sim-svg { height: clamp(15rem, 62vw, 28rem); }
}
@media (max-width: 41rem) {
    .sim-result { grid-template-columns: 1fr 1fr; }
    .sim-result div:last-child { grid-column: 1 / -1; }
    .float-cta span { display: none; }
    .float-cta { padding: .8rem; }
    .video-badge { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .ticker-track { animation: none; flex-wrap: wrap; width: auto; }
    .ticker span:nth-child(n + 9) { display: none; }
    .video-badge::before { animation: none; }
    .material-image img, .brand-list h3, .brand-list > li::before, .float-cta, .site-header, .header-inner, .brand img { transition: none; }
    .sim-stage.is-scanning::after { animation: none; }
}
