/* =====================================================================
   Talay — Phuket stays
   ===================================================================== */

:root {
  --bg: #efeeeb;
  --panel: #f6f5f2;
  --surface: #e4e3df;
  --surface-hover: #dcdbd6;
  --chip: #e2e1dd;
  --text: #161616;
  --muted: #6b6a66;
  --line: #d9d8d3;
  --dark: #1a1a1a;
  --dot: #3bb273;

  --max: 1440px;
  --gutter: clamp(16px, 3.4vw, 48px);
  --nav-h: 72px;
  --radius: 14px;
  --radius-sm: 10px;
  --col-gap: clamp(16px, 1.8vw, 26px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* ---------------------------------------------------------------- base */

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

html {
  color-scheme: light;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-optical-sizing: auto;
  font-size: 15px;
  line-height: 1.55;
  letter-spacing: -0.006em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
h1, h2, h3, h4, p, ul, dl, dd, figure { margin: 0; }
ul { padding: 0; list-style: none; }
main, .footer { overflow-x: clip; }

.icon {
  width: 16px;
  height: 16px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; border-radius: 6px; }

.skip-link {
  position: fixed;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--dark);
  color: #fff;
  font-size: 14px;
  transition: top 0.2s;
}
.skip-link:focus { top: 12px; }

.container {
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Lenis */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }

/* ---------------------------------------------------------------- buttons, chips, badges */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 18px;
  border: 0;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.3s var(--ease), color 0.3s var(--ease), box-shadow 0.3s var(--ease), transform 0.3s var(--ease);
}
.btn .icon { width: 15px; height: 15px; }
.btn:active { transform: scale(0.97); }
.btn--dark { background: var(--dark); color: #fff; }
.btn--dark:hover { background: #3a3a38; }
.btn--light { background: #fff; color: var(--text); }
.btn--light:hover { background: #ecebe7; }
.btn--ghost { background: transparent; box-shadow: inset 0 0 0 1px var(--line); }
.btn--ghost:hover { background: var(--chip); }

.link-btn {
  padding: 0;
  border: 0;
  background: none;
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 10px;
  border-radius: 8px;
  background: var(--chip);
  font-size: 13px;
  line-height: 1;
}
.chip .icon { width: 14px; height: 14px; }

.badge {
  position: absolute;
  z-index: 2;
  top: 14px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 28px;
  padding: 0 12px 0 10px;
  border-radius: 999px;
  background: #fff;
  font-size: 13px;
  line-height: 1;
  color: var(--text);
}
.badge i { width: 5px; height: 5px; border-radius: 50%; background: var(--dot); }

/* ---------------------------------------------------------------- nav */

.nav {
  position: fixed;
  inset: 0 0 auto;
  z-index: 70;
  height: var(--nav-h);
  transition: transform 0.55s var(--ease), background-color 0.35s, backdrop-filter 0.35s, -webkit-backdrop-filter 0.35s;
}
.nav.is-solid {
  background: rgba(239, 238, 235, 0.82);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
}
.nav.is-hidden { transform: translateY(-100%); }

.nav__inner {
  height: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}
.nav__left { display: flex; align-items: center; }
.nav__links { display: flex; gap: clamp(20px, 2.6vw, 40px); font-size: 14px; }
.nav__links a,
.nav__phone {
  background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 0 1px;
  transition: background-size 0.4s var(--ease);
  padding-bottom: 2px;
}
.nav__links a:hover,
.nav__phone:hover { background-size: 100% 1px; }
.nav__logo { font-size: 17px; font-weight: 500; letter-spacing: -0.03em; }
.nav__right { display: flex; align-items: center; justify-content: flex-end; gap: 16px; }
.nav__phone { font-size: 14px; }

.nav__burger {
  display: none;
  position: relative;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: var(--surface);
  cursor: pointer;
}
.nav__burger .icon { position: absolute; inset: 0; margin: auto; width: 18px; height: 18px; transition: opacity 0.25s, transform 0.35s var(--ease); }
.nav__burger .icon--close { opacity: 0; transform: rotate(-45deg); }
.menu-open .nav__burger .icon--open { opacity: 0; transform: rotate(45deg); }
.menu-open .nav__burger .icon--close { opacity: 1; transform: none; }
.menu-open .nav { background: var(--bg); transform: none; }

.menu {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  padding: calc(var(--nav-h) + 24px) var(--gutter) 32px;
  background: var(--bg);
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.4s var(--ease), visibility 0.4s;
}
.menu-open .menu { visibility: visible; opacity: 1; }
.menu__links a {
  display: block;
  padding: 8px 0;
  font-size: clamp(34px, 9vw, 48px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.1;
}
.menu__foot { margin-top: auto; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; font-size: 15px; }

/* ---------------------------------------------------------------- hero */

.hero { position: relative; height: 320vh; }

.hero__stage {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100svh;
  overflow: hidden;
}

/* --p: 0 = inset rounded card (matches the reference), 1 = full-bleed */
.hero__frame {
  --p: 0;
  --fx: max(var(--gutter), calc((100% - var(--max)) / 2));
  --ft: var(--nav-h);
  --fb: var(--gutter);
  --pad: clamp(20px, 2.5vw, 36px);
  position: absolute;
  inset: 0;
  background: #c9ccc2;
  clip-path: inset(
    calc(var(--ft) * (1 - var(--p)))
    calc(var(--fx) * (1 - var(--p)))
    calc(var(--fb) * (1 - var(--p)))
    calc(var(--fx) * (1 - var(--p)))
    round calc(var(--radius) * (1 - var(--p)))
  );
}

.hero__media { position: absolute; inset: 0; transform: scale(1.06); transform-origin: 50% 55%; }
.hero__media > * { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__poster { z-index: 1; transition: opacity 0.9s var(--ease); }
.hero__frame.is-video-ready .hero__poster { opacity: 0; }

.hero__shade {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(0, 0, 0, 0) 38%, rgba(0, 0, 0, 0.28) 70%, rgba(0, 0, 0, 0.62) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.22), rgba(0, 0, 0, 0) 55%);
}

.hero__content,
.hero__caption {
  position: absolute;
  z-index: 3;
  left: calc(var(--fx) + var(--pad));
  bottom: calc(var(--fb) + var(--pad));
  max-width: min(760px, calc(100% - var(--fx) * 2 - var(--pad) * 2));
  color: #fff;
}
.hero__title {
  font-size: clamp(40px, 4.6vw, 68px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1;
}
.hero__sub { margin-top: 14px; font-size: clamp(14px, 1.1vw, 16px); opacity: 0.9; }

.hero__caption { opacity: 0; visibility: hidden; }
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 28px;
  margin-bottom: 18px;
  padding: 0 12px 0 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-size: 13px;
  font-weight: 500;
}
.hero__eyebrow i { width: 6px; height: 6px; border-radius: 50%; background: var(--dot); }
.hero__caption-title {
  font-size: clamp(34px, 4.4vw, 64px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.02;
  max-width: 14ch;
}
.hero__caption-text { margin-top: 16px; max-width: 46ch; font-size: clamp(14px, 1.15vw, 17px); opacity: 0.9; }
.hero__caption--final .btn { margin-top: 24px; }

.hero__hint {
  position: absolute;
  z-index: 3;
  right: calc(var(--fx) + var(--pad));
  bottom: calc(var(--fb) + var(--pad));
  display: flex;
  align-items: center;
  gap: 12px;
  color: #fff;
  font-size: 13px;
}
.hero__hint-line { position: relative; width: 1px; height: 38px; overflow: hidden; background: rgba(255, 255, 255, 0.3); }
.hero__hint-line::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #fff;
  animation: hint 2.2s var(--ease) infinite;
}
@keyframes hint {
  0% { transform: translateY(-100%); }
  60%, 100% { transform: translateY(100%); }
}

.hero__progress {
  position: absolute;
  z-index: 3;
  left: var(--gutter);
  right: var(--gutter);
  bottom: 18px;
  height: 2px;
  border-radius: 2px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.22);
  opacity: 0;
}
.hero__progress span { display: block; height: 100%; background: #fff; transform-origin: 0 50%; transform: scaleX(0); }

/* Static hero: no JS, reduced motion, or GSAP failed to load */
html:not(.js) .hero,
.hero--static { height: auto; }
html:not(.js) .hero__stage,
.hero--static .hero__stage { position: relative; }
.hero--static .hero__hint,
.hero--static .hero__progress { display: none; }

/* ---------------------------------------------------------------- sections */

.section { padding-top: clamp(96px, 11vw, 168px); }

.section-head { max-width: 760px; margin-bottom: clamp(40px, 4.6vw, 60px); }
.section-head .chip { margin-bottom: 18px; }
.section-head--row {
  max-width: none;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}
.section-head--row > div { max-width: 760px; }

.h2 {
  font-size: clamp(34px, 3.6vw, 52px);
  font-weight: 500;
  letter-spacing: -0.045em;
  line-height: 1.04;
}
.h3 { font-size: clamp(22px, 1.9vw, 28px); font-weight: 500; letter-spacing: -0.035em; line-height: 1.15; }
.lead { margin-top: 12px; font-size: 15px; color: var(--muted); }

/* Word-split headings */
.split-w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: 0.08em; margin-bottom: -0.08em; }
.split-i { display: inline-block; will-change: transform; }

/* Lazy images fade in once loaded */
.media { background: var(--surface); }
.js .lazy-fade { opacity: 0; transition: opacity 0.9s var(--ease); }
.js .lazy-fade.is-loaded { opacity: 1; }

/* Reveal initial states (GSAP animates them in) */
.js [data-reveal] { opacity: 0; transform: translateY(28px); }
.js [data-split]:not(.is-split) { opacity: 0; }

/* ---------------------------------------------------------------- stays */

.filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}
.filter { display: flex; flex-direction: column; gap: 10px; }
.filter__label { font-size: 13px; color: #3e3d3a; }

.select { position: relative; display: block; }
.select select {
  width: 100%;
  height: 48px;
  padding: 0 44px 0 16px;
  border: 0;
  border-radius: 8px;
  background: var(--surface);
  font-size: 14px;
  text-overflow: ellipsis;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: background-color 0.2s;
}
.select select:hover { background: var(--surface-hover); }
.select select:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.select .icon {
  position: absolute;
  top: 50%;
  right: 16px;
  width: 16px;
  height: 16px;
  color: #5c5b57;
  transform: translateY(-50%);
  pointer-events: none;
}

.filters__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: -10px 0 22px;
  font-size: 13px;
  color: var(--muted);
}
.filters__meta[hidden] { display: none; }

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: var(--col-gap);
  row-gap: clamp(36px, 4vw, 56px);
}
.card[hidden] { display: none; }
.card__link { display: block; }

.card__media,
.way__media,
.area__media,
.post__media,
.about__img {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-sm);
  isolation: isolate;
}
.card__media { aspect-ratio: 3 / 2; }

.card__zoom,
.way__zoom,
.area__zoom,
.post__zoom,
.about__zoom {
  position: absolute;
  inset: 0;
  transition: transform 1.2s var(--ease);
}
.card__zoom img,
.way__zoom img,
.area__zoom img,
.post__zoom img,
.about__zoom img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.12);
}
.card__link:hover .card__zoom,
.area:hover .area__zoom,
.post__link:hover .post__zoom { transform: scale(1.04); }

.card__row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-top: 16px; }
.card__title { font-size: 15px; font-weight: 500; letter-spacing: -0.012em; line-height: 1.35; }
.card__price { font-size: 15px; font-weight: 500; letter-spacing: -0.012em; white-space: nowrap; }
.card__meta { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 8px; font-size: 13px; color: var(--muted); }
.card__meta li { display: inline-flex; align-items: center; gap: 6px; }
.card__meta .icon { width: 15px; height: 15px; }

.empty {
  padding: clamp(40px, 6vw, 72px) 24px;
  border-radius: var(--radius);
  background: var(--panel);
  text-align: center;
}
.empty[hidden] { display: none; }
.empty__title { font-size: 22px; font-weight: 500; letter-spacing: -0.03em; }
.empty__text { margin: 8px auto 0; max-width: 44ch; color: var(--muted); }
.empty__actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 24px; }

/* ---------------------------------------------------------------- services */

.ways { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--col-gap); }
.way__media { aspect-ratio: 16 / 11; }
.way__body { padding-top: 26px; }
.way__text { margin-top: 12px; max-width: 52ch; color: var(--muted); }
.ticks { margin-top: 24px; }
.ticks li { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-top: 1px solid var(--line); font-size: 14px; }
.ticks li:last-child { border-bottom: 1px solid var(--line); }
.ticks .icon { width: 16px; height: 16px; color: var(--dot); stroke-width: 2; }
.way__foot { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin-top: 26px; }
.way__price { font-size: 20px; font-weight: 500; letter-spacing: -0.03em; }
.way__price span { font-size: 14px; font-weight: 400; color: var(--muted); letter-spacing: 0; }

.perks {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--col-gap);
  margin-top: clamp(64px, 7vw, 104px);
}
.perk { padding-top: 24px; border-top: 1px solid var(--line); }
.perk__icon { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 20px; border-radius: 10px; background: var(--chip); }
.perk__icon .icon { width: 18px; height: 18px; }
.perk h3 { font-size: 15px; font-weight: 500; letter-spacing: -0.012em; }
.perk p { margin-top: 6px; font-size: 14px; color: var(--muted); max-width: 30ch; }

/* ---------------------------------------------------------------- locations */

.areas {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  column-gap: var(--col-gap);
  row-gap: clamp(36px, 4vw, 52px);
}
.area { display: block; }
.area__media { aspect-ratio: 4 / 5; }
.area__media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, 0.45) 100%);
  pointer-events: none;
}
.area__name {
  position: absolute;
  z-index: 2;
  left: 20px;
  right: 20px;
  bottom: 18px;
  color: #fff;
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.1;
}
.badge--count { gap: 0; padding: 0 12px; }
.area__text { margin-top: 14px; font-size: 14px; color: var(--muted); max-width: 40ch; }

/* ---------------------------------------------------------------- about */

.about .chip { margin-bottom: 26px; }
.statement {
  max-width: 1120px;
  font-size: clamp(26px, 3.2vw, 46px);
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 1.16;
}
.about__media {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--col-gap);
  margin-top: clamp(56px, 6vw, 96px);
}
.about__img { aspect-ratio: 16 / 10; }
.about__img:not(.about__img--wide) { aspect-ratio: auto; }

.stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--col-gap);
  margin-top: clamp(56px, 6vw, 88px);
}
.stat { display: flex; flex-direction: column-reverse; justify-content: flex-end; padding-top: 22px; border-top: 1px solid var(--line); }
.stat__num { font-size: clamp(38px, 3.8vw, 58px); font-weight: 500; letter-spacing: -0.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.stat__label { margin-top: 12px; font-size: 14px; color: var(--muted); }

/* ---------------------------------------------------------------- insights */

.posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--col-gap); }
.post__link { display: block; }
.post__media { aspect-ratio: 4 / 3; }
.post__meta { display: flex; gap: 8px; margin-top: 18px; font-size: 13px; color: var(--muted); }
.post__title { margin-top: 8px; font-size: clamp(17px, 1.4vw, 20px); font-weight: 500; letter-spacing: -0.025em; line-height: 1.3; max-width: 30ch; }
.post__more { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-size: 14px; font-weight: 500; }
.post__more .icon { width: 15px; height: 15px; transition: transform 0.4s var(--ease); }
.post__link:hover .post__more .icon { transform: translate(2px, -2px); }

/* ---------------------------------------------------------------- contact */

.contact__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: var(--col-gap);
  align-items: stretch;
}
.contact__card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 600px;
  padding: clamp(24px, 2.8vw, 40px);
  overflow: hidden;
  border-radius: var(--radius);
  color: #fff;
  isolation: isolate;
}
.contact__card > img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.contact__card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 22%, rgba(0, 0, 0, 0.72) 100%);
}
.contact__card-body p { margin-top: 14px; max-width: 44ch; opacity: 0.9; }
.contact__details { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 28px; font-size: 14px; }
.contact__details a { text-decoration: underline; text-decoration-color: rgba(255, 255, 255, 0.4); text-underline-offset: 4px; }

.enquiry {
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 2.8vw, 40px);
  border-radius: var(--radius);
  background: var(--panel);
}
.enquiry .chip { align-self: flex-start; margin-bottom: 18px; }
.enquiry__title { font-size: clamp(26px, 2.4vw, 34px); font-weight: 500; letter-spacing: -0.04em; line-height: 1.1; margin-bottom: 28px; }
.enquiry__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: #3e3d3a; }
.field--full { grid-column: 1 / -1; }
.field input,
.field textarea {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border: 0;
  border-radius: 8px;
  background: var(--surface);
  font-size: 14px;
  color: var(--text);
  transition: box-shadow 0.2s, background-color 0.2s;
}
.field textarea { height: auto; min-height: 120px; padding: 14px 16px; resize: vertical; }
.field input::placeholder,
.field textarea::placeholder { color: #8b8a85; }
.field input:focus,
.field textarea:focus { outline: none; box-shadow: inset 0 0 0 1.5px var(--text); }
.field select { color: var(--text); }
.enquiry__foot { display: flex; align-items: center; flex-wrap: wrap; gap: 16px; margin-top: 24px; }
.enquiry__note { font-size: 13px; color: var(--muted); }
.enquiry__success {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 8px;
  background: #dcefe2;
  color: #1f5b34;
  font-size: 14px;
}

/* ---------------------------------------------------------------- footer */

.footer { padding-top: clamp(96px, 11vw, 168px); }
.footer__top {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 2fr);
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid var(--line);
}
.footer__intro p { margin-top: 14px; max-width: 32ch; color: var(--muted); }
.footer__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.footer h4 { margin-bottom: 14px; font-size: 13px; font-weight: 400; color: var(--muted); }
.footer li { font-size: 14px; }
.footer li + li { margin-top: 8px; }
.footer li a:hover { text-decoration: underline; text-underline-offset: 3px; }

.footer__mark {
  padding-top: clamp(32px, 4vw, 56px);
  overflow: hidden;
  font-size: clamp(96px, 25vw, 380px);
  font-weight: 500;
  letter-spacing: -0.075em;
  line-height: 0.8;
  text-align: center;
  white-space: nowrap;
}
.footer__mark .split-i { padding-bottom: 0.04em; }
.footer__bottom {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding: 26px 0 30px;
  font-size: 13px;
  color: var(--muted);
}

/* ---------------------------------------------------------------- responsive */

@media (max-width: 1024px) {
  .nav__links { display: none; }
  .nav__burger { display: inline-flex; }
  .areas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .perks { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 40px; }
  .footer__top { grid-template-columns: 1fr; }
}

@media (max-width: 900px) {
  .filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ways { grid-template-columns: 1fr; row-gap: 64px; }
  .contact__grid { grid-template-columns: 1fr; }
  .contact__card { min-height: 480px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 36px; }
  .posts {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: min(78%, 360px);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .posts::-webkit-scrollbar { display: none; }
  .post { scroll-snap-align: start; }
  .section-head--row { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 720px) {
  :root { --nav-h: 60px; }
  .nav__phone { display: none; }
  .nav__right .btn { height: 36px; padding: 0 14px; font-size: 13px; }
  .nav__burger { width: 36px; height: 36px; }
  .hero { height: 240vh; }
  .hero__hint { display: none; }
  .grid { grid-template-columns: 1fr; }
  .areas {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 78%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .areas::-webkit-scrollbar { display: none; }
  .area { scroll-snap-align: start; }
  .about__media { grid-template-columns: 1fr; }
  .about__img:not(.about__img--wide) { aspect-ratio: 4 / 3; }
  .enquiry__grid { grid-template-columns: 1fr; }
  .footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 480px) {
  .filters { gap: 10px; }
  .select select { padding-right: 36px; padding-left: 12px; font-size: 13px; }
  .select .icon { right: 12px; }
  .perks { grid-template-columns: 1fr; }
  .card__row { flex-direction: column; gap: 4px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero { height: auto; }
  .hero__stage { position: relative; }
  .hero__hint-line::after { animation: none; }
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}

/* ---------------------------------------------------------------- misc states */

[tabindex="-1"]:focus { outline: none; }
.menu-open body { overflow: hidden; }
.enquiry__success.is-error { background: #f5dfdb; color: #7a2a20; }

/* ---------------------------------------------------------------- language switch */

.nav__lang {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: var(--surface);
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
}
.nav__lang a,
.nav__lang span { padding: 7px 10px; border-radius: 999px; color: var(--muted); transition: color 0.25s, background-color 0.25s; }
.nav__lang a:hover { color: var(--text); }
.nav__lang [aria-current] { background: var(--dark); color: #fff; }
@media (max-width: 720px) { .nav__right .nav__lang { display: none; } }

/* Russian runs longer: let caption titles use a wider measure and balance their lines */
html[lang="ru"] .hero__caption-title { max-width: 17ch; text-wrap: balance; }
html[lang="ru"] .h2,
html[lang="ru"] .statement { text-wrap: balance; }
