/* Native-scroll narrative. The sticky scene leaves with its containing section. */
.scroll-site{overflow-x:clip;overflow-y:auto;background:#eef0e8}
.story{height:568svh;position:relative}
.story-stage{height:100svh;position:sticky;top:0;overflow:hidden;isolation:isolate}
.story-stage .backgrounds,.story-stage .veil,.story-stage .architects-entrance{position:absolute;inset:0}
.story-stage .backdrop{transition:none;will-change:opacity}
.story-stage .firm-image{background-image:url('assets/hero-street-v9.png')}
.scroll-site .landing-header{z-index:10;top:22px;right:28px;left:auto}
.story-logo{position:absolute;z-index:4;top:clamp(24px,5vh,56px);left:50%;transform:translateX(-50%);width:clamp(150px,18vw,250px)}
.story-logo img{display:block;width:100%;height:auto}
.story-stage .architects-entrance{visibility:visible;opacity:var(--intro-opacity,1);transition:none;z-index:2}
.story-stage .architects-entrance video,.story-stage .architects-static{height:75svh;bottom:0}
.scroll-site .intro-copy{position:absolute;inset:0;z-index:3;pointer-events:none;opacity:0;transition:opacity .7s ease}
.scroll-site.intro-ready .intro-copy{opacity:var(--intro-opacity,1)}
.intro-left,.intro-right{position:absolute;top:45%;width:25%;max-width:370px;margin:0}
.intro-left{left:5%}.intro-right{right:5%;font-size:clamp(15px,1.25vw,20px);line-height:1.65}
.intro-left h1{font-size:clamp(30px,3.2vw,50px);font-weight:400;line-height:1.12;letter-spacing:-.04em;margin:0 0 28px}
.intro-left em,.work-contact em{font-family:Georgia,serif;font-weight:400}
.intro-left .secondary-button{pointer-events:auto;background:#eef0e8c9}
.intro-left .secondary-button:hover{background:var(--navy)}
.scene-label{position:absolute;z-index:4;font-size:clamp(34px,4.5vw,70px);line-height:1.1;letter-spacing:-.045em;font-weight:400;opacity:0;visibility:hidden;padding:14px 22px;background:transparent;border-radius:0;backdrop-filter:none;transform:translate(-50%,-50%);left:50%;top:53%;white-space:nowrap}
.label-restauracion{left:6%;top:72%;transform:translateY(-50%)}
.label-urbano{top:82%}.label-paisajismo{top:77%}.label-inmersivo{left:57%;top:65%;font-size:clamp(30px,3.5vw,56px)}
.story-scroll-hint{position:absolute;bottom:25px;left:50%;transform:translateX(-50%);z-index:5;font-size:13px;letter-spacing:.04em;opacity:var(--intro-opacity,1);background:#eef0e8c9;padding:6px 12px}
.story-progress{position:absolute;bottom:0;left:0;right:0;height:3px;background:#0f316415;z-index:5}
.story-progress span{display:block;height:100%;width:100%;background:var(--navy);transform:scaleX(var(--story-progress,0));transform-origin:left}
.story-stage .video-urbano{left:0;width:100%}
.scroll-site[data-preview="urbano"] .veil{mask-image:radial-gradient(ellipse 25vw 60vh at 52% 78%,transparent 20%,#000 100%)}
.scroll-site[data-preview="estudio"] .veil{background:#eef0e8a8;mask-image:none}
.selected-work{position:relative;z-index:6;background:#eef0e8;padding:90px 6vw 60px}
.work-heading{display:grid;grid-template-columns:1fr 1fr;gap:60px;align-items:end;margin-bottom:45px}
.work-heading h2,.work-contact h2{font-weight:400;letter-spacing:-.045em;line-height:1.08;font-size:clamp(36px,5vw,72px);margin:0}
.work-heading p{max-width:540px;margin:0;color:var(--muted);font-size:17px;line-height:1.65}
.work-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:40px 28px}
.work-image{position:relative;aspect-ratio:4/3;overflow:hidden;background:#dbe1dc}
.work-image img{width:100%;height:100%;object-fit:cover;transition:transform .4s ease}
.work-card:hover img{transform:scale(1.03)}
.work-image small{position:absolute;bottom:10px;left:10px;background:#eef0e8df;padding:3px 8px;font-size:11px}
.work-card h3{font-size:22px;font-weight:400;line-height:1.3;margin:16px 0 5px}
.work-card p{font-size:13px;color:var(--muted);margin:0}
.work-contact{padding-top:100px;display:flex;align-items:center;justify-content:space-between;gap:40px}
.work-contact .secondary-button{min-height:52px;padding-inline:26px}
.story-footer{padding:30px 6vw 40px;display:flex;justify-content:space-between;gap:20px;font-size:15px}
.skip-story{position:fixed;left:24px;top:15px;z-index:20;transform:translateY(-200%);background:#eef0e8;padding:10px 16px}
.skip-story:focus{transform:none}
@media(max-width:800px), (max-width:1000px) and (max-height:500px){
 .story-logo{width:145px;top:26px}.scroll-site .landing-header{right:16px;top:16px}
 .story-stage .architects-entrance video,.story-stage .architects-static{height:52svh;bottom:32svh}
 .intro-left,.intro-right{position:static;width:auto;max-width:none}
 .scroll-site .intro-copy{inset:auto 22px 48px;display:grid;gap:16px;padding:18px;background:#eef0e8dc;backdrop-filter:blur(5px)}
 .intro-left{display:grid;grid-template-columns:1fr auto;gap:12px;align-items:center}.intro-left h1{font-size:27px;margin:0}.intro-left .secondary-button{font-size:12px;max-width:125px;padding:10px}
 .intro-right{font-size:13px;line-height:1.5}.story-scroll-hint{bottom:12px;font-size:11px}
 .scene-label{font-size:34px;white-space:normal;text-align:center;max-width:90%;width:max-content;padding:12px 18px}
 .label-restauracion{left:5%;top:73%;transform:translateY(-50%)}.label-inmersivo{left:50%;top:76%;font-size:30px}
 .work-heading{grid-template-columns:1fr;gap:20px}.selected-work{padding:60px 22px 40px}.work-heading p{font-size:15px}
 .work-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:28px 18px}.work-card h3{font-size:18px}.work-card p{font-size:12px}
 .work-contact{padding-top:65px;align-items:flex-start;flex-direction:column;gap:28px}.story-footer{padding-inline:22px;flex-wrap:wrap;font-size:13px}
}
@media(max-width:420px){.work-grid{grid-template-columns:1fr}.intro-left h1{font-size:24px}.intro-right{font-size:12px}.scroll-site .intro-copy{gap:12px;padding:14px}}
@media(prefers-reduced-motion:reduce){.story-stage .architects-entrance video{display:none}.story-stage .architects-static{display:block}.work-card:hover img{transform:none}.scroll-site .intro-copy{transition:none}}
.scroll-site:not(.intro-ready) .intro-copy{visibility:hidden;pointer-events:none}
.scroll-site:not(.intro-ready) .intro-copy a{pointer-events:none}
.actors-fallback .architects-entrance video{display:none}.actors-fallback .architects-static{display:block}
.scroll-site .story-stage .architects-entrance{opacity:var(--intro-opacity,1);visibility:visible}
/* The initial copy reveal is timed; its scroll fade stays locked to the figures. */
.scroll-site .intro-copy{transition:none}
.intro-ready .intro-left,.intro-ready .intro-right{animation:intro-copy-arrive .65s ease both}
@keyframes intro-copy-arrive{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:translateY(0)}}
@media(prefers-reduced-motion:reduce){.intro-ready .intro-left,.intro-ready .intro-right{animation:none}}

/* A continuous image-only mosaic: wide views, portraits and small details. */
.selected-work{padding-top:24px}
.bento-grid{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));grid-auto-rows:clamp(80px,7.5vw,125px);grid-auto-flow:dense;gap:14px}
.work-tile{display:block;position:relative;min-width:0;overflow:hidden;padding:0;border:0;border-radius:var(--media-radius);background:#e4e6dd;grid-column:span 4;grid-row:span 3;cursor:zoom-in}
.work-tile:nth-child(6n+1){grid-column:span 8;grid-row:span 4}
.work-tile:nth-child(6n+2),.work-tile:nth-child(6n+3){grid-row:span 2}
.work-tile img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .55s ease}
.work-tile:hover img{transform:scale(1.025)}
.work-tile.drawing-tile img{object-fit:contain;background:#fafaf6;padding:18px}
.work-tile.panorama-tile{grid-column:1/-1;grid-row:span 4}
.photo-dialog{max-width:96vw;max-height:96svh;width:max-content;padding:0;border:0;background:transparent;overflow:visible}
.photo-dialog::backdrop{background:#07152be8;backdrop-filter:blur(8px)}
.photo-dialog>img{display:block;width:auto;height:auto;max-width:94vw;max-height:88svh;object-fit:contain}
.photo-close{position:absolute;right:10px;top:10px;z-index:1;padding:9px 16px;background:#eef0e8e8;border:1px solid #ffffff99;border-radius:2px;font-size:14px}
@media(max-width:800px), (max-width:1000px) and (max-height:500px){.selected-work{padding:12px 12px 40px}.bento-grid{grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-rows:clamp(78px,18vw,125px);gap:10px}.work-tile,.work-tile:nth-child(6n+2),.work-tile:nth-child(6n+3){grid-column:span 1;grid-row:span 2}.work-tile:nth-child(6n+1){grid-column:span 2;grid-row:span 3}.work-tile:nth-child(6n){grid-column:span 2;grid-row:span 2}.work-tile.panorama-tile{grid-column:1/-1;grid-row:span 3}.work-contact{padding-inline:12px}}
@media(prefers-reduced-motion:reduce){.work-tile img{transition:none}.work-tile:hover img{transform:none}}

/* Give each scene a clear resting position before its next crossfade. */
.scroll-site .primary-button{background:var(--navy);color:#fff;border-color:var(--navy)}
.scroll-site .primary-button:hover,.scroll-site .primary-button:focus-visible{background:#092447;border-color:#092447;color:#fff}
.label-restauracion{top:86%}
.label-urbano{left:72%;top:84%}
.label-paisajismo{left:70%;top:35%}
.gallery-heading{padding:55px 0 60px}
.gallery-heading :is(h1,h2){margin:0;font-weight:400;font-size:clamp(36px,5vw,72px);line-height:1.1;letter-spacing:-.045em}
.gallery-heading em{font-family:Georgia,serif;font-weight:400}
@media(max-width:800px), (max-width:1000px) and (max-height:500px){.label-restauracion{top:86%}.label-urbano{left:68%;top:84%;max-width:60%}.label-paisajismo{left:70%;top:35%;max-width:56%}.gallery-heading{padding:38px 12px 40px}.gallery-heading :is(h1,h2){font-size:clamp(34px,7vw,54px)}}

/* Shared label scale; offsets retain their position within the scene. */
.scroll-site .scene-label{font-size:clamp(34px,4.5vw,70px)}
.scroll-site .label-restauracion{top:calc(86% + 40px)}
.scroll-site .label-paisajismo{top:calc(35% - 40px);left:min(calc(70% + 80px),calc(100% - 110px))}
.project-galleries{display:grid;gap:14px}
.bento-grid[data-project="168"] .work-tile:nth-child(n+7){grid-column:span 6;grid-row:span 3}
.comparison{cursor:ew-resize;--split:50%}
.comparison img{position:absolute;inset:0;transform:none!important;transition:none}
.comparison-before{clip-path:inset(0 calc(100% - var(--split)) 0 0)}
.compare-label{position:absolute;top:12px;padding:4px 9px;background:#eef0e8e0;color:var(--navy);font-size:12px;pointer-events:none;z-index:1}
.before-label{left:12px}.after-label{right:12px}
.compare-handle{position:absolute;top:0;bottom:0;left:var(--split);width:2px;background:#fff;box-shadow:0 0 4px #0005;transform:translateX(-50%);pointer-events:none}
.compare-handle::after{content:"";position:absolute;left:50%;top:50%;width:34px;height:48px;transform:translate(-50%,-50%);border:2px solid white;border-radius:20px;background:linear-gradient(90deg,transparent 40%,#fff 40%,#fff 44%,transparent 44%,transparent 56%,#fff 56%,#fff 60%,transparent 60%),#0f3164df;box-shadow:0 2px 10px #0003}
.comparison input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:ew-resize;z-index:2;touch-action:pan-y}
.comparison:focus-within{outline:3px solid var(--navy);outline-offset:3px}
@media(max-width:800px), (max-width:1000px) and (max-height:500px){.scroll-site .scene-label{font-size:34px}.project-galleries{gap:10px}.bento-grid[data-project="168"] .work-tile:nth-child(n+7){grid-column:span 1;grid-row:span 2}.compare-label{font-size:10px;top:8px;padding:3px 6px}.before-label{left:8px}.after-label{right:8px}}

/* Give the wider v2 mark twice the presence in the opening. */
.story-logo{width:clamp(225px,27vw,375px);max-width:calc(100vw - 40px)}
@media(max-width:800px), (max-width:1000px) and (max-height:500px){.story-logo{width:217.5px;top:64px}}

/* Level photographs and align comparisons within a shared 4:3 camera frame. */
.work-tile img.photo-tuned,.photo-dialog img.photo-tuned{transform:var(--photo-transform);transform-origin:center;transition:none}
.comparison-layer{position:absolute;inset:0;overflow:hidden}
.aligned-photo{position:absolute;left:50%;top:50%;width:var(--frame-width);height:var(--frame-height);transform:translate(-50%,-50%)}
.comparison .aligned-photo img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;transform:var(--photo-transform,none)!important;transform-origin:center}
.photo-dialog{overflow:hidden}

/* A direct return lands on the completed introduction, without replay. */
.intro-completed .architects-entrance video{display:none}
.intro-completed .architects-static{display:block}
.intro-completed .intro-left,.intro-completed .intro-right{animation:none}
.gallery-topbar{position:fixed;inset:0 0 auto;z-index:9;height:86px;padding:14px 6vw;display:flex;align-items:center;background:#eef0e8f5;backdrop-filter:blur(12px);opacity:0;visibility:hidden;transform:translateY(-100%);transition:opacity .25s ease,transform .25s ease,visibility .25s}
.in-gallery .gallery-topbar{opacity:1;visibility:visible;transform:none}
.gallery-home{display:block;width:180px}
.gallery-home img{display:block;width:100%;height:auto}
.in-gallery .landing-header{top:25px}
::view-transition-old(root),::view-transition-new(root){animation-duration:.3s}
@media(max-width:800px), (max-width:1000px) and (max-height:500px){.gallery-topbar{height:76px;padding:12px 22px}.gallery-home{width:150px}.in-gallery .landing-header{top:20px}}

.scroll-site .landing-header{gap:20px}
.scroll-site .projects-shortcut{font-size:14px;letter-spacing:0;padding:8px 0;white-space:nowrap}
.projects-shortcut:hover{text-decoration:underline;text-underline-offset:5px}
@media(max-width:800px), (max-width:1000px) and (max-height:500px){.scroll-site .landing-header{gap:14px}.scroll-site .projects-shortcut{font-size:13px}}

/* Once visited, the gallery follows the completed introduction directly. */
.story-completed .story{height:100svh}
.story-completed .story-progress{display:none}

/* Portrait drawings share a compact row with a photograph of the same house. */
.bento-grid[data-project="168"] .work-tile:nth-child(4),.bento-grid[data-project="168"] .work-tile:nth-child(5){grid-column:span 6;grid-row:span 3}
.bento-grid[data-project="168"] .work-tile:nth-child(6),.bento-grid[data-project="168"] .work-tile:nth-child(7){grid-column:span 3;grid-row:span 4}
.bento-grid[data-project="168"] .work-tile:nth-child(8){grid-column:span 6;grid-row:span 4}
.work-tile.drawing-tile img{padding:0;object-fit:cover}
@media(max-width:800px), (max-width:1000px) and (max-height:500px){.bento-grid[data-project="168"] .work-tile:nth-child(4),.bento-grid[data-project="168"] .work-tile:nth-child(5){grid-column:span 1;grid-row:span 2}.bento-grid[data-project="168"] .work-tile:nth-child(6),.bento-grid[data-project="168"] .work-tile:nth-child(7){grid-column:span 1;grid-row:span 3}.bento-grid[data-project="168"] .work-tile:nth-child(8){grid-column:span 2;grid-row:span 3}}

/* Match the language control's softly rounded outline. */
.scroll-site .projects-shortcut{display:inline-flex;align-items:center;justify-content:center;min-height:40px;padding:7px 14px;border:1px solid var(--navy);border-radius:5px;background:#eef0e833;line-height:24px;transition:background .2s,color .2s}
.scroll-site .projects-shortcut:hover,.scroll-site .projects-shortcut:focus-visible{background:var(--navy);color:#fff;text-decoration:none}
.scroll-site .primary-button{border-radius:5px}

/* Consistent editorial rails; copy travels upward with the scroll transition. */
.scroll-site .scene-label{top:48%;left:6vw;right:auto;width:min(38vw,540px);max-width:none;padding:0;background:none;border-radius:0;backdrop-filter:none;white-space:normal;text-align:left;transform:translate3d(0,var(--copy-y,0px),0);will-change:transform,opacity;line-height:1.1;letter-spacing:0}
.scroll-site .scene-label[data-side="right"]{left:auto;right:6vw}
.scene-title{display:block;font-size:clamp(38px,4.4vw,68px);font-weight:400;letter-spacing:-.045em;line-height:1.08}
.scene-description{display:block;max-width:390px;margin-top:20px;font-size:clamp(16px,1.35vw,21px);line-height:1.55;letter-spacing:0;font-weight:400}
.scene-label:focus-visible{outline-offset:12px}
.scroll-site .intro-copy{will-change:transform,opacity}
@media(max-width:800px), (max-width:1000px) and (max-height:500px){.scroll-site .scene-label,.scroll-site .scene-label[data-side="right"]{left:24px;right:24px;top:61%;width:auto;max-width:none;text-align:left}.scene-title{font-size:34px}.scene-description{font-size:16px;margin-top:16px;max-width:340px}}
@media(prefers-reduced-motion:reduce){.scroll-site .scene-label,.scroll-site .intro-copy{will-change:auto}}

/* The opening mark travels into the navigation as the introduction leaves. */
.story-logo{transform-origin:top left;will-change:transform;z-index:11}
.scroll-site .gallery-topbar{transform:none;transition:none;opacity:var(--nav-progress,0)}
.story-nav .gallery-topbar{visibility:visible}
.gallery-topbar .gallery-home{opacity:0}
.story-nav .gallery-topbar:not([aria-hidden="true"]) .gallery-home{opacity:1}
.scroll-site .landing-header{top:22px;gap:12px}
.scroll-site .projects-shortcut{background:#f7f8f2f2;font-weight:500}
.nav-project{display:inline-flex;min-height:40px;padding:7px 16px;opacity:1}
.story-nav .nav-project{display:inline-flex}
.scroll-site .label-arquitectura{isolation:isolate}
.label-arquitectura::before{content:"";position:absolute;z-index:-1;inset:-65px -55px;pointer-events:none;background:radial-gradient(ellipse at center,#f8f9f3f5 10%,#f8f9f3d9 38%,#f8f9f380 60%,#f8f9f300 76%)}
@media(max-width:800px), (max-width:1000px) and (max-height:500px){
 .scroll-site .gallery-topbar{height:76px;padding:12px}
 .gallery-home{width:90px}
 .scroll-site .landing-header{right:12px;top:18px;gap:8px}
 .scroll-site .projects-shortcut,.scroll-site .nav-project{font-size:12px;padding:7px 9px}
 .label-arquitectura::before{inset:-40px -24px}
}
@media(prefers-reduced-motion:reduce){.story-logo{will-change:auto}}
.scroll-site>.story-logo{position:fixed}
.intro-veil{position:absolute;inset:0;background:#eef0e8a8;pointer-events:none}
@media(max-width:370px){.gallery-home{width:65px}.scroll-site .landing-header{gap:5px;right:8px}.scroll-site .projects-shortcut,.scroll-site .nav-project{font-size:11px;padding-inline:6px}}

/* Discipline copy arrives from below and rests above the persistent footer. */
.scroll-site .scene-label,.scroll-site .scene-label[data-side="right"]{top:auto;bottom:112px}
.label-arquitectura::before{content:none}
.architecture-corner-veil{position:absolute;inset:0;pointer-events:none;opacity:0;background:radial-gradient(ellipse 76% 63% at 100% 100%,#f8f9f3 0%,#f8f9f3f2 25%,#f8f9f3a6 47%,#f8f9f340 65%,transparent 87%)}
/* Keep the urban scene's right-hand housing visible. */
.scroll-site[data-preview="urbano"] .veil{mask-image:linear-gradient(90deg,#000 0%,#0008 28%,transparent 55%)}
.scroll-site .story-footer{position:fixed;inset:auto 0 0;z-index:12;min-height:64px;padding:22px 4vw 18px;align-items:center;gap:16px;background:transparent;font-size:14px;line-height:1.4}
.ai-credit{font-size:12px;text-align:center}
.selected-work{padding-bottom:135px}
@media(max-width:800px), (max-width:1000px) and (max-height:500px){
 .scroll-site .scene-label,.scroll-site .scene-label[data-side="right"]{top:auto;bottom:130px}
 .scroll-site .story-footer{display:grid;grid-template-columns:1fr auto;gap:5px 12px;padding:18px 16px calc(12px + env(safe-area-inset-bottom));font-size:12px}
 .story-footer .ai-credit{grid-column:1/-1;grid-row:2;text-align:left;font-size:11px}
 .scroll-site .intro-copy{bottom:102px}
 .architecture-corner-veil{background:radial-gradient(ellipse 145% 58% at 100% 100%,#f8f9f3 0%,#f8f9f3eb 30%,#f8f9f380 58%,transparent 90%)}
}

/* Mobile introduction: figures meet the ground, copy stays above them. */
@media(max-width:800px), (max-width:1000px) and (max-height:500px){
 .story-stage .architects-entrance video,.story-stage .architects-static{bottom:0;height:50svh}
 .scroll-site .intro-copy{inset:146px 24px auto;padding:0;background:transparent;backdrop-filter:none;gap:14px}
 .intro-left{grid-template-columns:1fr auto;gap:12px}
 .intro-left h1{font-size:26px}
 .intro-right{font-size:13px;line-height:1.5}
}
@media(max-width:800px) and (max-height:740px){
 .story-logo{top:58px;width:190px}
 .scroll-site .intro-copy{top:126px;gap:10px}
 .intro-left h1{font-size:23px}
 .intro-right{font-size:12px;line-height:1.45}
 .story-stage .architects-entrance video,.story-stage .architects-static{height:46svh}
}
/* Restrained color and a single lower contrast zone keep attention on the subject. */
.story-stage .backdrop{filter:saturate(.58) contrast(.96) brightness(.94)}
.story-stage .backdrop[data-background="apartamento"]{filter:none;transform:none;background:#b7c9cb}
[data-background="apartamento"] canvas{display:block;width:100%;height:100%}
.apartment-fallback{background:linear-gradient(180deg,#a8c2cd 0%,#c4d0bf 58%,#a89170 59%,#d8cfc0 100%)!important}
.scroll-site .story-stage .veil{mask-image:none!important;background:linear-gradient(to top,rgba(5,20,36,.82),rgba(5,20,36,.42) 24%,transparent 56%)!important}
.architecture-corner-veil{display:none}
.intro-veil{background:linear-gradient(90deg,#071c35c9 0%,#071c3573 27%,transparent 43%,transparent 57%,#071c35a6 77%,#071c35c9 100%)}
.scroll-site .intro-copy,.scroll-site .scene-label{color:#fff}
.scroll-site .intro-right{color:#f0f1ed}
.scroll-site .scene-label{bottom:116px;width:min(36vw,500px)}
.scroll-site .scene-label[data-side="center"]{left:50%;right:auto;text-align:center;transform:translate3d(-50%,var(--copy-y,0px),0)}
.scene-description{font-size:clamp(16px,1.2vw,19px);max-width:390px;line-height:1.55;color:#f0f1ed;margin-top:16px}
.scene-label[data-side="center"] .scene-description{margin-inline:auto}
.scene-title{font-size:clamp(36px,3.7vw,58px);line-height:1.08}
.scroll-site:not(.in-gallery) .story-footer{color:#f2f3ed}
.scroll-site .gallery-topbar{height:116px;padding-top:12px;padding-bottom:42px;background:#eef0e8fa}
.discipline-nav{position:absolute;bottom:10px;left:6vw;right:6vw;display:flex;justify-content:center;align-items:center;gap:0;white-space:nowrap;font-size:12px;line-height:1.4;letter-spacing:.01em;overflow-x:auto;scrollbar-width:none}
.discipline-nav a{padding:7px 0;color:#526174}
.discipline-nav a+a::before{content:'·';display:inline-block;margin:0 17px;color:#8190a0}
.discipline-nav a[aria-current="true"]{color:var(--navy);font-weight:600}
.discipline-nav a:hover{color:var(--navy)}
.discipline-nav a:focus-visible{outline-offset:0;outline:1px solid var(--navy)}
.scroll-site .gallery-heading{padding-top:116px}
.scroll-site .story-progress{display:none}
@media(max-width:800px), (max-width:1000px) and (max-height:500px){
 .scroll-site .gallery-topbar{height:110px;padding:12px 12px 44px}
 .discipline-nav{left:16px;right:16px;bottom:7px;justify-content:flex-start;font-size:11px}
 .discipline-nav a+a::before{margin:0 10px}
 .scroll-site .scene-label,.scroll-site .scene-label[data-side="right"],.scroll-site .scene-label[data-side="center"]{left:24px;right:24px;width:auto;bottom:126px;text-align:left;transform:translate3d(0,var(--copy-y,0px),0)}
 .scene-label[data-side="center"] .scene-description{margin-inline:0}
 .scene-title{font-size:34px}.scene-description{font-size:15px;max-width:330px}
 .intro-veil{background:linear-gradient(to bottom,#071c35ad 0%,#071c35b8 35%,#071c354d 48%,transparent 65%)}
 .scroll-site .intro-copy{top:145px}
 .scroll-site .intro-left .primary-button{border-color:#d5dfed80}
}
/* Recede supporting areas without washing the subject out. These dissolve with their scene. */
.story-stage .backdrop::after{content:"";position:absolute;inset:0;pointer-events:none}
.story-stage [data-background="arquitectura"]::after{background:linear-gradient(90deg,transparent 25%,#091e3538 49%,transparent 75%)}
.story-stage [data-background="restauracion"]::after{background:linear-gradient(90deg,transparent 32%,#091e3530 52%,#091e359e 100%)}
.story-stage [data-background="urbano"]::after{background:linear-gradient(90deg,#091e354d,transparent 38%)}
.story-stage [data-background="paisajismo"]::after{background:linear-gradient(90deg,#091e355c,transparent 35%,transparent 70%,#091e3538)}
.story-stage [data-background="inmersivo"]::after{background:linear-gradient(90deg,#091e3599,transparent 78%)}
@media(max-width:800px), (max-width:1000px) and (max-height:500px){.story-stage [data-background]::after{background:none}.scroll-site>.story-logo{transition:filter .2s}}
@media(max-width:800px) and (max-height:650px){.scroll-site .intro-copy{top:126px;gap:8px}.intro-right{font-size:11.5px;line-height:1.4}.story-stage .architects-entrance video,.story-stage .architects-static{height:37svh}}
.story-stage .apartment-fallback{background:url('assets/apartment-preview.webp') center/cover no-repeat!important}
/* Keep every discipline discoverable on phones instead of clipping the final link. */
@media(max-width:800px), (max-width:1000px) and (max-height:500px){
 .scroll-site .gallery-topbar{height:134px;padding-bottom:68px}
 .discipline-nav{left:12px;right:12px;bottom:7px;justify-content:center;flex-wrap:wrap;overflow:visible;row-gap:0}
 .discipline-nav a{padding-block:4px}
 .discipline-nav a+a::before{margin-inline:8px}
 .scroll-site .intro-copy{top:156px}
 .scroll-site .gallery-heading{padding-top:142px}
}
@media(max-width:800px) and (max-height:650px){.intro-right{font-size:11px;line-height:1.35}.intro-left h1{font-size:21px}.story-stage .architects-entrance video,.story-stage .architects-static{height:33svh}}
/* Preserve the light, original introduction; the darker treatment enters with Architecture. */
.scroll-site .intro-veil{background:#eef0e8a8}
.story-stage [data-background="estudio"],.story-stage [data-background="default"]{filter:none}
.scroll-site .intro-copy,.scroll-site .intro-right{color:var(--navy)}
.scroll-site[data-preview="estudio"]:not(.in-gallery) .story-footer{color:var(--navy)}
.story-footer{transition:color .25s}
/* One navigation bar, with the disciplines centered between identity and actions. */
.scroll-site .gallery-topbar{height:86px;padding:14px 4vw;align-items:center}
.gallery-home{width:140px}
.discipline-nav{left:50%;right:auto;bottom:auto;top:50%;transform:translate(-50%,-50%);width:max-content;max-width:620px;flex-wrap:nowrap;overflow:visible;font-size:11px;justify-content:center}
.discipline-nav a{padding-block:8px}
.discipline-nav a+a::before{margin-inline:10px}
.discipline-toggle{display:none}
.scroll-site .gallery-heading{padding-top:86px}
@media(max-width:1340px){
 .discipline-toggle{display:flex;flex-direction:column;justify-content:center;gap:4px;position:absolute;left:calc(4vw + 158px);top:21px;width:40px;height:44px;padding:10px;cursor:pointer}
 .discipline-toggle span{display:block;height:1px;width:100%;background:var(--navy)}
 .discipline-nav{display:none;position:absolute;top:76px;left:4vw;right:auto;bottom:auto;transform:none;width:280px;max-width:calc(100vw - 32px);padding:16px 22px;background:#eef0e8;box-shadow:0 12px 26px #071c351c;border-radius:5px;font-size:14px;align-items:stretch;text-align:left}
 .menu-open .discipline-nav{display:flex;flex-direction:column}
 .discipline-nav a{padding:10px 0}
 .discipline-nav a+a::before{content:none}
}
@media(max-width:800px), (max-width:1000px) and (max-height:500px){
 .scroll-site .gallery-topbar{height:76px;padding:12px}
 .gallery-home{width:64px}
 .discipline-toggle{left:82px;top:16px;width:32px;height:44px;padding:8px}
 .discipline-nav{top:68px;left:12px}
 .scroll-site .intro-copy{top:146px}
 .scroll-site .gallery-heading{padding-top:86px}
}
@media(max-width:370px){.gallery-home{width:46px}.discipline-toggle{left:61px;width:30px}}

/* Blue reading zones, with no full-image dimming or late wash over the scene. */
.story-stage .backdrop{filter:none}
.story-stage [data-background]::after{background:none}
.scroll-site .intro-veil{background:linear-gradient(to bottom,#071c3566,transparent 22%),linear-gradient(90deg,#071c3599 0%,#071c3573 24%,transparent 42%,transparent 58%,#071c3573 78%,#071c3599 100%)}
.scroll-site .intro-copy,.scroll-site .intro-right{color:#fff}
.scroll-site[data-preview="estudio"]:not(.in-gallery) .story-footer{color:#f2f3ed}
.scroll-site>.story-logo{transition:filter .2s}
@media(max-width:800px), (max-width:1000px) and (max-height:500px){.scroll-site .intro-veil{background:linear-gradient(to bottom,#071c3573 0%,#071c3599 36%,#071c3540 49%,transparent 65%)}}
/* A lighter entrance leaves the walking figures and architecture visible. */
.scroll-site .intro-veil{background:linear-gradient(to bottom,#071c3540,transparent 19%),linear-gradient(90deg,#071c354d 0%,#071c3533 25%,transparent 43%,transparent 57%,#071c3533 78%,#071c354d 100%)}
.intro-left,.intro-right{top:auto;bottom:118px}
@media(max-width:800px), (max-width:1000px) and (max-height:500px){
 .scroll-site .intro-copy{inset:auto 24px 108px;gap:12px}
 .intro-left,.intro-right{position:static;bottom:auto}
 .scroll-site .intro-veil{background:linear-gradient(to bottom,#071c3540 0%,transparent 24%,transparent 55%,#071c3533 100%)}
}
/* On phones, lower the copy into the space just above the figures rather than over their faces. */
@media(max-width:800px), (max-width:1000px) and (max-height:500px){.scroll-site .intro-copy{bottom:calc(50svh + 20px)}}
@media(max-width:800px) and (max-height:740px){.scroll-site .intro-copy{bottom:calc(46svh + 16px)}}
@media(max-width:800px) and (max-height:650px){.scroll-site .intro-copy{bottom:calc(33svh + 16px)}}

/* Keep the entire central walking path clear, including the feet. */
.scroll-site .intro-veil{background:linear-gradient(90deg,#071c3573 0%,#071c3540 22%,transparent 36%,transparent 64%,#071c3540 78%,#071c3573 100%)}
@media(max-width:800px), (max-width:1000px) and (max-height:500px){.scroll-site .intro-veil{background:linear-gradient(90deg,#071c3552 0%,#071c3526 12%,transparent 25%,transparent 75%,#071c3526 88%,#071c3552 100%)}}
/* Slightly stronger reading contrast; the corrected figures remain on a separate layer. */
.scroll-site .intro-veil{background:linear-gradient(90deg,#071c3594 0%,#071c3561 22%,transparent 38%,transparent 62%,#071c3561 78%,#071c3594 100%)}
@media(max-width:800px), (max-width:1000px) and (max-height:500px){.scroll-site .intro-veil{background:linear-gradient(to bottom,#071c351a 0%,#071c354d 36%,transparent 56%),linear-gradient(90deg,#071c3566 0%,#071c3533 12%,transparent 28%,transparent 72%,#071c3533 88%,#071c3566 100%)}}
/* Contact and studio information follows the home-page story. */
.discipline-nav{font-size:14px;max-width:730px}
.discipline-nav a+a::before{margin-inline:12px}
.home-contact{position:relative;z-index:6;background:#eef0e8;padding:130px 6vw 140px;color:var(--navy)}
.contact-intro{display:grid;grid-template-columns:1fr 1fr;gap:60px;align-items:center;padding-bottom:80px;border-bottom:1px solid var(--rule);margin-bottom:80px}
.contact-eyebrow{font-size:14px;margin:0 0 18px;color:var(--muted)}
.contact-intro h2{font-size:clamp(40px,4.5vw,68px);letter-spacing:-.04em;font-weight:400;line-height:1.1;margin:0}
.contact-address>a:first-child{font-size:clamp(22px,2.3vw,35px);letter-spacing:-.02em;overflow-wrap:anywhere;text-decoration:none;text-underline-offset:7px;text-decoration-thickness:1px}
.contact-address p{color:var(--muted);margin:14px 0 25px}
.home-studio{display:grid;grid-template-columns:1fr 1fr;gap:60px}
.home-studio .section-heading{grid-column:2;grid-row:1;align-self:center}
.home-studio .section-heading h2{font-size:clamp(32px,3.2vw,48px);font-weight:400;line-height:1.1;letter-spacing:-.035em;margin:0 0 24px}
.home-studio .section-script{font-family:Georgia,serif;font-style:italic;font-size:21px;line-height:1.5;margin:0 0 24px}
.home-studio .studio-grid{display:contents}
.home-studio .studio-portrait{grid-column:1;grid-row:1;margin:0;align-self:center}
.home-studio .studio-portrait img{display:block;width:100%;height:auto;border-radius:var(--media-radius)}
.home-studio figcaption{font-size:12px;color:var(--muted);margin-top:10px}
.home-studio .story-row{grid-column:1/-1;grid-template-columns:.8fr 1.2fr;gap:8%;margin:0;padding:40px 0 0}
.home-studio .story-row h2{font-size:32px}
.home-studio .story-row p,.home-studio .studio-origin p{font-size:16px;line-height:1.7;color:var(--muted)}
.home-studio details>ul:not(.credentials){padding-left:20px;line-height:1.7;color:var(--muted)}
.home-studio details>ul>li{margin-bottom:12px}
.in-gallery .ai-credit{display:none}
.projects-header{position:fixed;top:0;left:0;right:0;z-index:15;background:#eef0e8f5;backdrop-filter:blur(12px);display:flex;align-items:center;justify-content:space-between;padding:16px 6vw;gap:20px;min-height:86px}
.projects-header>a img{display:block;width:150px;height:auto}
.projects-header nav{display:flex;align-items:center;gap:24px;font-size:15px}
.projects-page .selected-work{padding-top:60px}
@media(max-width:1340px){.discipline-nav{font-size:15px}.discipline-nav a+a::before{content:none}}
@media(max-width:800px), (max-width:1000px) and (max-height:500px){
 .home-contact{padding:106px 24px 125px}
 .contact-intro{grid-template-columns:1fr;gap:28px;margin-bottom:46px;padding-bottom:46px}
 .home-studio{grid-template-columns:1fr;gap:32px}
 .home-studio .section-heading,.home-studio .studio-portrait,.home-studio .story-row{grid-column:1;grid-row:auto}
 .home-studio .studio-portrait{grid-row:2}
 .home-studio .story-row{grid-template-columns:1fr;gap:12px}
 .home-studio .credentials{grid-template-columns:1fr}
 .projects-header{padding:16px;min-height:76px;gap:12px}
 .projects-header>a img{width:95px}
 .projects-header nav{gap:12px;font-size:13px}
 .projects-header .secondary-button{padding:8px 12px;min-height:40px}
 .projects-page .selected-work{padding-top:40px}
}
@media(max-width:370px){.projects-header>a img{width:72px}.projects-header nav{gap:8px}}
/* Each project is a compact, self-contained photo selection with a quiet caption. */
.projects-page .project-galleries{display:grid;gap:64px}
.project-image-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.project-image-grid[data-count="6"]{grid-template-columns:repeat(3,minmax(0,1fr))}
.project-image-grid .work-tile,.project-image-grid .work-tile:nth-child(n){grid-column:auto;grid-row:auto;aspect-ratio:4/3}
.project-name{font-size:19px;letter-spacing:-.015em;font-weight:400;line-height:1.4;margin:18px 0 0}
.project-image-grid .comparison-layer,.project-image-grid .compare-handle{will-change:clip-path,left}
@media(max-width:800px), (max-width:1000px) and (max-height:500px){
 .projects-page .project-galleries{gap:42px}
 .project-image-grid,.project-image-grid[data-count="6"]{display:grid;grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:85%;gap:12px;overflow-x:auto;scroll-snap-type:x proximity;padding-bottom:10px;scrollbar-width:thin;scrollbar-color:#0f31644d transparent}
 .project-image-grid .work-tile{scroll-snap-align:start}
 .project-name{font-size:17px;margin-top:10px}
}
.project-caption{display:flex;align-items:baseline;justify-content:space-between;gap:12px;flex-wrap:wrap}
.project-controls{display:none}
.project-image-grid:focus-visible{outline:2px solid var(--navy);outline-offset:4px}
@media(max-width:800px), (max-width:1000px) and (max-height:500px){.project-controls{display:flex;gap:14px;font-size:12px}.project-controls button{padding:8px 0}.project-controls button:disabled{opacity:.35;cursor:default}}
/* Room to arrive and a calm buffer before an intentional return to the opening. */
.home-contact{padding-top:220px}
.story-completed .story-stage{visibility:hidden}
.contact-intro h2{font-family:Georgia,'Times New Roman',serif;color:#35332e;font-size:clamp(44px,5.2vw,78px)}
.contact-intro h2 em{color:var(--navy);font-weight:400}
.contact-description{font-size:18px;line-height:1.7;max-width:570px;color:var(--muted);margin:28px 0 0}
.home-studio .studio-portrait{grid-column:1;grid-row:1}
.team-summary{grid-column:2;align-self:center}
.team-eyebrow{font-size:12px;letter-spacing:.035em;margin:0 0 12px;color:var(--muted)}
.team-summary h2{font-size:38px;font-weight:400;letter-spacing:-.035em;line-height:1.15;margin:0 0 20px}
.team-lead{font-size:17px;line-height:1.7;color:var(--muted);margin:0 0 28px}
.team-person{border-top:1px solid var(--rule);padding:15px 0}
.team-person h3{font-size:15px;line-height:1.4;font-weight:400;margin:0 0 6px}
.team-person p{font-size:15px;line-height:1.65;color:var(--muted);margin:0}
.team-link{display:inline-block;margin-top:24px;padding:10px 0;border-bottom:1px solid #0f316455;font-size:15px}
.team-link:hover{border-color:var(--navy)}
@media(max-width:800px), (max-width:1000px) and (max-height:500px){.home-contact{padding-top:160px}.contact-description{font-size:16px}.team-summary{grid-column:1;grid-row:2}.home-studio .studio-portrait{grid-column:1;grid-row:1}.team-summary h2{font-size:34px}}
.story-completed .story-stage{opacity:0;pointer-events:none}
/* Keep the gallery comfortably sized on wide screens, with flexible mobile gutters. */
.projects-page main{width:100%;max-width:1280px;margin-inline:auto}
.projects-page .selected-work{padding-inline:32px}
@media(max-width:800px), (max-width:1000px) and (max-height:500px){.projects-page .selected-work{padding-inline:16px}}
/* Keep the opening copy legible over every part of the moving background. */
.scroll-site .intro-veil{background:linear-gradient(to bottom,#071c3533,transparent 18%),linear-gradient(90deg,#071c35a6 0%,#071c3599 28%,transparent 43%,transparent 57%,#071c3599 72%,#071c35a6 100%)}
.scroll-site .intro-right{font-size:clamp(17px,1.25vw,20px);line-height:1.65;color:#fff}
.scroll-site .intro-left .primary-button{border-color:#ffffff80}
@media(max-width:800px), (max-width:1000px) and (max-height:500px){
 .scroll-site .intro-veil{background:linear-gradient(to bottom,#071c3526 0%,#071c359e 24%,#071c359e 57%,transparent 78%)}
 .scroll-site .intro-right{font-size:13px;line-height:1.5}
}
@media(max-width:800px) and (max-height:650px){.scroll-site .intro-right{font-size:11px;line-height:1.4}}

.projects-contact{max-width:1280px;margin:auto;padding:100px 32px 140px;scroll-margin-top:86px}
.projects-contact .contact-intro{border-bottom:0;margin-bottom:0;padding-bottom:0}
.projects-page #proyectos{scroll-margin-top:86px}
@media(max-width:800px), (max-width:1000px) and (max-height:500px){.projects-contact{padding:80px 24px 120px;scroll-margin-top:76px}}

/* Give the navigation identity more presence without crowding its controls. */
.gallery-home{width:180px}
@media(min-width:801px) and (max-width:1340px){.discipline-toggle{left:calc(4vw + 198px)}}
@media(max-width:800px), (max-width:1000px) and (max-height:500px){.gallery-home{width:80px}.discipline-toggle{left:98px}}
@media(max-width:370px){.gallery-home{width:58px}.discipline-toggle{left:73px}}
@media(max-width:340px){
 .scroll-site .landing-header{gap:4px;right:6px}
 .scroll-site .projects-shortcut,.scroll-site .nav-project{padding-inline:4px}
 .landing-header .ui-controls .atelier-language .btn{min-width:28px;padding-inline:4px}
}

/* Center the navigation contents within a slightly wider companion to the gallery. */
@media(min-width:1341px){
 .scroll-site .gallery-topbar{padding-inline:max(32px,calc((100vw - 1400px)/2))}
 .scroll-site .landing-header{right:max(32px,calc((100vw - 1400px)/2))}
}

/* Project disciplines share a quiet rhythm; drawings retain their complete sheets. */



.project-discipline{scroll-margin-top:112px;margin-bottom:88px}
.discipline-heading{font-size:clamp(25px,3vw,38px);font-weight:400;letter-spacing:-.03em;margin:0 0 30px}
.portfolio-boards,.immersive-projects{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}
.portfolio-board,.video-project{margin:0;min-width:0}
.portfolio-board .board-tile{width:100%;grid-column:auto;grid-row:auto;aspect-ratio:2448/1584;background:white}
.portfolio-board .board-tile img{position:static;display:block;width:100%;height:100%;object-fit:var(--board-fit,contain);object-position:center;transform:none}
.portfolio-board figcaption,.video-project figcaption{margin-top:16px}
.portfolio-board h3,.video-project h3{font-size:18px;line-height:1.5;font-weight:400;margin:0}
.portfolio-board figcaption p{font-size:13px;margin:5px 0 0;color:var(--muted)}
.office-references{display:grid;grid-template-columns:1fr 2fr;gap:32px;margin-top:36px;padding-top:28px;border-top:1px solid var(--rule)}
.office-references h3{font-size:18px;font-weight:400;margin:0 0 8px}
.office-references p{font-size:14px;color:var(--muted);margin:0;max-width:340px}
.office-references ul{list-style:none;padding:0;margin:0;display:grid;grid-template-columns:1fr 1fr;gap:12px 24px;align-content:start}
.office-references a,.video-project figcaption a{font-size:14px;text-decoration:none;text-underline-offset:5px}
.office-references a:hover,.video-project figcaption a:hover{text-decoration:underline}
.landscape-layout{display:grid;grid-template-columns:2fr 1fr;gap:32px;align-items:start}
.landscape-layout .office-references{display:block;margin:0;padding:0;border:0}
.landscape-layout .office-references ul{grid-template-columns:1fr;margin-top:24px}
.video-project video{display:block;width:100%;aspect-ratio:16/9;background:#0b1928;object-fit:contain;border-radius:var(--media-radius)}
.video-project figcaption{display:flex;justify-content:space-between;align-items:baseline;gap:12px;flex-wrap:wrap}
@media(max-width:800px), (max-width:1000px) and (max-height:500px){

 .project-discipline{margin-bottom:60px;scroll-margin-top:96px}
 .portfolio-boards,.immersive-projects,.landscape-layout{grid-template-columns:1fr;gap:32px}
 .office-references{grid-template-columns:1fr;gap:20px}
 .office-references ul{grid-template-columns:1fr}
}

/* The supplied VR-to-apartment film replaces the temporary WebGL study. */
.story-stage .video-vr-journey{left:0;width:100%;mask-image:none}
.vr-transition-reduced{display:none}
@media(prefers-reduced-motion:reduce){
 [data-background="inmersivo"] .video-vr-journey,
 [data-background="inmersivo"] .vr-transition-poster{display:none}
 [data-background="inmersivo"] .vr-transition-reduced{display:block}
}

/* Separate the landscape portfolio board from Mariana's KVR project references. */
.landscape-layout .office-references{border-left:1px solid var(--rule);padding-left:28px;align-self:stretch}
@media(max-width:800px), (max-width:1000px) and (max-height:500px){.landscape-layout .office-references{border-left:0;border-top:1px solid var(--rule);padding:24px 0 0}}

/* Navigation states: outlined actions, quiet hover, solid selected item. */
.scroll-site .landing-header>a{
 background:transparent;color:var(--navy);border:1px solid var(--navy);
 border-radius:var(--button-radius);box-shadow:none;text-decoration:none;
 transition:background-color .18s,color .18s,border-color .18s;
}
.scroll-site .landing-header>a:hover,.scroll-site .landing-header>a:focus-visible{background:#0f316410;color:var(--navy);border-color:var(--navy);box-shadow:none;text-decoration:none}
.scroll-site .landing-header>a[aria-current="page"],
.scroll-site .landing-header>a[aria-current="location"]{background:var(--navy);color:white;border-color:var(--navy);box-shadow:none}
.discipline-nav{gap:16px}
.discipline-nav a{position:relative;padding:8px 6px;border-radius:var(--button-radius);background:transparent;transition:background-color .18s,color .18s;text-decoration:none}
.discipline-nav a+a::before{content:'·';position:absolute;left:-11px;top:50%;transform:translateY(-50%);margin:0;color:#8190a0;pointer-events:none}
.discipline-nav a:hover,.discipline-nav a:focus-visible{background:#0f316410;color:var(--navy);text-decoration:none}
.discipline-nav a[aria-current="true"]{background:transparent;color:var(--navy);font-weight:700}
.scroll-site:not(.story-nav) .landing-header>a{color:white;border-color:#ffffffb3}
.scroll-site:not(.story-nav) .landing-header>a:hover{background:#ffffff1a}
@media(max-width:1340px){.discipline-nav{gap:4px}.discipline-nav a{padding:10px 12px}.discipline-nav a+a::before{content:none}}

/* A quieter introduction to the project gallery. */
.projects-page .gallery-heading :is(h1,h2){font-size:clamp(30px,3.8vw,54px);line-height:1.15}
@media(max-width:800px), (max-width:1000px) and (max-height:500px){.projects-page .gallery-heading :is(h1,h2){font-size:clamp(28px,5.5vw,40px)}}

/* Clip both comparison layers to the same rounded card outline. */
.projects-page .work-tile{border-radius:var(--media-radius);overflow:hidden;isolation:isolate}

/* Mobile galleries use two columns for both photos and comparison cards. */
@media(min-width:801px) and (max-width:1100px){
 .project-image-grid[data-count="6"]{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:800px), (max-width:1000px) and (max-height:500px){
 .project-image-grid,.project-image-grid[data-count="6"]{
  grid-template-columns:repeat(2,minmax(0,1fr));grid-auto-flow:row;grid-auto-columns:auto;
  overflow:visible;scroll-snap-type:none;padding-bottom:0;gap:12px;
 }
 .project-image-grid .comparison{grid-column:auto!important}
 .project-controls{display:none}
 .projects-page .selected-work{padding-top:24px}
 .projects-page .gallery-heading{padding:80px 0 36px}
 .project-caption{margin-top:4px}
 .project-discipline{margin-bottom:52px}
 .portfolio-board h3,.video-project h3{font-size:17px}
 .video-project figcaption a{display:inline-flex;align-items:center;min-height:44px}
 .office-references a{display:inline-block;padding-block:8px}
 .office-references ul{gap:2px}
 .photo-close{min-height:44px;min-width:64px}
 .scroll-site .story-footer{gap:4px 10px;font-size:11px}
}
@media(max-width:370px){
 .scroll-site .story-footer{grid-template-columns:1fr;padding:8px 16px calc(8px + env(safe-area-inset-bottom));gap:2px}
 .story-footer .ai-credit{grid-column:1;grid-row:auto;font-size:10px}
 .scroll-site .scene-title{font-size:30px}
 .scroll-site .scene-description{font-size:14px}
}
/* Short landscape screens need a compact reading band below the navigation. */
@media(min-width:801px) and (max-width:1100px) and (max-height:550px){
 .scroll-site .intro-left,.scroll-site .intro-right{bottom:76px}
 .scroll-site .intro-left h1{font-size:28px;line-height:1.08}
 .scroll-site .intro-right{font-size:13px;line-height:1.5}
 .scroll-site .scene-title{font-size:30px}
 .scroll-site .scene-description{font-size:13px;line-height:1.5}
 .scroll-site .scene-label,.scroll-site .scene-label[data-side="right"]{bottom:80px}
 .scroll-site .story-footer{font-size:11px;min-height:48px;padding-block:12px}
 .story-footer .ai-credit{font-size:10px}
}

/* Mobile header: identity, Contacto, then menu at the far right. */
.mobile-team-link{display:none}
.section-page:not(.studio-page).scroll-site .inner-main{padding-top:130px}
@media(max-width:800px), (max-width:1000px) and (max-height:500px){
 .scroll-site .gallery-topbar .gallery-home{width:100px}
 .scroll-site .landing-header{left:auto;right:68px;top:16px;gap:0}
 .scroll-site .landing-header .nav-project{min-height:44px;padding:9px 14px;font-size:14px}
 .scroll-site .gallery-topbar .discipline-toggle{left:auto;right:12px;top:16px;width:44px;height:44px;padding:12px}
 .scroll-site .discipline-nav{left:auto;right:12px;top:68px;width:min(340px,calc(100vw - 24px));max-height:calc(100svh - 88px);overflow-y:auto;overscroll-behavior:contain;padding:16px;gap:4px}
 .scroll-site .discipline-nav a{display:flex;align-items:center;min-height:44px;font-size:15px;padding:10px 12px}
 .scroll-site .discipline-nav .projects-shortcut{background:transparent;border:0;line-height:1.4;justify-content:flex-start;margin-bottom:4px}
 .scroll-site .discipline-nav .projects-shortcut:hover{background:#0f316410;text-decoration:none;color:var(--navy)}
 .scroll-site .discipline-nav .projects-shortcut[aria-current="page"]{background:var(--navy);color:white}
 .scroll-site .discipline-nav .ui-controls{margin-top:12px;padding:16px 12px 4px;border-top:1px solid var(--rule)}
 .scroll-site .discipline-nav .atelier-language .btn{min-width:52px;min-height:44px;font-size:14px}
 .section-page:not(.studio-page).scroll-site .inner-main{padding-top:106px}
}

/* Mobile landing: copy starts below the header; the architects stand at street level. */
@media(max-width:800px), (max-width:1000px) and (max-height:500px){
 .scroll-site .intro-copy{inset:96px 24px auto;gap:14px}
 .story-stage .architects-entrance video,.story-stage .architects-static{height:64svh;bottom:0}
 .scroll-site .intro-veil{background:linear-gradient(to bottom,#071c3570 0%,#071c359e 12%,#071c359e 32%,transparent 58%)}
}
@media(max-width:800px) and (max-height:740px){
 .scroll-site .intro-copy{top:88px;gap:10px}
 .story-stage .architects-entrance video,.story-stage .architects-static{height:60svh}
}
@media(max-width:800px) and (max-height:650px){
 .scroll-site .intro-copy{top:80px;gap:8px}
 .story-stage .architects-entrance video,.story-stage .architects-static{height:54svh}
}

/* Give the scrolling disciplines a clearer reading hierarchy. */
.scroll-site .scene-title{font-size:clamp(40px,4.15vw,64px)}
.scroll-site .scene-description{font-size:clamp(18px,1.4vw,22px);max-width:440px}
@media(max-width:800px), (max-width:1000px) and (max-height:500px){
 .scroll-site .scene-title{font-size:38px}
 .scroll-site .scene-description{font-size:17px;max-width:370px}
}
@media(max-width:370px){
 .scroll-site .scene-title{font-size:34px}
 .scroll-site .scene-description{font-size:16px}
}
@media(min-width:801px) and (max-width:1100px) and (max-height:550px){
 .scroll-site .scene-title{font-size:34px}
 .scroll-site .scene-description{font-size:15px}
}

/* Responsive audit: stable native scroll distances and unobstructed reading areas. */
.story{height:var(--story-height,685svh)}
.story-completed .story{height:100svh}
.scroll-site .intro-copy{transition:none}
.scroll-site .scene-description{max-width:34ch}
.scroll-site .intro-right{max-width:36ch}
.photo-dialog{max-height:calc(100dvh - 32px)}
.photo-dialog>img{max-height:calc(100dvh - 96px)}
.photo-close{position:absolute;top:8px;right:8px;z-index:2;background:#eef0e8;color:var(--navy);border:1px solid #0f316433;border-radius:var(--button-radius)}
html:has(.photo-dialog[open]){overflow:hidden}
@media(max-width:800px), (max-width:1000px) and (max-height:500px){
 .scroll-site .intro-copy{top:calc(92px + env(safe-area-inset-top));left:max(20px,env(safe-area-inset-left));right:max(20px,env(safe-area-inset-right))}
 .scroll-site .intro-right{max-width:52ch;font-size:14px;line-height:1.5}
 .scroll-site .scene-label,.scroll-site .scene-label[data-side="right"],.scroll-site .scene-label[data-side="center"]{left:max(24px,env(safe-area-inset-left));right:max(24px,env(safe-area-inset-right));bottom:calc(100px + env(safe-area-inset-bottom))}
 .scroll-site .scene-title{font-size:clamp(32px,9vw,38px);text-wrap:balance}
 .scroll-site .scene-description{font-size:17px;line-height:1.45}
 .scroll-site .gallery-topbar{padding-top:calc(12px + env(safe-area-inset-top));height:calc(76px + env(safe-area-inset-top))}
 .scroll-site .landing-header,.scroll-site .gallery-topbar .discipline-toggle{top:calc(16px + env(safe-area-inset-top))}
 .scroll-site .discipline-nav{top:calc(68px + env(safe-area-inset-top));max-height:calc(100dvh - 88px - env(safe-area-inset-top) - env(safe-area-inset-bottom));overflow-y:auto}
 .scroll-site .intro-left .primary-button{min-height:44px;display:inline-flex;align-items:center;justify-content:center}
}
@media(max-width:370px){
 .scroll-site .intro-copy{top:88px;gap:10px}
 .scroll-site .intro-right{font-size:13px;line-height:1.45}
 .scroll-site .scene-description{font-size:16px}
 .scroll-site .intro-left{grid-template-columns:1fr;gap:10px}
 .scroll-site .intro-left h1{font-size:24px}
 .scroll-site .intro-left .primary-button{justify-self:start;max-width:none}
}
@media(max-width:1000px) and (max-height:500px){
 .scroll-site .intro-copy{inset:90px auto auto 24px;width:44%;display:grid;gap:10px}
 .scroll-site .intro-left,.scroll-site .intro-right{position:static;width:auto;max-width:none}
 .scroll-site .intro-left{display:flex;flex-direction:column;align-items:flex-start;gap:10px}
 .scroll-site .intro-left h1{font-size:24px;margin:0;line-height:1.08}
 .scroll-site .intro-right{font-size:13px;line-height:1.4}
 .scroll-site .intro-left .primary-button{font-size:12px;padding:8px 12px;min-height:40px}
 .story-stage .architects-entrance video,.story-stage .architects-static{left:76%;height:78svh;bottom:0}
 .scroll-site .intro-veil{background:linear-gradient(90deg,#071c35b3, #071c3580 40%,transparent 68%)}
 .scroll-site .scene-label,.scroll-site .scene-label[data-side="right"],.scroll-site .scene-label[data-side="center"]{left:24px;right:auto;width:min(65vw,540px);bottom:76px;text-align:left;transform:translate3d(0,var(--copy-y,0px),0)}
 .scroll-site .scene-title{font-size:30px}
 .scroll-site .scene-description{font-size:15px;margin-top:10px;max-width:45ch}
 .scroll-site .story-footer{min-height:44px;padding-block:8px;font-size:10px}
 .story-footer .ai-credit{font-size:9px}
}
@media(prefers-reduced-motion:reduce){
 .scroll-site *, .scroll-site *::before,.scroll-site *::after{scroll-behavior:auto!important;animation:none!important;transition:none!important}
}
.photo-controls{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:8px;background:#eef0e8;color:var(--navy)}
.photo-controls button{min-height:44px;padding:8px 14px;border:1px solid var(--rule);border-radius:var(--button-radius);font-size:14px}
.photo-controls button:hover{background:#0f316410}
.photo-counter{font-size:13px;white-space:nowrap}
.photo-dialog>img{max-height:calc(100dvh - 112px)}
.gallery-heading h1{font-weight:400;margin:0;letter-spacing:-.045em}

/* Keep scene crossfades below the reading masks and foreground people. */
.story-stage .backgrounds{z-index:0;isolation:isolate}
.story-stage .veil,.story-stage .intro-veil,.story-stage .architecture-corner-veil{z-index:1}

/* Static introduction: the first scroll carries the logo into the navigation. */
.home-studio{display:block}
.home-studio .team-summary{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:60px;align-items:start}
.team-introduction{max-width:480px}
.team-biographies{min-width:0}
.home-studio .team-person:first-child{padding-top:0;border-top:0}
@media(max-width:800px), (max-width:1000px) and (max-height:500px){
 .scroll-site>.story-logo{top:calc(76px + env(safe-area-inset-top));width:210px}
 .scroll-site .intro-copy{top:calc(174px + env(safe-area-inset-top));width:auto}
 .home-studio .team-summary{grid-template-columns:1fr;gap:24px}
 .team-introduction{max-width:560px}
 .team-lead{margin-bottom:0}
 .scroll-site .intro-veil{background:linear-gradient(to bottom,#071c3580 0%,#071c35b3 24%,#071c359e 52%,transparent 82%)}
}
@media(max-width:1000px) and (max-height:500px){
 .scroll-site>.story-logo{top:22px;left:24px;width:190px;margin-left:95px}
 .scroll-site .intro-copy{top:100px;right:24px;display:grid;grid-template-columns:1fr 1fr;gap:28px}
 .scroll-site .intro-veil{background:linear-gradient(to bottom,#071c3580,#071c35b3 45%,#071c3580 75%,#071c3533)}
}

/* Keep both language choices legible over the landing photograph. */
.landing.scroll-site:not(.story-nav) .landing-header .atelier-language{background:#102c48cc;border-color:#ffffffb3}
.landing.scroll-site:not(.story-nav) .landing-header .atelier-language .btn:not([aria-pressed="true"]){color:#fff}
.landing.scroll-site:not(.story-nav) .landing-header .atelier-language .btn:not([aria-pressed="true"]):hover{background:#ffffff26;color:#fff}
.landing.scroll-site:not(.story-nav) .landing-header .atelier-language .btn:focus-visible{outline-color:#fff}

/* Mobile navigation stays available before the logo moves into the top bar. */
@media(max-width:800px), (max-width:1000px) and (max-height:500px){
 .landing.scroll-site .gallery-topbar{visibility:visible;opacity:1;pointer-events:none;background:rgba(238,240,232,calc(var(--nav-progress,0)*.98));backdrop-filter:blur(calc(var(--nav-progress,0)*12px))}
 .landing.scroll-site .gallery-topbar :is(.discipline-toggle,.discipline-nav,.gallery-home){pointer-events:auto}
 .landing.scroll-site .gallery-topbar.menu-open{z-index:12}
 .landing.scroll-site .discipline-toggle{color:color-mix(in srgb,#fff,var(--navy) calc(var(--nav-progress,0)*100%));border-radius:var(--button-radius)}
 .landing.scroll-site .discipline-toggle span{background:currentColor}
 .landing.scroll-site .discipline-toggle:hover{background:#ffffff20}
 .landing.scroll-site .discipline-toggle:focus-visible{outline:2px solid currentColor;outline-offset:2px}
}

/* Keep the mobile footer readable when page content reaches its fixed position. */
@media(max-width:800px), (max-width:1000px) and (max-height:500px){
 .scroll-site:is(.in-gallery,.footer-over-content) .story-footer{background:#eef0e8;color:var(--navy);border-top:1px solid var(--rule)}
 .scroll-site.footer-over-content .story-footer .ai-credit{display:none}
}
