/* Shared stylesheet for the Clicka Digital sample sites.
   Each site sets its own palette and fonts as CSS variables in <head>. */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: var(--display-weight);
  letter-spacing: var(--display-tracking);
  text-transform: var(--display-case);
  line-height: 1.08;
  margin: 0 0 .5em;
  text-wrap: balance;
}
h2 { font-size: clamp(2rem, 4.2vw, 3.1rem); }
h3 { font-size: 1.3rem; line-height: 1.2; }
p { margin: 0 0 1em; }
.ico { flex: none; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 8px;
}
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* ---------- Demo notice + way back ---------- */
.demo-bar {
  display: flex; align-items: center; justify-content: center; gap: 8px 18px; flex-wrap: wrap;
  padding: 8px 16px; font-size: .85rem; line-height: 1.4; background: #111; color: #f2f2f2;
}
.demo-bar__note { margin: 0; }
.demo-bar a { color: #fff; font-weight: 700; }
.demo-bar__back {
  display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 12px 0 8px;
  text-decoration: none; background: rgba(255,255,255,.14); border-radius: 999px;
}
.demo-bar__back:hover { background: rgba(255,255,255,.26); }
.back-fab {
  position: fixed; left: 16px; bottom: 16px; z-index: 70;
  display: inline-flex; align-items: center; gap: 6px; min-height: 46px; padding: 0 16px 0 12px;
  font: 700 .95rem var(--font-body); text-decoration: none; color: #fff; background: #111;
  border-radius: 999px; box-shadow: 0 8px 24px -8px rgba(0,0,0,.5);
  opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .2s ease, transform .2s ease;
}
.back-fab.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.back-fab:hover { background: #333; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 52px; padding: 0 1.5em;
  font: 700 1rem/1 var(--font-body);
  text-decoration: none; border: 2px solid transparent; border-radius: var(--radius);
  cursor: pointer; transition: transform .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--brand { background: var(--brand); color: var(--brand-ink); box-shadow: 0 6px 18px -8px var(--brand); }
.btn--ghost { background: transparent; color: currentColor; border-color: currentColor; }
.btn--sm { min-height: 42px; padding: 0 1.1em; font-size: .92rem; }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 24px;
  padding: 12px clamp(16px, 4vw, 48px);
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.brand img { width: 44px; height: 44px; }
.brand__name {
  font-family: var(--font-display); font-weight: var(--display-weight);
  letter-spacing: var(--display-tracking); text-transform: var(--display-case);
  font-size: 1.3rem; line-height: 1; white-space: nowrap;
}
.brand__name em { font-style: normal; color: var(--brand-text); }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { text-decoration: none; font-weight: 600; font-size: .97rem; }
.nav a:hover { color: var(--brand-text); }
.header__actions { display: flex; align-items: center; gap: 10px; }
.lang {
  min-width: 44px; min-height: 42px; padding: 0 10px;
  font: 700 .85rem var(--font-body); letter-spacing: .04em;
  color: var(--ink); background: transparent;
  border: 2px solid var(--line); border-radius: var(--radius); cursor: pointer;
}
.lang:hover { border-color: var(--ink); }
.menu-btn {
  display: none; width: 44px; height: 42px; align-items: center; justify-content: center;
  color: var(--ink); background: transparent; border: 2px solid var(--line); border-radius: var(--radius); cursor: pointer;
}

/* ---------- Hero ---------- */
.hero { position: relative; }
.hero__kicker {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 1.1em;
  font-weight: 700; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase;
}
.hero__kicker::before { content: ""; width: 28px; height: 3px; background: var(--accent); border-radius: 2px; }
.hero__title { font-size: clamp(2.6rem, 6.4vw, 5.2rem); margin-bottom: .35em; }
.hero__lead { font-size: clamp(1.08rem, 1.6vw, 1.3rem); max-width: 34em; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 1.8em; }

/* split: copy on the left, photo on the right */
.hero-split .hero {
  display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: clamp(24px, 4vw, 64px);
  padding: clamp(32px, 5vw, 72px) clamp(16px, 4vw, 48px) clamp(40px, 6vw, 88px);
}
.hero-split .hero__copy { order: -1; }
.hero-split .hero__media { position: relative; }
.hero-split .hero__media::before {
  content: ""; position: absolute; inset: 18px -14px -14px 18px; z-index: 0;
  background: var(--accent); border-radius: var(--radius-lg);
}
.hero-split .hero__img {
  position: relative; z-index: 1; width: 100%; aspect-ratio: 4 / 3.4; object-fit: cover; object-position: var(--hero-pos, center);
  border-radius: var(--radius-lg);
}
.hero-split .hero__kicker { color: var(--brand-text); }

/* full: photo covers the whole hero, text on a dark gradient */
.hero-full .hero {
  min-height: min(84vh, 780px); display: flex; align-items: flex-end;
  color: #fff; overflow: hidden; background: var(--dark);
}
.hero-full .hero__media { position: absolute; inset: 0; }
.hero-full .hero__img { width: 100%; height: 100%; object-fit: cover; object-position: var(--hero-pos, center); }
.hero-full .hero__media::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--dark) 82%, transparent) 0%, color-mix(in srgb, var(--dark) 45%, transparent) 50%, transparent 78%),
    linear-gradient(to top, color-mix(in srgb, var(--dark) 55%, transparent) 0%, transparent 40%);
}
@media (max-width: 760px) {
  .hero-full .hero__media::after {
    background: linear-gradient(to top, color-mix(in srgb, var(--dark) 92%, transparent) 0%, color-mix(in srgb, var(--dark) 60%, transparent) 55%, color-mix(in srgb, var(--dark) 15%, transparent) 100%);
  }
}
.hero-full .hero__copy {
  position: relative; max-width: 860px;
  padding: clamp(48px, 8vw, 110px) clamp(16px, 4vw, 48px) clamp(40px, 6vw, 80px);
}
.hero-full .hero__kicker { color: var(--accent); }
.hero-full .btn--ghost { color: #fff; }

/* ---------- Trust strip ---------- */
.trust {
  list-style: none; margin: 0; padding: 18px clamp(16px, 4vw, 48px);
  display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 40px;
  background: var(--dark); color: var(--dark-ink); font-weight: 600; font-size: .97rem;
}
.trust li { display: flex; align-items: center; gap: 10px; }
.trust .ico { color: var(--accent); }

/* ---------- Sections ---------- */
[id] { scroll-margin-top: 76px; }
.section { padding: clamp(56px, 8vw, 112px) clamp(16px, 4vw, 48px); }
.section > * { max-width: 1200px; margin-left: auto; margin-right: auto; }
.section__head { max-width: 760px; text-align: center; margin-bottom: clamp(32px, 4vw, 56px); }
.section__head p { color: var(--muted); font-size: 1.12rem; }

/* services */
.svc-grid {
  list-style: none; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 20px;
}
.svc {
  padding: 28px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.svc:hover { transform: translateY(-4px); border-color: var(--brand); box-shadow: 0 18px 40px -24px rgba(0,0,0,.35); }
.svc__icon {
  display: inline-grid; place-items: center; width: 56px; height: 56px; margin-bottom: 18px;
  color: var(--brand-ink); background: var(--brand); border-radius: var(--radius);
}
.svc p { color: var(--muted); margin: 0; }
.svc .svc__price { margin-top: 14px; color: var(--ink); font-weight: 700; }

/* menu */
.menu { background: var(--surface); }
.menu-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 28px 56px; }
.menu-group h3 {
  display: flex; align-items: center; gap: 10px; font-size: 1.6rem;
  padding-bottom: 12px; margin-bottom: 8px; border-bottom: 3px solid var(--brand);
}
.menu-group h3 .ico { color: var(--brand-text); }
.menu-group ul { list-style: none; margin: 0; padding: 0; }
.dish { padding: 14px 0; border-bottom: 1px dashed var(--line); }
.dish__top { display: flex; align-items: baseline; gap: 10px; }
.dish h4 { font-size: 1.15rem; margin: 0; letter-spacing: 0; text-transform: none; }
.dish__dots { flex: 1; border-bottom: 2px dotted var(--line); transform: translateY(-4px); }
.dish__price { font-weight: 800; color: var(--brand-text); font-variant-numeric: tabular-nums; }
.dish p { margin: 4px 0 0; color: var(--muted); font-size: .97rem; }

/* about */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.about > * { max-width: none; margin: 0; }
.section.about { max-width: calc(1200px + 2 * clamp(16px, 4vw, 48px)); margin: 0 auto; }
.about__media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius-lg); }
.about__copy > p { color: var(--muted); font-size: 1.1rem; }
.checks { list-style: none; padding: 0; margin: 0 0 28px; display: grid; gap: 10px; }
.checks li { display: flex; gap: 10px; font-weight: 600; }
.checks .ico { color: var(--brand-text); margin-top: 3px; }
.owner {
  margin: 0; padding: 20px 24px; border-left: 4px solid var(--accent);
  background: var(--surface); border-radius: 0 var(--radius) var(--radius) 0;
}
.owner p { font-family: var(--font-display); font-size: 1.2rem; line-height: 1.4; margin-bottom: .6em; }
.owner footer { color: var(--muted); font-size: .95rem; }

/* gallery */
.gallery h2 { text-align: center; }
.gallery__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px; margin-top: 32px; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--radius-lg); }
.gallery figcaption { margin-top: 10px; font-weight: 600; }

/* steps */
.steps { background: var(--dark); color: var(--dark-ink); }
.steps h2 { text-align: center; }
.steps__list {
  list-style: none; padding: 0; margin-top: 40px;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 32px;
}
.step__n {
  display: inline-grid; place-items: center; width: 52px; height: 52px; margin-bottom: 16px;
  font: var(--display-weight) 1.5rem var(--font-display);
  color: var(--accent-ink); background: var(--accent); border-radius: 50%;
}
.steps__list p { opacity: .82; margin: 0; }

/* reviews */
.reviews__score { display: inline-flex; align-items: center; gap: 8px; color: var(--ink) !important; font-weight: 600; }
.reviews__score .ico, .review__stars .ico { color: #E8A317; fill: #E8A317; }
.reviews__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 20px; }
.review {
  margin: 0; padding: 28px; display: flex; flex-direction: column; gap: 14px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg);
}
.review__stars { display: flex; gap: 2px; }
.review blockquote { margin: 0; flex: 1; }
.review blockquote p { margin: 0; font-size: 1.05rem; }
.review figcaption { color: var(--muted); font-size: .95rem; }
.review figcaption strong { color: var(--ink); display: block; }
.reviews__note { text-align: center; color: var(--muted); font-size: .88rem; margin-top: 20px; }

/* areas */
.areas { display: grid; grid-template-columns: 1fr 1.4fr; gap: 32px; align-items: center; background: var(--surface); }
.section.areas > * { max-width: none; margin: 0; }
.areas > div p { color: var(--muted); }
.chips { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li {
  padding: 10px 18px; font-weight: 600; background: var(--bg);
  border: 1px solid var(--line); border-radius: 999px;
}

/* faq */
.faq h2 { text-align: center; }
.faq__list { max-width: 820px; margin-top: 32px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 22px 0; cursor: pointer; list-style: none;
  font-weight: 700; font-size: 1.12rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 1.6rem; line-height: 1; color: var(--brand-text); transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--muted); padding-bottom: 20px; margin: 0; }

/* contact */
.contact { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(28px, 5vw, 72px); background: var(--dark); color: var(--dark-ink); }
.section.contact > * { max-width: none; margin: 0; }
.contact__info > p { opacity: .85; font-size: 1.1rem; }
.contact__list { list-style: none; padding: 0; margin: 28px 0; display: grid; gap: 14px; font-weight: 600; }
.contact__list li { display: flex; gap: 12px; align-items: center; }
.contact__list .ico { color: var(--accent); }
.contact__list a { font-size: 1.3rem; text-decoration: none; }
.hours__title { font-size: 1.1rem; margin-top: 8px; }
.hours { list-style: none; padding: 0; margin: 0; max-width: 360px; }
.hours li { display: flex; justify-content: space-between; gap: 16px; padding: 8px 0; border-bottom: 1px solid rgba(255,255,255,.14); }
.form {
  padding: clamp(24px, 3vw, 40px); background: var(--bg); color: var(--ink);
  border-radius: var(--radius-lg); align-self: start;
}
.field { margin-bottom: 16px; }
.field--row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field label { display: block; font-weight: 700; font-size: .95rem; margin-bottom: 6px; }
.field .opt { font-weight: 400; color: var(--muted); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px;
  font: inherit; font-size: 1rem; color: var(--ink); background: var(--surface);
  border: 2px solid var(--line); border-radius: var(--radius);
}
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--brand); }
.field__error { display: none; color: #B42318; font-size: .9rem; font-weight: 600; margin: 6px 0 0; }
.field.is-invalid input { border-color: #B42318; }
.field.is-invalid .field__error { display: block; }
.form__done {
  margin: 16px 0 0; padding: 14px 16px; font-weight: 600;
  background: color-mix(in srgb, var(--brand) 12%, var(--bg)); border-radius: var(--radius);
}

/* footer */
.footer {
  padding: 40px clamp(16px, 4vw, 48px) 110px; text-align: center;
  background: var(--bg); border-top: 1px solid var(--line); color: var(--muted); font-size: .95rem;
}
.footer__brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); margin-bottom: 14px; }
.footer p { margin: 0 0 6px; }
.footer a { color: var(--ink); }
.footer__made { margin-top: 14px !important; }

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

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .nav {
    position: absolute; top: 100%; left: 0; right: 0; display: none; flex-direction: column; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px 16px 16px;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 14px 4px; border-bottom: 1px solid var(--line); }
  .menu-btn { display: inline-flex; }
  .header { justify-content: space-between; }
  .header__actions { margin-left: auto; }
  .hero-split .hero { grid-template-columns: 1fr; }
  .hero-split .hero__img { aspect-ratio: 16 / 10; }
  .hero-split .hero__media::before { inset: 12px -8px -8px 12px; }
  .about, .areas, .contact { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 1rem; }
  .header { padding: 10px 16px; gap: 10px; }
  .brand img { width: 36px; height: 36px; }
  .brand__name { font-size: 1.05rem; }
  .header__cta { display: none; }
  .hero__ctas .btn { flex: 1 1 100%; }
  .hero-full .hero { min-height: 78vh; }
  .trust { justify-content: flex-start; gap: 10px 24px; font-size: .9rem; }
  .field--row { grid-template-columns: 1fr; }
  .footer { padding-bottom: 120px; }
  .mobile-bar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    display: grid; grid-template-columns: 1fr 1.4fr; gap: 10px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: var(--bg); border-top: 1px solid var(--line);
    box-shadow: 0 -8px 24px -12px rgba(0,0,0,.25);
    transition: transform .25s ease;
  }
  .mobile-bar .btn { min-height: 48px; padding: 0 .8em; }
  .mobile-bar .btn--ghost { color: var(--ink); }
  .back-fab { bottom: calc(80px + env(safe-area-inset-bottom)); left: 12px; min-height: 42px; padding: 0 14px 0 10px; }
  .demo-bar__note { flex-basis: 100%; text-align: center; }
  .mobile-bar.is-hidden { transform: translateY(110%); }
}

/* ================= Motion layer (fx.js adds html.anim) ================= */
.fx-ribbon-wrap { overflow: hidden; padding: 14px 0 6px; }
html.anim .hero, html.anim .section { overflow-x: clip; }
.fx-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 4px; z-index: 100;
  background: linear-gradient(90deg, var(--brand), var(--accent));
  transform: scaleX(0); transform-origin: 0 50%; pointer-events: none;
}

/* Hero: words rise out of masks, then the rest of the copy follows */
html.anim .hero__title .w { display: inline-block; overflow: hidden; vertical-align: top; padding: .06em .02em .12em; margin: -.06em -.02em -.12em; }
html.anim .hero__title .w i { display: inline-block; font-style: normal; transform: translateY(110%) rotate(8deg); transform-origin: 0 100%; }
html.anim.fx-ready .hero__title .w i { transform: none; transition: transform 1s cubic-bezier(.16, 1, .3, 1) calc(var(--i) * 65ms + .15s); }
.hero__title i { font-style: normal; }
html.anim .hero__kicker, html.anim .hero__lead, html.anim .hero__ctas { opacity: 0; transform: translateY(28px); }
html.anim.fx-ready .hero__kicker, html.anim.fx-ready .hero__lead, html.anim.fx-ready .hero__ctas {
  opacity: 1; transform: none;
  transition: opacity .8s ease, transform 1s cubic-bezier(.16, 1, .3, 1);
  transition-delay: calc(var(--words, 6) * 65ms + var(--n) * 120ms + .2s);
}
html.anim .hero__kicker::before { transform: scaleX(0); transform-origin: 0 50%; }
html.anim.fx-ready .hero__kicker::before { transform: none; transition: transform .8s cubic-bezier(.16, 1, .3, 1) .5s; }
html.anim.fx-ready .hero__kicker { transition-delay: .05s; }

/* full-width hero: slow zoom on load + parallax + copy drifting up */
html.anim .hero-full .hero__media { overflow: hidden; }
html.anim .hero-full .hero__img {
  transform: translateY(calc(var(--hy, 0) * .35px)) scale(1.22);
}
html.anim.fx-ready .hero-full .hero__img {
  transform: translateY(calc(var(--hy, 0) * .35px)) scale(1.06);
  transition: transform 2.6s cubic-bezier(.16, 1, .3, 1);
}
html.anim .hero-full .hero__copy { translate: 0 calc(var(--hy, 0) * -.18px); }

/* split hero: photo wipes in, accent block slides in behind it */
html.anim .hero-split .hero__img { clip-path: inset(0 0 0 100% round var(--radius-lg)); scale: 1.15; }
html.anim.fx-ready .hero-split .hero__img {
  clip-path: inset(0 0 0 0 round var(--radius-lg)); scale: 1;
  transition: clip-path 1.3s cubic-bezier(.77, 0, .18, 1) .25s, scale 1.8s cubic-bezier(.16, 1, .3, 1) .25s;
}
html.anim .hero-split .hero__media::before { transform: translate(-30px, -30px) rotate(-4deg); opacity: 0; }
html.anim.fx-ready .hero-split .hero__media::before { transform: none; opacity: 1; transition: transform 1.2s cubic-bezier(.34, 1.56, .64, 1) .9s, opacity .4s ease .9s; }
html.anim .hero-split .hero__media { translate: 0 calc(var(--hy, 0) * -.08px); }

/* Ribbon of services */
.fx-ribbon {
  overflow: hidden; background: var(--brand); color: var(--brand-ink);
  padding: 18px 0; border-block: 2px solid color-mix(in srgb, var(--brand-ink) 18%, transparent);
  rotate: -1.2deg; margin: 0 -12px; position: relative; z-index: 2;
  box-shadow: 0 14px 30px -20px rgba(0,0,0,.45);
}
.fx-ribbon__track {
  display: flex; width: max-content;
  animation: fx-cinta 32s linear infinite;
  translate: var(--shift, 0) 0;
}
.fx-ribbon span {
  font: var(--display-weight) clamp(1.4rem, 3vw, 2.3rem)/1 var(--font-display);
  text-transform: var(--display-case); letter-spacing: var(--display-tracking);
  white-space: nowrap; padding: 0 .7em; display: inline-flex; align-items: center; gap: 1.4em;
}
.fx-ribbon span::after { content: "✦"; color: var(--accent); font-size: .7em; }
@keyframes fx-cinta { to { transform: translateX(-25%); } }

/* Headings rise out of a mask */
html.anim .rev { overflow: hidden; padding-block: .12em; margin-block: -.12em; }
html.anim .rev .rev-in { display: block; transform: translateY(110%) skewY(4deg); transition: transform 1.1s cubic-bezier(.16, 1, .3, 1); }
html.anim .rev.in .rev-in { transform: none; }
html.anim .section h2.rev { margin-bottom: calc(.5em - .12em); }

/* Blocks */
html.anim .fx-up { opacity: 0; transform: translateY(60px) scale(.96); }
html.anim .fx-left { opacity: 0; transform: translateX(-60px); }
html.anim .fx-right { opacity: 0; transform: translateX(60px); }
html.anim .fx-pop { opacity: 0; transform: scale(.6) translateY(16px); }
html.anim .fx-up, html.anim .fx-left, html.anim .fx-right {
  transition: opacity .8s ease, transform 1s cubic-bezier(.16, 1, .3, 1);
  transition-delay: calc(var(--i, 0) * 90ms);
}
html.anim .fx-pop { transition: opacity .5s ease, transform .7s cubic-bezier(.34, 1.56, .64, 1); transition-delay: calc(var(--i, 0) * 70ms); }
html.anim .in.fx-up, html.anim .in.fx-left, html.anim .in.fx-right, html.anim .in.fx-pop { opacity: 1; transform: none; }

/* Photos: curtain and wipe reveals */
html.anim .fx-curtain { overflow: hidden; border-radius: var(--radius-lg); position: relative; }
html.anim .fx-curtain img { clip-path: inset(100% 0 0 0); scale: 1.25; translate: 0 var(--ay, 0); transition: clip-path 1.3s cubic-bezier(.77, 0, .18, 1), scale 1.8s cubic-bezier(.16, 1, .3, 1); }
html.anim .fx-curtain.in img { clip-path: inset(0 0 0 0); scale: 1.08; }
html.anim .fx-wipe img { clip-path: inset(0 0 100% 0 round var(--radius-lg)); scale: 1.2; transition: clip-path 1.1s cubic-bezier(.77, 0, .18, 1), scale 1.6s cubic-bezier(.16, 1, .3, 1); transition-delay: calc(var(--i, 0) * 140ms); }
html.anim .fx-wipe.in img { clip-path: inset(0 0 0 0 round var(--radius-lg)); scale: 1; }
html.anim .fx-wipe figcaption { opacity: 0; transform: translateY(12px); transition: opacity .6s ease, transform .6s ease; transition-delay: calc(var(--i, 0) * 140ms + .6s); }
html.anim .fx-wipe.in figcaption { opacity: 1; transform: none; }
.gallery figure { overflow: hidden; border-radius: var(--radius-lg); }
.gallery figure img { transition: scale .6s cubic-bezier(.16, 1, .3, 1); }
.gallery figure:hover img { scale: 1.07; }

/* Service icons and step numbers */
html.anim .svc .svc__icon { transform: scale(0) rotate(-90deg); transition: transform .8s cubic-bezier(.34, 1.56, .64, 1); transition-delay: calc(var(--i, 0) * 90ms + .3s); }
html.anim .svc.in .svc__icon { transform: none; }
.svc:hover .svc__icon { animation: fx-wiggle .6s ease; }
@keyframes fx-wiggle { 30% { rotate: -12deg; scale: 1.12; } 60% { rotate: 8deg; } }
html.anim .steps__list li .step__n { transform: scale(0); transition: transform .8s cubic-bezier(.34, 1.56, .64, 1); transition-delay: calc(var(--i, 0) * 120ms + .25s); }
html.anim .steps__list li.in .step__n { transform: none; }
html.anim .steps__list li.in .step__n { animation: fx-ring 2.4s ease-out calc(var(--i, 0) * 120ms + 1s) infinite; }
@keyframes fx-ring { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 70%, transparent); } 70%, 100% { box-shadow: 0 0 0 16px transparent; } }

/* Stars pop one by one */
html.anim .review .review__stars .ico { transform: scale(0); transition: transform .5s cubic-bezier(.34, 1.56, .64, 1); }
html.anim .review.in .review__stars .ico { transform: none; }
html.anim .review .review__stars .ico:nth-child(2) { transition-delay: .5s; }
html.anim .review .review__stars .ico:nth-child(3) { transition-delay: .6s; }
html.anim .review .review__stars .ico:nth-child(4) { transition-delay: .7s; }
html.anim .review .review__stars .ico:nth-child(5) { transition-delay: .8s; }
html.anim .review .review__stars .ico:nth-child(1) { transition-delay: .4s; }

/* Cards tilt toward the mouse with a light that follows it */
.fx-tilt { position: relative; transform-style: preserve-3d; }
.fx-tilt::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0;
  background: radial-gradient(360px circle at var(--gx, 50%) var(--gy, 50%), color-mix(in srgb, var(--brand) 18%, transparent), transparent 60%);
  transition: opacity .3s ease;
}
.fx-tilt:hover::after { opacity: 1; }
html.anim .in.fx-tilt:hover {
  transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)) translateY(-6px);
  transition: transform .15s ease-out, box-shadow .3s ease, border-color .3s ease;
}

/* Main buttons: a shine sweeps across now and then; hero/contact buttons lean toward the cursor */
.btn--brand { position: relative; overflow: hidden; isolation: isolate; }
html.anim .btn--brand::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(110deg, transparent 35%, rgba(255,255,255,.45) 50%, transparent 65%);
  transform: translateX(-120%); animation: fx-shine 4.5s ease-in-out 2.5s infinite;
}
@keyframes fx-shine { 0%, 60% { transform: translateX(-120%); } 85%, 100% { transform: translateX(120%); } }
html.anim .hero .btn, html.anim .contact .btn { translate: var(--bx, 0) var(--by, 0); transition: translate .25s cubic-bezier(.16, 1, .3, 1), transform .15s ease, background-color .15s ease, box-shadow .15s ease; }

@media (max-width: 760px) {
  .fx-ribbon { padding: 12px 0; }
  html.anim .fx-left, html.anim .fx-right { transform: translateY(40px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* used only when recording preview GIFs (#captura) */
.captura .hero-full .hero { min-height: 720px; }
.captura html, .captura body { scroll-behavior: auto; }
.captura .back-fab, .captura .demo-bar__back { display: none; }
