html { scroll-behavior: smooth; scroll-padding-top: 1.3rem; }
h1,h2,h3 { font-family: var(--serif); font-weight: 400; }
h2 { font-size: clamp(3.05rem, 5.8vw, 6.25rem); line-height: 1.01; letter-spacing: -.052em; }
em { font-weight: 400; }
.section { position: relative; max-width: 115rem; margin-inline: auto; padding: clamp(3.5rem, 6.5vw, 7.6rem) var(--gutter); }
.legacy-anchor { position: absolute; top: 0; }
.cover-story { --scene-duration:3.5s; background: #222422; color: #fff; }
.cover-story :focus-visible, .worktable :focus-visible, .contact-band :focus-visible { outline-color: #ffc995; }
.hero-stage { position: relative; isolation: isolate; display: flex; align-items: end; min-height: clamp(520px, 74svh, 850px); overflow: hidden; background: #3b3029; }
.hero-media, .scene-layer, .scene-layer img, .hero-media::after { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-media { z-index: -1; }
.hero-media::after { content: ""; pointer-events:none; background: linear-gradient(90deg, rgb(16 14 13 / .48), rgb(16 14 13 / .24) 37%, transparent 67%), linear-gradient(0deg, rgb(16 14 13 / .60), rgb(16 14 13 / .15) 37%, transparent 68%); }
.scene-layer { opacity:0; transition:opacity var(--scene-duration) cubic-bezier(.22,1,.36,1); --from:translate3d(-.65%,.32%,0) scale(1.026); --to:translate3d(1.55%,-.72%,0) scale(1.112); }
.scene-layer[data-drift="lateral"] { --from:translate3d(-2.45%,.3%,0) scale(1.071); --to:translate3d(2.05%,-.5%,0) scale(1.11); }
.scene-layer[data-drift="salida"] { --from:translate3d(1.55%,-.7%,0) scale(1.12); --to:translate3d(-.8%,.3%,0) scale(1.033); }
.scene-layer.is-active { opacity:1; }
.scene-layer img { object-fit:cover; object-position:50% 50%; animation:camera-drift var(--scene-duration) cubic-bezier(.23,.32,.55,.86) both; animation-play-state:paused; }
.cover-story:not(.holding) .scene-layer.is-active img { animation-play-state:running; }
@keyframes camera-drift { from { transform:var(--from); } to { transform:var(--to); } }
@media(prefers-reduced-motion:reduce) {
  .scene-layer img { animation:none !important; transform:none !important; }
}
.hero-copy { width: 100%; padding: clamp(3rem, 7vh, 6rem) var(--gutter) clamp(2.7rem, 5.9vh, 5rem); }

h1 { font-size: clamp(4.2rem, 6.8vw, 7.8rem); line-height: .99; letter-spacing: -.051em; margin: .82rem 0 1.35rem; }
.hero-description { max-width: 54ch; font-size: clamp(1rem, 1.15vw, 1.18rem); color: #fff; text-shadow: 0 1px 4px #0008; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: .7rem 1.5rem; margin-top: 1.5rem; }
.action { min-height: 47px; display: inline-flex; justify-content: center; align-items:center; padding: .78rem 1.14rem; border: 1px solid transparent; border-radius: 0; text-decoration: none; font-size:.94rem; font-weight:600; line-height:1.35; transition: color .2s, background .2s, border .2s; }
.ivory { background: #faf9f4; color: #252623; }
.ivory:hover { background: #eadbd1; color: #392026; }
.ink { background: var(--ink); color: white; }
.ink:hover { background: var(--plum); }
.under { width:fit-content; display:inline-flex; align-items:center; min-height: 44px; text-decoration: underline; text-underline-offset: .34em; text-decoration-thickness: 1px; font-size: .92rem; font-weight: 600; }
.under:hover, .room-link:hover .under { text-decoration-thickness: 2px; }
.hero-actions .action::after, .room-info .under::after, .library-index a::after, #sample-link::after { content:"→"; display:inline-block; margin-left:.6em; font:400 1.06em/1 var(--sans); transition:transform .19s ease; }
.hero-actions .action:hover::after, .room-link:hover .under::after, .library-index a:hover::after, #sample-link:hover::after { transform:translateX(.22em); }
.library-index a::after { float:right; margin-top:.22em; }
.scene-controls { display:flex; gap:1.1rem; align-items:center; padding:.4rem var(--gutter); background:#282927; }
.scene-choices { display:grid; grid-auto-flow:column; grid-auto-columns:minmax(max-content,1fr); flex:1; gap:clamp(.35rem,1vw,1.1rem); min-width:0; }
.scene-choices button, .play-state, .compact-scenes button, .scene-picker select { background:transparent; color:#deded8; border:0; font:400 .875rem/1.2 var(--sans); }
.scene-choices button { display:grid; align-content:center; gap:.45rem; padding:.38rem 0; min-height:48px; text-align:left; white-space:nowrap; }
.scene-line { width:100%; height:2px; background:#64665f; transition:background .2s; }
.scene-choices button[aria-pressed=true] { color:white; font-weight:600; }
.scene-choices button[aria-pressed=true] .scene-line { background:#f0c49e; }
.scene-choices button:hover .scene-line { background:#f2eadf; }
.play-state { display:inline-flex; align-items:center; justify-content:center; gap:.62rem; min-width:44px; min-height:44px; padding:0 .3rem; }
.play-mark { width:.6rem; height:.78rem; border-inline:2px solid currentColor; }
.play-state[data-paused="true"] .play-mark { height:0; width:0; border:.39rem solid transparent; border-right:0; border-left:.61rem solid currentColor; }
.compact-scenes { display:none; }
.editorial-head { display:flex; justify-content:space-between; gap:3rem; align-items:end; margin-bottom:clamp(1.6rem,3.3vw,3.7rem); }
.editorial-head p { max-width: 35ch; color:var(--muted); }
.room-pair { display:grid; grid-template-columns:minmax(0,1.52fr) minmax(0,.95fr); gap: clamp(1.8rem,4vw,5rem); align-items:end; }
.room-pair + .room-pair { margin-top:clamp(2.4rem,4.7vw,5.4rem); }
.room-pair.reverse { grid-template-columns:minmax(0,.95fr) minmax(0,1.52fr); }
.room-link { display:block; text-decoration:none; }
.room figure { overflow:hidden; background:#32332f; }
.room picture { display:block; }
.room figure img { width:100%; height:100%; object-fit:cover; transition:transform .65s ease; }
.room figure, .room picture { aspect-ratio:1.57; }
.room-vestidor figure,.room-vestidor picture,.room-bano figure,.room-bano picture { aspect-ratio:.98; }
.room-vestidor img { object-position:66% 50%; }
.room-bano img { object-position:75% 50%; }
.room-link:hover img { transform:scale(1.026); }
.room-info { display:flex; gap:.7rem; align-items:center; justify-content:space-between; padding: .8rem 0 .55rem; border-bottom:1px solid var(--rule); }
.room-info h3 { font-size:clamp(1.9rem,2.7vw,3.1rem); letter-spacing:-.035em; line-height:1.1; }
.room-info p { font-size:.93rem; line-height:1.45; color:var(--muted); margin-top:.26rem; }
.room-info .under { flex-shrink:0; font-size:.82rem; }
.worktable { background:#202824; color:#f7f6ee; padding:clamp(3.4rem,6.5vw,7.5rem) var(--gutter); }
.table-inner { max-width:102rem; margin:auto; display:grid; grid-template-columns:minmax(0,.92fr) minmax(0,1.42fr); gap:clamp(2rem,5.3vw,7rem); align-items:center; }
.material-copy h2 { font-size:clamp(3.2rem,5.35vw,6.1rem); }
.material-copy > p { margin-top:1.1rem; max-width:29ch; color:#e1e5df; }
.sample-choices { margin-top:1.65rem; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:.1rem 1rem; }
.sample-choice { display:flex; align-items:center; gap:.65rem; border:0; border-bottom:1px solid #727a72; background:transparent; padding:.62rem .14rem; text-align:left; text-decoration:none; color:inherit; font-size:.92rem; }
.sample-choice img { width:2.15rem; height:2.15rem; object-fit:cover; }
.sample-choice:hover, .sample-choice[aria-pressed=true] { border-color: #e4b092; background:#ffffff0f; }
.sample-choice[aria-pressed=true] { box-shadow:inset 0 -1px #e4b092; }
.sample-frame { position:relative; aspect-ratio:1.43; background:#29332d; overflow:hidden; }
.sample-frame img { width:100%; height:100%; object-fit:cover; }
.sample-board figcaption { display:flex; align-items:center; justify-content:space-between; gap:.8rem; padding-top:.82rem; }
.sample-board strong, .sample-board figcaption span { display:block; }
.sample-board strong { font:400 clamp(1.04rem,1.5vw,1.5rem)/1.25 var(--serif); }
.sample-board figcaption span { color:#cbd2cb; font-size:.8rem; margin-top:.16rem; }
.sample-board .under { font-size:.86rem; flex-shrink:0; }
.library-top { display:flex; justify-content:space-between; gap:2rem; align-items:end; }
.library-top p, .contact-band p { margin-top:.9rem; }
.library form { display:flex; align-items:stretch; width:min(100%,28rem); border:1px solid #7b7d76; background:white; }
.library input { flex:1; min-width:0; padding:.8rem .85rem; border:0; font-size:1rem; background:transparent; }
.library form:focus-within { outline:2px solid var(--plum); outline-offset:3px; }
.library input:focus { outline:0; }
.library-index { margin-top:2.2rem; display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); column-gap:clamp(1.5rem,3.2vw,4rem); }
.library-index a { display:block; padding:1rem .1rem; font-size:clamp(.98rem,1.21vw,1.2rem); text-decoration:none; border-bottom:1px solid var(--rule); }
.library-index a:hover { color:var(--plum); text-decoration:underline; text-underline-offset:.26em; }
.library-heading { display:flex; align-items:center; gap:clamp(.85rem,2.4vw,2.4rem); }
.catalog-access { gap:.72rem; min-height:54px; padding:.82rem 1.25rem; background:var(--plum); color:#fff; letter-spacing:.005em; white-space:nowrap; border-color:var(--plum); }
.catalog-access:hover, .catalog-access:focus-visible { color:white; background:#743440; border-color:#743440; }
.catalog-access:active { background:#371820; }
.catalog-access .label-short { display:none; }
.book-icon { position:relative; width:1.2rem; height:.97rem; display:inline-block; flex:none; }
.book-icon::before, .book-icon::after { content:""; position:absolute; top:0; width:50%; bottom:0; border:1.4px solid currentColor; }
.book-icon::before { left:0; transform:skewY(10deg); border-radius:2px 1px 0 1px; }
.book-icon::after { right:0; transform:skewY(-10deg); border-radius:1px 2px 1px 0; }
.professional { background:#efefea; }
.professional-head { display:grid; align-items:end; grid-template-columns:1.18fr 1fr; gap:3rem; }
.professional-head h2 { font-size:clamp(2.9rem,5.1vw,5.65rem); }
.professional-head p { max-width:43ch; color:var(--muted); }
.professional-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:clamp(1.2rem,3vw,4rem); margin-top:clamp(2rem,4vw,4.25rem); }
.professional-grid article { border-top:1px solid #999d92; padding-top:.9rem; }
.professional-grid h3 { font-size:clamp(1.45rem,2.1vw,2.55rem); line-height:1.16; letter-spacing:-.035em; }
.professional-grid p { color:var(--muted); font-size:1rem; margin-top:.6rem; max-width:34ch; }
.contact-band { padding:clamp(3.2rem,6vw,7rem) var(--gutter);display:flex;align-items:center;justify-content:space-between;gap:2rem;background:var(--plum);color:#f8f4ed; }
.contact-band h2 { font-size:clamp(3rem,5.15vw,5.8rem); }
.contact-ways { display:flex; flex-direction:column; align-items:start; }
.contact-ways .action { margin-bottom:.5rem; }
@media(max-width:960px) {
  .room-info { display:block; }
  .room-info .under { min-height:35px; }
  .scene-choices { gap:.42rem; }
  .scene-choices button { font-size:.82rem; }
  .library-top { flex-wrap:wrap; }
  .table-inner { gap:2rem; grid-template-columns:.9fr 1.1fr; }
}
@media(max-width:900px) {
  .scene-controls { gap:.45rem; padding:.3rem var(--gutter); }
  .scene-choices { display:none; }
  .compact-scenes { display:flex; flex:1; align-items:center; gap:.18rem; min-width:0; }
  .compact-scenes button { display:grid; place-items:center; min-width:44px; height:44px; }
  .compact-scenes button i, .scene-picker::after { display:block; width:.54rem; height:.54rem; border:solid currentColor; border-width:0 1.6px 1.6px 0; }
  #scene-prev i { transform:rotate(135deg); }
  #scene-next i { transform:rotate(-45deg); }
  .scene-picker { position:relative; flex:1; max-width:18rem; }
  .scene-picker select { appearance:none; width:100%; font-size:1rem; border:1px solid #797b74; min-height:44px; padding:.45rem 1.75rem .45rem .75rem; }
  .scene-picker select option { color:#252624; background:white; }
  .scene-picker::after { content:""; position:absolute; right:.7rem; top:calc(50% - .36rem); transform:rotate(45deg); pointer-events:none; }
  .play-copy { display:none; }
  .play-state { margin-left:auto; }
}
@media(max-width:720px) {
  .hero-stage { min-height:clamp(470px,71svh,720px); }
  .hero-media::after { background:linear-gradient(0deg,rgb(12 12 12 / .79),rgb(12 12 12 / .25) 47%,transparent 72%),linear-gradient(90deg,rgb(12 12 12 / .21),transparent 90%); }
  .hero-copy { padding-bottom:2rem; }
  h1 { font-size:clamp(3.05rem,10vw,4.8rem); }
  .hero-description { max-width:32ch; }
  .editorial-head, .library-top { display:block; }
  .editorial-head p { margin-top:.8rem; max-width:44ch; }
  .room-pair, .room-pair.reverse { gap:1.25rem; }
  .table-inner { grid-template-columns:1fr; }
  .material-copy h2 br { display:none; }
  .material-copy h2 em::before { content:" "; }
  .material-copy > p { max-width:45ch; }
  .sample-choices { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .library form { margin-top:1.3rem; }
  .library-index { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .contact-band { align-items:start; }
}
@media(max-width:560px) {
  .room-pair, .room-pair.reverse { grid-template-columns:1fr; gap:2.2rem; }
  .room-pair + .room-pair { margin-top:2.2rem; }
  .room figure,.room picture,.room-vestidor figure,.room-vestidor picture,.room-bano figure,.room-bano picture { aspect-ratio:1.18; }
  .room-info { display:flex; }
  .room-info .under { font-size:.81rem; }
  .sample-choices { grid-template-columns:repeat(2,minmax(0,1fr)); }

  .contact-band { flex-direction:column; }
  .sample-board figcaption { align-items:start; }
}
@media(max-width:360px) {

  .hero-actions { gap: .45rem .85rem; }
  .room-info { display:block; }
}

.library-features { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:clamp(.9rem,2vw,3rem); margin-top:2.2rem; }
.feature-card { display:block; color:inherit; text-decoration:none; }
.feature-card figure { aspect-ratio:1.66; overflow:hidden; background:#daddd7; }
.feature-card img { width:100%; height:100%; object-fit:cover; transition:transform .45s; }
.feature-card:hover img { transform:scale(1.035); }
.feature-card > span { display:block; padding:.75rem 0 0; }
.feature-card strong { display:block; font:400 clamp(1.4rem,1.95vw,2.35rem)/1.12 var(--serif); letter-spacing:-.03em; }
.feature-card small { display:inline-flex; align-items:center; gap:.45rem; min-height:38px; font-size:.83rem; text-decoration:underline; text-underline-offset:.25em; }
@media(max-width:600px) {
  .library-features { grid-template-columns:1fr; gap:.9rem; }
  .feature-card { display:grid; grid-template-columns:minmax(7.2rem,.76fr) 1.3fr; align-items:center; gap:1rem; padding-bottom:.9rem; border-bottom:1px solid var(--rule); }
  .feature-card figure { aspect-ratio:1.45; }
  .feature-card > span { padding:0; }
  .feature-card small { min-height:30px; }
}

.sample-expand { position:absolute; right:.8rem; bottom:.8rem; display:inline-flex; align-items:center; gap:.52rem; min-height:44px; padding:.4rem .85rem; border:1px solid #55594e; background:#f9f8f2; color:#252624; font:600 .85rem/1 var(--sans); }
.sample-expand:hover { background:white; }
.expand-icon { width:.95rem; height:.95rem; display:inline-block; position:relative; }
.expand-icon::before, .expand-icon::after { content:""; position:absolute; width:.42rem; height:.42rem; border:solid currentColor; }
.expand-icon::before { left:0; bottom:0; border-width:0 0 1.5px 1.5px; }
.expand-icon::after { right:0; top:0; border-width:1.5px 1.5px 0 0; }
.sample-dialog { width:min(74rem,calc(100% - 1.4rem)); max-height:calc(100dvh - 1.4rem); padding:.8rem; border:1px solid #666b63; background:#202723; color:#f8f7f3; }
.sample-dialog::backdrop { background:rgb(15 20 17 / .86); }
.sample-dialog-head { display:flex; justify-content:space-between; align-items:center; gap:1rem; margin-bottom:.7rem; }
.sample-dialog-head h2 { font:400 clamp(1.15rem,1.9vw,2rem)/1.15 var(--serif); letter-spacing:-.02em; }
.sample-dialog-head button { min-height:44px; padding:.4rem .9rem; background:transparent; color:white; border:1px solid #929b90; }
.sample-dialog > img { width:100%; height:min(75dvh,60rem); object-fit:contain; background:#19201c; }
body:has(.sample-dialog[open]) { overflow:hidden; }
@media(max-width:900px) {
  .catalog-access .label-full { display:none; }
  .catalog-access .label-short { display:inline; }
}
@media(max-width:720px) {
  .professional-head, .professional-grid { display:block; }
  .professional-head p { margin-top:1rem; }
  .professional-grid article + article { margin-top:1.35rem; }
  .professional-grid p { max-width:unset; }
  .hero-description { max-width:48ch; }
}
@media(max-width:450px) {
  .library-heading { gap:.8rem; }
  .library-heading h2 { font-size:clamp(2.25rem,10vw,3.05rem); }
  .catalog-access { min-height:47px; padding:.64rem .72rem; gap:.45rem; }
  .catalog-access .book-icon { width:1rem; height:.8rem; }
}
@media(max-width:360px) {
  .library-heading { gap:.5rem; }
  .library-heading h2 { font-size:2.05rem; }
  .catalog-access { padding:.55rem .6rem; gap:.35rem; font-size:.88rem; }
  .catalog-access .book-icon { width:.88rem; height:.72rem; }
}
