/* =========================================================
   Ocean View Massage & Spa — Homepage styles
   ========================================================= */

/* ---------- Tokens ---------- */
:root {
  --ocean: #24483F;
  --ocean-deep: #1B3830;
  --sage: #8EA99B;
  --bg: #F7F6F2;
  --white: #FFFFFF;
  --sand: #E4D9CB;
  --sand-soft: #EFE8DF;
  --border: #E5E5E0;
  --text: #000000;

  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

  --fs-h1: clamp(2.125rem, 1.35rem + 3.1vw, 3.75rem);   /* 34 → 60 */
  --fs-h2: clamp(1.75rem, 1.4rem + 1.3vw, 2.5rem);      /* 28 → 40 */
  --fs-h3: clamp(1.25rem, 1.15rem + .4vw, 1.5rem);      /* 20 → 24 */
  --fs-h4: clamp(1.0625rem, 1rem + .25vw, 1.1875rem);   /* 17 → 19 */
  --fs-body: clamp(.9375rem, .91rem + .1vw, 1rem);      /* 15 → 16 */
  --fs-small: .8125rem;
  --fs-label: .75rem;

  --container: 1280px;
  --pad: clamp(20px, 4.4vw, 64px);
  --section: clamp(56px, 7.5vw, 112px);
  --gap: clamp(16px, 2vw, 24px);

  --r-img: clamp(16px, 1.6vw, 24px);
  --r-btn: 10px;

  --ease: cubic-bezier(.22, 1, .36, 1);
  --header-h: 76px;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
html:not(.lenis) { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
body.is-locked { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
ul, ol { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4, p, figure, dl, dd { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--ocean); outline-offset: 3px; border-radius: 4px; }

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

.skip-link { position: absolute; left: 16px; top: -60px; z-index: 300; background: var(--ocean); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { top: 12px; }

.ic { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.ic--lg { width: 24px; height: 24px; stroke-width: 1.4; }

/* ---------- Type ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: var(--fs-label); font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ocean); margin-bottom: 18px;
}
.h2 { font-size: var(--fs-h2); line-height: 1.14; font-weight: 600; letter-spacing: -.025em; color: var(--ocean); }
.h3 { font-size: var(--fs-h3); line-height: 1.25; font-weight: 600; letter-spacing: -.015em; }
.h4 { font-size: var(--fs-h4); line-height: 1.35; font-weight: 600; letter-spacing: -.01em; }
.label { display: block; font-size: var(--fs-label); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--ocean); margin-bottom: 6px; }

/* ---------- Buttons ---------- */
.btn {
  --h: 48px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--h); padding: 0 22px; border-radius: var(--r-btn);
  font-size: .9375rem; font-weight: 500; letter-spacing: -.005em; white-space: nowrap;
  transition: background-color .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease), transform .35s var(--ease);
}
.btn .ic { transition: transform .4s var(--ease); }
.btn:hover .ic { transform: translateX(3px); }
.btn--lg { --h: 54px; padding: 0 26px; }
.btn--block { width: 100%; }
.btn--primary { background: var(--ocean); color: #fff; }
.btn--primary:hover { background: var(--ocean-deep); }
.btn--ghost { border: 1px solid rgba(36, 72, 63, .28); color: var(--ocean); background: transparent; }
.btn--ghost:hover { border-color: var(--ocean); background: rgba(36, 72, 63, .05); }
.btn--light { background: #fff; color: var(--ocean); }
.btn--light:hover { background: var(--sand); }
.btn--outline-light { border: 1px solid rgba(255, 255, 255, .55); color: #fff; }
.btn--outline-light:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
  font-weight: 500; color: var(--ocean); font-size: .9375rem;
  background-image: linear-gradient(currentColor, currentColor); background-size: 0 1px; background-repeat: no-repeat; background-position: 0 calc(100% - 10px);
  transition: background-size .5s var(--ease);
}
.link-arrow .ic { transition: transform .4s var(--ease); }
.link-arrow:hover { background-size: calc(100% - 28px) 1px; }
.link-arrow:hover .ic { transform: translateX(4px); }

/* ---------- Preloader ---------- */
.preloader {
  position: fixed; inset: 0; z-index: 500; background: var(--bg);
  display: grid; place-items: center;
  animation: preloaderFailsafe .01s linear 4.5s forwards; /* CSS-only fail-safe */
}
html.no-js .preloader { display: none; }
.preloader__inner { display: grid; justify-items: center; gap: 14px; }
.preloader__wave { width: 180px; height: 30px; stroke: var(--ocean); stroke-width: 1.6; stroke-linecap: round; }
.preloader__wave path { stroke-dasharray: 260; stroke-dashoffset: 260; animation: waveDraw 1s var(--ease) .1s forwards; }
.preloader__word { overflow: hidden; }
.preloader__word span { display: block; font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.25rem); font-weight: 600; letter-spacing: -.03em; color: var(--ocean); transform: translateY(105%); animation: riseIn .8s var(--ease) .45s forwards; }
.preloader__sub { font-size: var(--fs-label); font-weight: 500; letter-spacing: .5em; padding-left: .5em; color: var(--ocean); opacity: 0; animation: subIn 1s var(--ease) .8s forwards; }
.preloader.is-leaving { clip-path: inset(0 0 0 0); animation: curtain .85s cubic-bezier(.76, 0, .24, 1) forwards; }
@keyframes waveDraw { to { stroke-dashoffset: 0; } }
@keyframes riseIn { to { transform: translateY(0); } }
@keyframes subIn { from { opacity: 0; letter-spacing: .7em; } to { opacity: 1; letter-spacing: .5em; } }
@keyframes curtain { to { clip-path: inset(0 0 100% 0); } }
@keyframes preloaderFailsafe { to { visibility: hidden; opacity: 0; } }

/* ---------- Top bar ---------- */
.topbar { background: var(--ocean); color: #fff; font-size: var(--fs-small); }
.topbar__inner { display: flex; justify-content: center; gap: 28px; min-height: 38px; align-items: center; }
.topbar__item { display: inline-flex; align-items: center; gap: 8px; opacity: .92; }
a.topbar__item:hover { opacity: 1; text-decoration: underline; text-underline-offset: 3px; }
.topbar .ic { width: 15px; height: 15px; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(247, 246, 242, 0);
  border-bottom: 1px solid transparent;
  transition: background-color .45s var(--ease), border-color .45s var(--ease), backdrop-filter .45s;
}
.header.is-scrolled { background: rgba(247, 246, 242, .9); border-color: var(--border); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); }
.header__inner { display: flex; align-items: center; gap: 32px; height: var(--header-h); }

.logo { display: inline-flex; align-items: center; gap: 11px; color: var(--ocean); margin-right: auto; }
.logo__mark { width: 36px; height: 36px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.logo__text { display: grid; line-height: 1; }
.logo__name { font-size: 1.1875rem; font-weight: 600; letter-spacing: -.03em; }
.logo__sub { font-size: .5625rem; font-weight: 500; letter-spacing: .32em; margin-top: 5px; }
.logo--light { color: #fff; }

.nav__list { display: flex; gap: 4px; }
.nav__link { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; font-size: .90625rem; font-weight: 500; color: var(--text); transition: color .3s; }
.nav__link::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 9px; height: 1px; background: var(--ocean); transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.nav__link:hover, .nav__link.is-active { color: var(--ocean); }
.nav__link:hover::after, .nav__link.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav__mobile-foot { display: none; }
.header__cta { --h: 44px; padding: 0 20px; }

.burger { display: none; width: 44px; height: 44px; position: relative; border-radius: 10px; }
.burger span { position: absolute; left: 12px; right: 12px; height: 1.6px; background: var(--ocean); border-radius: 2px; transition: transform .45s var(--ease), top .45s var(--ease); }
.burger span:first-child { top: 17px; }
.burger span:last-child { top: 25px; }
.burger[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero { position: relative; padding-top: clamp(28px, 4vw, 56px); padding-bottom: clamp(56px, 7vw, 96px); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.hero__copy { max-width: 560px; }
.hero__title { font-size: var(--fs-h1); line-height: 1.06; font-weight: 600; letter-spacing: -.035em; color: var(--ocean); margin-bottom: 24px; }
.hero__title .line { display: block; overflow: hidden; padding-bottom: .06em; margin-bottom: -.06em; }
.hero__title .line > span { display: block; }
.hero__title .line:last-child > span { color: var(--sage); }
.hero__lead { font-size: clamp(1rem, .96rem + .2vw, 1.0625rem); max-width: 470px; margin-bottom: 32px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 28px; }
.hero__note { font-size: var(--fs-small); color: var(--ocean); padding-top: 22px; border-top: 1px solid var(--border); max-width: 470px; }

.hero__visual { position: relative; padding-bottom: 48px; padding-left: clamp(0px, 5vw, 72px); }
.hero__main { position: relative; border-radius: var(--r-img); overflow: hidden; aspect-ratio: 4 / 4.6; background: var(--sand); }
.hero__main img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 50%; }
.hero__second {
  position: absolute; left: 0; bottom: 0; width: 34%; aspect-ratio: 3 / 4;
  border-radius: calc(var(--r-img) - 4px); overflow: hidden; border: 8px solid var(--bg); background: var(--sand);
}
.hero__second img { width: 100%; height: 100%; object-fit: cover; }
.hero__caption { position: absolute; right: 0; bottom: 8px; display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-small); color: var(--ocean); }
.hero__caption .ic { width: 15px; height: 15px; }

.scroll-cue { position: absolute; left: 50%; bottom: 18px; width: 24px; height: 38px; border: 1px solid rgba(36, 72, 63, .35); border-radius: 14px; transform: translateX(-50%); }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 2px; height: 7px; margin-left: -1px; border-radius: 2px; background: var(--ocean); animation: cue 2s var(--ease) infinite; }
@keyframes cue { 0% { transform: translateY(0); opacity: 0; } 30% { opacity: 1; } 80% { transform: translateY(12px); opacity: 0; } 100% { opacity: 0; } }

/* ---------- Values strip ---------- */
.values { border-block: 1px solid var(--border); background: var(--white); }
.values__list { display: grid; grid-template-columns: repeat(4, 1fr); }
.values__item { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 28px 16px; font-weight: 500; font-size: .9375rem; color: var(--text); }
.values__item + .values__item { border-left: 1px solid var(--border); }
.values__item .ic { color: var(--ocean); }

/* ---------- About ---------- */
.about__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 112px); align-items: center; }
.about__media { position: relative; padding: 0 0 clamp(28px, 4vw, 48px) clamp(28px, 4vw, 48px); }
.about__block { position: absolute; left: 0; bottom: 0; width: 72%; height: 76%; border-radius: var(--r-img); background: var(--sand); }
.about__img { position: relative; border-radius: var(--r-img); overflow: hidden; aspect-ratio: 4 / 4.7; }
.about__img img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
.about__wave { position: absolute; right: -6px; top: -26px; width: 110px; stroke: var(--sage); stroke-width: 1.6; stroke-linecap: round; }
.about__copy > p:not(.eyebrow) { margin-bottom: 16px; max-width: 540px; }
.about__copy .h2 { margin-bottom: 24px; max-width: 480px; }
.about__facts { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: 24px 0; margin: 12px 0 16px; border-block: 1px solid var(--border); max-width: 540px; }

/* ---------- Section head ---------- */
.section-head { margin-bottom: clamp(36px, 4.5vw, 56px); }
.section-head--split { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 32px 64px; align-items: end; }
.section-head .h2 { max-width: 560px; }
.section-head__aside { max-width: 440px; justify-self: end; }

/* ---------- Services ---------- */
.services { background: var(--white); }
.services__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 2.4vw, 32px); }
.service { display: flex; flex-direction: column; }
.service__img { border-radius: var(--r-img); overflow: hidden; aspect-ratio: 4 / 4.8; background: var(--sand); margin-bottom: 22px; }
.service__img img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
.service:hover .service__img img { transform: scale(1.05); }
.service__body { display: flex; flex-direction: column; flex: 1; padding-right: 8px; }
.service__num { font-size: var(--fs-label); font-weight: 600; letter-spacing: .12em; color: var(--sage); margin-bottom: 10px; }
.service .h3 { margin-bottom: 10px; color: var(--text); }
.service p { margin-bottom: 14px; }
.service .link-arrow { margin-top: auto; align-self: flex-start; }

/* ---------- Owner ---------- */
.owner { background: var(--sand-soft); }
.owner__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: clamp(40px, 7vw, 112px); align-items: center; }
.owner__copy .h2 { margin-bottom: 24px; max-width: 480px; }
.owner__copy > p:not(.eyebrow) { margin-bottom: 16px; max-width: 520px; }
.owner__sign { display: grid; gap: 2px; padding-left: 18px; border-left: 2px solid var(--sage); margin: 28px 0 32px; }
.owner__name { font-size: 1.125rem; font-weight: 600; color: var(--ocean); letter-spacing: -.01em; }
.owner__role { font-size: var(--fs-small); }
.owner__photo { border-radius: var(--r-img); overflow: hidden; aspect-ratio: 4 / 5; }
.owner__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 45% 30%; }

/* ---------- Why ---------- */
.why__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 96px); align-items: start; }
.why__img { border-radius: var(--r-img); overflow: hidden; aspect-ratio: 4 / 4.6; position: sticky; top: calc(var(--header-h) + 32px); }
.why__img img { width: 100%; height: 100%; object-fit: cover; object-position: 40% 50%; }
.why__copy { padding-top: 8px; }
.why__copy .h2 { margin-bottom: 28px; }
.why__item { display: grid; grid-template-columns: 48px 1fr; gap: 20px; padding: 26px 0; border-top: 1px solid var(--border); }
.why__item:last-child { border-bottom: 1px solid var(--border); }
.why__icon { width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--border); background: var(--white); display: grid; place-items: center; color: var(--ocean); }
.why__item .h4 { margin-bottom: 6px; color: var(--text); }

/* ---------- Gallery ---------- */
.gallery { background: var(--white); padding-bottom: calc(var(--section) * .85); }
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-auto-rows: clamp(150px, 15vw, 220px); gap: var(--gap); }
.bento__tile { position: relative; display: block; border-radius: var(--r-img); overflow: hidden; background: var(--sand); text-align: left; width: 100%; height: 100%; }
.bento__tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease); }
button.bento__tile:hover img { transform: scale(1.045); }
.bento__a { grid-column: 1 / 8; grid-row: span 2; }
.bento__b { grid-column: 8 / 13; grid-row: span 2; }
.bento__c { grid-column: 1 / 5; }
.bento__d { grid-column: 5 / 8; }
.bento__e { grid-column: 8 / 13; }
.bento__b img { object-position: 50% 60%; }
.bento__label {
  position: absolute; left: 16px; bottom: 16px; padding: 7px 12px; border-radius: 8px;
  background: rgba(255, 255, 255, .92); color: var(--text); font-size: var(--fs-small); font-weight: 500;
}
.bento__zoom { position: absolute; right: 16px; top: 16px; width: 36px; height: 36px; padding: 9px; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--ocean); opacity: 0; transform: scale(.85); transition: opacity .4s var(--ease), transform .4s var(--ease); }
button.bento__tile:hover .bento__zoom, button.bento__tile:focus-visible .bento__zoom { opacity: 1; transform: scale(1); }
.bento__info { background: var(--ocean); color: #fff; padding: clamp(20px, 2.4vw, 32px); display: flex; flex-direction: column; justify-content: flex-end; }
.bento__mark { width: 40px; height: 40px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-bottom: auto; color: var(--sage); }
.bento__info p { font-size: var(--fs-small); opacity: .9; }
.bento__info .bento__info-title { font-size: var(--fs-h4); font-weight: 600; opacity: 1; margin-bottom: 4px; letter-spacing: -.01em; }

/* ---------- Banner ---------- */
.banner { padding: clamp(12px, 1.6vw, 24px); background: var(--white); }
.banner__frame { position: relative; overflow: hidden; border-radius: clamp(18px, 2vw, 28px); min-height: clamp(420px, 44vw, 560px); display: flex; align-items: center; isolation: isolate; }
.banner__bg { position: absolute; inset: -12% 0; z-index: -2; }
.banner__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.banner__frame::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(18, 36, 31, .82) 0%, rgba(18, 36, 31, .55) 45%, rgba(18, 36, 31, .15) 100%); }
.banner__content { color: #fff; padding-block: 64px; }
.banner__content > * { max-width: 520px; }
.banner__title { color: #fff; font-size: clamp(2rem, 1.5rem + 2vw, 3rem); margin-bottom: 18px; }
.banner__content p { font-size: clamp(1rem, .96rem + .2vw, 1.0625rem); margin-bottom: 32px; color: #fff; }
.banner__actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- FAQ ---------- */
.faq__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(40px, 7vw, 112px); align-items: start; }
.faq__intro { position: sticky; top: calc(var(--header-h) + 32px); }
.faq__intro .h2 { margin-bottom: 18px; }
.faq__intro p:not(.eyebrow) { margin-bottom: 16px; max-width: 400px; }
.acc { border-top: 1px solid var(--border); }
.acc:last-child { border-bottom: 1px solid var(--border); }
.acc h3 { font-size: inherit; font-weight: inherit; }
.acc__btn { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 24px 0; text-align: left; font-size: var(--fs-h4); font-weight: 500; letter-spacing: -.01em; color: var(--text); transition: color .3s; }
.acc__btn:hover { color: var(--ocean); }
.acc__icon { position: relative; flex: none; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--border); transition: background-color .4s var(--ease), border-color .4s var(--ease); }
.acc__icon::before, .acc__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; margin: -.75px 0 0 -6px; background: var(--ocean); transition: transform .45s var(--ease), background-color .3s; }
.acc__icon::after { transform: rotate(90deg); }
.acc__btn[aria-expanded="true"] .acc__icon { background: var(--ocean); border-color: var(--ocean); }
.acc__btn[aria-expanded="true"] .acc__icon::before, .acc__btn[aria-expanded="true"] .acc__icon::after { background: #fff; }
.acc__btn[aria-expanded="true"] .acc__icon::after { transform: rotate(0); }
.acc__panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease); }
.acc__panel.is-open { grid-template-rows: 1fr; }
.acc__inner { overflow: hidden; }
.acc__inner p { padding: 0 56px 24px 0; max-width: 640px; }
.acc__inner a { color: var(--ocean); text-decoration: underline; text-underline-offset: 3px; }
html.no-js .acc__panel { grid-template-rows: 1fr; }

/* ---------- Contact ---------- */
.contact { background: var(--white); }
.contact__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 96px); align-items: stretch; }
.contact__info .h2 { margin-bottom: 28px; }
.contact__list { margin-bottom: 32px; }
.contact__row { display: grid; grid-template-columns: 140px 1fr; gap: 16px; padding: 20px 0; border-top: 1px solid var(--border); }
.contact__row:last-child { border-bottom: 1px solid var(--border); }
.contact__row dt { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: var(--ocean); align-self: start; }
.contact__row dd a { color: var(--ocean); text-decoration: underline; text-underline-offset: 3px; }
.contact__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.contact__map { border-radius: var(--r-img); overflow: hidden; min-height: 440px; background: var(--sand); border: 1px solid var(--border); }
.contact__map iframe { width: 100%; height: 100%; min-height: 440px; border: 0; display: block; filter: saturate(.75); }

/* ---------- Footer ---------- */
.footer { position: relative; overflow: hidden; background: var(--ocean); color: #fff; padding: clamp(64px, 7vw, 96px) 0 28px; }
.footer__waves { position: absolute; left: 0; right: 0; bottom: 40px; width: 100%; height: 200px; stroke: rgba(142, 169, 155, .16); stroke-width: 1.4; pointer-events: none; }
.footer .container { position: relative; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.1fr; gap: 40px; padding-bottom: 56px; }
.footer__brand p { margin-top: 20px; max-width: 320px; font-size: .9375rem; color: rgba(255, 255, 255, .88); }
.footer__title { font-size: var(--fs-label); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--sage); margin-bottom: 18px; }
.footer__links { display: grid; gap: 4px; font-size: .9375rem; }
.footer__links a { display: inline-flex; min-height: 36px; align-items: center; color: rgba(255, 255, 255, .92); transition: color .3s; }
.footer__links a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer__links--plain { gap: 14px; color: rgba(255, 255, 255, .92); line-height: 1.55; }
.footer__social { display: flex; gap: 10px; margin-top: 18px; }
.footer__social a { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .25); font-size: var(--fs-small); }
.footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .16); font-size: var(--fs-small); color: rgba(255, 255, 255, .8); }
.footer__bottom a:hover { color: #fff; text-decoration: underline; }

/* ---------- Mobile bar ---------- */
.mobile-bar { display: none; }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 400; display: grid; place-items: center; padding: 20px; }
.modal__overlay { position: absolute; inset: 0; background: rgba(15, 30, 26, .55); backdrop-filter: blur(4px); animation: fadeIn .35s var(--ease); }
.modal__panel { position: relative; width: 100%; max-width: 580px; max-height: calc(100dvh - 40px); overflow: auto; background: var(--bg); border-radius: 20px; padding: clamp(28px, 4vw, 44px); animation: panelIn .5s var(--ease); }
.modal__close { position: absolute; right: 14px; top: 14px; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; color: var(--ocean); }
.modal__close:hover { background: rgba(36, 72, 63, .08); }
.modal .eyebrow { margin-bottom: 12px; }
.modal .h3 { color: var(--ocean); margin-bottom: 8px; }
.modal__intro { margin-bottom: 24px; }
.form { display: grid; gap: 16px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 6px; }
.field span { font-size: var(--fs-small); font-weight: 500; }
.field em { font-style: normal; opacity: .7; }
.field input, .field select, .field textarea { width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid #D6D6CF; border-radius: 10px; background: #fff; color: var(--text); font-size: 1rem; transition: border-color .3s, box-shadow .3s; }
.field textarea { resize: vertical; min-height: 90px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ocean); box-shadow: 0 0 0 3px rgba(36, 72, 63, .12); }
.field.is-invalid input, .field.is-invalid select { border-color: #A23B2A; }
.form__error { color: #8C2F21; font-size: var(--fs-small); font-weight: 500; }
.modal__done { text-align: center; display: grid; justify-items: center; gap: 12px; padding: 20px 0; }
.modal__done .bento__mark { color: var(--ocean); margin: 0 0 4px; }
.modal__done p { max-width: 400px; margin-bottom: 12px; }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes panelIn { from { opacity: 0; transform: translateY(24px) scale(.98); } }

/* ---------- Lightbox ---------- */
.lightbox { position: fixed; inset: 0; z-index: 450; background: rgba(12, 22, 19, .94); display: grid; place-items: center; padding: 64px 80px; animation: fadeIn .35s var(--ease); touch-action: pan-y; }
.lightbox__fig { display: grid; gap: 14px; justify-items: center; }
.lightbox__fig img { max-height: calc(100dvh - 160px); max-width: min(1100px, 100%); width: auto; border-radius: 14px; animation: panelIn .45s var(--ease); }
.lightbox__fig figcaption { color: #fff; font-size: var(--fs-small); }
.lightbox__close, .lightbox__nav { position: absolute; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; color: #fff; border: 1px solid rgba(255, 255, 255, .25); transition: background-color .3s; }
.lightbox__close:hover, .lightbox__nav:hover { background: rgba(255, 255, 255, .12); }
.lightbox__close { right: 20px; top: 20px; }
.lightbox__prev { left: 20px; top: 50%; margin-top: -24px; }
.lightbox__next { right: 20px; top: 50%; margin-top: -24px; }

/* ---------- Animation initial states (only when JS + GSAP ready) ---------- */
html.anim [data-hero], html.anim [data-reveal] { opacity: 0; }
html.anim .hero__title .line > span { transform: translateY(110%); }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) {
  .nav__link { padding: 0 9px; }
  .header__inner { gap: 20px; }
}

@media (max-width: 1024px) {
  :root { --header-h: 68px; }
  .burger { display: block; }
  .header__cta { display: none; }
  .nav {
    position: fixed; inset: 0; top: 0; z-index: -1; padding: calc(var(--header-h) + 38px + 24px) var(--pad) 32px;
    background: var(--bg); display: flex; flex-direction: column; justify-content: space-between;
    clip-path: inset(0 0 100% 0); transition: clip-path .6s cubic-bezier(.76, 0, .24, 1); visibility: hidden;
  }
  .nav.is-open { clip-path: inset(0 0 0 0); visibility: visible; }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__link { font-size: 1.5rem; font-weight: 500; letter-spacing: -.02em; min-height: 58px; padding: 0; border-bottom: 1px solid var(--border); width: 100%; }
  .nav__link::after { display: none; }
  .nav__mobile-foot { display: grid; gap: 18px; }
  .nav__mobile-foot p { font-size: var(--fs-small); color: var(--ocean); }
  .header.is-scrolled, .header.menu-open { background: var(--bg); backdrop-filter: none; -webkit-backdrop-filter: none; }

  .hero__grid { grid-template-columns: 1fr; }
  .hero__copy { max-width: 640px; }
  .hero__visual { padding-left: 0; max-width: 760px; }
  .hero__main { aspect-ratio: 16 / 11; margin-left: 18%; }
  .hero__second { width: 30%; }
  .scroll-cue { display: none; }

  .values__list { grid-template-columns: repeat(2, 1fr); }
  .values__item:nth-child(3) { border-left: 0; }
  .values__item:nth-child(n+3) { border-top: 1px solid var(--border); }

  .about__grid, .owner__grid, .why__grid, .faq__grid, .contact__grid { grid-template-columns: 1fr; }
  .about__media { max-width: 600px; }
  .owner__photo { max-width: 560px; order: -1; }
  .why__img { position: relative; top: 0; aspect-ratio: 16 / 10; }
  .faq__intro { position: static; }
  .section-head--split { grid-template-columns: 1fr; }
  .section-head__aside { justify-self: start; }

  .services__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service:last-child { grid-column: span 2; display: grid; grid-template-columns: 1fr 1fr; gap: 0 28px; align-items: center; }
  .service:last-child .service__img { margin-bottom: 0; aspect-ratio: 4 / 3.6; }

  .bento { grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: clamp(150px, 26vw, 230px); }
  .bento__a { grid-column: 1 / 7; grid-row: span 2; }
  .bento__b { grid-column: 1 / 4; grid-row: span 2; }
  .bento__c { grid-column: 4 / 7; }
  .bento__d { grid-column: 4 / 7; }
  .bento__e { grid-column: 1 / 7; grid-row: span 2; }

  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 767px) {
  :root { --r-img: 16px; }
  .topbar__inner { gap: 16px; justify-content: space-between; }
  .topbar__item:nth-child(2) { display: none; }
  .topbar__phone { display: inline-flex; }

  .hero { padding-top: 20px; }
  .hero__title { margin-bottom: 18px; }
  .hero__lead { margin-bottom: 26px; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; }
  .hero__visual { padding-bottom: 40px; }
  .hero__main { margin-left: 0; aspect-ratio: 4 / 3.6; }
  .hero__second { width: 34%; left: auto; right: 14px; bottom: 0; border-width: 6px; }
  .hero__caption { left: 0; right: auto; bottom: 6px; }

  .values__item { justify-content: flex-start; padding: 20px 12px; font-size: .875rem; gap: 10px; }
  .values__item .ic--lg { width: 20px; height: 20px; }

  .about__facts { grid-template-columns: 1fr 1fr; gap: 16px; }

  .services__grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding-inline: var(--pad); gap: 16px; margin-inline: calc(var(--pad) * -1); padding: 0 var(--pad) 8px; scrollbar-width: none; }
  .services__grid::-webkit-scrollbar { display: none; }
  .service, .service:last-child { flex: 0 0 82%; scroll-snap-align: start; display: flex; grid-column: auto; }
  .service:last-child .service__img { margin-bottom: 22px; aspect-ratio: 4 / 4.4; }
  .service__img { aspect-ratio: 4 / 4.4; }

  .owner__photo { aspect-ratio: 4 / 4.4; }
  .why__item { grid-template-columns: 40px 1fr; gap: 16px; padding: 22px 0; }
  .why__icon { width: 40px; height: 40px; }

  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 150px; gap: 12px; }
  .bento__a { grid-column: 1 / 3; grid-row: span 2; }
  .bento__b { grid-column: 1 / 2; grid-row: span 2; }
  .bento__c { grid-column: 2 / 3; grid-row: span 1; }
  .bento__d { grid-column: 2 / 3; grid-row: span 1; }
  .bento__e { grid-column: 1 / 3; grid-row: span 2; }
  .bento__label { left: 10px; bottom: 10px; padding: 5px 9px; font-size: .75rem; }
  .bento__zoom { display: none; }
  .bento__info { padding: 16px; }
  .bento__mark { width: 30px; height: 30px; }
  .bento__info .bento__info-title { font-size: .9375rem; }
  .bento__info p { font-size: .75rem; }

  .banner { padding: 0; }
  .banner__frame { border-radius: 0; min-height: 460px; align-items: flex-end; }
  .banner__frame::before { background: linear-gradient(0deg, rgba(18, 36, 31, .88) 0%, rgba(18, 36, 31, .55) 60%, rgba(18, 36, 31, .3) 100%); }
  .banner__bg { inset: 0; }
  .banner__content { padding-block: 48px; }
  .banner__actions { flex-direction: column; }
  .banner__actions .btn { width: 100%; }

  .acc__btn { padding: 20px 0; font-size: 1rem; }
  .acc__inner p { padding-right: 0; }

  .contact__row { grid-template-columns: 1fr; gap: 4px; }
  .contact__actions { flex-direction: column; }
  .contact__actions .btn { width: 100%; }
  .contact__map, .contact__map iframe { min-height: 320px; }

  .footer__grid { grid-template-columns: 1fr; gap: 32px; padding-bottom: 40px; }
  .footer__waves { height: 120px; bottom: 60px; }

  .form__row { grid-template-columns: 1fr; }
  .modal { padding: 0; align-items: end; }
  .modal__panel { border-radius: 20px 20px 0 0; max-height: 92dvh; }

  .lightbox { padding: 64px 12px 96px; }
  .lightbox__prev, .lightbox__next { top: auto; bottom: 24px; margin-top: 0; }
  .lightbox__prev { left: calc(50% - 60px); }
  .lightbox__next { right: calc(50% - 60px); }

  .mobile-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 90; display: grid; grid-template-columns: 1fr 1.3fr; gap: 10px;
    padding: 10px var(--pad) calc(10px + env(safe-area-inset-bottom)); background: rgba(247, 246, 242, .96); border-top: 1px solid var(--border);
    backdrop-filter: blur(10px); transform: translateY(110%); transition: transform .5s var(--ease);
  }
  .mobile-bar.is-visible { transform: translateY(0); }
  .mobile-bar .btn { --h: 48px; padding: 0 14px; }
  .footer { padding-bottom: 96px; }
}

@media (max-width: 360px) {
  .logo__name { font-size: 1.0625rem; }
  .logo__mark { width: 32px; height: 32px; }
  .values__list { grid-template-columns: 1fr; }
  .values__item + .values__item { border-left: 0; border-top: 1px solid var(--border); }
  .about__facts { grid-template-columns: 1fr; }
  .service, .service:last-child { flex-basis: 88%; }
  .topbar__inner { justify-content: center; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .preloader { display: none; }
}

/* =========================================================
   V2 additions
   ========================================================= */

/* ---------- Hero extras ---------- */
.hero { overflow: clip; }
.hero__grid { position: relative; z-index: 1; }
.hero__waves { position: absolute; left: 0; bottom: 0; width: 100%; height: 46%; overflow: visible; stroke: var(--sage); stroke-width: 1.2; opacity: .35; pointer-events: none; }
.hero__waves path { animation: waveDrift 16s linear infinite; }
.hero__waves path:nth-child(2) { animation-duration: 22s; animation-direction: reverse; opacity: .7; }
.hero__waves path:nth-child(3) { animation-duration: 28s; opacity: .45; }
@keyframes waveDrift { to { transform: translateX(-480px); } }

.badge {
  position: absolute; z-index: 3; top: 36px; left: clamp(0px, 5vw, 72px); translate: -50% 0;
  width: 124px; height: 124px; border-radius: 50%; background: var(--bg); color: var(--ocean);
  display: grid; place-items: center; transition: background-color .4s var(--ease), color .4s var(--ease);
}
.badge:hover { background: var(--ocean); color: #fff; }
.badge__ring { position: absolute; inset: 6px; width: calc(100% - 12px); height: calc(100% - 12px); animation: spin 18s linear infinite; }
.badge__ring text { font-size: 10.6px; font-weight: 600; letter-spacing: 2.6px; fill: currentColor; }
.badge__mark { width: 36px; height: 36px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Tickers ---------- */
.ticker { overflow: hidden; padding: clamp(18px, 2.2vw, 28px) 0; user-select: none; }
.ticker__track { display: flex; width: max-content; animation: marquee 42s linear infinite; }
.ticker[data-ticker="-1"] .ticker__track { animation-direction: reverse; }
html.gsap-ticker .ticker__track { animation: none; }
.ticker__group { display: flex; align-items: center; flex: none; gap: clamp(28px, 3.2vw, 56px); padding-right: clamp(28px, 3.2vw, 56px); }
.ticker__group span { font-size: clamp(1.75rem, 1rem + 3vw, 3.5rem); font-weight: 500; letter-spacing: -.035em; line-height: 1.1; white-space: nowrap; }
.ticker__group i { flex: none; width: 12px; height: 12px; border-radius: 3px; transform: rotate(45deg); background: var(--sage); }
.ticker--solid { background: var(--ocean); color: #fff; }
.ticker--outline { background: var(--white); padding: clamp(32px, 4vw, 64px) 0 clamp(20px, 3vw, 40px); }
.ticker--outline span { font-size: clamp(3rem, 1.6rem + 6vw, 7.5rem); font-weight: 600; letter-spacing: -.05em; color: transparent; -webkit-text-stroke: 1.2px var(--ocean); }
.ticker--outline span:nth-of-type(2n) { color: var(--ocean); -webkit-text-stroke: 0; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Statement ---------- */
.statement { border-bottom: 1px solid var(--border); }
.statement__text { font-size: clamp(1.625rem, 1rem + 2.6vw, 3.25rem); line-height: 1.22; font-weight: 500; letter-spacing: -.03em; color: var(--ocean); max-width: 1120px; }
.statement__pill { display: inline-block; width: 2.1em; height: .95em; border-radius: 999px; object-fit: cover; vertical-align: -.1em; margin: 0 .08em; }
.sw { opacity: 1; transition: none; }
html.anim .sw { opacity: .16; }
.statement .values__list { margin-top: clamp(48px, 6vw, 80px); border-block: 1px solid var(--border); background: var(--white); border-radius: 16px; border-inline: 1px solid var(--border); }

/* ---------- Split heading masks ---------- */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.w > span { display: inline-block; will-change: transform; }

/* ---------- Services: pinned horizontal track ---------- */
.service--cta { background: var(--ocean); color: #fff; border-radius: var(--r-img); padding: clamp(24px, 2.6vw, 36px); justify-content: flex-end; gap: 14px; }
.service--cta .bento__mark { margin-bottom: auto; }
.service--cta .h3 { color: #fff; margin: 0; }
.service--cta p { margin: 0 0 8px; color: #fff; }
.service--cta .btn { align-self: flex-start; }
.services__progress { display: none; }

@media (min-width: 1025px) {
  .services.section { padding-block: 0; overflow: clip; }
  .services__pin { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: calc(var(--header-h) + 32px) 0 48px; }
  .services .section-head { margin-bottom: 40px; }
  .services__grid { display: flex; gap: 28px; width: max-content; }
  .service { flex: 0 0 clamp(340px, 29vw, 420px); }
  .service__img { aspect-ratio: 4 / 3.3; }
  .service--cta { min-height: 100%; }
  .services__progress { display: block; height: 2px; background: var(--border); margin-top: 40px; border-radius: 2px; overflow: hidden; }
  .services__progress span { display: block; height: 100%; background: var(--ocean); transform-origin: left; transform: scaleX(0); }
}
@media (max-width: 1024px) {
  .service:last-child { grid-column: auto; display: flex; }
  .service--cta { min-height: 320px; }
}
@media (max-width: 767px) {
  .service--cta { min-height: 0; }
}

/* ---------- Ritual (sticky stacked cards) ---------- */
.ritual__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(40px, 7vw, 112px); align-items: start; }
.ritual__intro { position: sticky; top: calc(var(--header-h) + 48px); }
.ritual__intro .h2 { margin-bottom: 18px; }
.ritual__intro p:not(.eyebrow) { max-width: 400px; margin-bottom: 28px; }
.ritual__stack { display: grid; gap: 24px; padding-bottom: 40px; }
.step {
  position: sticky; top: calc(var(--header-h) + 48px + var(--i, 0) * 18px);
  display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: start;
  min-height: 280px; padding: clamp(28px, 3vw, 44px); border-radius: 24px; border: 1px solid var(--border);
  background: var(--white); transform-origin: 50% 0;
}
.step--1 { --i: 0; }
.step--2 { --i: 1; background: var(--sand-soft); }
.step--3 { --i: 2; background: var(--sand); }
.step--4 { --i: 3; background: var(--ocean); color: #fff; border-color: var(--ocean); }
.step__num { font-size: clamp(2.5rem, 1.8rem + 2.6vw, 4.5rem); font-weight: 500; letter-spacing: -.05em; line-height: .9; color: var(--sage); }
.step .h3 { margin-bottom: 12px; }
.step p { max-width: 440px; }
.step__ic { width: 28px; height: 28px; color: var(--ocean); stroke-width: 1.3; }
.step--4 .step__ic, .step--4 .step__num { color: var(--sage); }
.step--4 .h3, .step--4 p { color: #fff; }

@media (max-width: 1024px) {
  .ritual__grid { grid-template-columns: 1fr; }
  .ritual__intro { position: static; }
}
@media (max-width: 767px) {
  .step { grid-template-columns: 1fr; gap: 18px; min-height: 240px; top: calc(var(--header-h) + 16px + var(--i, 0) * 12px); }
  .step__ic { display: none; }
  .badge { width: 92px; height: 92px; top: -30px; left: auto; right: 14px; translate: 0 0; }
  .badge__ring text { font-size: 10.2px; }
  .badge__mark { width: 28px; height: 28px; }
  .statement .values__list { border-radius: 12px; }
}

/* ---------- Banner expand ---------- */
.banner__frame { will-change: clip-path; }

/* ---------- Footer wordmark ---------- */
.footer__word { overflow: hidden; text-align: center; margin: 0 0 24px; line-height: .82; }
.footer__word span { display: inline-block; font-size: clamp(4rem, 1rem + 15vw, 15rem); font-weight: 600; letter-spacing: -.06em; color: rgba(142, 169, 155, .26); white-space: nowrap; }
.footer__word .ch { display: inline-block; }

@media (prefers-reduced-motion: reduce) {
  .ticker__track, .hero__waves path, .badge__ring { animation: none !important; }
}

/* ---------- V2.1: award image + call buttons ---------- */
.owner__photo--award, .owner__photo--award.owner__photo { aspect-ratio: 736 / 672; background: #111; }
.owner__photo--award img { object-fit: cover; object-position: 50% 50%; }
.header__call { --h: 44px; padding: 0 16px; }
.hero__call { margin: -8px 0 24px; font-size: .9375rem; }
.hero__call a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; color: var(--ocean); text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 1024px) { .header__call { padding: 0; width: 44px; } .header__call span { display: none; } }
@media (max-width: 767px) { .owner__photo--award.owner__photo { aspect-ratio: 736 / 672; } }
@media (max-width: 767px) {
  .topbar__inner:has(.topbar__phone:not([hidden])) .topbar__item:first-child { display: none; }
  .topbar__inner:has(.topbar__phone:not([hidden])) { justify-content: center; }
}
