/* ==========================================================================
   Skinex 漾然美學 — v2 (image-rich)
   Clean corporate system (free.spit.hk / openhands.spit.hk) + taupe accent
   ========================================================================== */

:root {
  --bg: #ffffff;
  --bg-soft: #fafafa;
  --band: #f5f5f5;
  --dark: #171717;
  --dark-2: #222222;
  --text: #171717;
  --muted: #525252;
  --muted-2: #737373;
  --border: #e5e5e5;
  --accent: #8a6a55;
  --accent-dark: #6f5544;
  --accent-tint: #f4ede8;
  --accent-light: #c9ab95;
  --wa: #25d366;

  --font: "Inter", "Noto Sans TC", system-ui, -apple-system, "PingFang HK", "Microsoft JhengHei", sans-serif;
  --container: 1200px;
  --gutter: clamp(1.25rem, 4vw, 2rem);
  --section-y: clamp(4.5rem, 9vw, 8rem);
  --radius: 0.75rem;
  --radius-lg: 1rem;
  --shadow-sm: 0 1px 2px rgb(0 0 0 / .05);
  --shadow: 0 10px 30px -12px rgb(23 23 23 / .18), 0 4px 10px -6px rgb(23 23 23 / .08);
  --shadow-lg: 0 30px 60px -20px rgb(23 23 23 / .35);
  --header-h: 80px;
  --header-shrink: 16px; /* scrolled header is visually 64px (transform only) */
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 1rem); }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip; /* clip (not hidden) keeps the sticky header working */
}
img, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.15; letter-spacing: -0.025em; font-weight: 800; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.skip-link {
  position: absolute; left: 1rem; top: -4rem; z-index: 200;
  background: var(--dark); color: #fff; padding: .6rem 1rem; border-radius: .5rem;
}
.skip-link:focus { top: 1rem; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 44px; padding: .7rem 1.35rem; border-radius: 999px;
  font-weight: 600; font-size: .95rem; line-height: 1.2; letter-spacing: -.005em;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
  position: relative; overflow: hidden; isolation: isolate;
  transition: background-color .2s, color .2s, border-color .2s, translate .25s var(--ease), scale .15s var(--ease), box-shadow .25s;
}
.btn:hover { translate: 0 -2px; }
.btn:active { translate: 0 0; scale: .97; }
/* Shine sweep */
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(110deg, transparent 25%, rgb(255 255 255 / .38) 50%, transparent 75%);
  transform: translateX(-130%);
}
.btn:hover::before { transform: translateX(130%); transition: transform .9s var(--ease-out); }
.btn-outline::before { background: linear-gradient(110deg, transparent 25%, rgb(138 106 85 / .14) 50%, transparent 75%); }
/* Arrow nudge on primary CTAs */
.btn-primary::after {
  content: "→"; display: inline-block; margin-left: .1rem; font-weight: 500;
  transition: transform .3s var(--ease);
}
.btn-primary:hover::after { transform: translateX(4px); }
.btn-sm.btn-primary::after { content: none; }
.btn svg { width: 1.1em; height: 1.1em; flex: none; transition: transform .3s var(--ease); }
.btn:hover svg { transform: scale(1.1) rotate(-6deg); }
.btn-sm { min-height: 38px; padding: .5rem 1rem; font-size: .875rem; }
.btn-lg { min-height: 52px; padding: .9rem 1.75rem; font-size: 1rem; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); box-shadow: 0 10px 24px -10px rgb(138 106 85 / .7); }
.btn-dark { background: var(--dark); color: #fff; }
.btn-dark:hover { background: #000; }
.btn-light { background: #fff; color: var(--dark); }
.btn-light:hover { background: var(--accent-tint); }
.btn-outline { border-color: var(--border); background: #fff; color: var(--text); }
.btn-outline:hover { border-color: var(--text); }
.btn-outline-light { border-color: rgb(255 255 255 / .55); color: #fff; background: rgb(255 255 255 / .06); backdrop-filter: blur(6px); }
.btn-outline-light:hover { background: #fff; color: var(--dark); border-color: #fff; }
.btn-whatsapp { background: var(--wa); color: #fff; }
.btn-whatsapp:hover { background: #1ebe5b; }

.link-arrow {
  display: inline-flex; align-items: center; gap: .4rem;
  font-weight: 600; font-size: .95rem; color: var(--accent);
  white-space: nowrap;
}
.link-arrow span { transition: transform .2s var(--ease); }
.link-arrow:hover span, a:hover .link-arrow span { transform: translateX(4px); }
.on-dark .link-arrow { color: var(--accent-light); }

/* ---------- Header ---------- */
/* Fixed + out of flow, so the shrink (transform only) never shifts content.
   States: solid (default / no JS) · transparent over hero (.js at top) · scrolled (compact). */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  pointer-events: none;
  view-transition-name: site-header;
}
.site-header > * { pointer-events: auto; }
.site-header::before, .site-header::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: var(--header-h);
  transform-origin: top; pointer-events: none;
  transition: transform .5s var(--ease-out), opacity .4s var(--ease);
}
.site-header::before {
  z-index: -1;
  background: rgb(255 255 255 / .86);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  box-shadow: inset 0 -1px 0 var(--border);
}
.site-header::after { z-index: -2; box-shadow: 0 10px 30px -14px rgb(23 23 23 / .28); opacity: 0; }
.site-header.is-scrolled::before,
.site-header.is-scrolled::after { transform: scaleY(calc(1 - var(--header-shrink) / var(--header-h))); }
.site-header.is-scrolled::after { opacity: 1; }
.header-inner {
  display: flex; align-items: center; gap: 2rem; height: var(--header-h);
  transition: transform .5s var(--ease-out);
}
.site-header.is-scrolled .header-inner { transform: translateY(calc(var(--header-shrink) / -2)); }
.brand img { width: auto; height: 46px; transform-origin: left center; transition: transform .5s var(--ease-out); }
.site-header.is-scrolled .brand img { transform: scale(.84); }
.nav { display: flex; gap: .25rem; margin-left: auto; }
.nav a {
  position: relative; padding: .5rem .85rem; border-radius: .5rem;
  font-size: .95rem; font-weight: 500; color: var(--muted);
  transition: color .3s, background-color .3s;
}
.nav a:hover { color: var(--text); background: var(--band); }
.nav a[aria-current="page"] { color: var(--text); font-weight: 700; }
.nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: .85rem; right: .85rem; bottom: .15rem;
  height: 2px; border-radius: 2px; background: var(--accent);
}
.header-actions { display: flex; gap: .5rem; }
.menu-toggle {
  display: none; margin-left: auto; width: 44px; height: 44px;
  align-items: center; justify-content: center;
  border: 1px solid var(--border); border-radius: .6rem; background: #fff; cursor: pointer; color: var(--text);
}
.menu-toggle svg { width: 22px; height: 22px; }
.menu-toggle .icon-close { display: none; }
.menu-open .menu-toggle .icon-open { display: none; }
.menu-open .menu-toggle .icon-close { display: block; }
.menu-toggle { transition: color .3s, background-color .3s, border-color .3s, scale .15s var(--ease); }
.menu-toggle:active { scale: .94; }
.mobile-menu { display: none; }

/* Transparent over the hero: only with JS (main.js removes it on scroll) and never
   once the safety fallback (.reveal-all) has fired, so text is always legible. */
.js:not(.reveal-all) .site-header:not(.is-scrolled):not(.menu-open)::before { opacity: 0; }
.js:not(.reveal-all) .site-header:not(.is-scrolled):not(.menu-open) .nav a { color: rgb(255 255 255 / .82); }
.js:not(.reveal-all) .site-header:not(.is-scrolled):not(.menu-open) .nav a:hover { color: #fff; background: rgb(255 255 255 / .1); }
.js:not(.reveal-all) .site-header:not(.is-scrolled):not(.menu-open) .nav a[aria-current="page"] { color: #fff; }
.js:not(.reveal-all) .site-header:not(.is-scrolled):not(.menu-open) .nav a[aria-current="page"]::after { background: var(--accent-light); }
.js:not(.reveal-all) .site-header:not(.is-scrolled):not(.menu-open) .header-actions .btn-outline { background: rgb(255 255 255 / .08); border-color: rgb(255 255 255 / .5); color: #fff; }
.js:not(.reveal-all) .site-header:not(.is-scrolled):not(.menu-open) .header-actions .btn-outline:hover { background: #fff; color: var(--dark); }
.js:not(.reveal-all) .site-header:not(.is-scrolled):not(.menu-open) .menu-toggle { background: rgb(255 255 255 / .08); border-color: rgb(255 255 255 / .45); color: #fff; }

@media (max-width: 960px) {
  .nav, .header-actions { display: none; }
  .menu-toggle { display: inline-flex; }
  .mobile-menu {
    display: block; position: absolute; left: 0; right: 0; top: var(--header-h);
    max-height: calc(100svh - var(--header-h)); overflow-y: auto;
    background: #fff; border-top: 1px solid var(--border); box-shadow: var(--shadow);
    clip-path: inset(0 0 100% 0); opacity: 0; visibility: hidden;
    transition: clip-path .45s var(--ease-out), opacity .3s var(--ease), visibility 0s linear .45s, transform .5s var(--ease-out);
  }
  .site-header.is-scrolled .mobile-menu { transform: translateY(calc(var(--header-shrink) * -1)); }
  .menu-open .mobile-menu {
    clip-path: inset(0 0 -2rem 0); opacity: 1; visibility: visible;
    transition: clip-path .45s var(--ease-out), opacity .3s var(--ease), visibility 0s, transform .5s var(--ease-out);
  }
  .mobile-menu .mobile-link {
    display: block; padding: 1rem var(--gutter); font-size: 1.05rem; font-weight: 600;
    border-bottom: 1px solid var(--border);
  }
  .mobile-menu .mobile-link[aria-current="page"] { color: var(--accent); }
  .mobile-actions { display: grid; gap: .6rem; padding: 1.25rem var(--gutter) 1.5rem; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate;
  min-height: 100svh;
  display: flex; align-items: center;
  color: #fff; overflow: hidden; background: var(--dark);
}
.hero-bg { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero-bg img, .hero-bg video { width: 100%; height: 100%; object-fit: cover; }
/* Slow Ken Burns */
.hero-bg img {
  transform-origin: 60% 45%; will-change: transform;
  animation: kenburns 32s ease-in-out infinite alternate;
}
@keyframes kenburns {
  from { transform: scale(1.03); }
  to   { transform: scale(1.14) translate3d(-1.5%, -1%, 0); }
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgb(10 10 10 / .55) 0%, transparent calc(var(--header-h) + 4rem)),
    linear-gradient(90deg, rgb(10 10 10 / .82) 0%, rgb(10 10 10 / .55) 45%, rgb(10 10 10 / .25) 100%),
    linear-gradient(0deg, rgb(10 10 10 / .6) 0%, transparent 40%);
}
.hero-content { padding-block: calc(var(--header-h) + clamp(3rem, 9vw, 6rem)) clamp(5rem, 12vw, 9rem); }
.hero-content > * { max-width: 44rem; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: .75rem;
  font-size: .8rem; font-weight: 600; letter-spacing: .2em; text-transform: uppercase;
  color: var(--accent-light);
}
.hero-eyebrow::before { content: ""; width: 2.5rem; height: 1px; background: currentColor; }
.hero h1 {
  margin-top: 1.25rem;
  font-size: clamp(2.75rem, 7vw, 5.5rem); font-weight: 900; letter-spacing: -.035em; line-height: 1.04;
}
.hero-quote {
  margin-top: 1.5rem; font-size: clamp(1.1rem, 2vw, 1.4rem); line-height: 1.6;
  color: rgb(255 255 255 / .85); font-weight: 400;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2.5rem; }
.scroll-cue {
  position: absolute; left: 50%; bottom: 2rem; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: .6rem;
  font-size: .75rem; letter-spacing: .25em; color: rgb(255 255 255 / .75);
}
.scroll-cue .line { width: 1px; height: 44px; background: rgb(255 255 255 / .3); position: relative; overflow: hidden; }
.scroll-cue .line::after {
  content: ""; position: absolute; left: 0; top: -40%; width: 100%; height: 40%;
  background: #fff; animation: cue 1.8s var(--ease) infinite;
}
@keyframes cue { to { top: 100%; } }

/* Page hero (inner pages) */
.page-hero { min-height: calc(var(--header-h) + clamp(26rem, 68vh, 40rem)); align-items: flex-end; }
.page-hero .hero-content { padding-block: calc(var(--header-h) + clamp(6rem, 12vw, 9rem)) clamp(3.5rem, 7vw, 5.5rem); }
.page-hero h1 { font-size: clamp(2.5rem, 6vw, 4.75rem); }
.breadcrumb { font-size: .85rem; color: rgb(255 255 255 / .7); margin-bottom: 1.25rem; }
.breadcrumb a:hover { color: #fff; text-decoration: underline; }

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden; border-bottom: 1px solid var(--border); background: #fff;
  -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; width: max-content; animation: marquee 38s linear infinite; will-change: transform; }
.marquee:hover .marquee-track, .marquee:focus-within .marquee-track { animation-play-state: paused; }
.marquee-group { display: flex; flex: none; }
.marquee-item {
  display: inline-flex; align-items: center; gap: 2.5rem; padding: 1.4rem 1.25rem;
  font-size: 1.05rem; font-weight: 700; color: #a3a3a3; white-space: nowrap; letter-spacing: .02em;
}
.marquee-item::after { content: "✦"; color: var(--accent-light); font-size: .7rem; }
@keyframes marquee { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-50%, 0, 0); } }

/* ---------- Sections ---------- */
.section { padding-block: var(--section-y); }
.section-band { background: var(--band); }
.section-tint { background: var(--accent-tint); }
.section-dark { background: var(--dark); color: #fff; }
.section-tight { padding-block: clamp(3rem, 6vw, 4.5rem); }

.eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .8rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted-2);
}
.eyebrow .num { color: var(--accent); font-variant-numeric: tabular-nums; }
.eyebrow .num::after { content: " —"; color: var(--accent-light); }
.section-dark .eyebrow { color: #a3a3a3; }
.section-dark .eyebrow .num { color: var(--accent-light); }

.section-title {
  margin-top: 1rem;
  font-size: clamp(2rem, 4.4vw, 3.25rem); font-weight: 800; letter-spacing: -.03em;
}
.lede { margin-top: 1.1rem; font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--muted); max-width: 40rem; }
.section-dark .lede, .section-dark .prose { color: #c4c4c4; }
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 2rem;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.section-head.center { flex-direction: column; align-items: center; text-align: center; }
.section-head.center .lede { margin-inline: auto; }
.prose { color: var(--muted); font-size: 1.05rem; }
.prose p + p { margin-top: 1rem; }
.prose strong { color: var(--text); }

/* ---------- Media frames ---------- */
.media {
  position: relative; overflow: hidden; border-radius: var(--radius-lg);
  background: var(--band); box-shadow: var(--shadow);
  aspect-ratio: 4 / 5;
}
.media img, .media video { width: 100%; height: 100%; object-fit: cover; transition: scale 1s var(--ease-out); }
.media.zoom:hover img { scale: 1.06; }
.ratio-1x1 { aspect-ratio: 1 / 1; }
.ratio-4x5 { aspect-ratio: 4 / 5; }
.ratio-16x10 { aspect-ratio: 16 / 10; }
.ratio-4x3 { aspect-ratio: 4 / 3; }
.ratio-6x5 { aspect-ratio: 6 / 5; }
.ratio-poster-52 { aspect-ratio: 1284 / 1132; }
.media-badge {
  position: absolute; left: 1.25rem; bottom: 1.25rem;
  display: flex; align-items: center; gap: .9rem;
  padding: .9rem 1.2rem; border-radius: var(--radius);
  background: rgb(255 255 255 / .9); backdrop-filter: blur(8px); color: var(--text);
  box-shadow: var(--shadow);
}
.media-badge strong { font-size: 1.75rem; font-weight: 900; letter-spacing: -.03em; color: var(--accent); line-height: 1; }
.media-badge span { font-size: .85rem; color: var(--muted); line-height: 1.4; }

/* Split 50/50 */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2.5rem, 6vw, 5.5rem); align-items: center; }
.split.reverse > :first-child { order: 2; }
.split + .split { margin-top: var(--section-y); }

/* Layered pair of images */
.stack { position: relative; padding: 0 12% 14% 0; }
.stack .media-back {
  position: absolute; right: 0; bottom: 0; width: 46%;
  border: 6px solid #fff; aspect-ratio: 4 / 5;
}
.section-band .stack .media-back { border-color: var(--band); }

/* Lists */
.check-list { list-style: none; margin-top: 1.75rem; display: grid; gap: .75rem; }
.check-list li { position: relative; padding-left: 2rem; color: var(--text); font-weight: 500; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: .35em; width: 1.25rem; height: 1.25rem; border-radius: 50%;
  background: var(--accent-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a6a55' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 60% no-repeat;
}
.section-dark .check-list li { color: #e5e5e5; }
.section-dark .check-list li::before { background-color: rgb(255 255 255 / .08); }

.tag-row { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem; }
.tag {
  display: inline-flex; padding: .35rem .85rem; border-radius: 999px;
  border: 1px solid var(--border); background: #fff; font-size: .85rem; font-weight: 600; color: var(--muted);
}
.tag.accent { background: var(--accent-tint); border-color: transparent; color: var(--accent-dark); }

/* ---------- Grids & cards ---------- */
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }

.card {
  position: relative; display: flex; flex-direction: column; gap: .75rem;
  padding: 2rem; border-radius: var(--radius-lg);
  background: #fff; border: 1px solid var(--border);
  transition: translate .45s var(--ease-out), box-shadow .45s var(--ease-out), border-color .3s;
}
.card:hover { translate: 0 -6px; box-shadow: var(--shadow); border-color: #d4d4d4; }
.card h3 { font-size: 1.3rem; font-weight: 700; }
.card p { color: var(--muted); }
.card-num {
  font-size: .85rem; font-weight: 800; color: var(--accent); letter-spacing: .08em;
  font-variant-numeric: tabular-nums;
}

/* Photo card (image top) */
.photo-card {
  display: flex; flex-direction: column; overflow: hidden;
  border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--border);
  transition: translate .45s var(--ease-out), box-shadow .45s var(--ease-out);
}
.photo-card:hover { translate: 0 -8px; box-shadow: var(--shadow-lg); }
.photo-card .pc-img { position: relative; overflow: hidden; aspect-ratio: 4 / 5; background: var(--band); }
.photo-card .pc-img.ratio-16x10 { aspect-ratio: 16 / 10; }
.photo-card .pc-img img { width: 100%; height: 100%; object-fit: cover; transition: scale 1s var(--ease-out); }
.photo-card:hover .pc-img img { scale: 1.06; }
.photo-card .pc-num {
  position: absolute; top: 1rem; left: 1rem;
  padding: .3rem .7rem; border-radius: 999px; background: rgb(255 255 255 / .92);
  font-size: .8rem; font-weight: 800; color: var(--accent); letter-spacing: .06em;
}
.photo-card .pc-body { display: flex; flex-direction: column; gap: .7rem; padding: 1.75rem; flex: 1; }
.photo-card h3 { font-size: 1.5rem; font-weight: 800; }
.photo-card p { color: var(--muted); }
.photo-card .link-arrow { margin-top: auto; padding-top: .5rem; }

/* Service cards (large, overlay text) */
.service-card {
  position: relative; display: block; overflow: hidden; isolation: isolate;
  border-radius: var(--radius-lg); aspect-ratio: 4 / 5; color: #fff;
  box-shadow: var(--shadow); background: var(--dark);
}
.service-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: scale 1s var(--ease-out); }
.service-card::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgb(10 10 10 / 0) 30%, rgb(10 10 10 / .85) 100%);
  transition: background .4s;
}
.service-card:hover img { scale: 1.06; }
.service-card .sc-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 2rem; }
.service-card .sc-num { font-size: .8rem; font-weight: 800; letter-spacing: .16em; color: var(--accent-light); }
.service-card h3 { margin-top: .5rem; font-size: clamp(1.6rem, 2.4vw, 2rem); font-weight: 800; }
.service-card p { margin-top: .6rem; color: rgb(255 255 255 / .82); font-size: .95rem; line-height: 1.65; }
.service-card .link-arrow { margin-top: 1rem; color: #fff; }

/* Numbered feature list (dark band) */
.feature-list { list-style: none; display: grid; gap: 0; }
.feature-list li {
  display: grid; grid-template-columns: 3.25rem 1fr; gap: 1rem;
  padding: 1.5rem 0; border-top: 1px solid rgb(255 255 255 / .12);
}
.feature-list li:last-child { border-bottom: 1px solid rgb(255 255 255 / .12); }
.feature-list .fl-num { font-size: .9rem; font-weight: 800; color: var(--accent-light); padding-top: .2rem; letter-spacing: .06em; }
.feature-list h3 { font-size: 1.25rem; font-weight: 700; }
.feature-list p { margin-top: .35rem; color: #a3a3a3; font-size: .975rem; }

/* Stats band with photo */
.stats-band { position: relative; isolation: isolate; color: #fff; overflow: hidden; background: var(--dark); }
.stats-band > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.stats-band::after { content: ""; position: absolute; inset: 0; z-index: -1; background: rgb(15 12 10 / .78); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.stat { padding: 1rem 0 0; border-top: 1px solid rgb(255 255 255 / .25); }
.stat-value { font-size: clamp(3rem, 7vw, 5rem); font-weight: 900; line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.stat-value small { font-size: .45em; font-weight: 800; margin-left: .1em; letter-spacing: 0; }
.stat-label { margin-top: .75rem; font-size: 1.1rem; font-weight: 700; }
.stat-desc { margin-top: .3rem; color: rgb(255 255 255 / .7); font-size: .95rem; }

/* Clinical stat cards */
.stat-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.stat-card { padding: 1.5rem; gap: .25rem; }
.stat-card .stat-value { font-size: clamp(2.5rem, 4.5vw, 3.25rem); color: var(--accent); }
.stat-card p { margin-top: .4rem; font-size: .95rem; }
.stat-card.wide { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 1.5rem; }
.stat-card.wide p { margin-top: 0; }

/* Mosaic gallery strip */
.mosaic {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: clamp(9rem, 16vw, 13rem);
}
.mosaic a {
  position: relative; overflow: hidden; border-radius: var(--radius-lg); background: var(--band);
  box-shadow: var(--shadow-sm);
  transition: translate .45s var(--ease-out), box-shadow .45s var(--ease-out);
}
.mosaic a:hover { translate: 0 -4px; box-shadow: var(--shadow); }
.mosaic a img { width: 100%; height: 100%; object-fit: cover; transition: scale 1s var(--ease-out); }
.mosaic a:hover img { scale: 1.06; }
.mosaic .m-cap { transition: translate .4s var(--ease-out); }
.mosaic a:hover .m-cap { translate: 0 -3px; }
.mosaic .tall { grid-row: span 2; }
.mosaic .wide { grid-column: span 2; }
.mosaic .m-cap {
  position: absolute; left: .75rem; bottom: .75rem; padding: .3rem .7rem; border-radius: 999px;
  background: rgb(23 23 23 / .7); color: #fff; font-size: .8rem; font-weight: 600; backdrop-filter: blur(6px);
}

/* Masonry gallery (treatment) */
.masonry { columns: 3; column-gap: 1.5rem; }
.masonry-item {
  break-inside: avoid; margin: 0 0 1.5rem; display: block; width: 100%;
  padding: 0; border: 0; background: none; text-align: left; cursor: zoom-in; color: inherit;
}
.masonry-item .mi-img {
  display: block; position: relative; overflow: hidden; border-radius: var(--radius-lg); box-shadow: var(--shadow); background: var(--band);
  transition: translate .45s var(--ease-out), box-shadow .45s var(--ease-out);
}
.masonry-item:hover .mi-img { translate: 0 -6px; box-shadow: var(--shadow-lg); }
.masonry-item .mi-img img { width: 100%; transition: scale 1s var(--ease-out); }
.masonry-item .mi-img.sq { aspect-ratio: 1 / 1; }
.masonry-item .mi-img.pt { aspect-ratio: 3 / 4; }
.masonry-item .mi-img img { height: 100%; object-fit: cover; }
.masonry-item:hover .mi-img img { scale: 1.06; }
.masonry-item .mi-img::after {
  content: "＋"; position: absolute; right: 1rem; top: 1rem; width: 2.25rem; height: 2.25rem;
  display: grid; place-items: center; border-radius: 50%;
  background: rgb(255 255 255 / .92); color: var(--text); font-weight: 700;
  opacity: 0; transform: scale(.85); transition: opacity .25s, transform .25s var(--ease);
}
.masonry-item:hover .mi-img::after, .masonry-item:focus-visible .mi-img::after { opacity: 1; transform: none; }
.masonry-item figcaption, .masonry-item .mi-cap { display: flex; gap: .75rem; align-items: baseline; padding: .9rem .25rem 0; }
.mi-cap .card-num { flex: none; }
.mi-cap strong { display: block; font-size: 1rem; font-weight: 700; line-height: 1.4; }
.mi-cap small { display: block; color: var(--muted-2); font-size: .85rem; line-height: 1.5; margin-top: .15rem; }

/* Video feature */
.video-frame {
  position: relative; overflow: hidden; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); background: #000;
}
/* Aspect-agnostic: works for portrait or landscape footage */
.video-frame video { width: 100%; height: auto; max-height: 80vh; object-fit: contain; background: #000; }
.video-toggle {
  position: absolute; right: 1rem; bottom: 1rem; width: 44px; height: 44px;
  display: grid; place-items: center; border-radius: 50%; border: 0; cursor: pointer;
  background: rgb(255 255 255 / .9); color: var(--dark);
}
.video-toggle svg { width: 18px; height: 18px; }
.video-toggle .i-play { display: none; }
.video-toggle.is-paused .i-play { display: block; }
.video-toggle.is-paused .i-pause { display: none; }

/* Ritual words */
.ritual { display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem; margin-top: 2rem; }
.ritual span {
  display: grid; place-items: center; padding: .9rem .5rem; border-radius: var(--radius);
  background: #fff; border: 1px solid var(--border);
  font-size: 1.1rem; font-weight: 700; letter-spacing: .15em; text-indent: .15em;
}
.ritual span:nth-child(n+5) { background: var(--accent); border-color: var(--accent); color: #fff; }

.note {
  display: flex; gap: 1rem; align-items: flex-start; margin-top: 2rem;
  padding: 1.25rem 1.4rem; border-radius: var(--radius-lg); background: #fff; border: 1px solid var(--border);
}
.note .card-icon { flex: none; }
.note strong { display: block; font-weight: 700; }
.note span { color: var(--muted); font-size: .95rem; }
.card-icon {
  display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: .75rem;
  background: var(--accent-tint); color: var(--accent);
}
.card-icon svg { width: 1.3rem; height: 1.3rem; }

/* Ingredient cards */
.ingredient h3 .en { display: block; margin-top: .4rem; font-size: .9rem; font-weight: 600; color: var(--accent); letter-spacing: 0; }
.ingredient.featured { grid-row: span 2; background: var(--dark); color: #fff; border-color: var(--dark); }
.ingredient.featured p { color: #c4c4c4; }
.ingredient.featured .card-num, .ingredient.featured h3 .en { color: var(--accent-light); }
.num-list { list-style: none; counter-reset: n; display: grid; gap: .9rem; margin-top: .75rem; }
.num-list li { counter-increment: n; display: grid; grid-template-columns: 2.25rem 1fr; gap: .75rem; color: #d4d4d4; font-size: .95rem; }
.num-list li::before {
  content: counter(n, decimal-leading-zero); display: grid; place-items: center;
  width: 2.25rem; height: 2.25rem; border-radius: 50%;
  border: 1px solid rgb(255 255 255 / .2); color: var(--accent-light); font-size: .8rem; font-weight: 800;
}

/* ---------- Contact / booking ---------- */
.booking { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(2rem, 5vw, 4rem); align-items: stretch; }
.booking .media { aspect-ratio: auto; min-height: 100%; }
.booking-media { position: relative; }
.booking-media .media { height: 100%; min-height: 32rem; }
.form-card {
  padding: clamp(1.5rem, 4vw, 2.5rem); border-radius: var(--radius-lg);
  background: #fff; border: 1px solid var(--border); box-shadow: var(--shadow-sm);
}
.form-row { display: grid; gap: 1rem; }
.form-row.cols-2 { grid-template-columns: 1fr 1fr; }
.field { display: grid; gap: .4rem; margin-bottom: 1rem; }
.field label { font-size: .9rem; font-weight: 600; }
.req { color: var(--accent); }
.field input, .field textarea {
  width: 100%; padding: .8rem 1rem; border-radius: .6rem; border: 1px solid var(--border);
  background: var(--bg-soft); font: inherit; font-size: 1rem; color: var(--text);
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.field textarea { min-height: 8rem; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; background: #fff; border-color: var(--accent); box-shadow: 0 0 0 3px rgb(138 106 85 / .15); }
.field .error { display: none; font-size: .85rem; color: #b42318; }
.field.invalid input, .field.invalid textarea { border-color: #b42318; }
.field.invalid .error { display: block; }
.form-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: .5rem; }
.form-hint { margin-top: 1rem; font-size: .85rem; color: var(--muted-2); }

.info-list { display: grid; gap: 1rem; margin-top: 1.75rem; }
.info-row { display: flex; gap: 1rem; align-items: flex-start; }
.info-row small { display: block; font-size: .8rem; font-weight: 600; letter-spacing: .08em; color: var(--muted-2); }
.info-row a:hover { color: var(--accent); }
.section-dark .info-row small { color: #a3a3a3; }
.section-dark .card-icon { background: rgb(255 255 255 / .08); color: var(--accent-light); }
.section-dark .info-row a:hover { color: var(--accent-light); }

.address-overlay {
  position: absolute; left: 1.25rem; right: 1.25rem; bottom: 1.25rem;
  padding: 1.25rem 1.4rem; border-radius: var(--radius);
  background: rgb(23 23 23 / .82); backdrop-filter: blur(10px); color: #fff;
}
.address-overlay small { display: block; font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-light); font-weight: 700; }
.address-overlay p { margin-top: .4rem; font-size: .95rem; line-height: 1.6; }
.address-overlay a { display: inline-block; margin-top: .6rem; font-weight: 600; font-size: .9rem; color: var(--accent-light); }

/* ---------- CTA banner ---------- */
.cta-banner {
  position: relative; isolation: isolate; overflow: hidden;
  border-radius: calc(var(--radius-lg) * 1.5); color: #fff;
  padding: clamp(3rem, 8vw, 6rem) clamp(1.5rem, 6vw, 5rem);
  background: var(--dark); box-shadow: var(--shadow-lg);
}
.cta-banner > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; }
.cta-banner::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgb(15 12 10 / .88), rgb(15 12 10 / .45)); }
.cta-banner h2 { font-size: clamp(1.9rem, 4vw, 3rem); max-width: 30rem; }
.cta-banner p { margin-top: 1rem; color: rgb(255 255 255 / .82); max-width: 32rem; font-size: 1.05rem; }
.cta-banner .hero-actions { margin-top: 2rem; }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); color: #a3a3a3; padding-top: clamp(4rem, 7vw, 5.5rem); font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1.4fr; gap: 3rem; }
.footer-brand img { width: auto; height: 52px; }
.footer-brand p { margin-top: 1.25rem; max-width: 24rem; line-height: 1.8; }
.site-footer h4 { color: #fff; font-size: .8rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 1.25rem; }
.footer-links { display: grid; gap: .6rem; }
.footer-links a:hover, .footer-contact a:hover { color: #fff; }
.footer-contact { display: grid; gap: .6rem; font-style: normal; }
.footer-contact span { display: inline-block; min-width: 5.5rem; color: #737373; }
.footer-bottom {
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  margin-top: 3.5rem; padding-block: 1.75rem; border-top: 1px solid rgb(255 255 255 / .1);
  font-size: .85rem; color: #737373;
}

/* ---------- Floating WhatsApp ---------- */
.fab-whatsapp {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 90;
  width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%;
  background: var(--wa); color: #fff; box-shadow: 0 12px 30px -8px rgb(37 211 102 / .6);
  transition: transform .2s var(--ease);
}
.fab-whatsapp:hover { transform: scale(1.06); }
.fab-whatsapp svg { width: 28px; height: 28px; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 300; display: flex;
  align-items: center; justify-content: center; flex-direction: column; gap: 1rem;
  padding: 4rem 4.5rem; background: rgb(10 10 10 / .94);
  opacity: 0; visibility: hidden;
  transition: opacity .35s var(--ease), visibility 0s linear .35s;
}
.lightbox.open { opacity: 1; visibility: visible; transition: opacity .35s var(--ease), visibility 0s; }
.lightbox img {
  max-width: 100%; max-height: calc(100vh - 10rem); width: auto; border-radius: .75rem; object-fit: contain;
  opacity: 0; transform: scale(.94);
  transition: opacity .45s var(--ease), transform .6s var(--ease-out);
}
.lightbox.open img.is-loaded { opacity: 1; transform: none; }
.lb-caption { color: #e5e5e5; text-align: center; font-size: .95rem; max-width: 40rem; transition: opacity .4s var(--ease); }
.lightbox:not(.open) .lb-caption { opacity: 0; }
.lb-count { position: absolute; top: 1.4rem; left: 1.5rem; color: #a3a3a3; font-size: .85rem; font-variant-numeric: tabular-nums; }
.lb-btn {
  position: absolute; width: 48px; height: 48px; display: grid; place-items: center;
  border-radius: 50%; border: 1px solid rgb(255 255 255 / .2); background: rgb(255 255 255 / .08);
  color: #fff; font-size: 1.6rem; line-height: 1; cursor: pointer; transition: background-color .2s, scale .15s var(--ease);
}
.lb-btn:hover { background: rgb(255 255 255 / .2); }
.lb-btn:active { scale: .92; }
.lb-close { top: 1rem; right: 1rem; }
.lb-prev { left: 1rem; top: 50%; transform: translateY(-50%); }
.lb-next { right: 1rem; top: 50%; transform: translateY(-50%); }

/* ==========================================================================
   Motion (v3)
   - Content is hidden for reveal ONLY under html.js; html.reveal-all (safety
     timeout / JS error) and prefers-reduced-motion show everything.
   - Entrance animations use fill-mode "backwards" so nothing is held after they
     finish; hovers use the individual translate/scale properties and parallax
     uses `translate` on images, so the three never fight over `transform`.
   - Only transform / opacity / clip-path are animated.
   ========================================================================== */

/* Stagger index: set by .reveal-delay-N, by nth-child in .reveal-stagger, or by JS per batch */
.reveal, .reveal-mask, .reveal-stagger, .reveal-stagger > * { --i: 0; }
.reveal-delay-1 { --i: 1; }
.reveal-delay-2 { --i: 2; }
.reveal-delay-3 { --i: 3; }
.reveal-stagger > :nth-child(2) { --i: 1; }
.reveal-stagger > :nth-child(3) { --i: 2; }
.reveal-stagger > :nth-child(4) { --i: 3; }
.reveal-stagger > :nth-child(5) { --i: 4; }
.reveal-stagger > :nth-child(6) { --i: 5; }
.reveal-stagger > :nth-child(7) { --i: 6; }
.reveal-stagger > :nth-child(n+8) { --i: 7; }

/* Fade + rise */
.js .reveal:not(.is-visible),
.js .reveal-stagger:not(.is-visible) > * { opacity: 0; }
.js .reveal.is-visible,
.js .reveal-stagger.is-visible > * {
  animation: reveal-up .95s var(--ease-out) calc(var(--i, 0) * 90ms) backwards;
}
@keyframes reveal-up {
  from { opacity: 0; transform: translate3d(0, 32px, 0); }
}

/* Image mask wipe (split sections): clip-path wipe + inner image settles from 1.15 */
.js .reveal-mask:not(.is-visible) { clip-path: inset(0 100% 0 0 round var(--radius-lg)); }
.js .split.reverse .reveal-mask:not(.is-visible) { clip-path: inset(0 0 0 100% round var(--radius-lg)); }
.js .reveal-mask.is-visible {
  animation: mask-wipe 1.3s var(--ease-out) calc(var(--i, 0) * 120ms) backwards;
}
.js .split.reverse .reveal-mask.is-visible { animation-name: mask-wipe-rtl; }
.js .reveal-mask.is-visible > img,
.js .reveal-mask.is-visible > video {
  animation: mask-img 1.6s var(--ease-out) calc(var(--i, 0) * 120ms) backwards;
}
/* End on a negative inset so the box-shadow is already visible when the clip is removed */
@keyframes mask-wipe {
  from { clip-path: inset(0 100% 0 0 round var(--radius-lg)); }
  to   { clip-path: inset(-12% -12% -12% -12% round var(--radius-lg)); }
}
@keyframes mask-wipe-rtl {
  from { clip-path: inset(0 0 0 100% round var(--radius-lg)); }
  to   { clip-path: inset(-12% -12% -12% -12% round var(--radius-lg)); }
}
@keyframes mask-img { from { transform: scale(1.15); } }

/* Parallax (enabled by JS on desktop pointer devices only): taller image moved via `translate` */
.parallax-on [data-parallax] > img {
  position: absolute; left: 0; top: -8%; width: 100%; height: 116%;
  will-change: translate;
}

/* Hero entrance (CSS-only, so it plays even if main.js is slow) */
.js .hero-bg { animation: fade-in 1.6s var(--ease) backwards; }
.js .hero-content > * { animation: hero-in 1.1s var(--ease-out) backwards; }
.js .hero-content > :nth-child(1) { animation-delay: .15s; }
.js .hero-content > :nth-child(2) { animation-delay: .3s; }
.js .hero-content > :nth-child(3) { animation-delay: .45s; }
.js .hero-content > :nth-child(4) { animation-delay: .6s; }
.js .hero-content > :nth-child(5) { animation-delay: .75s; }
.js .hero .hero-actions > .btn { animation: hero-in 1s var(--ease-out) backwards; }
.js .hero .hero-actions > .btn:nth-child(1) { animation-delay: .75s; }
.js .hero .hero-actions > .btn:nth-child(2) { animation-delay: .87s; }
.js .page-hero .hero-actions > .btn:nth-child(1) { animation-delay: .9s; }
.js .page-hero .hero-actions > .btn:nth-child(2) { animation-delay: 1.02s; }
.js .scroll-cue { animation: fade-in 1.2s var(--ease) 1.3s backwards; }
@keyframes hero-in { from { opacity: 0; transform: translate3d(0, 28px, 0); } }
@keyframes fade-in { from { opacity: 0; } }

/* Counters: reserve the final width so counting never shifts the suffix */
.count-num { display: inline-block; text-align: right; }

/* Page transitions: native cross-document View Transitions… */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .3s var(--ease) both; }
::view-transition-new(root) { animation: vt-in .5s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; } }
/* …plus a CSS/JS fallback: fade in on load (skipped when a view transition already did it)… */
.js body { animation: fade-in .55s var(--ease) backwards; }
.js.vt-nav body { animation: none; }
/* …and fade out on internal link click (JS adds .is-leaving, removes it on pageshow/timeout) */
html.is-leaving body { opacity: 0; transition: opacity .25s var(--ease); }

/* Safety net + reduced motion: everything visible, nothing clipped */
.reveal-all .reveal, .reveal-all .reveal-stagger > *, .reveal-all .reveal-mask,
.reveal-all .reveal-mask > img, .reveal-all .reveal-mask > video {
  opacity: 1 !important; clip-path: none !important; animation: none !important;
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .grid-5 { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 960px) {
  .split, .booking { grid-template-columns: 1fr; }
  .split.reverse > :first-child { order: 0; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .masonry { columns: 2; }
  .mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 12rem; }
  .booking-media .media { min-height: 0; aspect-ratio: 4 / 5; }
  .stack { max-width: 36rem; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 1rem; }
}
@media (max-width: 640px) {
  .grid-2, .grid-3, .grid-5, .stats { grid-template-columns: 1fr; }
  .form-row.cols-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2.25rem; }
  .masonry { columns: 1; }
  .mosaic { grid-auto-rows: 10rem; gap: .6rem; }
  .ritual { grid-template-columns: repeat(2, 1fr); }
  .stat-cards { grid-template-columns: 1fr; }
  .stat-card.wide { flex-direction: column; align-items: flex-start; gap: .25rem; }
  .ingredient.featured { grid-row: auto; }
  .hero-actions .btn { flex: 1 1 100%; }
  .card, .photo-card .pc-body, .service-card .sc-body { padding: 1.5rem; }
  .lightbox { padding: 4.5rem 1rem; }
  .lb-prev, .lb-next { top: auto; bottom: 1rem; transform: none; }
  .lb-prev { left: calc(50% - 56px); }
  .lb-next { right: calc(50% - 56px); }
  .stack { padding: 0 8% 12% 0; }
  .scroll-cue { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal, .js .reveal-stagger > *, .js .reveal-mask { opacity: 1 !important; clip-path: none !important; }
  .btn:hover, .btn:active, .card:hover, .photo-card:hover, .mosaic a:hover, .masonry-item:hover .mi-img { translate: none; scale: none; }
  .media.zoom:hover img, .photo-card:hover .pc-img img, .mosaic a:hover img, .masonry-item:hover .mi-img img, .service-card:hover img { scale: none; }
  html.is-leaving body { opacity: 1; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
}
