/* ============================================================================
   MAMA'S GIRLS HOSTEL — site.css
   LIGHT "liquid glass" UI in the iOS / iPadOS design language.
   White materials, hairline separators, grouped cards, one tinted accent family,
   an app-shell top bar + bottom tab bar, and safe-area aware layout.

   Everything stays light on purpose: the logo artwork sits on white, so the UI
   gives it a white rounded-square home instead of dropping it into a dark box.
   ========================================================================== */

/* ---------- tokens ---------- */
:root {
  /* surfaces */
  --bg: #f2f2f7;            /* iOS systemGroupedBackground (light) */
  --bg-2: #ffffff;          /* systemBackground */
  --glass: rgba(255, 255, 255, 0.74);
  --glass-2: rgba(255, 255, 255, 0.62);
  --glass-3: rgba(255, 255, 255, 0.86);
  --fill-1: rgba(120, 120, 128, 0.10);
  --fill-2: rgba(120, 120, 128, 0.16);

  /* label hierarchy (iOS) */
  --label: #0b0b0f;
  --label-2: rgba(48, 48, 56, 0.74);
  --label-3: rgba(50, 50, 58, 0.58);

  /* hairlines */
  --hair: rgba(15, 15, 24, 0.08);
  --hair-2: rgba(15, 15, 24, 0.14);

  /* accents */
  --tint: #c0326f;
  --tint-2: #9e2a5c;
  --tint-soft: rgba(192, 50, 111, 0.10);
  --tint-line: rgba(192, 50, 111, 0.24);
  --blue: #007aff;
  --gold: #b5843a;
  --ok: #34c759;

  /* materials */
  --blur: saturate(180%) blur(26px);
  --blur-strong: saturate(190%) blur(42px);
  --inner: inset 0 1px 0 rgba(255, 255, 255, 0.72);
  --sh-1: 0 1px 1.5px rgba(16, 16, 24, 0.05), 0 6px 18px -8px rgba(16, 16, 24, 0.12);
  --sh-2: 0 2px 6px rgba(16, 16, 24, 0.06), 0 26px 60px -26px rgba(16, 16, 24, 0.22);
  --sh-tint: 0 10px 26px -10px rgba(192, 50, 111, 0.55);
  --sh-sheet: 0 -24px 70px -26px rgba(16, 16, 24, 0.35);

  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-app: 26%;             /* rounded-square "app icon" curve */

  /* motion — Apple's spring-ish curve + a soft ease */
  --spring: cubic-bezier(0.32, 0.72, 0, 1);
  --spring-in: cubic-bezier(0.34, 1.4, 0.64, 1);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);

  --pad: clamp(1.05rem, 4.4vw, 2.5rem);
  --maxw: 1240px;
  --nav-h: 58px;
  --tab-h: 58px;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Manrope",
          "Segoe UI Variable Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 18px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--label);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 400;
  letter-spacing: -0.005em;
  overflow-x: hidden;
  min-height: 100svh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: transparent;
  /* app-like: no browser pull-to-refresh rubber band inside the content */
  overscroll-behavior-y: none;
}

/* ---------- atmospheric background (light, layered, never flat) ------------ */
.bg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }

.bg::before {
  content: "";
  position: absolute; inset: -15%;
  background:
    radial-gradient(46% 36% at 12% 2%, rgba(192, 50, 111, 0.22), transparent 62%),
    radial-gradient(40% 34% at 90% 9%, rgba(0, 122, 255, 0.15), transparent 64%),
    radial-gradient(34% 28% at 76% 46%, rgba(240, 117, 176, 0.18), transparent 66%),
    radial-gradient(44% 34% at 16% 62%, rgba(0, 122, 255, 0.10), transparent 68%),
    radial-gradient(56% 46% at 52% 106%, rgba(181, 132, 58, 0.18), transparent 68%),
    linear-gradient(180deg, #ffffff 0%, #f4f4f8 42%, #f7f7fa 100%);
  animation: aurora 38s var(--ease) infinite alternate;
}

.bg::after {
  content: "";
  position: absolute; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  opacity: 0.035;
  mix-blend-mode: multiply;
}

@keyframes aurora {
  0%   { transform: translate3d(-2%, -1%, 0) scale(1.02); }
  50%  { transform: translate3d(2%, 1.2%, 0) scale(1.05); }
  100% { transform: translate3d(-1%, 1.8%, 0) scale(1.03); }
}

.grain-line {
  position: fixed; left: 0; right: 0; top: 0; height: 1px; z-index: 60;
  background: linear-gradient(90deg, transparent, rgba(192, 50, 111, 0.35), transparent);
  opacity: 0.55;
}

/* ---------- scroll progress ---------- */
.progress {
  position: fixed; top: 0; left: 0; height: 2.5px; width: 100%; transform-origin: 0 50%;
  transform: scaleX(0); z-index: 70; border-radius: 0 2px 2px 0;
  background: linear-gradient(90deg, var(--tint), #f075b0, var(--gold));
  box-shadow: 0 0 14px rgba(192, 50, 111, 0.35);
  transition: transform 0.12s linear;
}

/* ---------- nav (app-shell bar: translucent, blurs what scrolls under it) -- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  padding-top: env(safe-area-inset-top);
  height: calc(var(--nav-h) + env(safe-area-inset-top));
  display: flex; align-items: center;
  padding-left: var(--pad); padding-right: var(--pad);
  background: rgba(255, 255, 255, 0.62);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  border-bottom: 1px solid transparent;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease), box-shadow 0.4s var(--ease);
}
.nav.is-stuck {
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: var(--blur-strong); backdrop-filter: var(--blur-strong);
  border-bottom-color: var(--hair);
  box-shadow: 0 10px 30px -22px rgba(16, 16, 24, 0.5);
}
.nav__inner {
  width: 100%; max-width: var(--maxw); margin: 0 auto;
  display: flex; align-items: center; gap: 0.8rem;
}
.nav__brand { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; color: var(--label); }
/* the logo art sits on white → frame it as a white rounded square (iOS app icon) */
.nav__logo {
  width: 34px; height: 34px; border-radius: 10px; object-fit: contain;
  background: var(--bg-2); border: 1px solid var(--hair);
  box-shadow: var(--sh-1);
  padding: 2px;
  transition: transform 0.5s var(--spring-in);
}
.nav__brand:active .nav__logo { transform: scale(0.94); }
.nav__word { display: flex; flex-direction: column; line-height: 1.05; }
.nav__word b {
  font-size: 0.8rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
  transition: font-size 0.35s var(--ease);
}
.nav__word span { font-size: 0.55rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--tint); font-weight: 600; }
.nav.is-stuck .nav__word b { font-size: 0.74rem; }
.nav__links { margin-left: auto; display: flex; align-items: center; gap: 0.15rem; }
.nav__link {
  position: relative; text-decoration: none; color: var(--label-2);
  font-size: 0.82rem; font-weight: 600; letter-spacing: 0.01em;
  padding: 0.5rem 0.78rem; border-radius: 999px;
  transition: color 0.28s var(--ease), background 0.28s var(--ease), transform 0.3s var(--spring-in);
}
.nav__link:hover { color: var(--label); background: var(--fill-1); }
.nav__link:active { transform: scale(0.96); }
.nav__link.is-active { color: var(--tint); background: var(--tint-soft); font-weight: 700; }
.nav__cta { margin-left: 0.5rem; }

.burger {
  margin-left: auto; display: none;
  width: 42px; height: 42px; border-radius: 13px;
  border: 1px solid var(--hair); background: var(--glass-3);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  box-shadow: var(--sh-1);
  color: var(--label); cursor: pointer;
  align-items: center; justify-content: center;
  transition: transform 0.34s var(--spring-in), background 0.3s var(--ease);
}
.burger:active { transform: scale(0.92); }
.burger span { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; transition: transform 0.4s var(--spring), opacity 0.3s var(--ease); }
.burger span + span { margin-top: 4.5px; }
body.menu-open .burger span:nth-child(1) { transform: translateY(6.3px) rotate(45deg); }
body.menu-open .burger span:nth-child(2) { opacity: 0; }
body.menu-open .burger span:nth-child(3) { transform: translateY(-6.3px) rotate(-45deg); }

/* mobile sheet menu — an iOS-style list of large rows, not floating text */
.sheetmenu {
  position: fixed; inset: 0; z-index: 49;
  display: grid; align-content: start; gap: 0.35rem;
  padding: calc(var(--nav-h) + env(safe-area-inset-top) + 18px) var(--pad) var(--pad);
  background: rgba(250, 250, 252, 0.88);
  -webkit-backdrop-filter: var(--blur-strong); backdrop-filter: var(--blur-strong);
  opacity: 0; visibility: hidden; transform: translateY(-10px);
  transition: opacity 0.4s var(--ease), transform 0.5s var(--spring), visibility 0.4s;
}
body.menu-open .sheetmenu { opacity: 1; visibility: visible; transform: none; }
.sheetmenu a {
  display: flex; align-items: center; justify-content: space-between;
  text-decoration: none; color: var(--label);
  font-size: 1.3rem; font-weight: 700; letter-spacing: -0.02em;
  padding: 1rem 1.1rem; border-radius: var(--r-md);
  background: var(--glass-3); border: 1px solid var(--hair);
  box-shadow: var(--sh-1);
  transform: translateY(14px); opacity: 0;
  transition: transform 0.55s var(--spring), opacity 0.45s var(--ease), background 0.25s;
}
.sheetmenu a::after {
  content: ""; flex: none; width: 8px; height: 8px; margin-left: 0.6rem;
  border-right: 2px solid var(--label-3); border-bottom: 2px solid var(--label-3);
  transform: rotate(-45deg);
}
body.menu-open .sheetmenu a { transform: none; opacity: 1; transition-delay: calc(var(--i, 0) * 45ms + 70ms); }
.sheetmenu a:active { background: var(--tint-soft); color: var(--tint); }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--pad); }
section { position: relative; padding: clamp(3rem, 7vw, 6.5rem) 0; }
.section-head { max-width: 62ch; margin-bottom: clamp(1.6rem, 3.6vw, 2.6rem); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.45rem;
  padding: 0.35rem 0.75rem 0.35rem 0.6rem; border-radius: 999px;
  background: var(--tint-soft); border: 1px solid var(--tint-line);
  font-size: 0.66rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--tint);
}
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--tint); }
h1, h2, h3 { margin: 0; font-weight: 800; letter-spacing: -0.03em; line-height: 1.08; text-wrap: balance; color: var(--label); }
h2 { font-size: clamp(1.75rem, 4.8vw, 2.95rem); margin-top: 0.9rem; }
h3 { font-size: clamp(1.18rem, 3vw, 1.5rem); font-weight: 750; }
p { margin: 0.8rem 0 0; color: var(--label-2); max-width: 68ch; }
.lede { font-size: clamp(0.99rem, 2.3vw, 1.1rem); color: var(--label-2); }

/* ---------- glass primitives ---------- */
.glass {
  position: relative;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.66));
  border: 1px solid var(--hair);
  border-radius: var(--r-lg);
  -webkit-backdrop-filter: var(--blur);
  backdrop-filter: var(--blur);
  box-shadow: var(--sh-1), var(--inner);
  overflow: hidden;
}
/* pointer-tracked specular highlight (a white sheen still reads as glass on light) */
.glass::after {
  content: "";
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, 0.85), transparent 62%);
  opacity: 0; transition: opacity 0.5s var(--ease);
}
.glass.is-lit::after { opacity: 0.9; }

/* ---------- buttons (44pt+ touch targets, iOS pill shapes) ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 46px; padding: 0.8rem 1.4rem; border-radius: 999px;
  font-family: inherit; font-size: 0.92rem; font-weight: 700; letter-spacing: 0.005em;
  text-decoration: none; cursor: pointer; overflow: hidden; isolation: isolate;
  border: 1px solid var(--hair-2); color: var(--label); background: var(--glass-3);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  box-shadow: var(--sh-1), var(--inner);
  transition: transform 0.32s var(--spring-in), box-shadow 0.35s var(--ease),
              background 0.3s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn::before {
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 45%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.9), transparent);
  transform: skewX(-18deg); opacity: 0; z-index: -1;
}
.btn:hover { transform: translateY(-1.5px); box-shadow: var(--sh-2), var(--inner); }
.btn:hover::before { opacity: 1; animation: sheen 0.85s var(--ease); }
.btn:active { transform: scale(0.97); }
.btn:focus-visible { outline: 3px solid rgba(192, 50, 111, 0.4); outline-offset: 3px; }
@keyframes sheen { from { left: -60%; } to { left: 120%; } }

/* brand primary */
.btn--gold {
  background: linear-gradient(180deg, #e2599a, var(--tint) 58%, var(--tint-2));
  color: #fff; border-color: rgba(255, 255, 255, 0.5);
  box-shadow: var(--sh-tint), var(--inner);
}
.btn--gold:hover { box-shadow: 0 16px 34px -12px rgba(192, 50, 111, 0.62), var(--inner); }
.btn--ghost { background: rgba(255, 255, 255, 0.62); color: rgba(50, 50, 58, 0.9); border-color: rgba(15, 15, 24, 0.18); box-shadow: 0 1px 1.5px rgba(16, 16, 24, 0.04); }
.btn--ghost:hover { background: var(--fill-1); color: var(--label); box-shadow: none; }
.btn--sm { min-height: 44px; padding: 0.62rem 1.05rem; font-size: 0.82rem; }
.btn--block { width: 100%; }

.chiprow { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.chip {
  display: inline-flex; align-items: center; gap: 0.38rem;
  padding: 0.36rem 0.7rem; border-radius: 999px;
  font-size: 0.74rem; font-weight: 600; letter-spacing: 0.005em; color: var(--label-2);
  border: 1px solid var(--hair); background: var(--glass-3);
  box-shadow: 0 1px 1.5px rgba(16, 16, 24, 0.04);
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease), background 0.25s var(--ease), transform 0.3s var(--spring-in);
}
.chip svg { width: 14px; height: 14px; color: var(--tint); flex: none; }
.chip:hover { color: var(--label); border-color: var(--tint-line); background: #fff; transform: translateY(-1px); }

/* ---------- hero ---------- */
.hero {
  min-height: 100svh; display: grid; align-items: center;
  padding-top: calc(var(--nav-h) + env(safe-area-inset-top) + 5vh);
  padding-bottom: 8vh;
  position: relative; overflow: hidden;
}
.hero__orb {
  position: absolute; border-radius: 50%; pointer-events: none;
  filter: blur(3px); opacity: 0.75;
  background: radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.95), rgba(192, 50, 111, 0.10) 48%, transparent 72%);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 20px 50px -26px rgba(16, 16, 24, 0.28);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  animation: float 18s var(--ease) infinite alternate;
}
.hero__orb--a { width: clamp(120px, 20vw, 235px); aspect-ratio: 1; top: 11%; right: 5%; }
.hero__orb--b { width: clamp(70px, 11vw, 130px); aspect-ratio: 1; bottom: 15%; left: 3%; animation-duration: 23s; animation-direction: alternate-reverse; }
.hero__orb--c { width: clamp(46px, 7vw, 88px); aspect-ratio: 1; top: 28%; left: 15%; animation-duration: 27s; }
@keyframes float {
  0%   { transform: translate3d(0, 0, 0) rotate(0deg); }
  100% { transform: translate3d(-24px, 28px, 0) rotate(10deg); }
}

.hero__inner { position: relative; z-index: 2; max-width: 68rem; }
/* the logo artwork is on white → give it a white rounded-square tile (app icon) */
.hero__logo {
  width: clamp(78px, 15vw, 110px); height: auto;
  padding: 5px; margin-bottom: 1.2rem;
  background: var(--bg-2); border: 1px solid var(--hair);
  border-radius: var(--r-app);
  box-shadow: var(--sh-2), var(--inner);
}
.hero h1 { font-size: clamp(2.5rem, 8.6vw, 5.1rem); font-weight: 800; letter-spacing: -0.045em; }
.hero h1 .line { display: block; overflow: hidden; }
.hero h1 .line > span { display: block; }
.hero h1 .line:nth-child(2) > span {
  background: linear-gradient(96deg, var(--tint), #a03b6b 70%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__tag {
  margin-top: 0.9rem; font-size: clamp(0.68rem, 2.5vw, 0.88rem);
  letter-spacing: 0.36em; text-transform: uppercase; color: var(--tint); font-weight: 700;
}
.hero__sub { margin-top: 1.2rem; max-width: 46ch; font-size: clamp(0.97rem, 2.4vw, 1.1rem); color: var(--label-2); }
.hero__cta { margin-top: 1.9rem; display: flex; flex-wrap: wrap; gap: 0.6rem; align-items: center; }
.hero__meta { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 0.45rem; }
.hero__meta span {
  display: inline-flex; align-items: baseline; gap: 0.35rem;
  padding: 0.42rem 0.8rem; border-radius: 999px;
  font-size: 0.76rem; color: var(--label-2);
  background: var(--glass-3); border: 1px solid var(--hair);
  box-shadow: 0 1px 1.5px rgba(16, 16, 24, 0.04);
}
.hero__meta b { color: var(--label); font-weight: 700; }

.scrollcue {
  position: absolute; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); transform: translateX(-50%);
  display: grid; justify-items: center; gap: 0.5rem; z-index: 2;
  color: var(--label-3); font-size: 0.58rem; letter-spacing: 0.3em; text-transform: uppercase;
}
.scrollcue i {
  display: block; width: 1.5px; height: 40px; border-radius: 2px;
  background: linear-gradient(180deg, var(--tint), transparent);
  animation: cue 2.4s var(--ease) infinite;
}
@keyframes cue { 0%, 100% { opacity: 0.3; transform: scaleY(0.6); } 50% { opacity: 1; transform: scaleY(1); } }

/* ---------- marquee ---------- */
.marquee {
  position: relative; overflow: hidden; padding: 1rem 0;
  border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair);
  background: rgba(255, 255, 255, 0.6);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee__track { display: flex; gap: 2.4rem; width: max-content; animation: slide 46s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item { display: flex; align-items: center; gap: 0.5rem; color: var(--label-2); font-size: 0.79rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap; }
.marquee__item svg { width: 16px; height: 16px; color: var(--tint); }
@keyframes slide { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- branch cards ---------- */
.branches { display: grid; gap: clamp(1rem, 2.4vw, 1.4rem); grid-template-columns: repeat(auto-fit, minmax(288px, 1fr)); }
.branch { display: flex; flex-direction: column; padding: 0; transition: transform 0.5s var(--spring), box-shadow 0.5s var(--ease), border-color 0.35s var(--ease); }
.branch:hover { transform: translateY(-4px); border-color: var(--hair-2); box-shadow: var(--sh-2), var(--inner); }
.branch__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: linear-gradient(150deg, #eef0f4, #e6e8ee); }
.branch__media img { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.02); transition: transform 1.1s var(--spring), filter 0.5s var(--ease); }
.branch:hover .branch__media img { transform: scale(1.07); }
.branch__media--empty { display: grid; place-items: center; }
.branch__media--empty span { font-size: 0.66rem; letter-spacing: 0.26em; text-transform: uppercase; color: var(--label-3); }
.branch__badge {
  position: absolute; top: 0.8rem; left: 0.8rem;
  padding: 0.34rem 0.72rem; border-radius: 999px;
  font-size: 0.62rem; font-weight: 800; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--label); background: rgba(255, 255, 255, 0.76);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  border: 1px solid rgba(255, 255, 255, 0.8);
  box-shadow: 0 6px 18px -10px rgba(16, 16, 24, 0.5);
}
.branch__body { padding: 1.2rem 1.3rem 1.4rem; display: flex; flex-direction: column; gap: 0.7rem; flex: 1; }
.branch__area { font-size: 0.71rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--tint); font-weight: 700; }
.branch__addr { color: var(--label-2); font-size: 0.92rem; margin: 0; }
.branch__actions { margin-top: auto; padding-top: 0.9rem; display: flex; gap: 0.45rem; flex-wrap: wrap; }

/* ---------- facilities: iOS-style app-icon tiles ---------- */
.facilities { display: grid; gap: 0.65rem; grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); }
.facility {
  padding: 1.05rem 1.05rem 1.15rem; border-radius: var(--r-md);
  display: flex; flex-direction: column; gap: 0.55rem;
  transition: transform 0.45s var(--spring), border-color 0.3s var(--ease), box-shadow 0.3s var(--ease);
}
.facility:hover { transform: translateY(-3px); border-color: var(--tint-line); box-shadow: var(--sh-2), var(--inner); }
.facility__ico {
  width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center;
  background: linear-gradient(160deg, rgba(192, 50, 111, 0.16), rgba(192, 50, 111, 0.05));
  border: 1px solid var(--tint-line); color: var(--tint);
  box-shadow: var(--inner);
}
.facility__ico svg { width: 21px; height: 21px; }
.facility b { font-size: 0.94rem; font-weight: 700; letter-spacing: -0.01em; color: var(--label); }
.facility span { font-size: 0.79rem; color: var(--label-3); }

/* ---------- video wall ---------- */
.videos { display: grid; gap: clamp(0.9rem, 2.2vw, 1.3rem); grid-template-columns: repeat(auto-fit, minmax(276px, 1fr)); }
.video { position: relative; border-radius: var(--r-lg); overflow: hidden; cursor: pointer; background: #e9ebf0; border: 1px solid var(--hair); box-shadow: var(--sh-1); }
.video__media { position: relative; aspect-ratio: 16 / 9; overflow: hidden; }
.video__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.1s var(--spring), filter 0.5s var(--ease); }
.video:hover .video__media img { transform: scale(1.05); }
.video__play {
  position: absolute; inset: 0; margin: auto; width: 64px; height: 64px; border-radius: 50%;
  display: grid; place-items: center; color: var(--tint);
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 16px 40px -16px rgba(16, 16, 24, 0.6), var(--inner);
  transition: transform 0.5s var(--spring-in), background 0.3s var(--ease);
}
.video:hover .video__play { transform: scale(1.08); background: rgba(255, 255, 255, 0.9); }
.video__play svg { width: 22px; height: 22px; margin-left: 3px; }
/* caption sits in its own frosted bar — iOS keeps labels on material, not on the photo */
.video__meta {
  position: absolute; left: 0.7rem; right: 0.7rem; bottom: 0.7rem;
  padding: 0.6rem 0.8rem; border-radius: 16px;
  background: rgba(255, 255, 255, 0.8);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  border: 1px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 10px 26px -16px rgba(16, 16, 24, 0.5);
}
.video__meta b { display: block; font-size: 0.92rem; font-weight: 700; color: var(--label); }
.video__meta span { font-size: 0.68rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--tint); font-weight: 700; }
.video iframe { width: 100%; aspect-ratio: 9 / 16; max-height: 76svh; border: 0; display: block; background: #000; }
.video--wide iframe { aspect-ratio: 16 / 9; max-height: none; }
.video__ext { display: inline-flex; align-items: center; gap: 0.4rem; margin: 0.7rem 0 0; font-size: 0.78rem; color: var(--label-3); text-decoration: none; }
.video__ext:hover { color: var(--tint); }
.video--soon { display: grid; place-items: center; aspect-ratio: 16 / 9; text-align: center; padding: 1.5rem; }
.video--soon div { display: grid; gap: 0.3rem; }
.video--soon b { font-size: 0.84rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--label-3); }
.video--soon span { font-size: 0.8rem; color: var(--label-3); }

/* ---------- maps (light theme reads the normal Google map — no invert) ------ */
.maps { display: grid; gap: clamp(0.9rem, 2.2vw, 1.3rem); grid-template-columns: repeat(auto-fit, minmax(276px, 1fr)); }
.mapcard { padding: 0; overflow: hidden; }
.mapcard__head { padding: 1rem 1.15rem; display: flex; align-items: baseline; gap: 0.6rem; border-bottom: 1px solid var(--hair); background: rgba(255, 255, 255, 0.55); }
.mapcard__head b { font-size: 0.98rem; color: var(--label); }
.mapcard__head span { margin-left: auto; font-size: 0.64rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--tint); font-weight: 700; }
.mapcard iframe { width: 100%; height: 250px; border: 0; display: block; }
.mapcard__foot { padding: 0.8rem 1.15rem 1.1rem; display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; }
.mapcard__foot p { margin: 0; font-size: 0.84rem; color: var(--label-3); }

/* ---------- contact ---------- */
.contact { display: grid; gap: clamp(0.9rem, 2.4vw, 1.3rem); grid-template-columns: repeat(auto-fit, minmax(252px, 1fr)); }
.contactcard { padding: 1.4rem 1.3rem; display: flex; flex-direction: column; gap: 0.65rem; }
.contactcard__ico {
  width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center;
  background: linear-gradient(160deg, rgba(192, 50, 111, 0.16), rgba(192, 50, 111, 0.05));
  border: 1px solid var(--tint-line); color: var(--tint);
  box-shadow: var(--inner);
}
.contactcard__ico svg { width: 22px; height: 22px; }
.contactcard b { font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--tint); font-weight: 700; }
.contactcard a { color: var(--label); text-decoration: none; font-size: 1rem; font-weight: 650; word-break: break-word; }
.contactcard a:hover { color: var(--tint); }
.contactcard small { color: var(--label-3); font-size: 0.78rem; }

.cta-band {
  margin-top: clamp(1.3rem, 3.6vw, 2.2rem); padding: clamp(1.5rem, 4.6vw, 2.8rem); text-align: center;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(192, 50, 111, 0.07));
}
.cta-band h2 { font-size: clamp(1.5rem, 4.4vw, 2.45rem); margin-top: 0; }
.cta-band .btnrow { margin-top: 1.35rem; display: flex; gap: 0.6rem; justify-content: center; flex-wrap: wrap; }

/* ---------- bottom tab bar (the "app" shell — phones and tablets) ---------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 55;
  display: none;
  padding-bottom: env(safe-area-inset-bottom);
  background: rgba(255, 255, 255, 0.78);
  -webkit-backdrop-filter: var(--blur-strong); backdrop-filter: var(--blur-strong);
  border-top: 1px solid var(--hair);
  box-shadow: 0 -8px 26px -20px rgba(16, 16, 24, 0.5);
}
.tabbar__inner { display: flex; height: var(--tab-h); max-width: 640px; margin: 0 auto; }
.tabbar a {
  flex: 1; display: grid; place-items: center; gap: 2px;
  text-decoration: none; color: var(--label-3);
  font-size: 0.63rem; font-weight: 650; letter-spacing: 0.01em;
  -webkit-tap-highlight-color: transparent;
  transition: color 0.25s var(--ease), transform 0.3s var(--spring-in);
}
.tabbar a svg { width: 23px; height: 23px; }
.tabbar a:active { transform: scale(0.93); }
.tabbar a.is-active { color: var(--tint); }
.tabbar a.is-accent svg {
  width: 34px; height: 34px; padding: 6px; border-radius: 50%;
  background: linear-gradient(180deg, #e2599a, var(--tint));
  color: #fff; box-shadow: var(--sh-tint);
}

/* ---------- branch sheet (iOS-style modal) ---------- */
.sheet-backdrop {
  position: fixed; inset: 0; z-index: 80; background: rgba(20, 20, 28, 0.26);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  opacity: 0; visibility: hidden; transition: opacity 0.4s var(--ease), visibility 0.4s;
}
.sheet-backdrop.is-open { opacity: 1; visibility: visible; }
.sheet {
  position: fixed; z-index: 81; left: 50%; bottom: 0; transform: translate(-50%, 104%);
  width: min(1080px, 100%); max-height: 92svh; overflow: hidden; display: flex; flex-direction: column;
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  background: rgba(251, 251, 253, 0.9);
  -webkit-backdrop-filter: var(--blur-strong); backdrop-filter: var(--blur-strong);
  border: 1px solid var(--hair-2); border-bottom: 0;
  box-shadow: var(--sh-sheet);
  transition: transform 0.66s var(--spring);
}
.sheet.is-open { transform: translate(-50%, 0); }
.sheet__grip { width: 38px; height: 5px; border-radius: 999px; background: rgba(60, 60, 67, 0.3); margin: 0.7rem auto 0.2rem; flex: none; }
.sheet__head { padding: 0.6rem 1.4rem 0.9rem; display: flex; align-items: center; gap: 0.8rem; flex: none; }
.sheet__head h3 { flex: 1; min-width: 0; }
.sheet__close {
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--hair);
  background: var(--glass-3); color: var(--label); cursor: pointer; display: grid; place-items: center; flex: none;
  box-shadow: var(--sh-1);
  transition: transform 0.36s var(--spring-in), background 0.25s;
}
.sheet__close:active { transform: scale(0.9); background: var(--fill-1); }
.sheet__close svg { width: 16px; height: 16px; }
.sheet__body { padding: 0 1.4rem calc(2rem + env(safe-area-inset-bottom)); overflow-y: auto; overscroll-behavior: contain; }
.sheet__body h4 { margin: 1.4rem 0 0.55rem; font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--tint); }
.sheet__grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(236px, 1fr)); }
.sheet__addr { display: flex; align-items: flex-start; gap: 0.55rem; color: var(--label-2); font-size: 0.95rem; }
.sheet__addr svg { width: 18px; height: 18px; color: var(--tint); flex: none; margin-top: 3px; }
.sheet iframe { border: 0; border-radius: var(--r-md); width: 100%; }
.sheet .mapcard iframe { border-radius: 0; }

/* ---------- reveal animations ---------- */
[data-reveal] {
  opacity: 0; transform: translate3d(0, 22px, 0) scale(0.988); filter: blur(8px);
  transition: opacity 0.85s var(--ease), transform 0.95s var(--spring), filter 0.85s var(--ease);
  transition-delay: var(--d, 0ms);
  will-change: transform, opacity, filter;
}
[data-reveal].is-in { opacity: 1; transform: none; filter: none; }
.hero [data-reveal] { animation: heroIn 1.1s var(--spring) both; animation-delay: var(--d, 0ms); }
@keyframes heroIn {
  from { opacity: 0; transform: translate3d(0, 30px, 0) scale(0.975); filter: blur(12px); }
  to   { opacity: 1; transform: none; filter: none; }
}

/* ---------- footer ---------- */
footer {
  padding: 2.6rem 0 2.2rem; border-top: 1px solid var(--hair); margin-top: clamp(1.6rem, 5vw, 3.4rem);
  background: rgba(255, 255, 255, 0.55);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
}
.foot { display: flex; flex-wrap: wrap; gap: 1.1rem 2rem; align-items: center; justify-content: space-between; }
.foot__brand { display: flex; align-items: center; gap: 0.65rem; }
.foot__brand img { width: 40px; height: 40px; padding: 3px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--hair); }
.foot__brand b { display: block; font-size: 0.8rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--label); }
.foot__brand span span { font-size: 0.66rem; color: var(--label-3); letter-spacing: 0.16em; text-transform: uppercase; }
.foot nav { display: flex; gap: 0.9rem; flex-wrap: wrap; }
.foot nav a { color: var(--label-2); text-decoration: none; font-size: 0.82rem; }
.foot nav a:hover { color: var(--tint); }
.foot__legal { margin-top: 1.4rem; color: var(--label-3); font-size: 0.74rem; display: flex; gap: 1rem; flex-wrap: wrap; }

/* ---------- utilities ---------- */
.skip { position: absolute; left: -999px; top: 0; background: var(--tint); color: #fff; padding: 0.6rem 1rem; border-radius: 0 0 12px 0; z-index: 100; font-weight: 700; }
.skip:focus { left: 0; }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* white rounded-square frame for the logo art (404 page & friends) */
.app-icon { background: var(--bg-2); border: 1px solid var(--hair); border-radius: var(--r-app); padding: 8px; box-shadow: var(--sh-2), var(--inner); }
.no-scroll { overflow: hidden; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  :root { --nav-h: 56px; }
  .nav__links { display: none; }
  .burger { display: flex; }
  .nav__cta { display: none; }
  .tabbar { display: block; }
  body { padding-bottom: calc(var(--tab-h) + env(safe-area-inset-bottom)); }
  section { padding: clamp(2.6rem, 8vw, 4rem) 0; }
  footer { padding-bottom: calc(2.4rem + env(safe-area-inset-bottom)); }
  .foot nav { gap: 0.4rem; }
  .foot nav a {
    display: inline-flex; align-items: center; min-height: 42px;
    padding: 0.5rem 0.8rem; border-radius: 12px;
    background: var(--glass-3); border: 1px solid var(--hair);
    box-shadow: 0 1px 1.5px rgba(16, 16, 24, 0.04);
  }
}
@media (max-width: 560px) {
  :root { --nav-h: 54px; --tab-h: 56px; }
  h2 { font-size: clamp(1.6rem, 7.4vw, 2.1rem); }
  .hero { min-height: 92svh; }
  .hero__cta .btn { flex: 1 1 auto; }
  .hero__meta span { font-size: 0.72rem; }
  .facilities { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .sheet { max-height: 94svh; width: 100%; border-radius: var(--r-lg) var(--r-lg) 0 0; }
  .sheet__head, .sheet__body { padding-left: 1.1rem; padding-right: 1.1rem; }
  .glass::after { display: none; }
  .scrollcue { display: none; }
}
@media (min-width: 901px) { .sheetmenu { display: none; } }

/* ---------- reduced motion: content must never depend on animation ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  [data-reveal] { opacity: 1 !important; transform: none !important; filter: none !important; }
  .marquee__track { animation: none; }
  .sheet { transition: none; }
}
