/* =========================================================================
   Zenon Karaoke · site.css — page chrome: atmosphere layers, loader, nav,
   cursor, footer. Section styles live in sections.css.
   ========================================================================= */

/* ---------- atmosphere: grain · marble · vignette ---------------------- */
.atmos { position: fixed; inset: 0; pointer-events: none; z-index: 80; }
.atmos-grain {
  position: absolute; inset: -50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .93 0 0 0 0 .92 0 0 0 0 .91 0 0 0 .55 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 220px 220px;
  opacity: .055;
  mix-blend-mode: overlay;
  animation: grain 1.1s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -4%); }
  60% { transform: translate(-1%, 3%); } 80% { transform: translate(3%, 1%); } 100% { transform: translate(0, 0); }
}
.atmos-vignette { position: absolute; inset: 0; background: radial-gradient(ellipse 120% 90% at 50% 50%, transparent 60%, rgba(0, 0, 0, .18) 100%); }
.marble { position: relative; }
.marble::before { content: ""; position: absolute; inset: 0; background: url("../img/marble-1280.webp") center / 920px repeat; opacity: .05; pointer-events: none; mix-blend-mode: screen; }

/* ---------- loader ---------------------------------------------------- */
.loader { position: fixed; inset: 0; z-index: 200; background: #0E0D0C; display: grid; place-items: center; transition: clip-path 1s var(--ease-in-out) .25s, visibility 0s linear 1.3s; clip-path: inset(0 0 0 0); }
html[data-loaded="true"] .loader { clip-path: inset(0 0 100% 0); visibility: hidden; }
.loader-in { display: flex; flex-direction: column; align-items: center; gap: 26px; }
.loader-rule { width: clamp(140px, 30vw, 420px); height: 1px; background: rgba(237, 235, 233, .35); transform: scaleX(0); transform-origin: 0 50%; animation: ruleIn 1s var(--ease-expo) .1s forwards; }
.loader-logo { height: clamp(44px, 6vw, 72px); width: auto; opacity: 0; clip-path: inset(0 100% 0 0); animation: logoIn 1.1s var(--ease-expo) .55s forwards; }
.loader-line { font-size: 12px; letter-spacing: .42em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; opacity: 0; transform: translateY(8px); animation: lineIn .8s var(--ease-out) 1.1s forwards; }
.loader-line i { font-style: italic; text-transform: none; letter-spacing: .04em; font-weight: 400; color: var(--ink-2); font-size: 15px; }
html[data-loaded="true"] .loader-in { opacity: 0; transition: opacity .35s ease; }
@keyframes ruleIn { to { transform: scaleX(1); } }
@keyframes logoIn { to { opacity: 1; clip-path: inset(0 0 0 0); } }
@keyframes lineIn { to { opacity: 1; transform: none; } }
html[data-loaded="false"] body { overflow: hidden; }

/* ---------- nav ------------------------------------------------------- */
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 100; height: var(--nav-h); transition: background .5s ease, border-color .5s ease, transform .5s var(--ease-out); border-bottom: 1px solid transparent; }
html[data-scrolled="true"] .nav { background: rgba(21, 19, 18, .78); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-bottom-color: var(--line-soft); }
.nav-progress { position: absolute; left: 0; top: 0; height: 1px; width: 100%; background: var(--accent); transform: scaleX(var(--scroll)); transform-origin: 0 50%; opacity: .9; }
.nav-in { height: 100%; display: flex; align-items: center; gap: clamp(18px, 2.4vw, 36px); }
.nav-logo { display: flex; align-items: center; }
.nav-logo img { height: 44px; width: auto; }
.nav-chapter { display: flex; align-items: center; gap: 14px; padding-left: clamp(14px, 2vw, 28px); border-left: 1px solid var(--line); height: 28px; font-weight: 600; font-size: 11.5px; letter-spacing: .34em; text-transform: uppercase; color: var(--ink-3); transition: opacity .5s ease; }
html[data-chapter="0"] .nav-chapter { display: none; }
.nav-chapter .roll { position: relative; display: inline-block; height: 1.2em; min-width: 2.2em; overflow: hidden; color: var(--accent); }
.nav-chapter .roll span { display: block; line-height: 1.2; }
.nav-chapter .roll span.swap { animation: rollIn .5s var(--ease-expo); }
@keyframes rollIn { from { transform: translateY(100%); opacity: 0; } to { transform: none; opacity: 1; } }
.nav-chapter .title { color: var(--ink-2); letter-spacing: .3em; }
.nav-hours { display: flex; align-items: center; height: 28px; padding-left: clamp(14px, 2vw, 28px); border-left: 1px solid var(--line); font-weight: 600; font-size: 11.5px; letter-spacing: .3em; text-transform: uppercase; color: var(--ink); white-space: nowrap; }
html[data-chapter="0"] .nav-hours { border-left-color: transparent; }
.menu-hours { font-weight: 600; font-size: 11.5px; letter-spacing: .3em; text-transform: uppercase; color: var(--ink); flex-basis: 100%; }
@media (max-width: 1600px) { .nav-chapter .title { display: none; } }
@media (max-width: 1300px) { .nav-tel { display: none; } }
.nav-links { display: flex; gap: clamp(18px, 2.2vw, 32px); margin-left: auto; }
.nav-links a { position: relative; font-weight: 600; font-size: 12px; letter-spacing: .26em; text-transform: uppercase; color: var(--ink); padding: 6px 0; white-space: nowrap; transition: color .35s ease; }
.btn { white-space: nowrap; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--ink); transform: scaleX(0); transform-origin: 100% 50%; transition: transform .45s var(--ease-expo); }
.nav-links a:hover, .nav-links a[aria-current="true"] { color: var(--ink); }
.nav-links a:hover::after, .nav-links a[aria-current="true"]::after { transform: scaleX(1); transform-origin: 0 50%; }
.nav-tel { font-weight: 500; font-size: 15px; letter-spacing: .05em; color: var(--ink); white-space: nowrap; }
.nav-cta { min-height: 42px; padding: 8px 22px; font-size: 11.5px; letter-spacing: .26em; }
.nav-burger { display: none; width: 46px; height: 46px; border: 1px solid var(--line); align-items: center; justify-content: center; margin-left: auto; position: relative; }
.nav-burger i { position: absolute; left: 12px; right: 12px; height: 1px; background: var(--ink); transition: transform .45s var(--ease-expo), opacity .3s ease; }
.nav-burger i:nth-child(1) { transform: translateY(-4px); }
.nav-burger i:nth-child(2) { transform: translateY(4px); }
html[data-menu="open"] .nav-burger i:nth-child(1) { transform: rotate(45deg); }
html[data-menu="open"] .nav-burger i:nth-child(2) { transform: rotate(-45deg); }

/* mobile menu */
.menu { position: fixed; inset: 0; z-index: 90; background: #0F0E0D; clip-path: inset(0 0 100% 0); transition: clip-path .7s var(--ease-in-out), visibility 0s linear .7s; visibility: hidden; display: flex; flex-direction: column; justify-content: center; padding: calc(var(--nav-h) + 20px) var(--gutter) 40px; overflow-y: auto; }
html[data-menu="open"] .menu { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .7s var(--ease-in-out); }
.menu-links { display: flex; flex-direction: column; gap: 4px; }
.menu-links a { display: block; overflow: hidden; }
.menu-links a span { display: block; font-family: var(--font-display); text-transform: uppercase; font-size: clamp(38px, 10vw, 60px); line-height: 1.1; letter-spacing: .04em; color: var(--ink); transform: translateY(110%); transition: transform .8s var(--ease-expo); transition-delay: calc(var(--i, 0) * 60ms); }
html[data-menu="open"] .menu-links a span { transform: none; transition-delay: calc(var(--i, 0) * 60ms + 250ms); }
.menu-links a small { display: block; font-family: var(--font-text); font-size: 11.5px; letter-spacing: .36em; color: var(--accent); font-weight: 600; text-transform: uppercase; margin-bottom: 2px; }
.menu-foot { margin-top: auto; padding-top: 26px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.menu-foot a.tel { font-size: 18px; letter-spacing: .05em; color: var(--ink); }
.menu::after { content: ""; position: absolute; inset: 0; background: url("../img/marble-1280.webp") center / 920px; opacity: .05; pointer-events: none; }

/* ---------- whatsapp ------------------------------------------------- */
.wa { position: fixed; right: 18px; bottom: 18px; z-index: 85; width: 92px; height: 92px; display: grid; place-items: center; border-radius: 50%; color: var(--ink); transition: color .4s ease, opacity .6s ease 1.2s; }
.wa:hover { color: var(--accent); }
.wa svg { position: relative; z-index: 1; width: 40px; height: 40px; }
.wa-ring { position: absolute; left: 50%; top: 50%; width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%; border: 1px solid var(--accent); opacity: 0; animation: waPulse 2.6s cubic-bezier(.25, .6, .3, 1) infinite; pointer-events: none; }
.wa:hover .wa-ring { animation-play-state: paused; opacity: 0; }
@keyframes waPulse { 0% { transform: scale(.9); opacity: .9; } 75% { transform: scale(1.64); opacity: 0; } 100% { transform: scale(1.64); opacity: 0; } }
html[data-loaded="false"] .wa { opacity: 0; }
html[data-menu="open"] .wa { opacity: 0; pointer-events: none; transition-delay: 0s; }
@media (max-width: 620px) { .wa { right: 8px; bottom: 8px; width: 80px; height: 80px; } .wa svg { width: 34px; height: 34px; } }
@media (prefers-reduced-motion: reduce) { .wa-ring { display: none; } }

/* ---------- section furniture ----------------------------------------- */
.sec-head { display: flex; flex-direction: column; gap: 22px; }
.h2 { font-size: clamp(42px, 6vw, 104px); line-height: 1; }
.folio { position: absolute; right: var(--gutter); bottom: 32px; display: flex; align-items: flex-end; gap: 14px; font-weight: 600; font-size: 11.5px; letter-spacing: .34em; text-transform: uppercase; color: var(--ink-3); pointer-events: none; }
.folio .ruler { position: relative; width: 1px; height: 120px; background: rgba(237, 235, 233, .14); overflow: hidden; }
.folio .ruler::after { content: ""; position: absolute; left: 0; right: 0; top: 0; bottom: 0; background: var(--ink); transform: scaleY(var(--p)); transform-origin: 50% 0; }
.caption { font-style: italic; font-size: 13.5px; letter-spacing: .03em; color: var(--ink-3); }
.frame { position: relative; overflow: hidden; border: 1px solid rgba(237, 235, 233, .18); background: var(--bg-2); }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.frame .caption { position: absolute; left: 16px; bottom: 12px; z-index: 2; color: rgba(237, 235, 233, .72); text-shadow: 0 1px 12px rgba(0, 0, 0, .6); }
.plate-navy::after { content: ""; position: absolute; inset: 0; background: var(--navy); mix-blend-mode: multiply; opacity: var(--plate, .22); pointer-events: none; }

/* ---------- footer ---------------------------------------------------- */
.footer { position: relative; overflow: clip; background: #111010; border-top: 1px solid var(--line-soft); padding: clamp(40px, 5vw, 72px) 0 32px; }
.footer-word { position: absolute; left: 50%; bottom: -0.12em; font-family: var(--font-display); font-size: clamp(120px, 28vw, 440px); line-height: 1; letter-spacing: .06em; text-transform: uppercase; color: rgba(237, 235, 233, .035); white-space: nowrap; pointer-events: none; user-select: none; transform: translate3d(calc(-50% + (var(--p) - .5) * 6vw), 0, 0); }
.map-head { position: relative; display: flex; flex-direction: column; gap: 14px; margin-bottom: clamp(20px, 2.5vw, 32px); }
.map-h3 { font-size: clamp(30px, 3.4vw, 54px); line-height: 1; }
.map-band { position: relative; border: 1px solid var(--line); background: #171615; overflow: hidden; margin-bottom: clamp(40px, 5vw, 64px); }
.map-svg { display: block; width: 100%; height: auto; }
.map-cta { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; padding: 18px clamp(18px, 2.5vw, 32px); background: linear-gradient(180deg, rgba(23, 22, 21, 0), rgba(23, 22, 21, .94) 55%); }
.map-cta span { font-weight: 600; font-size: 12px; letter-spacing: .26em; text-transform: uppercase; color: var(--ink-2); }
.map-svg .grid { opacity: calc(min(1, var(--p) * 3) * .06); }
.map-svg .draw { stroke-dasharray: var(--len); stroke-dashoffset: calc(var(--len) * (1 - clamp(0, (var(--p) - var(--a, 0)) / var(--w, .5), 1))); }
.map-svg .label { opacity: clamp(0, (var(--p) - .55) / .3, 1); }
.map-svg .pin-core { transform: scale(clamp(0, (var(--p) - .62) / .15, 1)); transform-box: fill-box; transform-origin: center; }
.map-svg .pin-card { clip-path: inset(0 calc((1 - clamp(0, (var(--p) - .74) / .2, 1)) * 100%) 0 0); }
.pin-pulse { transform-box: fill-box; transform-origin: center; opacity: 0; }
[data-state="after"] .pin-pulse { animation: ping 2.8s cubic-bezier(.25, .6, .3, 1) infinite; }
@keyframes ping { 0% { transform: scale(.35); opacity: .9; } 75% { transform: scale(1.5); opacity: 0; } 100% { transform: scale(1.5); opacity: 0; } }
.footer-grid { position: relative; display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.3fr; gap: 44px 52px; }
.fcol { display: flex; flex-direction: column; gap: 12px; }
.fcol > a { color: var(--ink-2); font-size: 16.5px; line-height: 1.5; transition: color .3s ease; }
.fcol > a:hover { color: var(--ink); }
.fh { font-family: var(--font-display); font-weight: 400; font-size: 18px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink); margin-bottom: 8px; }
.flinks { display: flex; flex-direction: column; gap: 12px; }
.flinks a { font-weight: 600; font-size: 12.5px; letter-spacing: .24em; text-transform: uppercase; color: var(--ink-2); }
.flinks a:hover { color: var(--ink); }
.fsoc { display: flex; gap: 12px; margin-top: 10px; }
.fsoc a { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid var(--line); color: var(--ink-2); transition: color .3s ease, border-color .3s ease, background .3s ease; }
.fsoc a:hover { color: var(--bg); border-color: var(--ink); background: var(--ink); }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-weight: 600; font-size: 11.5px; letter-spacing: .3em; text-transform: uppercase; color: var(--ink); }
.ctl { width: 100%; min-height: 52px; background: #131211; border: 1px solid var(--line); color: var(--ink); font-family: var(--font-text); font-size: 17.5px; font-weight: 500; padding: 11px 14px; border-radius: 0; appearance: none; -webkit-appearance: none; transition: border-color .3s ease; }
.ctl:focus { outline: 1px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
select.ctl { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%23948D84' stroke-width='1.2'%3E%3Cpath d='M1 1l5 5 5-5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
input[type="date"].ctl::-webkit-calendar-picker-indicator { filter: invert(.85); opacity: .7; }
.nl-row { display: flex; gap: 10px; }
.nl-row .ctl { flex: 1; min-width: 0; }
.nl-btn { min-height: 52px; padding: 11px 24px; font-size: 12px; letter-spacing: .24em; }
.nl[data-sent="true"] .nl-row { opacity: .4; pointer-events: none; }
.fbottom { position: relative; display: flex; flex-wrap: wrap; gap: 12px 30px; justify-content: space-between; margin-top: clamp(40px, 4vw, 64px); padding-top: 24px; border-top: 1px solid var(--line-soft); color: var(--ink-3); font-size: 13.5px; letter-spacing: .1em; }

/* ---------- responsive chrome ----------------------------------------- */
/* compact nav from 1100px down: five links + phone + Book Now do not fit a 1024px tablet */
@media (max-width: 1100px) {
  :root { --nav-h: 64px; }
  .nav-chapter .title { display: none; }
  .nav-links, .nav-tel, .nav-hours { display: none; }
  .nav-in { gap: 12px; }
  .nav-cta { display: inline-flex; margin-left: auto; min-height: 38px; padding: 6px 14px; font-size: 10.5px; letter-spacing: .22em; }
  .nav-burger { display: flex; margin-left: 0; width: 40px; height: 40px; }
  .nav-logo img { height: 34px; }
  .nav-chapter { border-left: 0; padding-left: 0; margin-left: 0; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  body { font-size: 17px; }
  .map-svg { height: clamp(220px, 46vw, 520px); }
  .map-cta { position: static; background: none; border-top: 1px solid var(--line); }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .footer-word { font-size: 40vw; }
  .nav-chapter { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .atmos-grain { animation: none; }
  .pin-pulse { animation: none; }
  .loader { display: none; }
  .nav-progress { transform: none; opacity: 0; }
  .map-svg .draw { stroke-dashoffset: 0; }
  .map-svg .grid, .map-svg .label { opacity: 1; }
  .map-svg .grid { opacity: .06; }
  .map-svg .pin-core { transform: none; }
  .map-svg .pin-card { clip-path: none; }
  .footer-word { transform: translateX(-50%); }
}
