/* VOLTA BLANCA · home */

/* 1. the story: one arch opens, then one doorway per chapter */
.story { position: relative; height: 470vh; background: var(--sand); }
.s-pin { position: sticky; top: 0; height: 100vh; min-height: 560px; overflow: hidden;
  background: radial-gradient(70% 60% at 68% 14%, rgba(255, 252, 245, .95), rgba(255, 252, 245, 0) 70%),
              radial-gradient(120% 90% at 50% 0%, #f7f3ec 0%, #efebe3 52%, #e4ddcf 100%); }
.s-pin::before { content: ''; position: absolute; inset: 0; opacity: .5; mix-blend-mode: multiply; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .55 0 0 0 0 .5 0 0 0 0 .42 0 0 0 .09 0'/%3E%3C/filter%3E%3Crect width='240' height='240' filter='url(%23n)'/%3E%3C/svg%3E"); }
.s-intro { position: absolute; inset: 0; z-index: 4; pointer-events: none; will-change: opacity, transform; }
.s-lock { position: absolute; left: 50%; top: 15vh; transform: translateX(-50%); width: min(92vw, 1100px); text-align: center; pointer-events: auto; }
.s-lock .kick { margin-bottom: 22px; }
.s-lock .caps { font-size: clamp(50px, 6.6vw, 112px); font-weight: 320; letter-spacing: .01em; }
.s-lock .script { font-size: clamp(40px, 4.4vw, 76px); margin: .24em 0 0; transform: rotate(-3deg); }
.s-hint { position: absolute; left: var(--gut); bottom: 32px; margin: 0; display: flex; align-items: center; gap: 12px; font: 600 11px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.s-hint i { width: 1px; height: 38px; background: linear-gradient(var(--muted), transparent); }
.s-window { display: none; }
.scene { position: absolute; inset: 0; overflow: hidden; visibility: hidden; z-index: 1; }
.scene.on { visibility: visible; }
.s-media { position: absolute; inset: 0; transform-origin: 50% 50%; will-change: transform; }
.s-media video, .s-media img { width: 100%; height: 100%; object-fit: cover; }
.scene .s-media.kb img { transform-origin: 40% 55%; }
@media (max-aspect-ratio: 9/10) { .scene[data-i="3"] .s-media img { object-position: 4% 50%; } }
.scene.on .s-media.kb img { animation: kb 18s ease-in-out infinite alternate; }
@keyframes kb { from { transform: scale(1.02); } to { transform: scale(1.11) translate(-1.2%, -0.8%); } }
.scrim { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(14, 21, 29, .62) 0%, rgba(14, 21, 29, .32) 26%, rgba(14, 21, 29, 0) 52%),
              linear-gradient(to right, rgba(14, 21, 29, .32) 0%, rgba(14, 21, 29, 0) 46%); }
.scrim.right { background: linear-gradient(to top, rgba(14, 21, 29, .66) 0%, rgba(14, 21, 29, .34) 26%, rgba(14, 21, 29, 0) 52%),
              linear-gradient(to left, rgba(14, 21, 29, .4) 0%, rgba(14, 21, 29, 0) 50%); }
.cap { position: absolute; left: var(--gut); bottom: clamp(56px, 9vh, 110px); width: min(86vw, 520px); color: #fff; will-change: opacity, transform; }
.cap.right { left: auto; right: var(--gut); text-align: right; }
.cap-n { margin: 0 0 14px; font: 600 12px/1 var(--sans); letter-spacing: .22em; color: rgba(255, 255, 255, .78); }
.cap-n b { color: #fff; font-weight: 700; }
.cap .caps { font-size: clamp(58px, 7.4vw, 128px); font-weight: 320; line-height: .88; }
.cap-l { margin: 18px 0 20px; font-size: clamp(16px, 1.2vw, 19px); line-height: 1.55; color: rgba(255, 255, 255, .92); }
.cap.right .cap-l { margin-left: auto; }
.cap .tlink { color: #fff; font-size: 15px; }
.s-rim { position: absolute; z-index: 3; pointer-events: none; opacity: 0;
  box-shadow: 0 0 0 7px rgba(251, 249, 245, .97), 0 0 0 8px rgba(120, 104, 80, .12), 0 40px 70px -30px rgba(60, 45, 25, .45), inset 0 26px 50px -22px rgba(10, 15, 20, .42); }
.s-prog { position: absolute; right: 22px; top: 50%; width: 2px; height: 110px; margin-top: -55px; background: rgba(43, 61, 80, .16); z-index: 5; border-radius: 2px; overflow: hidden; }
.s-prog i { display: block; width: 100%; height: 100%; background: var(--teal); transform-origin: top; transform: scaleY(0); }
html:not(.js-story) .scene[data-i="1"] .cap { opacity: 1; }
@media (max-width: 640px) { .s-lock { top: 13vh; } .s-lock .caps { font-size: clamp(44px, 12.6vw, 64px); } .cap .caps { font-size: clamp(52px, 15vw, 76px); } .s-prog { display: none; } }

/* reduced motion or no script: an intro with a still arch, then four stacked scenes */
html:not(.js-story) .story { height: auto; }
html:not(.js-story) .s-pin { position: relative; height: auto; overflow: visible; background: none; }
html:not(.js-story) .s-pin::before { display: none; }
html:not(.js-story) .s-intro { position: relative; height: 100vh; min-height: 640px; background: radial-gradient(120% 90% at 50% 0%, #f7f3ec 0%, #efebe3 52%, #e4ddcf 100%); }
html:not(.js-story) .s-window { display: block; position: absolute; left: 50%; bottom: 7vh; height: 36vh; aspect-ratio: 1 / 1.45; transform: translateX(-50%); border-radius: 999px 999px 0 0; overflow: hidden; box-shadow: 0 0 0 7px rgba(251,249,245,.97), 0 40px 70px -30px rgba(60,45,25,.45); }
html:not(.js-story) .s-window img { width: 100%; height: 100%; object-fit: cover; }
html:not(.js-story) .scene { position: relative; height: 100vh; min-height: 560px; visibility: visible; }
html:not(.js-story) .cap { opacity: 1; }
html:not(.js-story) .s-rim, html:not(.js-story) .s-prog, html:not(.js-story) .s-hint { display: none; }
html.rm .scene .s-media.kb img { animation: none; }

/* 2. film */
.film { background: var(--sand); padding-top: clamp(70px, 8vw, 120px); }
.f-head { margin-bottom: 36px; }
.f-head .lock .caps { font-size: clamp(50px, 7vw, 112px); }
.f-frame { position: relative; aspect-ratio: 16 / 9; border-radius: clamp(120px, 22vw, 360px) clamp(120px, 22vw, 360px) 20px 20px; overflow: hidden; background: var(--ink); }
.f-frame video { width: 100%; height: 100%; object-fit: cover; }
.f-play { position: absolute; left: 50%; top: 55%; transform: translate(-50%, -50%); width: 150px; height: 150px; border-radius: 50%; border: 0; background: rgba(251, 249, 245, .92); color: var(--navy); cursor: pointer; display: grid; place-items: center; transition: transform .4s var(--ease), background .3s; }
.f-play:hover { transform: translate(-50%, -50%) scale(1.06); background: #fff; }
.f-play .lbl { font: 400 34px/1 var(--caps); text-transform: uppercase; letter-spacing: .08em; }
.f-play .ring { position: absolute; inset: -12px; border: 1.5px solid rgba(251, 249, 245, .7); border-radius: 50%; animation: ring 2.6s var(--ease) infinite; }
@keyframes ring { from { transform: scale(.9); opacity: 1; } to { transform: scale(1.25); opacity: 0; } }
html.rm .f-play .ring { animation: none; }
.film.playing .f-play { opacity: 0; pointer-events: none; }
.f-desc { max-width: 46em; margin: 26px auto 0; text-align: center; color: var(--muted); }
@media (max-width: 640px) { .f-head { flex-direction: column; align-items: start; } .f-play { width: 104px; height: 104px; } .f-play .lbl { font-size: 26px; } }

/* 3. intro */
.i-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(30px, 6vw, 100px); align-items: center; }
.i-copy .lede { margin: 34px 0 26px; }
.i-stack { height: clamp(460px, 46vw, 680px); }
.i-stack .pol, .h-stack .pol { width: 64%; }
.i-stack .pol:nth-child(2), .h-stack .pol:nth-child(2) { left: 36%; }
@media (max-width: 860px) { .i-grid { grid-template-columns: 1fr; } .i-stack { height: 120vw; max-height: 620px; } }

/* 4. services */
.intro { padding-bottom: 40px; }
.svc { padding-top: 40px; }
.svc-h { text-align: right; margin-bottom: 40px; }
.svc-h .script { margin: 0 .3em -.3em 0; transform: rotate(-4deg); transform-origin: right; }
.tiles { display: grid; grid-template-columns: repeat(12, 1fr); grid-auto-rows: clamp(60px, 6vw, 92px); gap: 18px 24px; }
.tile { position: relative; text-decoration: none; color: var(--navy); display: flex; flex-direction: column; }
.tile .t-media { flex: 1; overflow: hidden; background: var(--navy); border-radius: 4px; }
.tile video { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.tile:hover video { transform: scale(1.05); }
.t-name { font-size: clamp(40px, 4.6vw, 76px); margin-top: 14px; transition: color .3s; }
.tile:hover .t-name { color: var(--teal); }
.t-meta { font-size: 15px; color: var(--muted); margin-top: 6px; }
.t1 { grid-column: 1 / 8; grid-row: 1 / 7; }
.t2 { grid-column: 8 / 13; grid-row: 2 / 7; }
.t3 { grid-column: 2 / 6; grid-row: 7 / 12; }
.t4 { grid-column: 6 / 13; grid-row: 8 / 14; }
.t5 { grid-column: 1 / 6; grid-row: 12 / 17; }
.t4 .t-media { border-radius: 999px 999px 4px 4px; }
@media (max-width: 760px) {
  .tiles { grid-template-columns: 1fr 1fr; grid-auto-rows: auto; }
  .tile { grid-column: auto !important; grid-row: auto !important; }
  .tile .t-media { aspect-ratio: 4 / 5; flex: none; }
  .t1, .t4 { grid-column: 1 / 3 !important; }
  .t1 .t-media, .t4 .t-media { aspect-ratio: 4 / 3; }
  .svc-h { text-align: left; } .svc-h .script { margin: 0 0 -.4em 1em; transform-origin: left; }
}

/* 5. deal your week */
.deal { background: var(--sand-2); overflow: hidden; padding-bottom: 60px; }
.d-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(30px, 5vw, 80px); align-items: center; }
.d-copy .lede { margin: 30px 0 16px; }
.d-keys { font-size: 14px; color: var(--muted); }
kbd { font: 600 12px/1 var(--sans); border: 1px solid var(--line); background: var(--plaster); border-radius: 4px; padding: 3px 6px; }
.d-table { display: grid; justify-items: center; gap: 22px; }
.deck { position: relative; width: min(370px, 78vw); aspect-ratio: 370 / 470; outline-offset: 10px; touch-action: pan-y; }
.card { position: absolute; inset: 0; background: #fff; padding: 14px 14px 0; box-shadow: 0 1px 1px rgba(0,0,0,.05), 0 30px 60px -30px rgba(29,41,53,.55); user-select: none; -webkit-user-select: none; cursor: grab; will-change: transform; display: flex; flex-direction: column; }
.card:active { cursor: grabbing; }
.card img { width: 100%; flex: 1; min-height: 0; object-fit: cover; pointer-events: none; background: var(--sand-2); }
.card .c-k { position: absolute; top: 26px; left: 26px; background: rgba(251,249,245,.94); color: var(--navy); font: 600 11px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; padding: 7px 10px; border-radius: 99px; }
.card .c-t { font: 400 clamp(28px, 2.4vw, 36px)/1 var(--script); color: var(--navy); padding: 14px 4px 2px; }
.card .c-l { font-size: 13px; color: var(--muted); padding: 0 4px; }
.card .c-p { font: 400 22px/1 var(--caps); color: var(--navy); padding: 8px 4px 16px; text-transform: uppercase; letter-spacing: .04em; }
.card .stamp { position: absolute; top: 40%; font: 400 64px/1 var(--script); padding: 0 18px 8px; border-radius: 12px; opacity: 0; pointer-events: none; }
.card .stamp.keep { left: 24px; color: var(--teal); transform: rotate(-12deg); background: rgba(251,249,245,.85); }
.card .stamp.pass { right: 24px; color: var(--terra); transform: rotate(10deg); background: rgba(251,249,245,.85); }
.d-btns { display: flex; gap: 12px; }
.d-left { margin: 0; font-size: 14px; color: var(--muted); min-height: 1.4em; }
.deck-empty { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; border: 1.5px dashed var(--line); padding: 30px; color: var(--muted); }
.line-wrap { position: relative; margin: 50px 0 10px; height: 260px; }
.string { position: absolute; left: 0; top: 0; width: 100%; height: 60px; }
.line { list-style: none; margin: 0; padding: 0 var(--gut); position: absolute; inset: 0; display: grid; grid-template-columns: repeat(8, 1fr); gap: clamp(6px, 1.2vw, 18px); }
.line li { position: relative; padding-top: 26px; display: grid; justify-items: center; align-content: start; }
.line .slot::after { content: ''; width: 34%; aspect-ratio: 1 / 1.2; border: 1.5px solid rgba(43,61,80,.2); border-bottom: 0; border-radius: 999px 999px 0 0; }
.line .pin { position: absolute; top: 14px; width: 8px; height: 22px; background: #c8b89a; border-radius: 2px; box-shadow: 0 1px 2px rgba(0,0,0,.2); z-index: 2; }
.line .slot { width: 100%; max-width: 150px; aspect-ratio: 150 / 186; border: 1.5px dashed rgba(43,61,80,.22); display: grid; place-items: center; font: 400 22px/1 var(--caps); color: rgba(43,61,80,.45); text-transform: uppercase; letter-spacing: .06em; }
.line .mini { width: 100%; max-width: 150px; background: #fff; padding: 6px 6px 0; box-shadow: 0 16px 30px -18px rgba(29,41,53,.6); transform-origin: 50% 0; animation: sway 5s ease-in-out infinite; }
.line li:nth-child(even) .mini { animation-delay: -2.4s; }
.line .mini img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.line .mini.fresh img { animation: develop 2.6s ease-out both; }
.line .mini span { display: block; font: 400 clamp(15px, 1.3vw, 20px)/1.05 var(--script); color: var(--navy); text-align: center; padding: 6px 2px 8px; }
.line .day { font: 600 10px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 8px; }
@keyframes develop { 0% { filter: brightness(1.9) contrast(.35) saturate(0) blur(3px); } 40% { filter: brightness(1.4) contrast(.6) saturate(.3) blur(1px); } 100% { filter: none; } }
@keyframes sway { 0%, 100% { transform: rotate(-1.6deg); } 50% { transform: rotate(1.6deg); } }
html.rm .line .mini, html.rm .line .mini img { animation: none; }
.d-sum { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 20px; border-top: 1px solid var(--line); padding-top: 26px; }
.d-total { margin: 0; display: grid; }
.d-total span { font: 600 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--teal); }
.d-total b { font: 340 clamp(48px, 5vw, 76px)/1 var(--caps); margin: 6px 0 2px; font-variant-numeric: tabular-nums; }
.d-total small { color: var(--muted); font-size: 14px; }
.d-acts { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 860px) {
  .d-grid { grid-template-columns: 1fr; }
  .line-wrap { height: auto; margin-top: 30px; }
  .string { display: none; }
  .line { position: static; grid-template-columns: repeat(4, 1fr); row-gap: 16px; }
}

/* 6. villas rail */
.vil { padding-left: 0; padding-right: 0; }
.vil .wrap { padding: 0 var(--gut); }
.v-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 44px; }
.v-rail { display: flex; gap: clamp(16px, 2vw, 30px); overflow-x: auto; scroll-snap-type: x mandatory; padding: 10px var(--gut) 30px; scrollbar-width: thin; }
.v-card { flex: 0 0 clamp(270px, 30vw, 440px); scroll-snap-align: start; text-decoration: none; color: var(--navy); }
.v-card .arch { aspect-ratio: 4 / 5; background: var(--sand-2); }
.v-card img { transition: transform 1.2s var(--ease); }
.v-card:hover img { transform: scale(1.05); }
.v-card .n { font: 340 clamp(34px, 3vw, 48px)/1 var(--caps); text-transform: uppercase; margin: 18px 0 4px; display: block; }
.v-card .m { font-size: 14px; color: var(--muted); display: block; }
.v-card .p { font-weight: 600; font-size: 15px; display: block; margin-top: 6px; }

/* 7. yachts */
.yac { position: relative; min-height: 100vh; display: grid; align-items: end; color: #fff; overflow: hidden; }
.y-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.y-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20,30,40,.05) 30%, rgba(20,30,40,.62)); }
.y-in { position: relative; padding: 0 var(--gut) clamp(60px, 9vw, 130px); max-width: 900px; }
.y-in .caps { font-size: clamp(60px, 9vw, 150px); }
.y-in .script { color: var(--aqua); }
.y-in p { font-size: clamp(17px, 1.4vw, 20px); max-width: 30em; margin: 24px 0; }

/* 8. host */
.h-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 6vw, 100px); align-items: center; }
.h-stack { height: clamp(460px, 44vw, 660px); }
.h-copy2 .script { margin: 0 0 -.42em .6em; font-size: clamp(64px, 8vw, 128px); }
.h-copy2 .caps { font-size: clamp(60px, 8.4vw, 136px); }
.h-copy2 .lede { margin: 30px 0; }
@media (max-width: 860px) { .h-grid { grid-template-columns: 1fr; } .h-stack { height: 120vw; max-height: 600px; order: 2; } }

/* 9. journal */
.j-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: clamp(18px, 2.4vw, 36px); margin-top: 50px; }
.j-card { text-decoration: none; color: var(--navy); display: block; }
.j-card .im { display: block; overflow: hidden; aspect-ratio: 4 / 5; background: var(--sand-2); }
.j-card:first-child .im { aspect-ratio: 4 / 4.2; border-radius: 999px 999px 0 0; }
.j-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.j-card:hover img { transform: scale(1.05); }
.j-card .k { font: 600 11px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--teal); display: block; margin: 18px 0 8px; }
.j-card .t { font: 340 clamp(28px, 2.4vw, 40px)/1 var(--caps); text-transform: uppercase; display: block; }
.j-card .d { font-size: 15px; color: var(--muted); display: block; margin-top: 8px; }
@media (max-width: 860px) { .j-grid { grid-template-columns: 1fr; } }

/* 10. cta */
.cta { position: relative; padding: 40px var(--gut) clamp(80px, 10vw, 140px); display: grid; justify-items: center; }
.c-arch { width: min(1100px, 100%); aspect-ratio: 16 / 10; }
.c-in { text-align: center; margin-top: -9%; position: relative; background: var(--sand); padding: 50px clamp(20px, 5vw, 80px) 0; border-radius: 48px 48px 0 0; width: min(900px, 100%); }
.c-in .caps { font-size: clamp(54px, 7vw, 110px); }
.c-in p { color: var(--muted); margin: 26px 0; }
@media (max-width: 640px) { .c-arch { aspect-ratio: 3 / 4; } .c-in { margin-top: -30%; } }
