/* IVAN.FIT demo blocks: sticky services, why Ivan, before/after, reviews, quiz + calendar, FAQ, Instagram, map, hand-drawn marks */
.ivx > section { padding-block: clamp(72px, 9vw, 140px); }
.ivx h2 { font: 800 var(--t-h2)/.9 var(--font-display); text-transform: uppercase; margin: 0; }
.ivx__head { display: grid; gap: 14px; margin-bottom: clamp(32px, 4vw, 56px); max-width: 60ch; }
.ivx__head p { color: var(--muted, #6b6b6b); font-size: 18px; margin: 0; }
.ivx__head--row { max-width: none; display: flex; align-items: end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.ivx__head--row > div { display: grid; gap: 14px; max-width: 60ch; }

/* hand-drawn marks */
.iv-hand { position: relative; display: inline-block; }
.iv-hand .iv-scribble { position: absolute; left: -10%; top: -14%; width: 124%; height: 128%; overflow: visible; pointer-events: none; }
.iv-hand--under .iv-scribble { left: -2%; top: auto; bottom: -.22em; width: 104%; height: .32em; }
.iv-scribble path { fill: none; stroke: #c8102e; stroke-width: 3; stroke-linecap: round; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 1; }
.iv-hand.is-in .iv-scribble path { stroke-dashoffset: 0; transition: stroke-dashoffset 1.2s cubic-bezier(.65, 0, .35, 1) .6s; }

/* ---------- services: sticky colour panel + scrolling cards ---------- */
.ivs { background: var(--p-bg, #fff); }
.ivs__grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(24px, 4vw, 64px); align-items: start; }
.ivs__panel {
  position: sticky; top: calc(var(--nav, 72px) + 24px); min-height: calc(100vh - var(--nav, 72px) - 48px);
  display: flex; flex-direction: column; gap: 16px; padding: clamp(28px, 3vw, 48px); color: #fff;
  background: var(--ivs-c, #141414); transition: background-color .7s cubic-bezier(.65, 0, .35, 1);
}
.ivs__panel h2 { color: #fff; }
.ivs__lead { color: rgb(255 255 255 / .75); font-size: 18px; margin: 0; }
.ivs__now { margin: auto 0 0; display: grid; gap: 10px; }
.ivs__count { font: 800 22px/1 var(--font-display); color: rgb(255 255 255 / .55); }
.ivs__name { font: 800 clamp(48px, 5vw, 96px)/.88 var(--font-display); text-transform: uppercase; display: block; }
.ivs__name.is-swap { animation: ivs-swap .6s cubic-bezier(.16, 1, .3, 1); }
@keyframes ivs-swap { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.ivs__btn { align-self: start; background: #fff; color: #141414; border-color: #fff; }
.ivs__btn:hover { background: #141414; color: #fff; }
.ivs__list { display: grid; gap: clamp(48px, 7vw, 120px); padding-block: 4vh 20vh; }
.ivs__item h3 { font: 800 clamp(34px, 3vw, 52px)/.9 var(--font-display); text-transform: uppercase; margin: 22px 0 10px; }
.ivs__item p { font-size: 18px; line-height: 1.5; margin: 0 0 10px; max-width: 46ch; }
.ivs__price { color: #c8102e; font-weight: 500; }
.ivs__photo { aspect-ratio: 4 / 3; }

/* ---------- why Ivan ---------- */
.ivw { background: var(--p-surface, #f2f1ef); }
.ivw__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 64px); align-items: center; }
.ivw__text { display: grid; gap: 22px; }
.ivw__tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: rgb(20 20 20 / .12); margin-top: 10px; }
.ivw__tile { background: var(--p-surface, #f2f1ef); padding: 22px 20px; display: grid; gap: 6px; }
.ivw__k { font: 800 28px/1 var(--font-display); text-transform: uppercase; }
.ivw__v { font-size: 14px; color: #c8102e; border-bottom: 1px dashed currentColor; justify-self: start; }
.ivw__s { font-size: 15px; color: var(--muted, #6b6b6b); }
.ivw__photo { aspect-ratio: 4 / 5; }

/* ---------- before / after ---------- */
.ivr { background: #fff; }
.ivr__row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.ba { position: relative; aspect-ratio: 4 / 5; overflow: hidden; user-select: none; touch-action: pan-y; background: #e4e2de; }
.ba__layer { position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 20px; }
.ba__layer span { font: 800 clamp(40px, 4vw, 72px)/.9 var(--font-display); text-transform: uppercase; }
.ba__before { background: linear-gradient(160deg, #e9e7e3, #cfccc6); color: rgb(20 20 20 / .35); }
.ba__after { background: linear-gradient(160deg, #262626, #0e0e0e); color: rgb(255 255 255 / .55); justify-content: flex-end; clip-path: inset(0 0 0 var(--pos)); }
.ba__after span::after { content: ""; display: inline-block; width: .15em; height: .15em; margin-left: .06em; background: #c8102e; }
.ba__line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: #fff; pointer-events: none; z-index: 2; }
.ba__line i { position: absolute; top: 50%; left: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; background: #c8102e; box-shadow: 0 6px 20px rgb(0 0 0 / .25); }
.ba__line i::before, .ba__line i::after { content: ""; position: absolute; top: 50%; width: 8px; height: 8px; margin-top: -4px; border: solid #fff; border-width: 0 0 2px 2px; }
.ba__line i::before { left: 11px; transform: rotate(45deg); }
.ba__line i::after { right: 11px; transform: rotate(-135deg); }
.ba__range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; z-index: 3; margin: 0; }
.ba__range:focus-visible + .ba__note { outline: 2px solid #c8102e; }
.ba__note { position: absolute; top: 14px; left: 14px; z-index: 2; font-size: 13px; padding: 6px 10px; background: rgb(255 255 255 / .85); color: #141414; }

/* ---------- reviews ---------- */
.rev { background: var(--p-surface, #f2f1ef); }
.rev__nav { display: flex; gap: 8px; }
.rev__btn { width: 52px; height: 52px; border: 1px solid #141414; background: transparent; font-size: 20px; cursor: pointer; transition: background .25s, color .25s; }
.rev__btn:hover { background: #141414; color: #fff; }
.rev__track { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
.rev__track::-webkit-scrollbar { display: none; }
.rev__card { flex: 0 0 min(420px, 82%); scroll-snap-align: start; margin: 0; background: #fff; padding: 32px; display: grid; gap: 22px; align-content: start; min-height: 300px; }
.rev__q { width: 40px; height: 32px; fill: #c8102e; }
.rev__card blockquote { margin: 0; display: grid; gap: 12px; }
.rev__line { display: block; height: 12px; background: #ecebe8; }
.rev__line--short { width: 60%; }
.rev__card figcaption { display: flex; gap: 14px; align-items: center; margin-top: auto; }
.rev__ava { width: 48px; height: 48px; border-radius: 50%; background: #ecebe8; flex: none; }
.rev__card b { display: block; }
.rev__card small { color: var(--muted, #6b6b6b); font-size: 13px; }

/* ---------- quiz + calendar ---------- */
.ivq { background: #fff; }
.ivq__grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(24px, 4vw, 64px); align-items: start; }
.ivq__side { display: grid; gap: 20px; }
.ivq__photo { aspect-ratio: 4 / 3; }
.qz { background: #141414; color: #fff; padding: clamp(24px, 3vw, 44px); display: grid; gap: 24px; min-height: 520px; align-content: start; }
.qz__top { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; font-size: 14px; color: rgb(255 255 255 / .7); }
.qz__stepno b { color: #fff; }
.qz__bar { height: 3px; background: rgb(255 255 255 / .15); }
.qz__bar i { display: block; height: 100%; width: 25%; background: #c8102e; transition: width .6s cubic-bezier(.16, 1, .3, 1); }
.qz__step { border: 0; padding: 0; margin: 0; display: none; min-width: 0; }
.qz__step.is-on { display: grid; gap: 18px; animation: qz-in .5s cubic-bezier(.16, 1, .3, 1); }
@keyframes qz-in { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
.qz legend { font: 800 clamp(32px, 3vw, 48px)/.92 var(--font-display); text-transform: uppercase; padding: 0; margin-bottom: 18px; }
.qz__opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.qz__opt { position: relative; cursor: pointer; }
.qz__opt input { position: absolute; opacity: 0; inset: 0; }
.qz__opt span { display: flex; align-items: center; min-height: 64px; padding: 14px 18px; border: 1px solid rgb(255 255 255 / .25); font-size: 17px; transition: border-color .2s, background .2s; }
.qz__opt:hover span { border-color: #fff; }
.qz__opt input:checked + span { background: #c8102e; border-color: #c8102e; }
.qz__opt input:focus-visible + span { outline: 2px solid #fff; outline-offset: 2px; }
.cal__days { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.cal__days::-webkit-scrollbar { display: none; }
.cal__day, .cal__time { border: 1px solid rgb(255 255 255 / .25); background: transparent; color: #fff; cursor: pointer; transition: background .2s, border-color .2s; font: inherit; }
.cal__day { flex: 0 0 64px; height: 76px; display: grid; place-content: center; gap: 2px; text-align: center; }
.cal__day small { font-size: 12px; color: rgb(255 255 255 / .6); }
.cal__day b { font: 800 26px/1 var(--font-display); }
.cal__times { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.cal__time { height: 48px; font-size: 15px; }
.cal__day:hover, .cal__time:hover { border-color: #fff; }
.cal__day[aria-checked="true"], .cal__time[aria-checked="true"] { background: #c8102e; border-color: #c8102e; }
.cal__day[aria-checked="true"] small { color: #fff; }
.cal__time:disabled { opacity: .3; cursor: not-allowed; text-decoration: line-through; }
.qz__note { font-size: 13px; color: rgb(255 255 255 / .55); margin: 0; }
.qz .field label { color: rgb(255 255 255 / .8); }
.qz .field input { background: transparent; color: #fff; border: 1px solid rgb(255 255 255 / .3); min-height: 54px; padding: 0 16px; font-size: 16px; width: 100%; }
.qz .field input:focus { border-color: #fff; outline: none; }
.qz .consent { color: rgb(255 255 255 / .6); }
.qz__err { color: #ff8a8a; font-size: 14px; margin: 0; }
.qz__nav { display: flex; gap: 10px; margin-top: auto; }
.qz__nav .btn--secondary { color: #fff; border-color: rgb(255 255 255 / .5); background: transparent; }
.qz__done { display: grid; gap: 12px; padding-block: 40px; }
.qz__done[hidden] { display: none; }
.qz__done h3 { font: 800 clamp(40px, 4vw, 64px)/.9 var(--font-display); text-transform: uppercase; margin: 0; }
.qz__done h3::after { content: ""; display: inline-block; width: .15em; height: .15em; margin-left: .06em; background: #c8102e; }

/* ---------- FAQ ---------- */
.ivfaq { background: var(--p-surface, #f2f1ef); }
.ivfaq__grid { display: grid; grid-template-columns: 4fr 8fr; gap: clamp(24px, 4vw, 64px); align-items: start; }
.ivfaq__list { border-top: 1px solid rgb(20 20 20 / .2); }
.ivfaq__item { border-bottom: 1px solid rgb(20 20 20 / .2); }
.ivfaq__item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 24px 0; font: 800 clamp(22px, 1.8vw, 30px)/1.05 var(--font-display); text-transform: uppercase; }
.ivfaq__item summary::-webkit-details-marker { display: none; }
.ivfaq__plus { position: relative; flex: none; width: 36px; height: 36px; border: 1px solid #141414; border-radius: 50%; transition: background .3s, transform .4s cubic-bezier(.16, 1, .3, 1); }
.ivfaq__plus::before, .ivfaq__plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 2px; margin: -1px 0 0 -7px; background: currentColor; }
.ivfaq__plus::after { transform: rotate(90deg); transition: transform .3s; }
.ivfaq__item[open] .ivfaq__plus { background: #c8102e; border-color: #c8102e; color: #fff; transform: rotate(180deg); }
.ivfaq__item[open] .ivfaq__plus::after { transform: rotate(0deg); }
.ivfaq__item p { margin: 0 0 24px; font-size: 18px; line-height: 1.55; max-width: 62ch; }
.ivfaq__item[open] p { animation: qz-in .45s cubic-bezier(.16, 1, .3, 1); }

/* ---------- Instagram ---------- */
.ig { background: #fff; }
.ig__grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.ig__tile { position: relative; display: block; color: #fff; }
.ig__tile .frame { aspect-ratio: 1 / 1; display: block; }
.ig__icon { position: absolute; left: 50%; top: 50%; width: 36px; height: 36px; margin: -18px 0 0 -18px; opacity: 0; transform: scale(.7); transition: opacity .3s, transform .4s cubic-bezier(.16, 1, .3, 1); z-index: 2; }
.ig__tile::after { content: ""; position: absolute; inset: 0; background: rgb(200 16 46 / .55); opacity: 0; transition: opacity .3s; z-index: 1; }
.ig__tile:hover::after, .ig__tile:focus-visible::after { opacity: 1; }
.ig__tile:hover .ig__icon, .ig__tile:focus-visible .ig__icon { opacity: 1; transform: none; }

/* ---------- map ---------- */
.ivm { background: #141414; color: #fff; }
.ivm h2 { color: #fff; }
.ivm__grid { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(24px, 4vw, 64px); align-items: center; }
.ivm__text { display: grid; gap: 20px; justify-items: start; }
.ivm__text .t-lead { color: rgb(255 255 255 / .8); }
.ivm__note { font-size: 14px; color: rgb(255 255 255 / .5); margin: 0; }
.ivm__map { position: relative; aspect-ratio: 16 / 11; overflow: hidden; background: #1d1d1d; }
.ivm__map iframe { position: absolute; inset: -40px; width: calc(100% + 80px); height: calc(100% + 80px); border: 0; filter: grayscale(1) invert(.92) contrast(.9) brightness(.9); }
.ivm__pin { position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; background: #c8102e; border: 3px solid #fff; pointer-events: none; }
.ivm__pin::after { content: ""; position: absolute; inset: -14px; border: 2px solid #c8102e; animation: ivm-ping 2s ease-out infinite; }
@keyframes ivm-ping { from { opacity: 1; transform: scale(.4); } to { opacity: 0; transform: scale(1.6); } }

/* ---------- hero video + glow across the whole first screen ---------- */
video.hero__bg { background: #141414; }

/* ---------- tablet and phone ---------- */
@media (max-width: 1023px) {
  .ivs__grid, .ivw__grid, .ivq__grid, .ivfaq__grid, .ivm__grid { grid-template-columns: 1fr; }
  .ivs__panel { min-height: 0; top: var(--nav, 56px); z-index: 4; padding: 18px var(--gutter, 16px); margin-inline: calc(var(--gutter, 16px) * -1); gap: 6px; }
  .ivs__lead, .ivs__btn { display: none; }
  .ivs__panel h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .ivs__now { margin: 0; grid-template-columns: auto 1fr; align-items: baseline; gap: 12px; }
  .ivs__name { font-size: 34px; }
  .ivs__list { padding-block: 24px 8px; gap: 56px; }
  .ivr__row { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: calc(var(--gutter, 16px) * -1); padding-inline: var(--gutter, 16px); }
  .ivr__row::-webkit-scrollbar { display: none; }
  .ivr__row .ba { flex: 0 0 78%; scroll-snap-align: center; }
  .ig__grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 639px) {
  .qz__opts { grid-template-columns: 1fr; }
  .cal__times { grid-template-columns: repeat(3, 1fr); }
  .ivw__tiles { grid-template-columns: 1fr 1fr; }
  .qz { min-height: 0; }
  .qz__nav .btn { flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .iv-scribble path { stroke-dashoffset: 0; }
  .ivs__panel, .qz__bar i { transition: none; }
  .ivm__pin::after, .ivs__name.is-swap, .qz__step.is-on { animation: none; }
}

.ivx__head--row > .rev__nav { display: flex; }

/* ---------- hero slideshow: cross-fade + slow zoom (scale/translate properties, so GSAP's own transform still composes) ---------- */
.hero--photo > .iv-slide { opacity: 0; transition: opacity 1.5s ease; }
.hero--photo > .iv-slide.is-on { opacity: 1; }
.hero--photo > .iv-slide.kb { animation: iv-kb 7.6s linear forwards; }
.hero--photo > .iv-slide:not(:first-of-type) { filter: brightness(.72) contrast(1.05); }
@keyframes iv-kb { from { scale: 1.03; translate: 0 0; } to { scale: 1.14; translate: -1.6% -1%; } }
.hero.is-paused .iv-slide { animation-play-state: paused; }
.iv-bars { display: flex; gap: 6px; margin-top: 28px; max-width: 220px; }
.iv-bars span { flex: 1; height: 3px; background: rgb(255 255 255 / .22); overflow: hidden; }
.iv-bars i { display: block; height: 100%; background: #c8102e; transform: scaleX(0); transform-origin: 0 50%; }
.iv-bars span.is-on i { animation: iv-bar 6s linear forwards; }
.iv-bars span.is-done i { transform: scaleX(1); }
.hero.is-paused .iv-bars i { animation-play-state: paused; }
@keyframes iv-bar { to { transform: scaleX(1); } }
@media (prefers-reduced-motion: reduce) { .iv-slide.kb, .iv-bars span.is-on i { animation: none; } }

/* ---------- pre-launch: cookie banner, map on click, footer legal, honeypot ---------- */
.ck { position: fixed; z-index: 900; left: 16px; right: 16px; bottom: 16px; max-width: 560px; background: #141414; color: #fff; padding: 20px 22px; display: grid; gap: 14px; box-shadow: 0 12px 40px rgb(0 0 0 / .35); font-size: 15px; line-height: 1.5; }
.ck a { color: #fff; }
.ck__text { margin: 0; }
.ck__more { display: grid; gap: 8px; }
.ck__more[hidden] { display: none; }
.ck__row { display: flex; gap: 10px; align-items: center; }
.ck__row input { width: 18px; height: 18px; accent-color: #c8102e; }
.ck__btns { display: flex; flex-wrap: wrap; gap: 8px; }
.ck__b { min-height: 44px; padding: 0 16px; border: 1px solid rgb(255 255 255 / .5); background: transparent; color: #fff; font: inherit; cursor: pointer; }
.ck__b--main { background: #c8102e; border-color: #c8102e; }
.ck__b:hover { border-color: #fff; }
.ck__b:focus-visible, .linkbtn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@media (max-width: 639px) { .ck { left: 8px; right: 8px; bottom: 76px; } .ck__b { flex: 1 1 auto; } }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-decoration: underline; cursor: pointer; }
.todo-inline { background: #fff4d6; color: #141414; padding: 0 4px; }
.ivm__ph { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 10px; padding: 20px; text-align: center;
  background: repeating-linear-gradient(45deg, #1d1d1d 0 14px, #222 14px 28px); }
.ivm__ph small { color: rgb(255 255 255 / .55); font-size: 13px; max-width: 32ch; }
.ivm__ph .btn--secondary { color: #fff; border-color: rgb(255 255 255 / .6); background: transparent; }
.ivm__map.is-live .ivm__ph { display: none; }
.qz__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.iv-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* phone and tablet: the other language one tap away, beside the menu button */
.nav__lang { display: none; }
@media (max-width: 1023px) {
  .nav__lang { display: inline-grid; place-items: center; flex: none; min-width: 44px; height: 44px; padding: 0 10px; margin-left: 0;
    border: 1px solid var(--line-strong); color: var(--ink); font-weight: 600; font-size: 14px; letter-spacing: .04em; text-decoration: none; }
  .nav__lang:hover { background: var(--ink); color: var(--bg); }
  .nav .nav__lang + .nav__toggle { margin-left: 0; }
}
@media (max-width: 639px) { .nav__lang { margin-left: auto; } }
@media (max-width: 1023px) { :root:has(> body > nav.actionbar) .nav:not(.is-open) .nav__lang + .nav__toggle, :root .nav:not(.is-open) .nav__lang + .nav__toggle { margin-left: 0; } }
