/* PALAZZO SOGLIA · home */
section { position: relative; }
.script.inl { display: inline; font-size: 1.5em; line-height: .6; color: var(--rose-d); margin: 0; vertical-align: -.05em; }

/* ------------------------------------------------ 1. hero: the shutters */
.hero { height: 230vh; background: var(--cream); }
.h-stick { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.h-film { position: absolute; inset: 0; background: #e9dccf; }
.h-film video { width: 100%; height: 100%; object-fit: cover; filter: saturate(.92) brightness(1.03); }
.h-sun { position: absolute; inset: 0; pointer-events: none; mix-blend-mode: soft-light; opacity: var(--sun, .4);
  background: radial-gradient(70% 60% at var(--sx, 70%) 30%, rgba(255, 214, 190, .9), rgba(255, 214, 190, 0) 70%); }
.h-shut { transform-origin: 0 0; position: absolute; left: var(--ax, 40%); top: var(--ay, 12%); width: var(--aw, 54%); height: var(--ah, 88%); perspective: 1800px; pointer-events: none; }
.leaf { position: absolute; top: 0; bottom: 0; width: 50%; transform-style: preserve-3d; will-change: transform;
  border: 14px solid #6686a7; border-width: 16px 14px; box-shadow: 0 0 0 1px rgba(30, 44, 60, .3), inset 0 0 0 1px rgba(30, 44, 60, .35); }
.leaf.l { left: 0; transform-origin: 0 50%; }
.leaf.r { right: 0; transform-origin: 100% 50%; }
.leaf::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; height: 18px; margin-top: -9px; z-index: 2;
  background: linear-gradient(180deg, #7695b4, #6585a6 60%, #4f6e8e); box-shadow: 0 3px 6px rgba(15, 25, 40, .35); }
.slats { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; transform-style: preserve-3d; }
.slat { flex: 1 0 auto; margin: 0; transform-origin: 50% 50%; will-change: transform;
  background: linear-gradient(180deg, #a8bed3 0%, #87a2bf 18%, #7391b2 55%, #5c7b9c 100%);
  border-top: 1px solid rgba(225, 235, 245, .8); box-shadow: 0 2px 2px rgba(20, 32, 48, .32); }
.h-wall { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.h-wall .wall { fill: var(--cream); fill-rule: evenodd; }
.h-wall .mould { fill: none; stroke: var(--gold); stroke-width: 1.2; opacity: .85; }
.h-wall .mould2 { fill: none; stroke: var(--rose); stroke-width: 6; opacity: .28; }
.h-wash { left: -6%; top: 22%; width: 52%; height: 44%; --wo: .42; }
.h-copy { position: absolute; left: var(--pad); top: 0; bottom: 0; width: min(31vw, 470px); display: flex; flex-direction: column; justify-content: center; padding-top: 70px; z-index: 3; }
.h-copy .script { font-size: clamp(64px, 7.2vw, 124px); margin-bottom: -.05em; }
.h-copy h1 { color: var(--blue-d); letter-spacing: .14em; }
.h-sub { margin: 14px 0 0; font: 400 12px/1.4 var(--sans); letter-spacing: .34em; text-transform: uppercase; color: var(--ink-2); }
.h-copy .lede { margin-top: 26px; }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 30px; margin-top: 34px; }
.h-open { white-space: nowrap; position: absolute; z-index: 4; left: calc(var(--ax, 40%) + var(--aw, 54%) / 2); bottom: 30px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 12px; min-height: 46px; padding: 0 22px 0 16px; border: 0; cursor: pointer;
  background: rgba(251, 247, 241, .92); color: var(--ink); font: 400 12px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; box-shadow: 0 8px 30px rgba(30, 40, 60, .22); transition: opacity .4s; }
.h-open .ic { width: 22px; height: 16px; border: 1px solid currentColor; position: relative; }
.h-open .ic::before, .h-open .ic::after { content: ''; position: absolute; top: 3px; bottom: 3px; width: 1px; background: currentColor; left: 50%; }
.h-open .ic::after { left: auto; right: 50%; transform: translateX(-3px); width: 6px; height: 1px; top: 50%; bottom: auto; background: currentColor; box-shadow: 9px 0 0 currentColor; }
.h-open[aria-pressed="true"] { background: var(--blue-btn); color: #fff; }
.h-hint { position: absolute; z-index: 4; left: calc(var(--ax, 40%) + var(--aw, 54%) / 2); transform: translateX(-50%); bottom: 88px; margin: 0; font: 400 11px/1.4 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--ink); background: rgba(251, 247, 241, .82); padding: 7px 14px; transition: opacity .5s; white-space: nowrap; }
.hero.opened .h-hint { opacity: 0; }
.h-cr { right: 14px; }
/* intro: the room fades in from white light, the moulding is drawn, the word is written */
.intro-on .h-film { opacity: 0; filter: brightness(1.8) blur(14px); }
.intro-on .h-wall .mould, .intro-on .h-wall .mould2 { stroke-dasharray: var(--len, 4000); stroke-dashoffset: var(--len, 4000); }
.intro-on .h-copy .script { clip-path: inset(0 100% 0 0); }
.intro-on .h-copy > :not(.script) { opacity: 0; transform: translateY(14px); }
.intro-go .h-film { opacity: 1; filter: none; transition: opacity 2.2s var(--ease) .3s, filter 2.6s var(--ease) .3s; }
.intro-go .h-wall .mould, .intro-go .h-wall .mould2 { stroke-dashoffset: 0; transition: stroke-dashoffset 2.4s var(--ease); }
.intro-go .h-copy .script { clip-path: inset(0 0 0 0); transition: clip-path 2s cubic-bezier(.5, .1, .3, 1) .5s; }
.intro-go .h-copy > :not(.script) { opacity: 1; transform: none; transition: opacity 1.2s var(--ease) 1.1s, transform 1.2s var(--ease) 1.1s; }
@media (max-width: 820px) {
  .hero { height: 190vh; }
  .h-copy { left: var(--pad); right: var(--pad); width: auto; top: 64px; bottom: auto; height: 44%; padding-top: 0; justify-content: flex-end; padding-bottom: 14px; }
  .h-copy .script { font-size: 60px; }
  .h-copy h1 { font-size: 30px; }
  .h-copy .lede { display: none; }
  .row { margin-top: 18px; }
  .h-wash { left: -20%; top: 6%; width: 120%; height: 34%; }
  .h-hint { display: none; }
  .h-open { bottom: 22px; }
}
@media (max-width: 820px) and (min-height: 760px) { .h-copy .lede { display: block; font-size: 15px; margin-top: 12px; } }

/* ------------------------------------------------ 2. the film */
.film { background: var(--cream); padding: clamp(70px, 9vw, 130px) 0 clamp(60px, 7vw, 100px); overflow: hidden; }
.f-wash { right: -8%; top: -4%; width: 46vw; height: 46vw; --wo: .38; }
.film-head { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 0 60px; align-items: end; margin-bottom: 42px; }
.film-head .script { grid-column: 1; }
.film-head h2 { grid-column: 1; }
.film-head .lede { grid-column: 2; grid-row: 1 / span 2; align-self: end; margin: 0; }
.film-box { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #2a2622; z-index: 1; }
.film-box img, .film-box video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.film-play { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; border: 0; background: radial-gradient(closest-side, rgba(30, 24, 18, .35), rgba(30, 24, 18, 0)); color: #fff; cursor: pointer; font: 400 12.5px/1 var(--sans); letter-spacing: .26em; text-transform: uppercase; }
.film-play .ring { width: 104px; height: 104px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .8); display: grid; place-items: center; backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); background: rgba(255, 255, 255, .12); transition: transform .5s var(--ease), background .4s; }
.film-play .ring svg { width: 28px; height: 28px; fill: #fff; margin-left: 4px; }
.film-play:hover .ring { transform: scale(1.07); background: rgba(255, 255, 255, .24); }
.film-play .t { text-shadow: 0 1px 10px rgba(0, 0, 0, .5); }
.film-meta { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 26px; }
.film-meta p { margin: 0; font-size: 14.5px; color: var(--ink-2); border-top: 1px solid rgba(59, 49, 39, .18); padding-top: 14px; }
.film-meta b { display: block; font: 400 12px/1.4 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--ink); margin-bottom: 4px; }
@media (max-width: 820px) { .film-head { grid-template-columns: 1fr; } .film-head .lede { grid-column: 1; grid-row: auto; margin-top: 16px; } .film-meta { grid-template-columns: 1fr; gap: 0; } .film-meta p { padding: 12px 0; } .film-play .ring { width: 78px; height: 78px; } }

/* ------------------------------------------------ 3. intro */
.intro { background: var(--cream); padding: clamp(40px, 6vw, 90px) 0 clamp(80px, 9vw, 140px); overflow: hidden; }
.i-wash { left: 28%; top: 10%; width: 60%; height: 40%; --wo: .45; }
.intro-in { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 1fr .8fr; gap: clamp(24px, 4vw, 64px); align-items: center; }
.i-a { width: 100%; }
.i-b { width: 100%; margin-top: 32vh; }
.i-txt h2 span:not(.script) { display: inline; }
.i-txt h2 { color: var(--blue-d); }
.i-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 34px 0; padding: 0; }
.i-stats div { border-top: 1px solid rgba(176, 141, 87, .6); padding-top: 12px; }
.i-stats dt { font: 400 clamp(24px, 2.2vw, 34px)/1 var(--serif); color: var(--blue-d); letter-spacing: .06em; }
.i-stats dd { margin: 8px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--ink-2); }
@media (max-width: 980px) {
  .intro-in { grid-template-columns: 1fr 1fr; }
  .i-txt { grid-column: 1 / -1; grid-row: 1; }
  .i-b { margin-top: 18vh; }
}

/* ------------------------------------------------ 4. the enfilade */
.enf { background: #2b2520; }
.enf-stick { position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; }
.enf-stage { position: absolute; inset: 0; }
.enf-layer { position: absolute; inset: 0; will-change: clip-path; }
.enf-layer .m { position: absolute; inset: 0; transform-origin: var(--vx, 50%) var(--vy, 46%); will-change: transform; }
.enf-layer img, .enf-layer video { width: 100%; height: 100%; object-fit: cover; }
.enf-layer .sh { position: absolute; inset: 0; pointer-events: none; background: rgba(20, 16, 12, var(--dk, 0)); }
.enf-frames { z-index: 15; position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.enf-frames .fs { fill: none; stroke: rgba(20, 14, 10, .32); }
.enf-frames .fl { fill: none; stroke: #F4EEE4; }
.enf-frames .fg { fill: none; stroke: var(--gold); }
.enf-cap { position: absolute; left: var(--pad); bottom: clamp(20px, 4vh, 44px); width: min(420px, calc(100% - 2 * var(--pad))); background: rgba(251, 247, 241, .95); padding: 26px 30px 28px; z-index: 20; box-shadow: 0 20px 60px rgba(20, 14, 10, .25); }
.enf-cap::before { content: ''; position: absolute; left: 0; right: 0; top: -15px; height: 16px; background: radial-gradient(circle at 50% 100%, rgba(251, 247, 241, .95) 10px, transparent 10.6px) 0 0 / 24px 16px repeat-x; }
.enf-cap .k { margin-bottom: 4px; }
.enf-cap .script { font-size: clamp(54px, 5.4vw, 84px); margin: 0 0 -.08em -.04em; }
.enf-cap h3 { color: var(--blue-d); }
.enf-cap .meta { margin: 8px 0 0; font: 400 12px/1.5 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); }
.enf-cap .ln { margin: 12px 0 18px; font-size: 15.5px; color: var(--ink-2); line-height: 1.6; }
.enf-cap .cap-in { transition: opacity .45s var(--ease), transform .45s var(--ease); }
.enf-cap .cap-in.out { opacity: 0; transform: translateY(8px); }
.enf-head { position: absolute; left: var(--pad); top: 96px; z-index: 20; color: #fff; text-shadow: 0 2px 18px rgba(20, 14, 10, .55); transition: opacity .6s; max-width: 640px; }
.enf-head .k { color: rgba(255, 255, 255, .9); }
.enf-head h2 { font-size: clamp(28px, 3.3vw, 52px); }
.enf-head .script.inl { color: #FBE4DC; }
.enf.past-first .enf-head { opacity: 0; }
.enf-plan { position: absolute; right: var(--pad); bottom: clamp(20px, 4vh, 44px); z-index: 20; list-style: none; margin: 0; padding: 14px 16px; display: flex; gap: 6px; background: rgba(251, 247, 241, .92); }
.enf-plan li { margin: 0; }
.enf-plan button { display: block; width: 42px; height: 58px; padding: 0; border: 1px solid rgba(59, 49, 39, .35); background: transparent; cursor: pointer; border-radius: 21px 21px 0 0; position: relative; transition: background .3s, border-color .3s; }
.enf-plan button span { position: absolute; left: 50%; bottom: -24px; transform: translateX(-50%); font: 400 10px/1 var(--sans); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); white-space: nowrap; display: none; }
.enf-plan button[aria-current="true"] { background: var(--blush-d); border-color: var(--rose-d); }
.enf-plan button[aria-current="true"]::after { content: ''; position: absolute; left: 50%; bottom: 10px; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: var(--rose-d); }
.enf-plan button:hover { border-color: var(--ink); }
.enf .credit { z-index: 21; bottom: 4px; }
html.rm .enf-stick, .enf.static .enf-stick { position: relative; height: auto; }
@media (max-width: 820px) {
  .enf-cap { padding: 16px 18px 18px; bottom: 92px; }
  .enf-cap .ln { display: none; }
  .enf-cap .script { font-size: 48px; }
  .enf-plan { left: var(--pad); right: auto; bottom: 18px; padding: 10px 12px; gap: 5px; }
  .enf-plan button { width: 30px; height: 42px; border-radius: 15px 15px 0 0; }
  .enf-head { top: 78px; }
}
/* reduced motion: the rooms are listed one after the other */
.enf.static .enf-stage { position: relative; display: grid; gap: 0; }
.enf.static .enf-layer { position: relative; height: 80vh; clip-path: none !important; }
.enf.static .enf-layer .m { transform: none !important; }
.enf.static .enf-frames, .enf.static .enf-plan, .enf.static .enf-cap { display: none; }
.enf.static .enf-layer .stc { position: absolute; left: var(--pad); bottom: 30px; background: rgba(251, 247, 241, .95); padding: 18px 24px; max-width: 420px; }
.enf.static .enf-layer .stc h3 { color: var(--blue-d); }
.enf.static .enf-layer .stc p { margin: 6px 0 12px; font-size: 15px; color: var(--ink-2); }
.enf-layer .stc { display: none; }
.enf.static .enf-layer .stc { display: block; }

/* ------------------------------------------------ 5. rooms */
.rooms { background: var(--cream); padding: clamp(80px, 9vw, 140px) 0 clamp(70px, 8vw, 120px); overflow: hidden; }
.r-wash { right: -10%; top: 6%; width: 64%; height: 30%; --wo: .5; }
.rooms-head { position: relative; z-index: 1; text-align: center; display: flex; flex-direction: column; align-items: center; margin-bottom: 52px; }
.rooms-head h2 { color: var(--blue-d); }
.rooms-head .lede { text-align: center; }
.rooms-row { position: relative; z-index: 1; display: flex; gap: clamp(16px, 1.6vw, 24px); overflow-x: auto; scroll-snap-type: x mandatory; padding: 0 var(--pad) 26px; scrollbar-width: thin; scrollbar-color: var(--rose) transparent; }
.rcard { flex: 0 0 clamp(250px, 23vw, 340px); scroll-snap-align: start; text-decoration: none; display: block; }
.rcard .media { width: 100%; }
.rcard img { transition: transform 1.2s var(--ease); }
.rcard:hover img, .rcard:focus-visible img { transform: scale(1.05); }
.rcard .lab { display: flex; justify-content: center; margin-top: -20px; position: relative; z-index: 2; }
.rcard .lab .label { box-shadow: 0 6px 18px rgba(59, 49, 39, .12); }
.rcard .inf { text-align: center; margin: 14px 0 0; font-size: 13.5px; letter-spacing: .08em; color: var(--ink-2); }
.rooms-more { display: flex; justify-content: center; margin-top: 34px; position: relative; z-index: 1; }

/* ------------------------------------------------ 6. dining */
.dine { background: var(--blush); padding: 0 0 clamp(60px, 6vw, 100px); }
.dine .scallop { transform: rotate(180deg); }
.dine-in { display: grid; grid-template-columns: 1.15fr 1fr .72fr; gap: clamp(24px, 4vw, 64px); align-items: start; padding-top: clamp(60px, 7vw, 110px); }
.d-main { width: 100%; }
.d-txt { padding-top: 6vh; }
.d-txt h2 { color: var(--blue-d); }
.d-txt .script, .fr-card .script, .film-head .script { white-space: nowrap; font-size: clamp(54px, 5.6vw, 96px); }
.menu { list-style: none; margin: 30px 0 32px; padding: 0; }
.menu li { display: flex; justify-content: space-between; gap: 18px; padding: 12px 0; border-bottom: 1px dashed rgba(156, 95, 86, .45); font-size: 15.5px; }
.menu li b { font-weight: 400; color: var(--ink); }
.menu li span { font-family: var(--serif); letter-spacing: .06em; color: var(--rose-d); white-space: nowrap; }
.d-bar { width: 100%; aspect-ratio: 3 / 4.2; margin-top: 16vh; overflow: visible; background: none; }
.d-bar video { border-radius: 50%; aspect-ratio: 3 / 4.2; height: auto; }
.d-bar figcaption { margin-top: 16px; font-size: 14px; line-height: 1.55; color: var(--ink-2); }
.d-bar figcaption b { font: 400 12px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--ink); }
.d-bar .credit { bottom: auto; top: calc(100% - 160px); }
@media (max-width: 980px) { .dine-in { grid-template-columns: 1fr 1fr; } .d-txt { grid-column: 1 / -1; grid-row: 1; padding: 0; } .d-bar { margin-top: 12vh; } .d-bar .credit { top: auto; bottom: 120px; } }

/* ------------------------------------------------ 7. fresco */
.fresco { min-height: 100vh; display: flex; align-items: center; }
.fr-media { position: absolute; inset: 0; }
.fr-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(40, 32, 26, .35), rgba(40, 32, 26, 0) 60%); }
.fr-in { position: relative; z-index: 2; padding-top: 90px; padding-bottom: 90px; }
.fr-card { width: min(470px, 100%); background: rgba(251, 247, 241, .94); color: var(--ink); padding: 40px 40px 44px; position: relative; }
.fr-card::before { content: ''; position: absolute; inset: 8px; border: 1px solid rgba(176, 141, 87, .55); pointer-events: none; }
.fr-card .script { color: var(--rose-d); font-size: clamp(56px, 6vw, 96px); }
.fr-card h2 { color: var(--blue-d); }
.fr-card .lede { color: var(--ink-2); margin-bottom: 28px; }

/* ------------------------------------------------ 8. city */
.city { background: var(--sky); padding: clamp(70px, 8vw, 120px) 0; overflow: hidden; }
.city-in { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(28px, 5vw, 80px); align-items: center; }
.c-txt h2 { color: var(--blue-d); }
.c-txt .script { color: var(--blue-btn); }
.c-list { list-style: none; margin: 34px 0 30px; padding: 0; counter-reset: c; }
.c-list li { margin: 0; border-top: 1px solid rgba(52, 73, 95, .22); }
.c-list li:last-child { border-bottom: 1px solid rgba(52, 73, 95, .22); }
.c-list button { width: 100%; text-align: left; background: none; border: 0; padding: 16px 0; cursor: pointer; display: grid; grid-template-columns: 44px 1fr auto; align-items: baseline; gap: 10px; color: var(--ink); }
.c-list button .n { font: 400 15px/1 var(--serif); color: var(--blue-btn); letter-spacing: .08em; }
.c-list button .nm { font: 400 clamp(18px, 1.6vw, 23px)/1.25 var(--serif); letter-spacing: .1em; text-transform: uppercase; }
.c-list button .mt { font-size: 13px; color: var(--ink-2); white-space: nowrap; }
.c-list button[aria-expanded="true"] .nm { color: var(--rose-d); }
.c-list .tx { margin: 0 0 18px 54px; font-size: 15px; color: var(--ink-2); line-height: 1.6; }
.c-frame { width: min(100%, calc(92vh / 1.1)); aspect-ratio: 10 / 11; --ry: 45.45%; justify-self: end; }
.c-frame img { position: absolute; inset: 0; animation: cfade .8s var(--ease); }
@keyframes cfade { from { opacity: 0; transform: scale(1.04); } to { opacity: 1; transform: none; } }
@media (max-width: 860px) { .city-in { grid-template-columns: 1fr; } .c-frame { justify-self: center; width: 100%; } .c-list button { grid-template-columns: 34px 1fr; } .c-list button .mt { grid-column: 2; white-space: normal; } .c-list .tx { margin-left: 44px; } }

/* ------------------------------------------------ 9. book */
.bk { min-height: 100vh; display: flex; align-items: flex-end; }
.bk-media { position: absolute; inset: 0; }
.bk-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(40, 30, 40, 0) 30%, rgba(40, 30, 40, .55)); }
.bk-in { position: relative; z-index: 2; padding-top: 120px; padding-bottom: clamp(40px, 7vh, 80px); display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: end; }
.bk-txt h2 { font-size: clamp(30px, 3.6vw, 56px); text-shadow: 0 2px 20px rgba(30, 20, 30, .5); }
.bk-txt .lede, .bk-txt .script { text-shadow: 0 1px 14px rgba(30, 20, 30, .6); }
.quick { background: rgba(251, 247, 241, .96); color: var(--ink); padding: 28px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.quick .field:nth-child(3) { grid-column: 1 / -1; }
.quick .btn { grid-column: 1 / -1; }
.quick .err { grid-column: 1 / -1; margin: 0; }
@media (max-width: 860px) { .bk-in { grid-template-columns: 1fr; } .quick { grid-template-columns: 1fr; padding: 20px; } }
