/* =========================================================================
   LIOS | components.css
   Preloader, header, menu, buttons, media, blossom, forms, modals, tabs,
   accordion, sliders, CTA strip, floating actions
   ========================================================================= */

/* ---------- Preloader (brand blue) ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 1000;
  display: grid; place-items: center;
  overflow: hidden;
  color: #fff;
  background: radial-gradient(120% 80% at 50% 110%, #6f8ba5 0%, var(--blue) 45%, #46607a 100%);
  clip-path: inset(0% 0% 0% 0%);
}
.no-js .preloader { display: none; }
.preloader__center { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; }
.preloader__mark { overflow: hidden; padding-bottom: .4rem; }
.preloader__logo { width: clamp(160px, 22vw, 300px); height: auto; margin-inline: auto; color: #fff; transform: translateY(105%); }
.preloader__tag {
  margin-top: 1.3rem;
  font-family: var(--f-display);
  font-size: clamp(.8rem, .7rem + .3vw, 1rem);
  letter-spacing: .36em; text-transform: uppercase;
  color: rgba(255, 255, 255, .85);
  opacity: 0;
}
.preloader__branch { width: clamp(52px, 4.6vw, 70px); margin: 1.6rem auto 0; color: #fff; opacity: .9; }
.preloader__branch svg { width: 100%; height: auto; }
.preloader__foot {
  position: absolute; left: var(--gutter); right: var(--gutter); bottom: clamp(1.5rem, 4vh, 3rem);
  display: grid; grid-template-columns: 1fr minmax(120px, 34vw) 1fr; align-items: center; gap: 1.5rem;
  font-size: var(--fs-label); letter-spacing: .24em; text-transform: uppercase; color: rgba(255, 255, 255, .7);
}
.preloader__count { text-align: right; font-variant-numeric: tabular-nums; }
.preloader__bar { height: 1px; background: rgba(255, 255, 255, .25); overflow: hidden; }
.preloader__fill { display: block; height: 100%; background: #fff; transform: scaleX(0); transform-origin: left; }
@media (max-width: 640px) {
  .preloader__foot { grid-template-columns: 1fr auto; }
  .preloader__label { display: none; }
  .preloader__bar { order: -1; grid-column: 1 / -1; }
}

/* ---------- Header (always visible) ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--header-h);
  color: #fff;
  transition: color .5s var(--ease);
}
.header::before {
  content: ''; position: absolute; inset: 0;
  background: rgba(238, 232, 220, .86);
  -webkit-backdrop-filter: blur(16px) saturate(1.1); backdrop-filter: blur(16px) saturate(1.1);
  border-bottom: 1px solid var(--line);
  opacity: 0; transition: opacity .5s var(--ease), background .5s var(--ease);
}
.header.is-solid { color: var(--navy); }
.header.is-solid::before { opacity: 1; }
.header.is-solid.on-dark { color: var(--sand-pale); }
.header.is-solid.on-dark::before { background: rgba(19, 39, 63, .86); border-bottom-color: var(--line-dark); }
.header.is-solid.on-blue { color: #fff; }
.header.is-solid.on-blue::before { background: rgba(74, 102, 128, .9); border-bottom-color: rgba(255, 255, 255, .2); }
.header.menu-open { color: var(--sand-pale); }
.header.menu-open::before { opacity: 0; }

.header__progress { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; z-index: 2; }
.header__progress span { display: block; height: 100%; background: var(--blue); transform: scaleX(0); transform-origin: left; }
.header.on-blue .header__progress span { background: #fff; }

.header__inner { position: relative; height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.header__logo svg { width: auto; height: 23px; color: currentColor; }
.header__nav { display: flex; gap: clamp(1rem, 2vw, 2.25rem); }
.header__nav a {
  position: relative;
  font-size: .6875rem; font-weight: 400; letter-spacing: .18em; text-transform: uppercase;
  padding-block: .5rem; opacity: .85; transition: opacity .3s;
}
.header__nav a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: .2rem; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform .6s var(--ease-out);
}
.header__nav a:hover, .header__nav a.is-active { opacity: 1; }
.header__nav a:hover::after, .header__nav a.is-active::after { transform: scaleX(1); transform-origin: left; }
.header.is-solid:not(.on-dark):not(.on-blue) .header__nav a.is-active { color: var(--blue); }
.header__actions { display: flex; align-items: center; gap: .7rem; }

.burger { display: none; width: 44px; height: 44px; position: relative; margin-right: -10px; }
.burger span { position: absolute; left: 11px; right: 11px; height: 1px; background: currentColor; transition: transform .5s var(--ease-out), top .5s var(--ease-out); }
.burger span:nth-child(1) { top: 18px; }
.burger span:nth-child(2) { top: 25px; }
.menu-open .burger span:nth-child(1) { top: 21.5px; transform: rotate(45deg); }
.menu-open .burger span:nth-child(2) { top: 21.5px; transform: rotate(-45deg); }

@media (max-width: 1180px) {
  .header__nav { display: none; }
  .burger { display: block; }
}
@media (max-width: 900px) {
  :root { --header-h: 66px; }
  .header__logo svg { height: 20px; }
  .header .header__brochure { display: none; }
}
@media (max-width: 420px) {
  .header .btn--cta { padding-inline: .9rem; letter-spacing: .14em; }
}

/* ---------- Mobile menu ---------- */
.menu {
  position: fixed; inset: 0; z-index: 90;
  background: var(--navy); color: var(--sand-pale);
  display: flex; flex-direction: column; justify-content: space-between; gap: 2rem;
  padding: calc(var(--header-h) + 1.5rem) var(--gutter) calc(2rem + env(safe-area-inset-bottom));
  overflow-y: auto;
  clip-path: inset(0 0 100% 0); visibility: hidden;
  transition: clip-path .9s var(--ease-io), visibility 0s linear .9s;
}
.menu.is-open { clip-path: inset(0 0 0 0); visibility: visible; transition: clip-path .9s var(--ease-io), visibility 0s; }
.menu__nav { display: flex; flex-direction: column; }
.menu__nav a {
  font-family: var(--f-display); font-size: clamp(1.8rem, 7vw, 2.8rem); line-height: 1.3;
  padding-block: .25rem; border-bottom: 1px solid var(--line-dark);
  opacity: 0; transform: translateY(20px); transition: opacity .6s var(--ease), transform .8s var(--ease-out);
}
.menu.is-open .menu__nav a { opacity: 1; transform: none; }
.menu.is-open .menu__nav a:nth-child(1) { transition-delay: .25s; }
.menu.is-open .menu__nav a:nth-child(2) { transition-delay: .29s; }
.menu.is-open .menu__nav a:nth-child(3) { transition-delay: .33s; }
.menu.is-open .menu__nav a:nth-child(4) { transition-delay: .37s; }
.menu.is-open .menu__nav a:nth-child(5) { transition-delay: .41s; }
.menu.is-open .menu__nav a:nth-child(6) { transition-delay: .45s; }
.menu.is-open .menu__nav a:nth-child(7) { transition-delay: .49s; }
.menu__ctas { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.menu__foot { display: flex; flex-direction: column; gap: .6rem; font-size: .9rem; color: var(--on-dark-soft); }
.menu__contact { display: inline-flex; align-items: center; gap: .75rem; }

/* ---------- Buttons ---------- */
.btn {
  --bg: transparent; --fg: currentColor; --bd: currentColor; --hbg: var(--navy); --hfg: var(--sand-pale);
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .75rem;
  min-height: 50px; padding: .9rem 1.7rem;
  border: 1px solid var(--bd); background: var(--bg); color: var(--fg);
  font-size: .6875rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; line-height: 1.2;
  white-space: nowrap;
  transition: color .5s var(--ease), border-color .5s var(--ease);
}
.btn::before {
  content: ''; position: absolute; inset: -1px; z-index: -1; background: var(--hbg);
  transform: scaleY(0); transform-origin: bottom; transition: transform .6s var(--ease-out);
}
.btn:hover { color: var(--hfg); border-color: var(--hbg); }
.btn:hover::before { transform: scaleY(1); }
.btn .ico { transition: transform .5s var(--ease-out); }
.btn:hover .ico { transform: translateX(3px); }
.btn--sm { min-height: 42px; padding: .65rem 1.2rem; }
.btn--block { width: 100%; }

/* Primary CTA: solid brand blue, with a slow light sweep */
.btn--cta { --bg: var(--blue); --fg: #fff; --bd: var(--blue); --hbg: var(--navy); --hfg: #fff; }
.btn--cta::after {
  content: ''; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; z-index: -1;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .28), transparent);
  transform: skewX(-18deg);
  animation: sweep 5.5s var(--ease-io) infinite 2.5s;
}
@keyframes sweep { 0% { left: -60%; } 22%, 100% { left: 130%; } }
.on-dark .btn--cta, .bg-navy .btn--cta, .bg-deep .btn--cta, .hero .btn--cta { --hbg: var(--sand-pale); --hfg: var(--navy); }
.bg-blue .btn--cta, .on-blue .btn--cta { --bg: var(--sand-pale); --fg: var(--navy); --bd: var(--sand-pale); --hbg: var(--navy); --hfg: #fff; }
.bg-blue .btn--cta::after, .on-blue .btn--cta::after { background: linear-gradient(100deg, transparent, rgba(90, 119, 146, .25), transparent); }

/* Secondary: outline (brochure) */
.btn--outline { --fg: var(--blue); --bd: var(--blue); --hbg: var(--blue); --hfg: #fff; }
.header .btn--outline, .hero .btn--outline, .bg-navy .btn--outline, .bg-deep .btn--outline { --fg: currentColor; --bd: currentColor; --hbg: var(--sand-pale); --hfg: var(--navy); }
.header.is-solid:not(.on-dark):not(.on-blue) .btn--outline { --fg: var(--blue); --bd: var(--blue); --hbg: var(--blue); --hfg: #fff; }
.bg-blue .btn--outline, .on-blue .btn--outline { --fg: #fff; --bd: rgba(255, 255, 255, .7); --hbg: #fff; --hfg: var(--navy); }

.btn--light { --bg: var(--sand-pale); --fg: var(--navy); --bd: var(--sand-pale); --hbg: #fff; --hfg: var(--navy); }
.btn--dark { --bg: var(--navy); --fg: var(--sand-pale); --bd: var(--navy); --hbg: var(--blue); --hfg: #fff; }

.text-link {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .6875rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase;
  color: var(--blue); padding-bottom: .4rem;
  background: linear-gradient(currentColor, currentColor) left bottom / 100% 1px no-repeat;
  transition: background-size .6s var(--ease-out);
}
.text-link:hover { background-size: 30% 1px; }
.text-link .ico { transition: transform .5s var(--ease-out); }
.text-link:hover .ico { transform: translateX(4px); }
.bg-navy .text-link, .bg-deep .text-link { color: var(--blue-soft); }
.bg-blue .text-link { color: #fff; }

.btn-row { display: flex; flex-wrap: wrap; gap: .7rem; }

/* ---------- Media + placeholders ---------- */
.media { position: relative; overflow: hidden; aspect-ratio: var(--ratio, 16 / 10); background: var(--sand-light); margin: 0; }
.media__inner { position: absolute; inset: 0; will-change: transform; }
.media__inner[data-parallax] { inset: -8% 0; }
.media__inner > img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.1s var(--ease); }
.media.is-loaded .media__inner > img, .media--real .media__inner > img { opacity: 1; }
.media--real img { width: 100%; height: 100%; object-fit: cover; }
.bg-navy .media, .bg-deep .media { background: var(--navy-soft); }
.ph {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 1.5rem; color: var(--navy);
  background: repeating-linear-gradient(135deg, rgba(19, 39, 63, .035) 0 1px, transparent 1px 14px), linear-gradient(160deg, #ece5d7 0%, #dcd2bf 100%);
}
.ph__wrap { display: flex; flex-direction: column; gap: .4rem; max-width: 30ch; }
.ph__tag { font-size: .625rem; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--blue); }
.ph__label { font-family: var(--f-display); font-size: 1.2rem; line-height: 1.25; }
.ph__file { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .6875rem; color: var(--ink-mute); word-break: break-all; }
.media__caption {
  position: absolute; left: .9rem; bottom: .9rem; z-index: 2;
  padding: .4rem .75rem; background: rgba(245, 241, 233, .92); color: var(--navy);
  font-size: .625rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; line-height: 1.3;
}
.impression { font-size: .625rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-mute); margin-top: .7rem; }
.bg-navy .impression, .bg-deep .impression { color: var(--on-dark-mute); }

/* ---------- Cherry blossom (official LIOS line art) ---------- */
.blossom { position: absolute; pointer-events: none; z-index: 1; width: clamp(150px, 17vw, 270px); color: var(--blue); opacity: .9; }
.blossom--tr { top: clamp(1rem, 3vw, 2.5rem); right: clamp(.5rem, 3vw, 3rem); }
.blossom--tl { top: clamp(1rem, 3vw, 2.5rem); left: clamp(.5rem, 3vw, 3rem); transform: scaleX(-1); }
.blossom--br { bottom: clamp(1rem, 3vw, 2.5rem); right: clamp(.5rem, 3vw, 3rem); }
.blossom--bl { bottom: clamp(1rem, 3vw, 2.5rem); left: clamp(.5rem, 3vw, 3rem); transform: scaleX(-1); }
.blossom--sm { width: clamp(110px, 11vw, 180px); }
.blossom__svg { width: 100%; height: auto; overflow: visible; }
.bg-mist .blossom { color: var(--blue); }
.bg-navy .blossom, .bg-deep .blossom, .on-dark-blossom .blossom { color: var(--sand); opacity: .75; }
.bg-blue .blossom { color: #fff; opacity: .7; }
.js:not(.reduced) .blossom .blossom__svg { clip-path: inset(100% 0 0 0); transform: translateY(14px) rotate(-3deg); transform-origin: 30% 100%; }
.js:not(.reduced) .blossom.is-drawn .blossom__svg { clip-path: inset(0 0 0 0); transform: none; transition: clip-path 2.6s cubic-bezier(.65,0,.35,1), transform 2.8s cubic-bezier(.16,1,.3,1); }
@media (max-width: 700px) { .blossom { width: 120px; opacity: .6; } .blossom--sm { width: 96px; } }

.petals { position: absolute; inset: 0; z-index: 3; pointer-events: none; width: 100%; height: 100%; }

/* ---------- Forms ---------- */
.form { display: flex; flex-direction: column; gap: 1.6rem; }
.form__title { font-family: var(--f-display); font-size: 1.55rem; line-height: 1.2; color: var(--on-dark); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.6rem; }
@media (max-width: 560px) { .form__row { grid-template-columns: 1fr; } }

.field { position: relative; display: flex; align-items: flex-end; border-bottom: 1px solid var(--line-dark); transition: border-color .4s; }
.field input, .field select {
  width: 100%; background: transparent; border: 0; outline: none; border-radius: 0;
  padding: 1.45rem 0 .6rem; font-size: 1rem; font-weight: 300; color: var(--on-dark);
}
.field select { appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 1.5rem; }
.field select option { color: var(--navy); }
.field--select::after { content: ''; position: absolute; right: .2rem; bottom: 1.1rem; width: 7px; height: 7px; border-right: 1px solid currentColor; border-bottom: 1px solid currentColor; transform: rotate(45deg); opacity: .7; pointer-events: none; }
.field label {
  position: absolute; left: 0; top: 1.35rem; font-size: .9rem; color: var(--on-dark-mute);
  pointer-events: none; transform-origin: left top; transition: transform .45s var(--ease-out), color .3s;
}
.field input:focus + label, .field input:not(:placeholder-shown) + label,
.field select:focus + label, .field select.has-value + label { transform: translateY(-1.2rem) scale(.78); color: var(--blue-soft); }
.field:focus-within { border-color: var(--blue-soft); }
.field--tel .field__prefix { padding: 1.45rem .7rem .6rem 0; color: var(--on-dark-soft); font-size: 1rem; }
.field--tel label { left: 2.5rem; }
.field__error { position: absolute; left: 0; top: calc(100% + .3rem); font-size: .72rem; color: #f3b9ad; opacity: 0; transition: opacity .3s; }
.field.is-invalid { border-color: #f3b9ad; }
.field.is-invalid .field__error { opacity: 1; }

.choice legend { font-size: var(--fs-label); font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--on-dark-mute); margin-bottom: .75rem; }
.choice__opts { display: flex; flex-wrap: wrap; gap: .5rem; }
.choice label { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice span { display: inline-block; padding: .55rem 1rem; border: 1px solid var(--line-dark); font-size: .8rem; color: var(--on-dark-soft); transition: background .4s, color .4s, border-color .4s; }
.choice label:hover span { border-color: rgba(245, 241, 233, .45); }
.choice input:checked + span { background: var(--blue); color: #fff; border-color: var(--blue); }
.choice input:focus-visible + span { outline: 1px solid var(--sand); outline-offset: 3px; }

.consent { display: flex; gap: .75rem; align-items: flex-start; font-size: .75rem; line-height: 1.6; color: var(--on-dark-mute); cursor: pointer; }
.consent a { text-decoration: underline; text-underline-offset: 3px; }
.consent input { appearance: none; -webkit-appearance: none; flex: none; width: 16px; height: 16px; margin-top: .15rem; border: 1px solid rgba(245, 241, 233, .5); display: grid; place-items: center; }
.consent input::after { content: ''; width: 8px; height: 8px; background: var(--blue-soft); transform: scale(0); transition: transform .3s var(--ease-out); }
.consent input:checked::after { transform: scale(1); }
.consent.is-invalid { color: #f3b9ad; }
.form__actions { display: flex; flex-direction: column; gap: .8rem; margin-top: .3rem; }
.form__secondary { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.btn.is-loading { pointer-events: none; opacity: .7; }

/* Light form variant (modals) */
.form--light .field { border-color: var(--line); }
.form--light .field input, .form--light .field select { color: var(--navy); }
.form--light .field label { color: var(--ink-mute); }
.form--light .field input:focus + label, .form--light .field input:not(:placeholder-shown) + label,
.form--light .field select:focus + label, .form--light .field select.has-value + label { color: var(--blue); }
.form--light .field:focus-within { border-color: var(--blue); }
.form--light .field--tel .field__prefix { color: var(--ink-soft); }
.form--light .field__error { color: #a3402e; }
.form--light .field.is-invalid { border-color: #a3402e; }
.form--light .consent { color: var(--ink-mute); }
.form--light .consent input { border-color: rgba(19, 39, 63, .4); }
.form--light .consent input::after { background: var(--blue); }
.form--light .choice legend { color: var(--ink-mute); }
.form--light .choice span { border-color: var(--line); color: var(--ink-soft); }
.form--light .choice label:hover span { border-color: rgba(19, 39, 63, .35); }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 1100; display: grid; place-items: center; padding: var(--gutter); visibility: hidden; pointer-events: none; }
.modal.is-open { visibility: visible; pointer-events: auto; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(12, 26, 44, .7); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); opacity: 0; transition: opacity .6s var(--ease); }
.modal.is-open .modal__backdrop { opacity: 1; }
.modal__panel {
  position: relative; width: min(100%, 480px); max-height: calc(100svh - 2rem); overflow-y: auto;
  background: var(--sand-pale); color: var(--navy); padding: clamp(1.75rem, 5vw, 3rem);
  opacity: 0; transform: translateY(30px); transition: opacity .6s var(--ease), transform .8s var(--ease-out);
}
.modal.is-open .modal__panel { opacity: 1; transform: none; transition-delay: .1s; }
.modal__close { position: absolute; top: .6rem; right: .6rem; width: 44px; height: 44px; display: grid; place-items: center; }
.modal__close .ico { width: 20px; height: 20px; transition: transform .5s var(--ease-out); }
.modal__close:hover .ico { transform: rotate(90deg); }
.modal__logo { width: 64px; height: auto; color: var(--blue); margin-bottom: 1.4rem; }
.modal__title { font-family: var(--f-display); font-weight: 300; font-size: 1.85rem; line-height: 1.1; margin-bottom: .5rem; }
.modal__text { font-size: .9rem; color: var(--ink-soft); margin-bottom: 1rem; }
.modal .form { gap: 1.3rem; }
.modal .btn--block { margin-top: .5rem; }

/* ---------- Tabs ---------- */
.tabs { display: flex; flex-wrap: wrap; gap: .5rem; }
.tab {
  position: relative; padding: .75rem 1.3rem;
  border: 1px solid var(--line); color: var(--ink-soft);
  font-size: .75rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase;
  transition: background .45s var(--ease), color .45s var(--ease), border-color .45s var(--ease);
}
.tab:hover { border-color: var(--blue); color: var(--blue); }
.tab.is-active { background: var(--blue); border-color: var(--blue); color: #fff; }
.bg-navy .tab { border-color: var(--line-dark); color: var(--on-dark-soft); }
.bg-navy .tab.is-active { background: var(--sand-pale); border-color: var(--sand-pale); color: var(--navy); }
.tab-panel[hidden] { display: none; }
@media (max-width: 700px) {
  .tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
  .tabs::-webkit-scrollbar { display: none; }
  .tab { flex: none; }
}

/* ---------- Accordion (FAQ) ---------- */
.acc { border-top: 1px solid var(--line); }
.acc__item { border-bottom: 1px solid var(--line); }
.acc__q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
  padding: 1.35rem 0; text-align: left;
  font-family: var(--f-display); font-size: clamp(1.1rem, 1rem + .4vw, 1.35rem); line-height: 1.3; color: var(--navy);
}
.acc__icon { position: relative; flex: none; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); transition: background .4s, border-color .4s; }
.acc__icon::before, .acc__icon::after { content: ''; position: absolute; left: 50%; top: 50%; width: 11px; height: 1px; background: var(--blue); transform: translate(-50%, -50%); transition: transform .5s var(--ease-out), background .4s; }
.acc__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.acc__item.is-open .acc__icon { background: var(--blue); border-color: var(--blue); }
.acc__item.is-open .acc__icon::before, .acc__item.is-open .acc__icon::after { background: #fff; }
.acc__item.is-open .acc__icon::after { transform: translate(-50%, -50%) rotate(0deg); }
.acc__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .6s var(--ease-out); }
.acc__a > div { overflow: hidden; }
.acc__a p { padding-bottom: 1.4rem; max-width: 46rem; color: var(--ink-soft); }
.acc__item.is-open .acc__a { grid-template-rows: 1fr; }

/* ---------- Slider controls (tablet / mobile) ---------- */
.slider-nav { display: none; align-items: center; gap: 1.1rem; margin-top: 1.4rem; color: var(--navy); }
.slider-nav__count { flex: none; font-size: var(--fs-label); letter-spacing: .2em; color: var(--ink-mute); font-variant-numeric: tabular-nums; }
.slider-nav__count b { font-weight: 500; color: var(--blue); }
.slider-nav__bar { position: relative; flex: 1; height: 1px; background: var(--line); overflow: hidden; }
.slider-nav__bar i { position: absolute; inset: 0; background: var(--blue); transform-origin: left; transform: scaleX(var(--p, .25)); transition: transform .6s var(--ease-out); }
.slider-nav__btns { display: flex; gap: .5rem; flex: none; }
.slider-nav__btn { width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(90, 119, 146, .5); display: grid; place-items: center; color: var(--blue); transition: background .45s var(--ease), color .45s var(--ease), border-color .45s var(--ease), opacity .3s; }
.slider-nav__btn .ico { width: 17px; height: 17px; }
.slider-nav__btn--prev .ico { transform: rotate(180deg); }
.slider-nav__btn:hover, .slider-nav__btn:active { background: var(--blue); border-color: var(--blue); color: #fff; }
.slider-nav__btn:disabled { opacity: .3; pointer-events: none; }
.slider-nav--dark { color: var(--sand); }
.slider-nav--dark .slider-nav__count { color: var(--on-dark-mute); }
.slider-nav--dark .slider-nav__count b { color: var(--sand-pale); }
.slider-nav--dark .slider-nav__bar { background: var(--line-dark); }
.slider-nav--dark .slider-nav__bar i { background: var(--sand-pale); }
.slider-nav--dark .slider-nav__btn { border-color: rgba(245, 241, 233, .35); color: var(--sand-pale); }
.slider-nav--dark .slider-nav__btn:hover, .slider-nav--dark .slider-nav__btn:active { background: var(--sand-pale); border-color: var(--sand-pale); color: var(--navy); }
@media (max-width: 900px) { .slider-nav { display: flex; } }

/* Generic swipe track for mobile sliders */
@media (max-width: 900px) {
  .swipe {
    display: flex !important; gap: .9rem; overflow-x: auto; scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter); margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter);
    scrollbar-width: none; overscroll-behavior-x: contain;
  }
  .swipe::-webkit-scrollbar { display: none; }
  .swipe > * { flex: 0 0 78vw; scroll-snap-align: start; }
  .swipe::after { content: ''; flex: 0 0 1px; }
}
@media (min-width: 601px) and (max-width: 900px) { .swipe > * { flex-basis: 44vw; } }

/* ---------- CTA strip ---------- */
.cta-strip { padding-block: clamp(1.6rem, 3vw, 2.4rem); border-top: 1px solid var(--line); }
.cta-strip__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; }
.cta-strip__text { font-family: var(--f-display); font-size: clamp(1.15rem, 1rem + .6vw, 1.55rem); line-height: 1.3; }
.bg-navy .cta-strip, .bg-deep .cta-strip { border-color: var(--line-dark); }
@media (max-width: 700px) { .cta-strip .btn-row { width: 100%; } .cta-strip .btn { flex: 1; padding-inline: .8rem; } }

/* ---------- Floating WhatsApp + mobile bar ---------- */
.wa-float {
  position: fixed; right: clamp(1rem, 2.5vw, 2rem); bottom: clamp(1rem, 2.5vw, 2rem); z-index: 80;
  width: 54px; height: 54px; display: grid; place-items: center; border-radius: 50%;
  background: var(--blue); color: #fff; box-shadow: 0 10px 30px rgba(12, 26, 44, .25);
  opacity: 0; transform: translateY(16px) scale(.9); pointer-events: none;
  transition: opacity .6s var(--ease), transform .6s var(--ease-out), background .4s;
}
.wa-float svg { width: 24px; height: 24px; }
.wa-float:hover { background: var(--navy); }
.wa-float.is-visible { opacity: 1; transform: none; pointer-events: auto; }

.mbar { display: none; }
@media (max-width: 768px) {
  .wa-float { display: none; }
  .mbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 85;
    display: grid; grid-template-columns: 1.25fr 1fr 1fr;
    background: var(--navy); color: var(--sand-pale);
    padding-bottom: env(safe-area-inset-bottom);
    transform: translateY(100%); transition: transform .6s var(--ease-out);
  }
  .mbar.is-visible { transform: none; }
  .mbar > * { display: flex; align-items: center; justify-content: center; gap: .45rem; min-height: 56px; font-size: .625rem; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; }
  .mbar > * + * { border-left: 1px solid var(--line-dark); }
  .mbar__cta { background: var(--blue); color: #fff; }
  .mbar__brochure { background: var(--sand-pale); color: var(--navy); }
}

/* ---------- Social icons ---------- */
.social { display: flex; gap: .55rem; }
.social a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid currentColor; display: grid; place-items: center; opacity: .8; transition: background .4s, color .4s, opacity .4s, border-color .4s; }
.social a:hover { opacity: 1; background: var(--blue); border-color: var(--blue); color: #fff; }
.social svg { width: 16px; height: 16px; }

/* Outline buttons on the navy menu */
.menu .btn--outline { --fg: var(--sand-pale); --bd: rgba(245, 241, 233, .5); --hbg: var(--sand-pale); --hfg: var(--navy); }
.menu .btn--cta { --hbg: var(--sand-pale); --hfg: var(--navy); }
@media (max-width: 560px) {
  .footer__cta .btn-row, .location .btn-row, .story .btn-row, .thanks .btn-row { display: grid; grid-template-columns: minmax(0, 1fr); width: 100%; }
  .btn { white-space: normal; text-align: center; }
}

/* ---------- Enter gate (preloader) ---------- */
.preloader__enter { position: absolute; left: 0; right: 0; bottom: clamp(2rem, 8vh, 5rem); display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.preloader__enter[hidden] { display: none; }
.enter-btn { position: relative; width: 104px; height: 104px; border-radius: 50%; display: grid; place-items: center; color: #fff; }
.enter-btn__ring { position: absolute; inset: 0; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .6); transition: transform .6s var(--ease-out), background .5s, border-color .5s; }
.enter-btn__ring::after { content: ''; position: absolute; inset: -1px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .45); animation: enter-pulse 2.6s var(--ease) infinite; }
@keyframes enter-pulse { 0% { transform: scale(1); opacity: .8; } 100% { transform: scale(1.45); opacity: 0; } }
.enter-btn__text { position: relative; font-size: .7rem; font-weight: 500; letter-spacing: .32em; text-transform: uppercase; padding-left: .32em; transition: color .5s; }
.enter-btn:hover .enter-btn__ring, .enter-btn:focus-visible .enter-btn__ring { transform: scale(1.08); background: #fff; border-color: #fff; }
.enter-btn:hover .enter-btn__text, .enter-btn:focus-visible .enter-btn__text { color: var(--blue); }
.enter-btn:focus-visible { outline: none; }
.enter-note { display: flex; align-items: center; gap: .6rem; font-size: .66rem; letter-spacing: .22em; text-transform: uppercase; color: rgba(255, 255, 255, .8); }
.enter-mute { font-size: .62rem; letter-spacing: .2em; text-transform: uppercase; color: rgba(255, 255, 255, .55); text-decoration: underline; text-underline-offset: 4px; transition: color .3s; }
.enter-mute:hover { color: #fff; }

/* ---------- Sound toggle (header) ---------- */
.sound { width: 40px; height: 40px; border-radius: 50%; border: 1px solid currentColor; display: grid; place-items: center; opacity: .85; transition: opacity .3s, background .4s, border-color .4s; }
.sound:hover { opacity: 1; }
.sound__bars, .enter-note__bars { display: flex; align-items: flex-end; gap: 2px; height: 12px; }
.sound__bars i, .enter-note__bars i { display: block; width: 2px; height: 3px; background: currentColor; border-radius: 1px; transition: height .4s var(--ease); }
.sound.is-on .sound__bars i, .enter-note__bars i { animation: eq 1.1s var(--ease) infinite alternate; }
.sound.is-on .sound__bars i:nth-child(2), .enter-note__bars i:nth-child(2) { animation-delay: -.45s; animation-duration: .9s; }
.sound.is-on .sound__bars i:nth-child(3), .enter-note__bars i:nth-child(3) { animation-delay: -.2s; animation-duration: 1.3s; }
.sound.is-on .sound__bars i:nth-child(4), .enter-note__bars i:nth-child(4) { animation-delay: -.7s; }
@keyframes eq { 0% { height: 3px; } 100% { height: 12px; } }
.sound:not(.is-on) .sound__bars i { height: 3px; }
@media (max-width: 900px) { .sound { width: 36px; height: 36px; } }

/* Sound toggle with label (header + mobile menu) */
.sound { width: auto; height: 40px; border-radius: 40px; padding: 0 .95rem; gap: .6rem; display: inline-flex; align-items: center; }
.sound__label { font-size: .6rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; white-space: nowrap; }
.sound.is-on { background: rgba(255, 255, 255, .08); }
.header.is-solid:not(.on-dark):not(.on-blue) .sound.is-on { background: rgba(90, 119, 146, .12); }
@media (max-width: 1180px) { .sound { padding: 0; width: 38px; justify-content: center; } .sound .sound__label { display: none; } }
.menu__sound { display: inline-flex; align-items: center; gap: .7rem; align-self: flex-start; padding: .7rem 1.1rem; border: 1px solid var(--line-dark); border-radius: 40px; font-size: .66rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--sand-pale); }
.menu__sound.is-on .sound__bars i { animation: eq 1.1s var(--ease) infinite alternate; }
.menu__sound.is-on .sound__bars i:nth-child(2) { animation-delay: -.45s; animation-duration: .9s; }
.menu__sound.is-on .sound__bars i:nth-child(3) { animation-delay: -.2s; animation-duration: 1.3s; }

/* ---------------------------------------------------------------- Floor plan viewer (v4) */
.pz-open, .pz-open body { overflow: hidden; }
.pz { position: fixed; inset: 0; z-index: 200; display: flex; flex-direction: column; background: rgba(12, 26, 44, .97); color: var(--on-dark); opacity: 0; transition: opacity .3s var(--ease); }
.pz.is-open { opacity: 1; }
.pz[hidden] { display: none; }
.pz__bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .9rem var(--gutter); border-bottom: 1px solid var(--line-dark); }
.pz__title { font-family: var(--f-display); font-size: clamp(1.05rem, 1rem + .5vw, 1.4rem); }
.pz__floors { display: flex; gap: .35rem; margin-top: .45rem; }
.pz__floors button { padding: .35rem .7rem; border: 1px solid var(--line-dark); font-size: .6rem; letter-spacing: .16em; text-transform: uppercase; color: var(--on-dark-soft); }
.pz__floors button[aria-pressed="true"] { background: var(--sand-pale); color: var(--navy); border-color: var(--sand-pale); }
.pz__floors button:disabled { opacity: .35; cursor: not-allowed; }
.pz__tools { display: flex; gap: .4rem; }
.pz__btn { width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line-dark); color: var(--on-dark); transition: background .3s, color .3s; }
.pz__btn:hover { background: var(--sand-pale); color: var(--navy); }
.pz__btn .ico { width: 18px; height: 18px; }
.pz__scroll { flex: 1; overflow: auto; display: grid; place-items: center; padding: 16px; cursor: zoom-in; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.pz.is-zoomed .pz__scroll { place-items: start; cursor: grab; }
.pz__scroll.is-drag { cursor: grabbing; }
.pz__img { display: block; max-width: none; background: #fff; box-shadow: 0 20px 60px rgba(0, 0, 0, .35); user-select: none; -webkit-user-drag: none; }
.pz.is-zoomed .pz__img { margin: auto; }
.pz__hint { text-align: center; padding: .6rem 1rem .9rem; font-size: .68rem; letter-spacing: .1em; color: var(--on-dark-mute); }
@media (max-width: 600px) { .pz__btn { width: 40px; height: 40px; } .pz__bar { align-items: flex-start; } }

/* Floor plan form: thank-you state */
.form-done { text-align: center; padding: .5rem 0 0; }
.form-done[hidden] { display: none; }
.form-done__icon { width: 56px; height: 56px; margin: 0 auto 1rem; border-radius: 50%; display: grid; place-items: center; background: var(--blue-mist); color: var(--blue); }
.form-done__icon .ico { width: 24px; height: 24px; }
.form-done__t { font-family: var(--f-display); font-size: var(--fs-h3); color: var(--navy); margin-bottom: .5rem; }
.form-done__p { font-size: .9rem; color: var(--ink-soft); margin-bottom: 1.4rem; }
.form[hidden] { display: none !important; }
.modal.is-done .modal__text { display: none; }
.form-done--page { padding: 1.5rem 0; color: inherit; }
.form-done--page .form-done__t { color: inherit; }
.form-done--page .form-done__p { color: inherit; opacity: .8; }
.form-done__p a { text-decoration: underline; text-underline-offset: 3px; }
/* Partner with Us (form to come) */
.partner-soon { margin-top: .6rem; padding-top: 1.2rem; border-top: 1px solid var(--line); }
.partner-soon__t { font-family: var(--f-display); font-size: 1.3rem; color: var(--navy); margin-bottom: .3rem; }
.partner-soon__p { font-size: .88rem; color: var(--ink-soft); margin-bottom: 1.2rem; }
.partner-soon__links { display: grid; gap: .6rem; }
form[hidden] { display: none !important; }
/* 360 tour link in the menus */
.header__nav .header__tour { display: inline-flex; align-items: center; gap: .4rem; }
.header__nav .header__tour .ico { width: 17px; height: 17px; }
.menu__nav .menu__tour { display: inline-flex; align-items: center; gap: .6rem; }
.menu__nav .menu__tour .ico { width: .8em; height: .8em; }

/* ---------------------------------------------------------------- Partner form + popup thank-yous (v5) */
#modal-partner .modal__panel { width: min(100%, 640px); }
.field--area textarea { width: 100%; background: transparent; border: 0; outline: none; border-radius: 0; resize: vertical; min-height: 4.2rem; padding: 1.45rem 0 .6rem; font: inherit; font-size: 1rem; font-weight: 300; color: var(--on-dark); }
.field--area textarea:focus + label, .field--area textarea:not(:placeholder-shown) + label { transform: translateY(-1.2rem) scale(.78); color: var(--blue-soft); }
.form--light .field--area textarea { color: var(--navy); }
.form--light .field--area textarea:focus + label, .form--light .field--area textarea:not(:placeholder-shown) + label { color: var(--blue); }
#modal-partner .choice__opts { flex-wrap: wrap; }

/* thank-you inside popups: one centred column, even spacing */
.modal .form-done { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 1.4rem 0 .2rem; margin-top: .4rem; border-top: 1px solid var(--line); }
.modal .form-done[hidden] { display: none; }
.modal .form-done__icon { width: 64px; height: 64px; margin: 0 0 1.2rem; }
.modal .form-done__icon .ico { width: 26px; height: 26px; }
.modal .form-done__t { max-width: 24ch; font-size: clamp(1.35rem, 1.2rem + .6vw, 1.6rem); line-height: 1.25; margin: 0 0 .6rem; }
.modal .form-done__p { max-width: 34ch; font-size: .9rem; line-height: 1.65; margin: 0 0 1.6rem; }
.modal .form-done .btn { width: 100%; max-width: 320px; }
/* once sent, the popup shows only the logo, title and thank-you */
.modal.is-done .modal__panel { text-align: center; }
.modal.is-done .modal__logo { margin-inline: auto; }
.modal.is-done .form-done { border-top: 0; padding-top: .4rem; }
.modal.is-done .modal__title { margin-bottom: .2rem; }
/* header: keep every menu item on one line (v5) */
.header__nav { gap: clamp(.9rem, 1.35vw, 1.9rem); flex-wrap: nowrap; }
.header__nav a { white-space: nowrap; letter-spacing: .15em; }
@media (max-width: 1500px) { .header__actions .sound__label { display: none; } .header__actions .sound { padding-inline: .8rem; } }
@media (max-width: 1340px) { .header__nav { display: none; } .burger { display: block; } }
/* form error + spam trap (v6) */
.form__error { margin: .9rem 0 0; font-size: .82rem; line-height: 1.5; color: #f3b9ad; }
.form--light .form__error, .modal .form__error { color: #a3402e; }
.form__error[hidden] { display: none; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Cookie consent banner (js/tracking.js) ---------- */
.footer__legal { flex-wrap: wrap; align-items: center; }
.footer__cookie { padding: 0; border: 0; background: none; color: inherit; font: inherit; letter-spacing: inherit; text-transform: inherit; cursor: pointer; }
.footer__cookie:hover { color: #fff; }
.cookie {
  position: fixed; left: clamp(1rem, 2.5vw, 2rem); bottom: clamp(1rem, 2.5vw, 2rem); z-index: 1050;
  width: min(440px, calc(100vw - 2rem)); max-height: calc(100vh - 2rem); overflow-y: auto; overscroll-behavior: contain;
  padding: 1.6rem 1.6rem 1.4rem; background: var(--sand-pale); color: var(--navy);
  border: 1px solid var(--line); box-shadow: 0 24px 60px rgba(12, 26, 44, .28);
  opacity: 0; transform: translateY(18px); transition: opacity .45s var(--ease), transform .6s var(--ease-out);
}
.cookie.is-open { opacity: 1; transform: none; }
.cookie__t { margin: 0 0 .5rem; font-size: var(--fs-label); font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--blue); }
.cookie__p { margin: 0; font-size: .82rem; line-height: 1.65; color: var(--ink-soft); }
.cookie__p a { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
.cookie__panel { margin-top: 1.1rem; border-top: 1px solid var(--line); }
.cookie__opt { position: relative; display: grid; grid-template-columns: auto 1fr; gap: .9rem; align-items: start; padding: .9rem 0; border-bottom: 1px solid var(--line); cursor: pointer; font-size: .76rem; line-height: 1.55; color: var(--ink-mute); }
.cookie__opt b { display: block; margin-bottom: .15rem; font-size: .8rem; font-weight: 500; color: var(--navy); }
.cookie__opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.cookie__sw { position: relative; width: 38px; height: 22px; margin-top: .1rem; border-radius: 22px; background: rgba(19, 39, 63, .2); transition: background .3s var(--ease); }
.cookie__sw::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(12, 26, 44, .25); transition: transform .3s var(--ease-out); }
.cookie__opt input:checked + .cookie__sw { background: var(--blue); }
.cookie__opt input:checked + .cookie__sw::after { transform: translateX(16px); }
.cookie__opt input:disabled + .cookie__sw { opacity: .55; }
.cookie__opt input:disabled ~ span { cursor: default; }
.cookie__opt input:focus-visible + .cookie__sw { outline: 2px solid var(--blue); outline-offset: 3px; }
.cookie__btns { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.2rem; }
.cookie__btns .btn { flex: 1 1 auto; padding-inline: 1rem; letter-spacing: .16em; }
.cookie__btns .btn--outline { --bd: rgba(19, 39, 63, .3); }
.cookie__btns [hidden] { display: none; }
@media (max-width: 560px) {
  .cookie { left: 0; right: 0; bottom: 0; width: 100%; max-height: 85vh; padding: 1.3rem var(--gutter) calc(1.1rem + env(safe-area-inset-bottom)); border-width: 1px 0 0; }
  .cookie__btns .btn { flex: 1 1 40%; }
  .cookie__btns [data-c-accept] { flex-basis: 100%; order: -1; }
}
