/* Self-hosted fonts (Inter Tight, Manrope — SIL OFL). Subsets: latin, latin-ext (Latvian), cyrillic (Russian). */
@font-face { font-family: 'Inter Tight'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(fonts/intertight-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Inter Tight'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(fonts/intertight-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter Tight'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(fonts/intertight-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(fonts/manrope-cyrillic.woff2) format('woff2'); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(fonts/manrope-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(fonts/manrope-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ============ KĀPA — design tokens ============ */
:root {
  --bg: #f4f2ee;
  --surface: #ffffff;
  --soft: #ebe8e2;
  --ink: #121212;
  --ink-2: #2b2b2b;
  --muted: #6c6862;
  --line: rgba(18, 18, 18, .1);
  --pine: #23443a;
  --sand: #c9b38c;
  --wa: #1fa855;

  --display: "Inter Tight", "Manrope", system-ui, sans-serif;
  --sans: "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;

  --r: 22px;
  --pad: clamp(20px, 5vw, 48px);
  --ease: cubic-bezier(.2, .75, .15, 1);
  --spring: cubic-bezier(.34, 1.4, .5, 1);
  --bar-h: 0px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html.has-smooth { scroll-behavior: auto; }
body {
  margin: 0; font-family: var(--sans); font-size: 16px; line-height: 1.6;
  color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased;
  padding-bottom: var(--bar-h); overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, figure, blockquote, dl, dd, fieldset { margin: 0; }
fieldset { border: 0; padding: 0; min-width: 0; }
button, input { font: inherit; color: inherit; }

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--pine); outline-offset: 3px; border-radius: 8px; }

.container { width: min(1200px, 100% - 2 * var(--pad)); margin-inline: auto; }
.section { padding: clamp(80px, 12vw, 150px) 0; scroll-margin-top: 10px; }
.section--soft { background: var(--soft); }
.section--ink { background: var(--ink); color: var(--bg); }
.section__head { margin-bottom: clamp(36px, 6vw, 64px); max-width: 720px; }
.section__hint { margin-top: 16px; font-size: 14px; color: var(--muted); }
.section--ink .section__hint { color: rgba(244, 242, 238, .55); }

.kicker {
  font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
  color: var(--pine); margin-bottom: 16px; display: flex; align-items: center; gap: 12px;
}
.kicker::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.section--ink .kicker { color: var(--sand); }
.h2 {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(40px, 7.4vw, 84px); line-height: .98; letter-spacing: -.045em;
}
.body-lg { font-size: clamp(17px, 2vw, 19px); color: var(--ink-2); margin-top: 22px; max-width: 50ch; }
.muted { color: var(--muted); }

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 28px; border-radius: 999px;
  font-weight: 700; font-size: 16px; text-decoration: none; letter-spacing: .005em;
  border: 1px solid transparent; cursor: pointer; background: none;
  transition: transform .35s var(--spring), background-color .25s, color .25s, box-shadow .35s, border-color .25s;
  -webkit-tap-highlight-color: transparent; will-change: transform;
}
.btn svg { width: 20px; height: 20px; flex: none; transition: transform .35s var(--ease); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: scale(.96); }
.btn[disabled] { opacity: .35; cursor: not-allowed; }
.btn--ink { background: var(--ink); color: var(--bg); box-shadow: 0 14px 30px -14px rgba(18, 18, 18, .6); }
.btn--ink:hover { background: var(--pine); }
.btn--line { border-color: rgba(18, 18, 18, .25); }
.btn--line:hover { border-color: var(--ink); background: rgba(18, 18, 18, .04); }
.btn--line-light { border-color: rgba(244, 242, 238, .35); color: var(--bg); }
.btn--light { background: var(--bg); color: var(--ink); }
.btn--light:hover { background: var(--sand); }
.btn--wa { background: var(--wa); color: #fff; }
.btn--wa:hover { background: #178a45; }
.btn--sm { min-height: 42px; padding: 0 20px; font-size: 14px; }
.btn--block { width: 100%; }

/* ============ Scroll progress ============ */
.progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 70; pointer-events: none; }
.progress span { display: block; height: 100%; background: var(--pine); transform-origin: 0 50%; transform: scaleX(var(--p, 0)); }

/* ============ Header ============ */
.header { position: fixed; inset: 0 0 auto; z-index: 50; padding-top: env(safe-area-inset-top); transition: background-color .35s, box-shadow .35s, transform .45s var(--ease); }
.header__inner { width: min(1280px, 100% - 2 * var(--pad)); margin-inline: auto; height: 72px; display: flex; align-items: center; gap: 24px; }
.header.is-solid { background: rgba(244, 242, 238, .86); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); box-shadow: 0 1px 0 var(--line); }
.header.is-hidden { transform: translateY(-100%); }
.logo { display: inline-flex; align-items: baseline; gap: 8px; text-decoration: none; white-space: nowrap; }
.logo__mark { font-family: var(--display); font-weight: 700; font-size: 24px; letter-spacing: -.03em; }
.logo__sub { font-size: 11px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.nav { display: none; gap: 30px; margin-left: auto; font-size: 14px; font-weight: 600; }
.nav a { text-decoration: none; opacity: .7; position: relative; padding: 6px 0; transition: opacity .25s; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1.5px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform .4s var(--ease); }
.nav a:hover, .nav a.is-active { opacity: 1; }
.nav a:hover::after, .nav a.is-active::after { transform: scaleX(1); transform-origin: left; }
.lang { display: flex; border: 1px solid var(--line); border-radius: 999px; padding: 3px; background: rgba(255, 255, 255, .5); }
.lang button { min-width: 40px; height: 32px; border: 0; background: none; cursor: pointer; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .08em; transition: background-color .25s, color .25s; }
.lang button[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.lang--header, .header__cta { display: none; }
.burger {
  margin-left: auto; display: inline-flex; align-items: center; gap: 10px;
  height: 44px; padding: 0 18px 0 16px; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(18, 18, 18, .2); background: rgba(255, 255, 255, .6); font-weight: 700; font-size: 14px;
  -webkit-tap-highlight-color: transparent;
}
.burger__icon { display: grid; gap: 5px; width: 18px; }
.burger__icon i { display: block; height: 2px; border-radius: 2px; background: currentColor; }
.burger__icon i:nth-child(2) { width: 60%; justify-self: end; }
@media (min-width: 980px) {
  .nav, .lang--header, .header__cta { display: flex; }
  .burger { display: none; }
}

/* ============ Section menu sheet (3D) ============ */
.sheet { width: 100%; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 0; border: 0; background: var(--ink); color: var(--bg); overflow-y: auto; overscroll-behavior: contain; }
.sheet::backdrop { background: rgba(10, 10, 10, .6); }
.sheet[open] { animation: sheetIn .5s var(--ease); }
@keyframes sheetIn { from { opacity: 0; clip-path: circle(0 at calc(100% - 50px) 40px); } to { opacity: 1; clip-path: circle(150% at calc(100% - 50px) 40px); } }
.sheet__inner { min-height: 100%; display: flex; flex-direction: column; gap: 18px; padding: calc(14px + env(safe-area-inset-top)) var(--pad) calc(20px + env(safe-area-inset-bottom)); max-width: 640px; margin-inline: auto; }
.sheet__top { display: flex; align-items: center; justify-content: space-between; height: 56px; }
.sheet__title { font-family: var(--display); font-size: 30px; font-weight: 600; letter-spacing: -.03em; }
.sheet__close { width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(244, 242, 238, .3); background: none; color: var(--bg); font-size: 28px; line-height: 1; cursor: pointer; transition: transform .4s var(--spring); }
.sheet__close:hover { transform: rotate(90deg); }
.lang--sheet { align-self: flex-start; border-color: rgba(244, 242, 238, .3); background: none; }
.lang--sheet button[aria-pressed="true"] { background: var(--bg); color: var(--ink); }
.sheet__nav { display: grid; gap: 10px; perspective: 900px; margin-top: 4px; }
.sheet__link {
  display: grid; grid-template-columns: 34px 1fr 60px; align-items: center; gap: 14px;
  min-height: 78px; padding: 9px 9px 9px 16px; border-radius: 18px; text-decoration: none;
  background: rgba(244, 242, 238, .06); border: 1px solid rgba(244, 242, 238, .1);
  transform-origin: 50% 0; transition: transform .25s var(--ease), background-color .25s; -webkit-tap-highlight-color: transparent;
}
.sheet[open] .sheet__link { animation: flipIn .8s var(--ease) both; animation-delay: calc(120ms + var(--i) * 60ms); }
@keyframes flipIn { from { opacity: 0; transform: rotateX(-80deg) translateY(-14px); } to { opacity: 1; transform: none; } }
.sheet__link:hover { background-color: rgba(244, 242, 238, .1); }
.sheet__link:active { transform: translateZ(-30px) scale(.98); }
.sheet__n { font-family: var(--display); font-size: 15px; font-weight: 600; color: var(--sand); }
.sheet__txt { display: flex; flex-direction: column; line-height: 1.25; }
.sheet__txt b { font-family: var(--display); font-size: 23px; font-weight: 600; letter-spacing: -.02em; }
.sheet__txt small { font-size: 13px; color: rgba(244, 242, 238, .55); margin-top: 4px; }
.sheet__link img { width: 60px; height: 60px; border-radius: 14px; object-fit: cover; transform: rotate(4deg); }
.sheet__actions { margin-top: auto; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding-top: 8px; }
.sheet__actions .btn { padding: 0 14px; }
html.sheet-open { overflow: hidden; }

/* ============ Hero ============ */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden;
  padding: calc(96px + env(safe-area-inset-top)) 0 56px;
  background:
    radial-gradient(60% 50% at 85% 30%, rgba(201, 179, 140, .28), transparent 70%),
    radial-gradient(50% 40% at 10% 90%, rgba(35, 68, 58, .1), transparent 70%),
    var(--bg);
}
.hero__grid { display: grid; gap: 28px; align-items: center; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.hero__title {
  font-family: var(--display); font-weight: 600;
  font-size: clamp(50px, 12.5vw, 118px); line-height: .92; letter-spacing: -.055em;
  margin: 16px 0 22px;
}
.hero__lead { font-size: clamp(17px, 2vw, 19px); max-width: 40ch; color: var(--ink-2); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero__actions .btn { flex: 1 1 180px; }
@media (min-width: 600px) { .hero__actions .btn { flex: 0 0 auto; } }

/* Split words: each word swings up in 3D (hidden until split, with a safety unhide) */
.js [data-split]:not(.is-split) { visibility: hidden; animation: unhide 0s 2s forwards; }
@keyframes unhide { to { visibility: visible; } }
[data-split] .w { display: inline-block; perspective: 600px; padding-bottom: .06em; margin-bottom: -.06em; }
[data-split] .w > span { display: inline-block; transform-origin: 50% 100%; animation: wordIn 1.1s var(--ease) both; animation-delay: calc(.08s + var(--i) * 85ms); }
@keyframes wordIn { from { transform: translateY(45%) rotateX(-88deg); } to { transform: none; } }
.hero__text > :not(.hero__title) { animation: fadeUp .9s var(--ease) both; animation-delay: .55s; }
.hero__text > .hero__actions { animation-delay: .7s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } }

.status { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; font-size: 13px; font-weight: 600; padding: 7px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.status[hidden] { display: none; }
.status__dot { width: 8px; height: 8px; border-radius: 50%; background: #d08a3a; }
.status.is-open .status__dot { background: #2fa866; animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(47, 168, 102, .6); } 70% { box-shadow: 0 0 0 9px rgba(47, 168, 102, 0); } 100% { box-shadow: 0 0 0 0 rgba(47, 168, 102, 0); } }

/* 3D stage: three photo cards at different depths + floating chips */
@property --intro { syntax: '<number>'; inherits: true; initial-value: 0; }
.stage { position: relative; height: clamp(400px, 108vw, 600px); perspective: 2400px; perspective-origin: 50% 40%; margin-inline: 4%; }
.stage__rig {
  position: absolute; inset: 0; transform-style: preserve-3d;
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  animation: rigIn 1.6s var(--ease) both;
  --spread: calc(var(--s, 0) + var(--intro));
}
@keyframes rigIn { from { --intro: 1.4; rotate: y -28deg; scale: .9; } to { --intro: 0; rotate: y 0deg; scale: 1; } }
.card3d {
  position: absolute; margin: 0; border-radius: var(--r); overflow: hidden; background: var(--soft);
  box-shadow: 0 40px 70px -30px rgba(18, 18, 18, .55), 0 0 0 1px rgba(255, 255, 255, .6) inset;
}
.card3d img { width: 100%; height: 100%; object-fit: cover; }
.card3d--main { width: 60%; aspect-ratio: 4 / 5; left: 20%; top: 8%; transform: translateZ(calc(30px + var(--spread) * 70px)); animation: float 7s ease-in-out infinite; }
.card3d--back-l { width: 42%; aspect-ratio: 4 / 5; left: 0; top: 30%; transform: translate3d(calc(var(--spread) * -36px), 0, calc(-90px - var(--spread) * 110px)) rotateY(16deg) rotateZ(-7deg); animation: float 8s ease-in-out -2s infinite; }
.card3d--back-r { width: 42%; aspect-ratio: 4 / 5; right: 0; top: 0; transform: translate3d(calc(var(--spread) * 36px), 0, calc(-150px - var(--spread) * 110px)) rotateY(-16deg) rotateZ(6deg); animation: float 9s ease-in-out -4s infinite; }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -14px; } }
.chip3d {
  position: absolute; display: flex; flex-direction: column; padding: 12px 18px; border-radius: 18px;
  background: rgba(255, 255, 255, .78); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, .9); box-shadow: 0 24px 40px -22px rgba(18, 18, 18, .5);
  line-height: 1.2; font-size: 12px; color: var(--muted); font-weight: 600;
}
.chip3d b { font-family: var(--display); font-size: 26px; color: var(--ink); letter-spacing: -.03em; }
.chip3d--price { left: 6%; bottom: 4%; transform: translateZ(calc(130px + var(--spread) * 120px)); animation: float 6s ease-in-out -1s infinite; }
.chip3d--rate { right: 2%; top: 46%; transform: translateZ(calc(170px + var(--spread) * 140px)); animation: float 7s ease-in-out -3s infinite; }
.badge { position: absolute; width: 118px; height: 118px; right: 12%; bottom: 0; transform: translateZ(calc(90px + var(--spread) * 80px)); animation: spin 22s linear infinite; }
.badge text { font: 700 13px var(--sans); fill: var(--ink); }
.badge__k { fill: none; stroke: var(--bg); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.badge circle { fill: var(--pine); }
@keyframes spin { to { rotate: 360deg; } }

@media (min-width: 900px) {
  .hero__grid { grid-template-columns: 1.08fr .92fr; gap: 40px; }
  .stage { height: min(640px, 78vh); perspective: 1300px; margin-inline: 0; }
}

/* ============ Marquee (skews with scroll speed) ============ */
.marquee { overflow: hidden; background: var(--ink); color: var(--bg); padding: 22px 0; }
.marquee__track { display: flex; align-items: center; gap: 34px; width: max-content; animation: marquee 32s linear infinite; transform: skewX(var(--skew, 0deg)); font-family: var(--display); font-weight: 600; font-size: clamp(28px, 4.5vw, 52px); letter-spacing: -.03em; white-space: nowrap; }
.marquee__track i { font-style: normal; color: var(--sand); font-size: .6em; }
@keyframes marquee { to { translate: -50% 0; } }

/* ============ About ============ */
.about__grid { display: grid; gap: 48px; align-items: center; }
.about__img { border-radius: 28px; overflow: hidden; aspect-ratio: 4 / 5; background: var(--soft); }
.about__parallax { height: 118%; margin-top: -9%; transform: translate3d(0, var(--py, 0px), 0) ; will-change: transform; }
.about__parallax img { width: 100%; height: 100%; object-fit: cover; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--line); }
.stats dt { font-family: var(--display); font-size: clamp(32px, 5.5vw, 52px); font-weight: 600; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.stats dd { font-size: 13px; color: var(--muted); margin-top: 8px; line-height: 1.35; }
@media (min-width: 900px) { .about__grid { grid-template-columns: 1.1fr .9fr; gap: 90px; } }

/* ============ Services ============ */
.svc__grid { display: grid; gap: 14px; perspective: 1600px; }
.svc {
  position: relative; display: flex; flex-direction: column; min-height: 248px; padding: 26px;
  background: var(--surface); border-radius: var(--r); border: 1px solid var(--line); overflow: hidden;
}
.svc__n { font-family: var(--display); font-size: 13px; font-weight: 600; color: var(--muted); }
.svc__tag { position: absolute; top: 22px; right: 22px; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; background: var(--sand); color: var(--ink); }
.svc__name { font-family: var(--display); font-size: 25px; font-weight: 600; letter-spacing: -.03em; line-height: 1.1; margin-top: 18px; }
.svc__desc { font-size: 14px; color: var(--muted); margin-top: 8px; }
.svc__foot { display: flex; align-items: flex-end; justify-content: space-between; margin-top: auto; padding-top: 22px; }
.svc__time { font-size: 13px; font-weight: 600; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line); }
.svc__price { font-family: var(--display); font-size: 38px; font-weight: 600; letter-spacing: -.04em; line-height: 1; }
.svc__pick { margin-top: 16px; padding: 12px 0 0; border: 0; border-top: 1px solid var(--line); background: none; text-align: left; font-weight: 700; font-size: 14px; cursor: pointer; transition: color .25s, letter-spacing .35s var(--ease); }
.svc__pick:hover { color: var(--pine); letter-spacing: .02em; }
.svc--dark { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.svc--dark .svc__n, .svc--dark .svc__desc { color: rgba(244, 242, 238, .6); }
.svc--dark .svc__time, .svc--dark .svc__pick { border-color: rgba(244, 242, 238, .18); }
.svc--dark .svc__pick:hover { color: var(--sand); }
@media (min-width: 620px) { .svc__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1040px) { .svc__grid { grid-template-columns: repeat(4, 1fr); gap: 18px; } }

/* 3D tilt + glare (mouse devices) */
[data-tilt] { transform-style: preserve-3d; }
.glare { position: absolute; inset: 0; pointer-events: none; border-radius: inherit; z-index: 2; background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255, 255, 255, .5), transparent 55%); opacity: 0; transition: opacity .4s; mix-blend-mode: soft-light; }
[data-tilt].is-tilting .glare { opacity: 1; }
[data-tilt].is-tilting { box-shadow: 0 40px 70px -30px rgba(18, 18, 18, .45); z-index: 3; }

/* ============ Team: 3D flip cards ============ */
.team__grid { display: grid; gap: 18px; }
.flip { perspective: 1400px; aspect-ratio: 4 / 5; }
.flip__inner { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; transition: transform 1.05s var(--spring); }
.flip.is-flipped .flip__inner { transform: rotateY(180deg); }
@media (hover: hover) and (pointer: fine) {
  .flip:not(.is-flipped):hover .flip__inner { transform: rotateY(-10deg) rotateX(4deg); }
}
.flip__face { position: absolute; inset: 0; border-radius: 26px; overflow: hidden; -webkit-backface-visibility: hidden; backface-visibility: hidden; }
.flip__front { cursor: pointer; background: var(--soft); }
.flip__front img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.2s var(--ease); }
.flip__front:hover img { transform: scale(1.05); }
.flip__front::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 50%, rgba(10, 10, 10, .75)); }
.flip__cap { position: absolute; left: 22px; bottom: 20px; z-index: 1; color: #fff; display: flex; flex-direction: column; line-height: 1.2; }
.flip__cap b { font-family: var(--display); font-size: 30px; font-weight: 600; letter-spacing: -.03em; }
.flip__cap span { font-size: 14px; opacity: .8; }
.flip__btn { position: absolute; right: 16px; bottom: 16px; z-index: 2; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .5); background: rgba(255, 255, 255, .15); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: #fff; font-size: 22px; cursor: pointer; transition: transform .5s var(--spring); }
.flip__btn:hover { transform: rotate(180deg); }
.flip__back { transform: rotateY(180deg); background: var(--pine); color: var(--bg); padding: 28px; display: flex; flex-direction: column; }
.flip__back .flip__btn { top: 16px; bottom: auto; }
.flip__years { font-family: var(--display); font-size: 64px; font-weight: 600; letter-spacing: -.05em; line-height: 1; }
.flip__years small { display: block; font-family: var(--sans); font-size: 13px; letter-spacing: 0; font-weight: 600; opacity: .7; margin-top: 6px; }
.flip__name { font-family: var(--display); font-size: 30px; font-weight: 600; letter-spacing: -.03em; margin-top: 26px; }
.flip__back ul { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 10px; }
.flip__back li { padding-left: 22px; position: relative; font-size: 15px; }
.flip__back li::before { content: ""; position: absolute; left: 0; top: .6em; width: 10px; height: 1.5px; background: var(--sand); }
.flip__back .btn { margin-top: auto; }
@media (min-width: 760px) { .team__grid { grid-template-columns: repeat(3, 1fr); gap: 22px; } }

/* ============ Gallery: 3D ring carousel ============ */
.ring {
  --w: 190px; --n: 10; --r: calc(var(--w) * 1.8);
  position: relative; height: calc(var(--w) * 1.25 + 120px); perspective: 1500px; perspective-origin: 50% 35%;
  overflow: hidden; touch-action: pan-y; cursor: grab; user-select: none; -webkit-user-select: none;
}
.ring.is-drag { cursor: grabbing; }
.ring__track {
  position: absolute; left: 50%; top: 50%; width: var(--w); height: calc(var(--w) * 1.25);
  margin: calc(var(--w) * -.625) 0 0 calc(var(--w) * -.5);
  transform-style: preserve-3d; transform: translateZ(calc(var(--r) * -1)) rotateX(-6deg) rotateY(var(--a, 0deg));
}
.ring__item {
  position: absolute; inset: 0; padding: 0; border: 0; border-radius: 18px; overflow: hidden; cursor: inherit; background: #222;
  transform: rotateY(calc(var(--i) * 36deg)) translateZ(var(--r));
  -webkit-backface-visibility: hidden; backface-visibility: hidden;
  box-shadow: 0 30px 50px -25px rgba(0, 0, 0, .9);
}
.ring__item img { width: 100%; height: 100%; object-fit: cover; pointer-events: none; filter: brightness(calc(.45 + var(--f, 1) * .55)); transition: filter .3s; }
.ring__ctrl { display: flex; justify-content: center; gap: 12px; margin-top: 10px; }
.ring__arrow { width: 56px; height: 56px; border-radius: 50%; border: 1px solid rgba(244, 242, 238, .3); background: none; color: var(--bg); font-size: 22px; cursor: pointer; transition: background-color .25s, color .25s, transform .4s var(--spring); }
.ring__arrow:hover { background: var(--bg); color: var(--ink); }
.ring__arrow:active { transform: scale(.9); }
@media (min-width: 900px) { .ring { --w: 260px; } }

.lightbox { padding: 0; border: 0; background: transparent; max-width: 94vw; max-height: 90vh; overflow: visible; }
.lightbox::backdrop { background: rgba(10, 10, 10, .9); backdrop-filter: blur(6px); }
.lightbox img { max-width: 94vw; max-height: 86vh; border-radius: 14px; object-fit: contain; }
.lightbox[open] img { animation: zoomIn .6s var(--spring); }
@keyframes zoomIn { from { opacity: 0; transform: perspective(900px) rotateY(-25deg) scale(.85); } }
.lightbox__close { position: fixed; top: max(16px, env(safe-area-inset-top)); right: 16px; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .15); color: #fff; font-size: 28px; line-height: 1; cursor: pointer; }

/* ============ Booking wizard ============ */
.booking__grid { display: grid; gap: 40px; align-items: start; }
.steps { list-style: none; padding: 0; margin: 34px 0 0; display: none; gap: 4px; }
.steps li { display: flex; align-items: center; gap: 14px; padding: 10px 0; color: var(--muted); transition: color .3s; }
.steps span { width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; font-size: 13px; font-weight: 700; transition: background-color .4s, color .4s, transform .5s var(--spring); }
.steps b { font-weight: 600; }
.steps li.is-on { color: var(--ink); }
.steps li.is-on span { background: var(--ink); color: var(--bg); border-color: var(--ink); transform: scale(1.08); }
.book {
  position: relative; background: var(--surface); border-radius: 28px; padding: clamp(20px, 4vw, 34px);
  box-shadow: 0 50px 90px -50px rgba(18, 18, 18, .45); border: 1px solid var(--line);
}
.book__bar { height: 4px; border-radius: 4px; background: var(--soft); overflow: hidden; margin-bottom: 26px; }
.book__bar span { display: block; height: 100%; background: var(--pine); transform-origin: 0 50%; transform: scaleX(var(--bp, .25)); transition: transform .7s var(--ease); }
.book__stage { perspective: 1400px; min-height: 380px; }
.book__step legend { font-family: var(--display); font-size: clamp(26px, 4vw, 34px); font-weight: 600; letter-spacing: -.035em; margin-bottom: 20px; padding: 0; }
.book__step.go-next { animation: stepNext .75s var(--ease) both; }
.book__step.go-back { animation: stepBack .75s var(--ease) both; }
@keyframes stepNext { from { opacity: 0; transform: rotateY(-55deg) translateX(60px) translateZ(-80px); transform-origin: 100% 50%; } }
@keyframes stepBack { from { opacity: 0; transform: rotateY(55deg) translateX(-60px) translateZ(-80px); transform-origin: 0 50%; } }
.opts { display: grid; gap: 10px; }
.opt { position: relative; display: block; cursor: pointer; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt__box {
  display: flex; align-items: center; gap: 14px; min-height: 60px; padding: 12px 16px; border-radius: 16px;
  border: 1px solid var(--line); background: var(--bg); transition: background-color .25s, color .25s, border-color .25s, transform .4s var(--spring);
}
.opt:hover .opt__box { border-color: rgba(18, 18, 18, .35); }
.opt input:checked + .opt__box { background: var(--ink); color: var(--bg); border-color: var(--ink); transform: translateZ(0) scale(1.015); }
.opt input:focus-visible + .opt__box { outline: 2px solid var(--pine); outline-offset: 2px; }
.opt__main { flex: 1; display: flex; flex-direction: column; line-height: 1.25; }
.opt__main b { font-weight: 700; }
.opt__main small { font-size: 13px; opacity: .65; margin-top: 2px; }
.opt__price { font-family: var(--display); font-size: 22px; font-weight: 600; letter-spacing: -.03em; }
.opt__ava { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; flex: none; background: var(--soft); display: grid; place-items: center; font-weight: 700; }
@media (min-width: 560px) { .opts { grid-template-columns: 1fr 1fr; } }
.days { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 10px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.days::-webkit-scrollbar { display: none; }
.day { flex: 0 0 auto; scroll-snap-align: start; }
.day .opt__box { flex-direction: column; justify-content: center; gap: 0; width: 68px; min-height: 76px; padding: 8px; text-align: center; line-height: 1.15; }
.day small { font-size: 12px; font-weight: 600; opacity: .7; text-transform: capitalize; }
.day b { font-family: var(--display); font-size: 24px; font-weight: 600; }
.times { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 14px; }
.times .opt__box { justify-content: center; min-height: 48px; padding: 8px; font-weight: 700; font-variant-numeric: tabular-nums; }
.times__empty { grid-column: 1 / -1; color: var(--muted); font-size: 14px; }
@media (min-width: 560px) { .times { grid-template-columns: repeat(5, 1fr); } }
.summary { display: grid; gap: 0; margin-bottom: 20px; }
.summary div { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.summary dt { color: var(--muted); font-size: 14px; }
.summary dd { font-weight: 700; text-align: right; }
.field { display: grid; gap: 8px; font-size: 14px; font-weight: 600; color: var(--muted); }
.field input { min-height: 54px; padding: 0 16px; border-radius: 14px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font-size: 16px; }
.field input:focus { outline: 2px solid var(--pine); outline-offset: 1px; }
.book__nav { display: flex; gap: 10px; margin-top: 24px; }
.book__nav > :last-child, .book__nav #book-next { margin-left: auto; }
.book__nav [hidden] { display: none; }
.book__note { font-size: 13px; color: var(--muted); margin-top: 14px; }
@media (min-width: 900px) {
  .booking__grid { grid-template-columns: .85fr 1.15fr; gap: 80px; }
  .booking__head { position: sticky; top: 110px; }
  .steps { display: grid; }
}

/* ============ Reviews ============ */
.reviews__grid { display: grid; gap: 16px; perspective: 1400px; }
.review { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 30px; overflow: hidden; }
.review__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.stars { color: var(--ink); letter-spacing: 3px; font-size: 15px; }
.tag { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; border: 1px solid var(--line); color: var(--muted); padding: 4px 10px; border-radius: 999px; }
.review blockquote { font-family: var(--display); font-size: clamp(21px, 2.6vw, 25px); font-weight: 500; line-height: 1.3; letter-spacing: -.02em; }
.review figcaption { margin-top: 22px; font-size: 14px; font-weight: 700; color: var(--muted); }
.reviews__note { margin-top: 26px; font-size: 13px; color: var(--muted); }
@media (min-width: 900px) { .reviews__grid { grid-template-columns: repeat(3, 1fr); gap: 20px; } }

/* ============ Contact ============ */
.contact__grid { display: grid; gap: 40px; }
.contact__info { display: grid; gap: 34px; }
.info-label { font-size: 12px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.info-big { font-family: var(--display); font-size: 28px; font-weight: 600; letter-spacing: -.03em; line-height: 1.2; }
.info-big a { text-decoration: none; }
.info-big .muted { font-family: var(--sans); font-size: 15px; font-weight: 500; letter-spacing: 0; }
.hours { width: 100%; border-collapse: collapse; }
.hours th, .hours td { padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 16px; }
.hours th { text-align: left; font-weight: 500; }
.hours td { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.hours tr.is-today th, .hours tr.is-today td { color: var(--pine); }
.hours tr.is-today th::after { content: " •"; }
.link-arrow { display: inline-block; margin-top: 12px; font-weight: 700; color: var(--pine); text-decoration: none; padding: 6px 0; }
.link-arrow:hover { text-decoration: underline; }
.contact__btns { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.contact__btns .btn { flex: 1 1 150px; }
.social { display: flex; gap: 10px; }
.social a { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; transition: background-color .25s, color .25s, transform .4s var(--spring); }
.social a:hover { background: var(--ink); color: var(--bg); transform: translateY(-3px) rotate(-8deg); }
.social svg { width: 22px; height: 22px; }
.map { border-radius: 28px; overflow: hidden; min-height: 380px; background: var(--soft); border: 1px solid var(--line); }
.map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; filter: grayscale(1) contrast(1.05); }
@media (min-width: 900px) {
  .contact__grid { grid-template-columns: 1fr 1.15fr; gap: 70px; }
  .map, .map iframe { min-height: 100%; }
}

/* ============ Footer ============ */
.footer { background: var(--ink); color: rgba(244, 242, 238, .65); padding: 52px 0; }
.footer__inner { display: grid; gap: 12px; }
.logo--footer { color: var(--bg); margin: 0; }
.logo--footer .logo__sub { color: rgba(244, 242, 238, .5); }
.footer__note, .footer__copy { font-size: 13px; }

/* ============ Mobile action bar ============ */
.actionbar {
  position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 60;
  display: grid; grid-template-columns: 1fr 1.4fr; gap: 8px; padding: 8px;
  background: rgba(244, 242, 238, .9); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 20px 44px -14px rgba(18, 18, 18, .4);
  opacity: 0; transform: translateY(30px) scale(.96); pointer-events: none;
  transition: transform .55s var(--spring), opacity .35s;
}
.actionbar.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.actionbar__btn { min-height: 52px; border-radius: 15px; display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700; text-decoration: none; border: 1px solid rgba(18, 18, 18, .2); }
.actionbar__btn--main { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.actionbar__btn svg { width: 20px; height: 20px; }
body { --bar-h: calc(84px + env(safe-area-inset-bottom)); }
@media (min-width: 980px) { .actionbar { display: none; } body { --bar-h: 0px; } }

/* ============ Scroll reveal (3D) ============ */
.js .reveal {
  opacity: 0; transform: perspective(1200px) translate3d(0, 56px, -90px) rotateX(24deg);
  transform-origin: 50% 100%;
  transition: opacity .9s var(--ease), transform 1.2s var(--ease);
  transition-delay: calc(var(--d, 0) * 100ms);
}
.js .svc.reveal { transform: perspective(1400px) translate3d(50px, 40px, -120px) rotateY(-32deg) rotateX(8deg); transform-origin: 0 50%; }
.js .flip.reveal { transform: perspective(1400px) translate3d(0, 80px, -160px) rotateY(40deg); }
.js .ring.reveal { transform: perspective(1400px) translate3d(0, 80px, -200px) rotateX(30deg) scale(.9); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}
