/* Desktop retains its original navigation; mobile uses a single accessible drawer. */
.mobile-navigation{display:contents}.mobile-menu-toggle,.mobile-front{display:none}
@media(max-width:900px){
 .classic-header{flex-wrap:nowrap;min-height:80px;padding:16px calc(var(--pad) + 20px);gap:20px;align-items:center}
 .classic-logo{width:104px;position:relative;z-index:2}
 .mobile-menu-toggle{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:7px;width:44px;height:44px;padding:8px;margin-left:auto;flex-shrink:0;border:0;background:transparent;color:#fff;cursor:var(--cursor-link,pointer);position:relative;z-index:2}
 .mobile-menu-toggle>span{display:block;width:26px;height:1px;background:currentColor;transition:transform .2s}
 .mobile-menu-toggle:focus-visible{outline:2px solid currentColor;outline-offset:3px}
 .mobile-navigation{display:none;position:absolute;inset:100% 0 auto;background:#fff;color:#111;height:calc(100dvh - var(--nav-height,80px));padding:30px calc(var(--pad) + 20px) max(32px,env(safe-area-inset-bottom));overflow-y:auto;overscroll-behavior:contain;align-content:start;gap:26px}
 .menu-open{background:#fff;mix-blend-mode:normal;color:#111}
 .menu-open .classic-logo img{filter:none}
 .menu-open .mobile-menu-toggle{color:#111}
 .menu-open .mobile-menu-toggle>span:first-child{transform:translateY(4px) rotate(45deg)}
 .menu-open .mobile-menu-toggle>span:last-child{transform:translateY(-4px) rotate(-45deg)}
 .menu-open .mobile-navigation{display:grid}
 .mobile-navigation .classic-nav{display:flex;flex-direction:column;align-items:stretch;gap:0;width:100%;margin:0;order:0;flex-basis:auto}
 .mobile-navigation .classic-nav a{font-size:clamp(27px,6vw,44px);line-height:1.25;padding:14px 0;min-height:56px;color:#111;-webkit-text-fill-color:#111;border-bottom:1px solid #ddd;white-space:normal}
 .mobile-navigation .other-front{display:flex;order:1;flex-basis:auto;justify-content:space-between;margin:0;padding:12px 0;font-size:14px;white-space:normal;color:#111;-webkit-text-fill-color:#111}
 .mobile-navigation .language-switch{order:2;margin:0;justify-content:flex-start;color:#111;font-size:14px;gap:12px}
 .mobile-navigation .language-switch a{color:#111;-webkit-text-fill-color:#111;min-width:44px;min-height:44px}
 .mobile-navigation a .nav-source-ink{mask:none}
 .menu-open~.nav-highlight,.mobile-menu-open .nav-highlight{display:none}
 html.mobile-menu-open{overflow:hidden}
 .hero-body,.case-description,.case-story,.about-copy,.content-columns,.contact-layout,.branches,.timeline-intro,.timeline-card{min-width:0}
 .hero h1,html[lang=en] .hero h1{font-size:clamp(46px,10.5vw,90px);line-height:1.03}
 .content-hero h1,.about-hero h1,.case-head h1{font-size:clamp(42px,9.5vw,84px);line-height:1.06;overflow-wrap:anywhere}
 .content-hero,.content-section,.case-head,.case-story,.about-copy{min-width:0}
 .content-columns,.contact-layout,.about-copy,.case-description,.case-story{grid-template-columns:minmax(0,1fr);gap:28px}
 .content-columns>*,.contact-layout>*,.about-copy>*,.case-description>*,.case-story>*{min-width:0}
 .contact-line{flex-wrap:wrap;gap:24px}
 .contact-line>a{max-width:100%;overflow-wrap:anywhere}
 .contact-line>a:first-child{font-size:clamp(22px,5vw,38px)}
 .contact h2{font-size:clamp(44px,10vw,88px);line-height:1.08}
 .content-section h2,.case-story h2,.case-description h2{overflow-wrap:anywhere}
 .content-columns p,.contact-layout p,.about-copy p,.case-story p{max-width:100%}
 .cobogo-product,.cobogo-story{grid-template-columns:minmax(0,1fr)}
 .cobogo-steps{grid-template-columns:minmax(0,1fr)}
}
@media(max-width:600px){
 .hero-interactive .hero-body{display:block;padding-block:40px 30px}
 .hero-body .intro{margin-top:28px;width:100%;max-width:none}
 .hero-meta{gap:20px;flex-wrap:wrap;font-size:10px}
 .feature-title{font-size:clamp(22px,5.6vw,34px)}
 .feature-bottom{flex-wrap:wrap;gap:16px}
 .project-row{flex-direction:column;gap:28px}
 .project-row>.project-card{width:100%;flex:auto}
 .project-grid.list .project-card a{grid-template-columns:minmax(0,1fr) auto;gap:12px}
 .projects-top,.projects-toolbar{flex-wrap:wrap;gap:22px}
 .filters{flex-wrap:wrap;gap:8px 16px}
 .services,.branches{grid-template-columns:minmax(0,1fr);gap:40px}
 .timeline-intro,.timeline-card{grid-template-columns:minmax(0,1fr);gap:24px;padding-inline:0}
 .timeline-intro>p,.timeline-card>p{max-width:100%;width:100%}
 .timeline-intro h2{font-size:clamp(34px,9vw,54px)}
 .timeline-stops{gap:8px}
 .timeline-stop{min-width:0;font-size:11px}
 .timeline-stop span{overflow-wrap:anywhere}
 .footer-bottom,.footer-links{flex-wrap:wrap;gap:18px}
 .furniture-approach .statement{font-size:clamp(30px,8vw,48px)}
 .studio-bottom p{max-width:100%}
 .solid-button,.text-link{max-width:100%}
 input,textarea,select{min-width:0;max-width:100%;font-size:16px}
}
@media(prefers-reduced-motion:reduce){.mobile-menu-toggle>span{transition:none}}

@media(max-width:600px){
 .section-head{flex-direction:column;align-items:flex-start;gap:14px}
 .section-head h2{font-size:clamp(32px,8vw,44px);line-height:1.1;letter-spacing:-.05em;max-width:100%}
 .section-head>.eyebrow{max-width:100%}
 .service summary{grid-template-columns:24px minmax(0,1fr) 24px;column-gap:12px;padding-right:5px}
 .service summary>b{justify-self:center}
}

/* Reserve space for the rotating accordion indicator at every breakpoint. */
.service summary{padding-right:6px}

/* Keep desktop ordering; the branch switch belongs to the mobile drawer. */
.classic-header>.classic-logo{order:0}
.classic-nav{order:1}
.mobile-navigation>.persistent-front{order:2}
.language-switch{order:3}

/* Keep project introductions proportional on small screens. */
@media(max-width:900px){.project-overlap-content>.case-head,.furniture-case>.project-overlap-content>.content-hero{min-height:0;padding-block:64px;justify-content:flex-start}.project-overlap-content>.case-head h1{margin-block:32px 24px}.furniture-case>.project-overlap-content>.content-hero h1{margin-block:28px 0}}

/* Mobile is a reading and browsing experience; drawing stays on desktop. */
@media(max-width:900px),(pointer:coarse){
 .paint-home>canvas,.paint-home>.paint-panel,.paint-home>.paint-launcher,.paint-home>.paint-status,.paint-clear-dialog{display:none!important}
 .paint-home{background:#fff!important;--paint-ink:#111!important}
 .paint-home .hero-body em .title-word{--ink-rest:#74766a}
 .paint-home>.hero-meta,.paint-home>.hero-body{pointer-events:auto}
}
@media(max-width:900px){
 .classic-header{padding-inline:var(--pad)}
 .mobile-navigation{padding-inline:var(--pad)}
 .classic-logo.is-flipping .logo-flip-rotor{animation:none!important;transform:translateZ(calc(-1 * var(--logo-depth))) rotateX(0deg)}
 .classic-logo .logo-flip-bottom,.logo-hover-ink{display:none!important}
 .classic-logo .logo-flip-face img{mask:none!important}
 .hero-overlap>.hero{position:relative;height:auto;min-height:0;padding-top:28px}
 .hero-overlap>.hero .hero-body{margin:0;padding-top:72px;padding-bottom:44px;display:block}
 .hero-overlap>.hero .intro{margin-top:28px;max-width:38ch;font-size:16px;line-height:1.6}
 .hero-overlap>.hero .intro p{margin-bottom:20px}
 .hero-overlap>.hero h1{font-size:clamp(44px,10.5vw,76px);line-height:1.05}
 .hero-overlap-content{margin-top:0!important}
 .gravity-scroll{height:auto;min-height:0}
 .gravity-scroll>.gravity-section{position:relative;height:auto;min-height:0;padding-block:56px}
 .gravity-section .studio-statement>.eyebrow{position:static;margin-bottom:28px}
 .gravity-section .statement{white-space:normal;font-size:clamp(32px,7.6vw,52px);line-height:1.15;text-align:left}
 .gravity-section .gravity-letter{display:none!important}
 .gravity-section .gravity-sizer{visibility:visible!important}
 .gravity-section .studio-bottom{align-items:flex-start;gap:24px}
 .gravity-section .studio-bottom p{white-space:normal;text-align:left;font-size:16px;line-height:1.6}
 .gravity-section[data-gravity-ready] .studio-bottom .text-link{visibility:visible;opacity:1;transform:none;pointer-events:auto}
 .project-trail-layer,.project-cursor{display:none!important}
 .service-content>p,.service p,.services-intro,.furniture-approach .studio-bottom p{font-size:16px;line-height:1.65}
 .timeline-intro p{font-size:16px;line-height:1.6}
 .timeline-intro{grid-template-columns:minmax(0,1fr);gap:20px}
 .timeline-card p{font-size:16px;line-height:1.65}
 .timeline-stops .timeline-stop{font-size:14px;min-height:48px}
 .text-link,.gradient-link{min-height:44px;padding-block:10px}
 .footer-links a,.footer-links button{display:inline-flex;align-items:center;min-height:44px;font-size:14px}
 .footer-bottom{font-size:12px;line-height:1.5}
 .article-index nav a,.article-mobile-index summary,.article-back,.article-end{font-size:14px}
 .article-kicker>.eyebrow,.article-meta,.article-breadcrumb{font-size:12px}
 .article-hero h1{overflow-wrap:anywhere}
}
@media(max-width:700px){
 :root{--pad:20px}
 .classic-header{min-height:72px;padding-block:12px}
 .hero-overlap>.hero .hero-body{padding-top:64px}
 .hero-meta,.hero-interactive .hero-meta{font-size:12px;line-height:1.5}
 .hero-meta .status{display:none}
 .project-tools{gap:16px}
 .filters{gap:4px 16px}
 .filter{min-height:44px;font-size:14px;padding:10px 0}
 #filter-status,.project-cat,.project-caption p{font-size:13px;line-height:1.5}
 .project-name{font-size:22px;line-height:1.25}
 .feature-viewport .slide-dot{display:none}
 .feature-viewport .carousel-actions{gap:8px;width:auto;justify-content:flex-start}
 .feature-viewport .carousel-actions button{min-width:44px;min-height:44px;padding:8px;border:1px solid #fff8;background:#0005;border-radius:0;font-size:16px;text-shadow:none}
 .feature-viewport>.carousel-controls{bottom:16px;left:16px;right:16px}
 .feature-viewport .feature-bottom{padding:48px 16px 84px}
 .feature-viewport .feature-title{font-size:clamp(22px,5.8vw,30px);line-height:1.2;padding-right:0}
 .feature-bottom .eyebrow{font-size:12px;line-height:1.4}
 .service summary{font-size:22px;line-height:1.25;padding-block:20px}
 .services h2{font-size:40px;line-height:1.1}
 .services-intro{max-width:100%;margin-bottom:28px}
 .case-story{padding-block:40px;gap:20px}
 .case-story p,.content-section p,.content-section li,.about-copy p{font-size:16px;line-height:1.65}
 .case-meta{flex-direction:column;gap:8px;font-size:14px;line-height:1.5}
 .case-crumb,.breadcrumbs{font-size:13px;line-height:1.5;gap:10px}
 .case-gallery{gap:16px;padding-bottom:40px}
 .about-collage{grid-template-columns:minmax(0,1fr)}
 .contact-top{font-size:12px;line-height:1.5;gap:16px}
 .contact h2{margin-top:28px;font-size:clamp(38px,10vw,54px)}
 .contact-line>a:first-child{font-size:clamp(20px,5.4vw,28px);overflow-wrap:normal}
 .contact-line{gap:12px}
 .contact-line>.text-link{font-size:18px}
 .section-head>.eyebrow{font-size:12px;line-height:1.5}
 .article-sources li,.article-sources p{font-size:14px;line-height:1.6}
 .content-hero,.about-hero{padding-block:40px}
}

/* Tablet and phone use explicit methodology steps instead of a pinned scroll scene. */
@media(max-width:900px){
 .method-timeline{height:auto}
 .method-timeline .timeline-sticky{position:relative;height:auto;min-height:0;padding:48px var(--pad);gap:24px}
 .method-timeline .timeline-track{display:block;transform:none!important}
 .method-timeline .timeline-card{height:auto;min-height:0;padding:20px 0 8px;opacity:1!important;transform:none!important}
 .method-timeline .timeline-card h3{font-size:38px;margin:0 0 16px}
 .method-timeline .timeline-stops{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px 12px}
 .method-timeline .timeline-stop[aria-current=step]{text-decoration:underline;text-underline-offset:5px}
 .method-timeline .timeline-hint,.method-timeline .timeline-progress{display:none}
}
@media(max-width:900px) and (prefers-reduced-motion:no-preference){.method-timeline[data-timeline-ready=true] .timeline-card[inert]{display:none}}

/* Put the enquiry itself before secondary help on phones. */
@media(max-width:700px){
 .quote-layout{display:flex;flex-direction:column;gap:28px}
 .quote-layout>#project-brief{order:0;width:100%}
 .quote-layout>.quote-aside{order:1;position:static;width:100%;border-top:1px solid #ddd;padding-top:24px}
 .quote-aside>.eyebrow,.quote-aside>h2,.quote-aside>p:first-of-type{display:none}
 .quote-aside p{max-width:100%}
 .brief-steps{gap:12px;margin-bottom:24px}
 .brief-steps button{font-size:14px;min-height:64px}
 .brief-steps button>span{font-size:12px}
 #project-brief .brief-intro{font-size:16px;line-height:1.6}
 #project-brief label:not(.brief-choice):not(.form-check){font-size:16px}
 #project-brief .brief-optional{font-size:12px}
 .brief-choice small{font-size:14px;line-height:1.5}
 #project-brief .brief-choice>span{padding:16px;gap:8px;min-height:0}
 .brief-actions button,.brief-actions a{min-height:48px;font-size:16px}
 .brief-file-row{flex-wrap:wrap;gap:12px}
 .consent-dialog{padding-block:16px calc(16px + env(safe-area-inset-bottom))}
 .consent-dialog h2{font-size:18px}
 .consent-dialog #analytics-status{display:none}
 .consent-dialog .consent-actions{margin-top:12px}
 .mobile-menu-open .consent-dialog[open]{display:none}
}
@media(max-width:480px){#project-brief .brief-services{grid-template-columns:minmax(0,1fr)}}

/* Uniform list thumbnails: text length never changes the image column. */
.project-grid.list .project-image{width:100%;min-width:0;height:auto;aspect-ratio:1.65;align-self:center;overflow:hidden}
.project-grid.list .project-image>img{display:block;width:100%;height:100%;aspect-ratio:auto;object-fit:cover}
.project-grid.list .project-caption,.project-grid.list .project-caption>div{min-width:0;max-width:100%}
@media(max-width:900px){
 .project-grid.list .project-card a{grid-template-columns:minmax(0,54%) minmax(0,1fr);gap:12px;align-items:center}
 .project-grid.list .project-caption{width:100%;padding:0}
 .project-grid.list .project-name,.project-grid.list .project-cat{overflow-wrap:anywhere}
}

/* Selected projects: two equal columns on tablet, independent of desktop rows. */
@media(min-width:600px) and (max-width:1200px), (min-width:600px) and (max-width:1366px) and (any-pointer:coarse){
 #projetos .project-grid:not(.list){display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:28px 22px}
 #projetos .project-grid:not(.list) .project-row{display:contents}
 #projetos .project-grid:not(.list) .project-card{width:100%;min-width:0}
}

/* Mobile carousel controls sit in their own row below the image. */
@media(max-width:700px){
 .feature-viewport{display:grid;grid-template-columns:minmax(0,1fr);aspect-ratio:auto;overflow:visible;background:transparent}
 .feature-viewport::before{content:"";display:block;grid-area:1 / 1;aspect-ratio:.95;pointer-events:none}
 .feature-viewport .feature-slide{position:relative;inset:auto;grid-area:1 / 1;min-width:0;min-height:0;overflow:hidden}
 .feature-viewport .feature-slide>img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
 .feature-viewport .feature-bottom{padding:48px 16px 20px}
 .feature-viewport>.carousel-controls{position:static;grid-area:2 / 1;min-width:0;margin:0;padding:12px 0;border-bottom:1px solid var(--line,#ccc);color:#111;flex-direction:row;align-items:center}
 .feature-viewport .carousel-actions{width:100%;justify-content:space-between;gap:12px}
 .feature-viewport .carousel-actions button{color:#111;border:1px solid #aaa;background:#fff;text-shadow:none}
 .feature-viewport .carousel-actions button:hover,.feature-viewport .carousel-actions button:focus-visible{color:#111;background:#dbf24c;border-color:#111}
}
