:root {
  --paper:#f8f5ee; --ink:#2c2b26; --rule:#d6cfc2; --gutter:clamp(24px,5.4vw,100px);
}
.home .mast { padding:15px var(--gutter); min-height:74px; background:#f8f5ee; color:var(--ink); border-bottom:1px solid #e2dbcf; }
.home .mast-cta { border-radius:0; border-color:#aa9d88; }
.home .mast-cta:hover { background:#39352e; }
.cover { position:relative; isolation:isolate; min-height:clamp(475px,calc(95svh - 74px),1050px); display:flex; align-items:flex-end; color:#fffaf1; background:#61594d; }
.cover-media,.cover-media img,.cover-film,.cover-media::after { position:absolute; inset:0; width:100%; height:100%; }
.cover-media { z-index:-1; overflow:hidden; }
.cover-media img,.cover-film { object-fit:cover; object-position:50% 12%; }
.cover-film { opacity:0; transition:opacity .35s ease; }
.cover-film.played { opacity:1; }
.cover-media::after { content:''; background:linear-gradient(0deg,#1a1712b3,transparent 61%),linear-gradient(90deg,#28241f5c,transparent 65%); pointer-events:none; }
.cover-copy { margin:0 var(--gutter) clamp(86px,12vh,142px); }
.cover h1 { font-size:clamp(4.7rem,8.6vw,10rem); line-height:.89; letter-spacing:-.044em; }
.cover h1 em { display:block; margin-left:1.03em; }
.cover-discipline { margin-top:clamp(14px,2vw,24px); font-size:clamp(1.06rem,1.65vw,1.5rem); line-height:1.3; color:#fffaf1; }
.cover-cta { display:inline-flex; align-items:center; gap:32px; min-height:48px; margin-top:28px; padding:9px 20px; background:#fffaf0; color:#322d27; font-size:.93rem; transition:transform .24s,background .24s; }
.cover-foot { position:absolute; bottom:12px; left:var(--gutter); display:flex; align-items:center; }
.cover-foot a,.film-toggle { display:inline-flex; gap:11px; align-items:center; min-height:45px; color:inherit; font-size:.83rem; }
.film-toggle { background:none; border:0; padding:5px 0; }
.film-toggle[hidden] { display:none; }
.cover :focus-visible,.lead-project :focus-visible { outline-color:white; }
.floating { width:auto; height:auto; display:inline-flex; align-items:center; gap:9px; padding:10px 17px 10px 13px; min-height:46px; border-radius:30px; font-size:.84rem; line-height:1.2; }
.floating svg { width:22px; height:22px; flex:none; }
footer { padding-bottom:max(84px,calc(65px + env(safe-area-inset-bottom))); }
.lead-project { background:#292824; color:#f8f4e9; padding:clamp(44px,5vw,92px) var(--gutter) clamp(49px,5.8vw,100px); }
.folio-title { padding-bottom:clamp(25px,3vw,55px); border-bottom:1px solid #6c685d; }
.folio-title h2,.gallery-title h2,.notebook h2 { font-size:clamp(3.3rem,7.3vw,8.5rem); line-height:.99; letter-spacing:-.044em; }
.folio-title em { color:#dacaac; }
.project-sequence { display:grid; grid-template-columns:minmax(15rem,.48fr) minmax(0,1fr); gap:clamp(28px,5vw,92px); padding-top:clamp(29px,4vw,74px); align-items:start; }
.sequence-note { position:sticky; top:clamp(55px,14vh,160px); padding-block:clamp(12px,2.7vw,49px); }
.lead-project .label { color:#dfcdb1; }
.sequence-note h3 { font-size:clamp(3rem,5vw,6.4rem); line-height:.99; letter-spacing:-.04em; margin:14px 0 17px; }
.sequence-note h3 em { display:block; }
.sequence-note > p:not(.label) { max-width:27ch; color:#e8e0d4; }
.sequence-note .sequence-link { display:inline-flex; align-items:center; gap:18px; min-height:44px; margin:20px 0 0; border-bottom:1px solid #a89c89; }
.sequence-photos { display:grid; gap:clamp(22px,3.5vw,62px); }
.sequence-photos img { width:100%; height:auto; }
.sequence-photos figcaption { margin-top:8px; color:#d8cdbd; font-size:.83rem; }
.white-gallery { background:#fff; padding:clamp(45px,7vw,125px) var(--gutter); }
.gallery-title { display:flex; justify-content:space-between; align-items:end; gap:16px; margin-bottom:clamp(22px,3.5vw,60px); }
.stories,.notes-grid { display:grid; gap:clamp(50px,7vw,115px); }
.story { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,2fr); gap:clamp(24px,4vw,78px); align-items:start; border-top:1px solid var(--rule); padding-top:clamp(18px,2.5vw,40px); }
.plate-caption { padding-top:9px; }
.plate-caption .label { font-size:.72rem; letter-spacing:.13em; }
.plate-caption h3 { font-size:clamp(2.2rem,4vw,5rem); line-height:.98; margin:8px 0 0; letter-spacing:-.03em; }
.story .project-link { margin:0; }
.link-arrow { font:400 .55em/1 Estudio,sans-serif; vertical-align:middle; }
.plates,.project-gallery { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:clamp(12px,2vw,34px); align-items:start; }
.gallery-print,.project-gallery .open-photo {
  --frame-paper:#faf7ef;
  display:block; width:100%; min-width:0; box-sizing:border-box;
  padding:clamp(6px,.78vw,14px); border:1px solid #bcb5a8; background:var(--frame-paper);
}
.gallery-print img,.project-gallery .open-photo img { display:block; width:100%; height:auto; max-height:none; object-fit:contain; aspect-ratio:auto; }
.gallery-print picture,.open-photo picture { display:block; }
.plates>.gallery-print:first-child,.project-gallery>.open-photo:first-child { grid-column:1/-1; justify-self:center; }
.plates>.upright:first-child { max-width:min(100%,calc(52svh + 20px)); }
.plates>.upright:not(:first-child) { max-width:min(100%,calc(34svh + 16px)); justify-self:center; }
.plates:has(>:nth-child(2):last-child)>.gallery-print:last-child { grid-column:1/-1; justify-self:center; }
.sequence-photos figure+figure { width:67%; justify-self:center; }
.gallery-print:focus-visible { outline-offset:3px; }
@media(max-width:720px) {
  .story { grid-template-columns:1fr; gap:15px; }
  .plates,.project-gallery { grid-template-columns:minmax(0,1fr); }
  .plates>.gallery-print,.sequence-photos figure+figure { width:100%; max-width:none; }
  .plates>.upright:first-child,.plates>.upright:not(:first-child) { max-width:100%; }
  .gallery-print,.project-gallery .open-photo { padding:7px; }
}


.notebook { border-top:1px solid var(--rule); padding-top:clamp(34px,4.5vw,85px); margin-top:clamp(40px,6.5vw,110px); }
.notebook h2 { margin-bottom:clamp(22px,3.2vw,59px); }
@media(hover:hover) and (pointer:fine) {
  .cover-cta:hover { transform:translateY(-2px); background:#ece0cd; }
  .project-link .link-arrow { transition:transform .25s; }
  .project-link:hover .link-arrow { transform:translate(2px,-2px); }
}
@media(max-width:720px) {
  .home .mast { min-height:64px; gap:12px; padding:13px var(--gutter); }
  .home .mast-cta { padding:7px 12px; }
  .cover { min-height:clamp(480px,calc(93svh - 65px),820px); }
  .cover-media img,.cover-film { object-position:54% 49%; }
  .cover-copy { margin:0 var(--gutter) 98px; }
  .cover h1 { font-size:clamp(3.4rem,13.5vw,6.3rem); }
  .cover-foot { inset-inline:var(--gutter); bottom:39px; }
  .cover-cta { margin-top:22px; }
  .floating { min-height:44px; font-size:.76rem; padding:8px 12px; bottom:max(9px,env(safe-area-inset-bottom)); right:max(10px,env(safe-area-inset-right)); }
  .floating svg { width:20px; height:20px; }
  .project-sequence { display:block; }
  .sequence-note { position:static; padding:0 0 20px; }
  .sequence-note h3 { margin:8px 0 10px; }
  .sequence-note h3 em { display:inline; }
  .sequence-note > p:not(.label) { max-width:none; }
  .sequence-note .sequence-link { margin:6px 0 0; }
  .sequence-photos { gap:24px; }

}
@media(prefers-reduced-motion:reduce) {
  .cover-film,.floating,.cover-cta { transition:none; }
  .sequence-note { position:static; }
}
.studio-note { display: block; text-align: center; padding: clamp(55px,8vw,140px) var(--gutter); background: #f3eee6; }
.studio-note p.label { max-width: none; }
.studio-note h2 { max-width: 16ch; margin: 15px auto 25px; font-size: clamp(3.3rem,6.8vw,7.5rem); line-height: .99; }
.studio-note h2 em { color: #7f5d43; }
.studio-note > div { display: flex; justify-content: center; flex-wrap: wrap; gap: 15px 28px; padding: 0; align-items: center; }
.conversation { display: inline-flex; gap: 18px; align-items: center; min-height: 46px; padding: 10px 17px; background: #483427; color: #fff9ef; }
.conversation:hover { background: #624832; }
.contact { background: #fff; color: var(--ink); }
.contact .label,.contact .channels small { color: #765c46; }
.contact-copy > p { color: #524940; }
.contact h2 em { color: #795c44; }
.contact .channels a,.contact .social-text { border-color: var(--rule); }
.contact .channels a:hover,.contact .social-text:hover { color: #745136; }
.brief { background: #f6f2ea; border: 1px solid #e5ddd1; }
footer { background: #342820; color: #faf3e6; }
.project-page .project-title { display:flex; justify-content:space-between; align-items:end; gap:22px; margin:34px 0; }
.project-page .project-title h1 { margin: 6px 0 0; line-height: .95; }
.project-page .project-category,.project-title .project-summary { margin:0; }
.project-gallery { gap: clamp(18px,3vw,55px); }
.project-gallery .open-photo { background: transparent; }
.project-gallery .open-photo img { max-height: 83svh; }
.lightbox[open] { grid-template-rows: 52px minmax(0,1fr) auto; padding:clamp(8px,2vh,24px) clamp(14px,5vw,90px); gap:clamp(6px,2vh,20px); background:#232420; color:#f8f5ed; }
.lightbox::backdrop {background:#232420}
.lightbox .close-gallery {margin:0}
.lightbox img {min-height:0}
@media(prefers-reduced-motion:no-preference) {
  .lightbox[open] img {animation:ivy-gallery-open .38s ease-out both}
  @keyframes ivy-gallery-open {from {opacity:.35;transform:scale(.985)} to {opacity:1;transform:none}}
  @supports (animation-timeline:view()) {
    .project-gallery .open-photo:not(:first-child) {view-timeline:--ivy-photo block}
    .project-gallery .open-photo:not(:first-child) img {animation:ivy-detail-in linear both;animation-timeline:--ivy-photo;animation-range:entry 0% entry 90%}
    @keyframes ivy-detail-in {from {opacity:.45;clip-path:inset(5% 0 0);transform:translateY(8px)} to {opacity:1;clip-path:inset(0);transform:none}}
  }
}
.gallery-controls { padding: 10px 15px max(12px, env(safe-area-inset-bottom)); width: 100%; }
@media(max-width:680px) {  .studio-note > div { padding:0; }
  .project-page .project-title { display:block; margin:23px 0; }
  .project-title .project-summary { margin-top:11px; }
  .gallery-controls { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; font-size: .85rem; }
  .gallery-controls [aria-live] { grid-column: 1/-1; grid-row: 1; text-align: center; }
  .gallery-controls .previous { grid-column: 1; grid-row: 2; justify-self: end; }
  .gallery-controls .photo-source { grid-column: 2; grid-row: 2; }
  .gallery-controls .next { grid-column: 3; grid-row: 2; justify-self: start; }
}


.project-page.section { padding-top:clamp(18px,2.2vw,36px); }
.project-page .project-title { margin:15px 0 clamp(16px,2vw,30px); }
.project-page .project-title h1 { font-size:clamp(2.8rem,5.2vw,6rem); }
.project-gallery { max-width:1120px; margin-inline:auto; }
.project-gallery .open-photo { background:#faf7ef; justify-self:center; }
.project-gallery .open-photo img { height:auto; max-height:none; }
.project-gallery>.open-photo.upright:first-child { max-width:calc(57svh + 20px); }
.project-gallery>.open-photo.wide:first-child { max-width:calc(96svh + 20px); }
.project-gallery>.open-photo.upright:not(:first-child) { max-width:calc(37svh + 16px); }
.project-gallery:has(>:nth-child(2):last-child)>.open-photo:last-child { grid-column:1/-1; max-width:70%; }
.film-toggle { gap:7px; padding-inline:5px; }
.film-toggle::before { content:''; display:inline-block; width:0; height:0; border-block:5px solid transparent; border-left:8px solid currentColor; }
.film-toggle[data-playing=true]::before { width:8px; height:10px; box-sizing:border-box; border:0; border-inline:2px solid currentColor; }
.page-veil { position:fixed; inset:0; z-index:99; background:#f8f5ee; pointer-events:none; }
.travelling-print { view-transition-name:ivy-photograph; }
@media(prefers-reduced-motion:no-preference) {
  ::view-transition-group(*) { animation-duration:350ms; animation-timing-function:cubic-bezier(.22,.68,.22,1); }
  ::view-transition-group(ivy-photograph) { z-index:1; }
  ::view-transition-old(ivy-photograph),::view-transition-new(ivy-photograph) { height:100%; }
}
@media(max-width:720px) {
  .project-page .project-gallery>.open-photo { width:100%; max-width:100%; }
  .project-gallery:has(>:nth-child(2):last-child)>.open-photo:last-child { max-width:100%; }
}


.intro-track { --pin:100svh; position:relative; background:#f8f5ee; }
.intro-result { min-height:var(--pin); display:flex; flex-direction:column; align-items:center; justify-content:center; gap:clamp(15px,2.6vh,30px); padding:clamp(20px,4vh,50px) var(--gutter); }
.intro-result h2 { color:#35352e; font-size:clamp(3rem,7.2vw,7.8rem); line-height:.98; letter-spacing:-.045em; text-align:center; }
.intro-result h2 em { color:#626346; }
.intro-result { padding:clamp(14px,2.5svh,32px) clamp(15px,4.5vw,76px); gap:clamp(12px,1.8svh,23px); }
.intro-result h2 { font-size:clamp(2.8rem,5.1vw,5.35rem); }
.intro-result h2 { display:flex; align-items:center; justify-content:center; column-gap:clamp(8px,.85vw,14px); }
.sello-olivo { display:block; flex:0 0 32px; width:32px; height:32px; overflow:visible; }
.intro-result .gallery-print { width:min(100%,calc(128svh - 106px),1260px); }
.botanic-film { opacity:var(--cuadro-opacity,1); }
.white-gallery .story { max-width:1280px; margin:auto; border:0; padding:0; gap:clamp(16px,3.5vw,60px); grid-template-columns:minmax(12rem,.56fr) minmax(0,1fr); }
.white-gallery .plates { width:min(100%,720px); gap:clamp(12px,1.4vw,22px); }
.white-gallery .plates>.upright { max-width:100%; }
.white-gallery .plates>.upright:first-child { max-width:min(100%,calc(68svh + 50px)); }
.white-gallery .plates:has(>.upright:first-child) { max-width:calc(68svh + 50px); }
@media(max-width:720px) {
  .white-gallery .story { grid-template-columns:minmax(0,1fr); }
  .white-gallery .plates:has(>.upright:first-child) { max-width:none; }
  .white-gallery .plates>.upright:first-child { max-width:100%; }
  .intro-result .gallery-print { width:100%; }
}
.projects-arrival { position:absolute; bottom:var(--pin); left:0; width:1px; height:1px; scroll-margin-top:0; }
.botanic-stage { display:none; }
.white-gallery .stories > .story { width:100%; }
[data-project="flores-en-casa"] .project-title { display:block; }
[data-project="flores-en-casa"] .project-summary { margin-top:11px; }
.botanica .intro-track { height:calc(var(--pin) + 170svh); overflow-anchor:none; }
.botanica .intro-sticky { position:sticky; top:0; height:var(--pin); isolation:isolate; overflow:hidden; background:#f8f5ee; }
.botanica .intro-sticky>.cover,.botanica .botanic-stage,.botanica .intro-result { position:absolute; inset:0; min-height:0; }
.botanica .intro-sticky>.cover { opacity:var(--cover-alpha,1); }
.botanica .botanic-stage { display:block; z-index:1; pointer-events:none; opacity:var(--film-alpha,0); }
.botanic-film,.botanic-ink { position:absolute; inset:0; display:block; width:100%; height:100%; }
.botanic-film { object-fit:cover; object-position:50% 12%; }
.botanic-ink { z-index:3; opacity:var(--ink-alpha,0); overflow:visible; }
.botanic-ink path { stroke:#71754b; stroke-width:1.45; fill:none; stroke-linecap:round; stroke-linejoin:round; stroke-dasharray:1; stroke-dashoffset:var(--ink-offset,1); }
.botanica .intro-result { z-index:2; pointer-events:none; }
.botanica .intro-result .nombre-proyectos { opacity:var(--title-alpha,0); transform:translateY(var(--title-y,10px)); }
.botanica .intro-result .gallery-print { opacity:var(--print-alpha,0); }
.botanica .intro-result.unfolded .gallery-print { pointer-events:auto; }
.botanica .intro-sticky>.cover .cover-foot { bottom:max(80px,9vh); }
.botanica .intro-sticky>.cover .cover-copy { margin-bottom:max(151px,18vh); }
@media(max-width:720px) {
  .botanic-film { object-position:54% 49%; }
  .botanica .intro-track { height:calc(var(--pin) + 124svh); }
  .intro-result { padding-inline:clamp(12px,3.8vw,23px); }
  .intro-result h2 { font-size:clamp(2rem,9.1vw,3.2rem); }
  .botanica .intro-sticky>.cover .cover-foot { bottom:max(78px,9vh); }
  .botanica .intro-sticky>.cover .cover-copy { margin-bottom:max(146px,19vh); }
}
@media(prefers-reduced-motion:reduce) {
  .botanic-stage { display:none!important; }
}

/* The materials in the photographs carry the colour between the two projects. */
.home { --arena:#d5c2a5; --papel-rosa:#f7f0e9; --oliva:#373f30; }
.botanica .intro-result .gallery-print { clip-path:inset(0 0 var(--print-clip,100%) 0); }
#proyectos-titulo:focus:not(:focus-visible) { outline:none; }
.lead-project { background:linear-gradient(#f8f5ee,var(--arena) min(14vw,145px),var(--arena) 90%,#e4d6c4); color:#362e25; }
.lead-project .label,.sequence-photos figcaption { color:#554432; }
.sequence-note>p:not(.label) { color:#483c2f; }
.sequence-link { border-color:#827258; }
.white-gallery { background:linear-gradient(#e4d6c4,var(--papel-rosa) min(13vw,150px),#fffcf7 60%); }
.estudio-detalle { display:grid; align-items:end; isolation:isolate; }
.estudio-detalle .boceto { display:block; width:100%; height:auto; align-self:end; pointer-events:none; }
.estudio-detalle .gallery-print { opacity:var(--presencia,1); }
.detalle-parota { grid-template-columns:minmax(72px,.25fr) minmax(0,1fr); column-gap:clamp(9px,1.4vw,24px); }
.detalle-parota .boceto { align-self:start; margin-top:clamp(6px,1.6vw,24px); }
.sequence-photos figcaption { text-align:right; }
.white-gallery .story { grid-template-columns:minmax(160px,.45fr) minmax(0,1fr); align-items:start; }
.white-gallery .plate-caption { position:sticky; top:clamp(48px,13svh,130px); }
.white-gallery .plates { max-width:840px; grid-template-columns:repeat(2,minmax(0,1fr)); align-items:start; }
.detalle-rosas { grid-column:1/-1; grid-template-columns:minmax(0,1fr) minmax(85px,.35fr); gap:clamp(10px,1.6vw,28px); }
.detalle-rosas .boceto { grid-column:2; grid-row:1; align-self:start; margin-top:clamp(10px,3vw,48px); }
.detalle-rosas .gallery-print { grid-column:1; grid-row:1; }
.white-gallery .plates>.upright { width:100%; max-width:100%; }
.studio-note { background:linear-gradient(#fffcf7,#ecebe0); }
.contact { background:var(--oliva); color:#fffaf1; }
.contact .label,.contact .channels small,.contact h2 em { color:#e7d9b9; }
.contact .channels a,.contact .social-text { border-color:#818675; }
.contact .channels a:hover,.contact .social-text:hover { color:#f5e1b4; }
.contact .channels a:first-child { background:#f5eddc; color:#333e30; border-color:#f5eddc; padding-inline:15px; }
.contact .brief { background:#f5f0e3; color:#312e26; }
.home footer { background:#293025; }
body:has([data-project="casa-de-playa"]) { background:#f0e5d6; }
body:has([data-project="flores-en-casa"]) { background:#f6ede8; }
.floating[hidden] { display:none; }
.floating.sin-espacio,html.viewing .floating { visibility:hidden; }
@media(max-width:720px) {
  .home .mast { padding-block:10px; }
  .cover,.botanica .intro-sticky>.cover { display:flex; flex-direction:column; align-items:stretch; justify-content:flex-start; color:#332d24; background:linear-gradient(145deg,#e5d8c4,#f7f1e6); }
  .cover-media { position:relative; inset:auto; flex:0 0 auto; width:100%; height:auto; aspect-ratio:4/3; z-index:0; }
  .cover-media img,.cover-media .cover-film { object-fit:contain; object-position:center; }
  .botanica .botanic-film { width:100%; height:auto; aspect-ratio:4/3; object-fit:contain; transform-origin:0 0; }
  .cover-media::after { background:none; }
  .cover-copy,.botanica .intro-sticky>.cover .cover-copy { margin:clamp(18px,4svh,36px) var(--gutter) 15px; }
  .cover h1 { max-width:10ch; font-size:clamp(3.3rem,14.6vw,5.7rem); }
  .cover h1 em { margin-left:.84em; }
  .cover-discipline { margin-top:14px; font-size:1.07rem; color:#453e31; }
  .cover-cta { margin-top:15px; background:#424a35; color:#fffaf1; }
  .cover .cover-foot,.botanica .intro-sticky>.cover .cover-foot { position:static; margin:0 var(--gutter) 6px; color:#554831; }
  .film-toggle { min-height:40px; }
  .lead-project,.white-gallery { padding:clamp(32px,9vw,60px) var(--gutter); }
  .project-sequence { padding-top:0; }
  .botanica .portfolio { position:relative; margin-top:min(0px,max(-180px,calc(36vw - 37svh + 30px))); }
  .white-gallery .story,.white-gallery .plates { grid-template-columns:minmax(0,1fr); }
  .white-gallery .plate-caption { position:static; }
  .estudio-detalle { gap:0; grid-template-columns:minmax(0,1fr); }
  .estudio-detalle .boceto { grid-row:1; grid-column:1; width:clamp(87px,26vw,135px); margin:0 5px 4px; }
  .detalle-parota .boceto { justify-self:start; }
  .detalle-rosas .boceto { justify-self:end; }
  .estudio-detalle .gallery-print { grid-row:2; grid-column:1; }
  .sequence-photos figcaption { text-align:left; }
}
@media(max-height:690px) and (max-width:720px) {
  .cover-media { max-height:45svh; background:#ccbea8; }
  .cover-copy,.botanica .intro-sticky>.cover .cover-copy { margin-block:12px 2px; }
  .cover h1 { max-width:none; font-size:clamp(2.6rem,8.8vw,3.8rem); }
  .cover h1 em { display:inline; margin-left:0; }
  .cover-discipline { margin-top:6px; }
}
@media(prefers-reduced-motion:reduce) {
  .estudio-detalle .gallery-print { opacity:1; }
  .sello-olivo > g[mask] { mask:none; }
  .boceto > use[mask] { display:none; }
  .boceto > use[clip-path] { clip-path:none; }
}

