/* Layout concept: a silver studio. Light silvery ground taken from the 2021 portrait backdrop,
   deep plum type, lilac and pink taken from the 2020 studio sets. Text left, photo right;
   the visit is a numbered sequence (bath -> brushing -> cut -> paws -> finish), the gallery a colour wall. */
:root {
  --bg: #f4f3f7;          /* silver backdrop */
  --surface: #ebe8f0;     /* paper behind cards and bands */
  --line: #d8d3e0;        /* silver rule */
  --fg: #2b2033;          /* deep plum ink */
  --muted: #6b6175;
  --accent: #6c55a6;      /* lilac, deep enough for white text */
  --accent-soft: #c9b9ec; /* studio lilac */
  --pink: #e7a3c1;        /* studio pink */
  --on-accent: #ffffff;
  --display: "Lora", "Iowan Old Style", "Palatino Linotype", Georgia, serif;
  --body: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --step--1: 0.875rem;
  --step-0: 1.0625rem;
  --step-1: 1.3rem;
  --step-2: 1.75rem;
  --step-3: clamp(2rem, 4.5vw, 3rem);
  --step-4: clamp(2.5rem, 6vw, 4.25rem);
  --radius: 14px;
  --wrap: 72rem;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #17131b; --surface: #211c27; --line: #3a3343; --fg: #efebf3; --muted: #b5abbf;
    --accent: #b7a2e8; --accent-soft: #4a3d6b; --pink: #e7a3c1; --on-accent: #1d1624; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #17131b; --surface: #211c27; --line: #3a3343; --fg: #efebf3; --muted: #b5abbf;
  --accent: #b7a2e8; --accent-soft: #4a3d6b; --pink: #e7a3c1; --on-accent: #1d1624; color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: var(--body); font-size: var(--step-0); line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; line-height: 1.1; text-wrap: balance; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: var(--step-4); }
h2 { font-size: var(--step-3); }
h3 { font-size: var(--step-1); font-family: var(--body); font-weight: 700; letter-spacing: 0; }
p { margin: 0; max-width: 62ch; }
.eyebrow { font-size: var(--step--1); text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); font-weight: 600; }

.wrap {
  max-width: var(--wrap); margin-inline: auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
section { padding-block: clamp(3.5rem, 8vw, 6.5rem); }
.band { background: var(--surface); }

/* header */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--bg); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: 0.7rem; }
.brand { font-family: var(--display); font-size: 1.45rem; text-decoration: none; letter-spacing: 0.01em; white-space: nowrap; }
.brand span { color: var(--accent); }
.brand::before { --mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 108.4 139.5'%3E%3Cpath d='m108.3 126.4c-0.1-0.5-0.1-2.7-1.7-4.1c-1.7-1.4-3.7-1.6-3.7-1.6l0 4.1c-0.7-3.9-2.6-10-4.4-17.7c-1.9-7.6-6.3-10.4-7.5-14c-1.1-3.6-2.5-6.6-3.8-12.4c-1.3-5.9-5.5-10.5-5.5-10.5c4.6-5.9 7.2-10.8 7.2-10.8c1.8 0.4 4.6 0.5 6.3-0.4c7.4-3.9 2.1-13.6-5.1-11.6c-2.6 0.7-5 3.1-5.2 6.5c-0.1 3.3 3.3 5.2 3.3 5.2c-5.2 7.1-8.6 9.4-8.6 9.4c-5.3-4.1-11.6-1.7-14-1.3c-2.4 0.5-7.9 0.5-11.9-1.1c-2.6-1-5.1-3.1-6.5-4.4c-1.8 2.8-4.5 4.1-5.2 4.6c0 0 5-5.9 4.7-10.5c-0.3-4.6-3.2-8.6-4.4-10c0 0 5.8 1.7 6.6 8.9c23.6-21 4.9-46.4-6.2-44.9c-6.8 0.9-8.4 6-8.4 6c-1.1-7.2 8.5-7.1 8.5-7.1c-14.6-8.7-17.3 10.6-17.3 10.6c-4.1 10.3-15.4 2.9-18.1 0.9c-2.8-2.1-3.1 1.5-3.1 1.5c0.7 19 12.2 13.6 16.6 17.1c3.9 3 5.4 8.3 5.7 9.4c4.5-5.1 5.6-17.8 5.6-17.8c0 0 2.2 9.4-2.3 16.3c-4.5 6.9-8.1 9-8.2 13c-0.1 4.1 4.7 12.2 18.1 9.7c0 0-6.4 2.6-13 0.1c-6.6-2.5-8.4-7-8-10.7c0.2-2 2.3-5.4 7.3-10c-26.1 13.5-6.8 41.2-6.8 41.2c-3.2-9.8-0.1-13.6-0.1-13.6c-2.6 11.6 6.2 16.9 6.2 16.9c-2.8 0.6-6.4 3.4-6.4 3.4c-3.4-3.2-9.3-3.4-10.9 2c-1.6 5.4 2 8 2 8c-7 4.9 0.1 6.2 0.1 6.2c-0.5-2.6 1.1-3.8 1.1-3.8c-1.1 4.9 1.4 4.2 2.9 3.3c1.4-0.9 2.1-4.4 2.1-4.4c5.7-1.9 4.4-6.4 4.4-6.4l-2.2 0.6c2.2-1.8 7.2-3.8 10.9-4.6c3.7-0.8 8.8 0.2 8.8 0.2c0.7 2.1 5.6 23.7 5.6 23.7c0 0-4.2 0.4-4.6 5.1c-0.4 4.7 3.8 6 3.8 6c-2 0.4-3.9 2.2-3.8 4c0 1.8 3.1 2.4 3.1 2.4c-0.6-3.4 1.3-4.1 1.3-4.1c-1.6 4.6 1 4.3 2.7 3.4c1.8-0.9 1.9-4.8 1.9-4.8c3.8-1.3 5.2-3.6 4.8-7c-0.3-3.4-4.4-4.6-4.4-4.6l-0.6 4.5l-0.9-18.8c1.2-9.2-1.5-11.9-1.5-11.9c7.8-3.3 5.4-1.7 12.1-5.1c6.7-3.4 10.8-3.6 10.8-3.6c-1.3 15.1 11.9 18.9 12.5 21.5c0.3 1.2 0 10.1 0 10.1c-2 0.4-4.3 1.3-5.1 4.9c-0.9 3.5 3.6 6.1 3.6 6.1c-2.5 0.2-5.5 1.1-5.7 3.8c-0.2 2.6 3.4 3.1 3.4 3.1c-0.7-2.2 0.4-2.9 0.4-2.9c-0.5 3.3 3.3 2.7 3.8 2.4c0.5-0.3 1.5-0.7 2.2-2.4c0.8-1.6 0.6-3.4 0.6-3.4c0.6-0.1 4.5 0.5 5.7-4.2c1.1-4.7-3.8-6.6-3.8-6.6l-1.3 4c0 0 1.9-18 1.7-18.7c0-0.2-1.2-1-5.7-5c-4.2-3.7-5.1-7.1-5.1-7.1c1.2 2.4 10.1 10.7 14.2 13.7c5.2 3.7 7.4 15.1 7.4 15.1c-2.6 1.4-3.2 4-2.9 6.6c0.3 2.6 3.4 4 3.4 4c-1.2 0.3-4.4 0.9-4.7 3.7c-0.2 2.8 3.9 3.3 3.9 3.3c-1-1.1-0.1-3-0.1-3c0 0 1.2 3.2 3.8 2c2.5-1.2 2.3-6.2 2.3-6.2c5.4-0.8 5.4-5 5.3-5.4'/%3E%3C/svg%3E"); content: ""; display: inline-block; width: 1.2rem; height: 1.55rem; margin-right: 0.5rem; vertical-align: -0.2rem; background: currentColor; -webkit-mask: var(--mark) center / contain no-repeat; mask: var(--mark) center / contain no-repeat; }
@supports not ((-webkit-mask: none) or (mask: none)) { .brand::before { display: none; } }
.nav { display: flex; align-items: center; gap: 1.4rem; font-size: var(--step--1); font-weight: 600; }
.nav a { text-decoration: none; color: var(--muted); }
.nav a:hover { color: var(--fg); }
.nav a.btn, .nav a.btn:hover { color: var(--on-accent); }
[hidden] { display: none !important; }
.nav .lang { border: 1px solid var(--line); border-radius: 999px; padding: 0.2rem 0.65rem; color: var(--fg); }
@media (max-width: 860px) { .nav .hide-sm:not(.keep-sm) { display: none; } .nav { gap: 0.9rem; } }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  background: var(--accent); color: var(--on-accent); text-decoration: none; font-weight: 700;
  padding: 0.85rem 1.5rem; border-radius: 999px; font-size: 1rem; border: 0; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 8px 22px -10px var(--accent); }
.btn.ghost { background: transparent; color: var(--fg); border: 1.5px solid var(--line); }
.btn.small { padding: 0.55rem 1.15rem; font-size: 0.95rem; }

/* hero */
.hero { padding-block: clamp(2rem, 5vw, 4rem) clamp(3rem, 6vw, 5rem); }
.hero .wrap { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; }
.hero-copy { display: grid; gap: 1.4rem; min-width: 0; }
.hero-copy h1 em { font-style: italic; color: var(--accent); }
.hero-copy .lead { font-size: var(--step-1); color: var(--muted); line-height: 1.5; }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.8rem; align-items: center; }
.rating { display: flex; align-items: center; gap: 0.6rem; font-size: var(--step--1); color: var(--muted); }
.rating b { font-family: var(--display); font-size: 1.6rem; color: var(--fg); font-weight: 500; }
.stars { color: var(--pink); letter-spacing: 0.1em; font-size: 1.05rem; }
.hero-photo { position: relative; min-width: 0; }
.hero-photo img { border-radius: calc(var(--radius) * 1.6); width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.hero-photo .tag {
  position: absolute; left: 1rem; bottom: 1rem; background: var(--bg); color: var(--fg);
  border-radius: 999px; padding: 0.4rem 0.9rem; font-size: var(--step--1); font-weight: 600;
  box-shadow: 0 6px 20px -12px rgba(0,0,0,.4);
}
@media (max-width: 820px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-photo { order: -1; }
}

/* facts strip */
.facts { border-block: 1px solid var(--line); }
.facts .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; padding-block: 1.4rem; }
.fact { display: grid; gap: 0.15rem; min-width: 0; }
.fact strong { font-family: var(--display); font-weight: 500; font-size: 1.25rem; }
.fact span { font-size: var(--step--1); color: var(--muted); }
@media (max-width: 760px) { .facts .wrap { grid-template-columns: repeat(2, 1fr); } }

/* about */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.split > * { min-width: 0; }
.stack { display: grid; gap: 1.2rem; }
.about-photos { display: grid; grid-template-columns: 1.2fr 1fr; gap: 0.8rem; align-items: end; }
.about-photos img { border-radius: var(--radius); width: 100%; object-fit: cover; }
.about-photos img:first-child { aspect-ratio: 4 / 5; }
.about-photos img:last-child { aspect-ratio: 3 / 4; }
@media (max-width: 820px) { .split { grid-template-columns: 1fr; } }

/* julia */
.julia .split { grid-template-columns: 0.85fr 1.15fr; }
.julia-photo img { border-radius: calc(var(--radius) * 1.6); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.julia blockquote { margin: 0; font-family: var(--display); font-size: var(--step-2); line-height: 1.25; font-style: italic; color: var(--accent); max-width: 30ch; }
.points { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.7rem; }
.points li { display: grid; grid-template-columns: 1.4rem 1fr; gap: 0.6rem; }
.points li::before { content: ""; width: 0.6rem; height: 0.6rem; margin-top: 0.55rem; border-radius: 50%; background: var(--pink); }
.draft { border: 1.5px dashed var(--pink); border-radius: var(--radius); padding: 0.8rem 1rem; font-size: var(--step--1); color: var(--muted); }
@media (max-width: 820px) { .julia .split { grid-template-columns: 1fr; } }

/* visit sequence */
.sec-head { display: grid; gap: 0.9rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.visit { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; counter-reset: step; }
.visit li { display: grid; gap: 0.7rem; align-content: start; counter-increment: step; min-width: 0; }
.visit img { border-radius: var(--radius); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.visit h3::before { content: counter(step); display: inline-grid; place-items: center; width: 1.7rem; height: 1.7rem; margin-right: 0.5rem; border-radius: 50%; background: var(--accent-soft); color: var(--fg); font-size: 0.85rem; vertical-align: 0.15em; }
.visit p { font-size: 0.95rem; color: var(--muted); }
@media (max-width: 980px) { .visit { grid-template-columns: repeat(2, 1fr); } .visit li:last-child { grid-column: 1 / -1; } .visit li:last-child img { aspect-ratio: 16 / 9; } }
@media (max-width: 520px) { .visit { grid-template-columns: 1fr; } .visit img, .visit li:last-child img { aspect-ratio: 16 / 10; } }
.extras { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.chip { border: 1px solid var(--line); border-radius: 999px; padding: 0.35rem 0.9rem; font-size: var(--step--1); background: var(--bg); }
.price-note { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; justify-content: space-between; padding: 1.2rem 1.4rem; border-radius: var(--radius); background: var(--bg); border: 1px solid var(--line); }
.price-note p { max-width: 50ch; }
.price-note h3 { margin-bottom: 0.35rem; }

/* gallery: colour wall */
.gallery { columns: 3 16rem; column-gap: 0.8rem; }
.gallery a { display: block; margin-bottom: 0.8rem; break-inside: avoid; border-radius: var(--radius); overflow: hidden; cursor: zoom-in; }
.gallery img { width: 100%; border-radius: var(--radius); }
.g-bar { display: none; }
/* phones: one swipe row instead of eight stacked photos. Native scroll-snap and momentum, the next photo peeks in,
   a hairline fills as you go (motion.js); a tap still opens the lightbox. Nothing overrides the scroll. */
@media (max-width: 600px) {
  .gallery {
    columns: auto; display: flex; gap: 0.6rem; overflow-x: auto; overflow-y: hidden;
    scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; scrollbar-width: none;
    --gpl: max(16px, env(safe-area-inset-left, 0px)); --gpr: max(16px, env(safe-area-inset-right, 0px));
    margin-left: calc(-1 * var(--gpl)); margin-right: calc(-1 * var(--gpr));
    padding-left: var(--gpl); padding-right: var(--gpr); scroll-padding-left: var(--gpl); scroll-padding-right: var(--gpr);
  }
  .gallery::-webkit-scrollbar { display: none; }
  .gallery a { flex: 0 0 76%; aspect-ratio: 4 / 5; margin: 0; scroll-snap-align: start; }
  .gallery a.g-l { flex-basis: 88%; aspect-ratio: 88 / 95; }
  .gallery picture { display: block; height: 100%; }
  .gallery img { height: 100%; object-fit: cover; object-position: var(--fx, 50%) 50%; }
  .gallery + .g-bar { display: flex; }
}
/* swipe-row progress (gallery row, before/after row): hidden until motion.js fills it */
.g-bar { align-items: center; gap: 0.9rem; margin-top: 1rem; visibility: hidden; font-size: var(--step--1); color: var(--muted); font-variant-numeric: tabular-nums; }
.g-bar.on { visibility: visible; }
.g-bar i { flex: 1; height: 2px; border-radius: 2px; background: linear-gradient(90deg, var(--accent), var(--pink)) no-repeat 0 0 / calc(var(--gp, .125) * 100%) 100% var(--line); }
.g-bar b { font-weight: 600; min-width: 2.6em; text-align: right; }

/* before and after: two crops of the same framing, the wet photo clipped at the divider (--ba 0..1).
   Without JS it rests at one half each; motion.js adds the drag, the keyboard range and the first-view stroke. */
.result { padding-top: 0; }
/* Any number of pairs, every pair the same block (see the ba:start comment in the page), every crop 4:5.
   One or two pairs: side by side, beside the heading on wide screens, stacked on phones.
   Three or more: rows of three on wide screens, one swipe row on phones (native scroll-snap, like the gallery row);
   there the divider is moved by its knob, so a sideways swipe on the photo turns the row. Counted with :has();
   engines without it keep the two-column grid. */
.ba-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 27rem)); gap: 1rem; align-items: start; }
.ba-pair:has(> .ba:nth-child(3)) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 761px) { .ba-pair:has(> .ba:nth-child(3)) { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 981px) {
  .result .wrap:not(:has(.ba:nth-child(3))) { display: grid; grid-template-columns: 1fr 2.2fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
  .result .wrap:not(:has(.ba:nth-child(3))) .sec-head { margin-bottom: 0; }
  .result .wrap:not(:has(.ba:nth-child(3))) .ba-pair { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 600px) {
  .ba-pair { grid-template-columns: 1fr; gap: 1.6rem; }
  .ba-pair:has(> .ba:nth-child(3)) {
    display: flex; gap: 0.6rem; overflow-x: auto; overflow-y: hidden;
    scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; scrollbar-width: none;
    --gpl: max(16px, env(safe-area-inset-left, 0px)); --gpr: max(16px, env(safe-area-inset-right, 0px));
    margin-left: calc(-1 * var(--gpl)); margin-right: calc(-1 * var(--gpr));
    padding-left: var(--gpl); padding-right: var(--gpr); scroll-padding-left: var(--gpl); scroll-padding-right: var(--gpr);
  }
  .ba-pair:has(> .ba:nth-child(3))::-webkit-scrollbar { display: none; }
  .ba-pair:has(> .ba:nth-child(3)) > .ba { flex: 0 0 82%; scroll-snap-align: start; }
  .ba-pair:has(> .ba:nth-child(3)) .ba-stage { touch-action: pan-x pan-y; }
  .ba-pair:has(> .ba:nth-child(3)) .ba-on .ba-handle i { pointer-events: auto; touch-action: pan-y; }
  .ba-pair:has(> .ba:nth-child(3)) + .g-bar { display: flex; }
}
.ba { margin: 0; }
.ba-stage { --ba: 0.5; position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius); background: var(--surface); touch-action: pan-y; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.ba-stage picture { position: absolute; inset: 0; }
.ba-stage img { width: 100%; height: 100%; object-fit: cover; -webkit-user-drag: none; }
.ba-before { clip-path: inset(0 calc((1 - var(--ba)) * 100%) 0 0); }
.ba-tag { position: absolute; top: 0.8rem; left: 0.8rem; background: var(--bg); color: var(--fg); border-radius: 999px; padding: 0.25rem 0.75rem; font-size: var(--step--1); font-weight: 600; pointer-events: none; opacity: clamp(0, (var(--ba) - 0.14) * 9, 1); }
.ba-tag-after { left: auto; right: 0.8rem; opacity: clamp(0, (0.86 - var(--ba)) * 9, 1); }
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; pointer-events: none; }
.ba-handle { position: absolute; inset: 0; pointer-events: none; translate: calc(var(--ba) * 100%) 0; display: none; }
.ba-on .ba-handle { display: block; }
.ba-on .ba-stage { cursor: ew-resize; }
.ba-handle::before { content: ""; position: absolute; top: 0; bottom: 0; left: -1px; width: 2px; background: rgba(244, 243, 247, .92); }
.ba-handle i { position: absolute; top: 50%; left: 0; width: 2.75rem; height: 2.75rem; margin: -1.375rem 0 0 -1.375rem; border-radius: 50%; background: rgba(244, 243, 247, .92); box-shadow: 0 6px 20px -10px rgba(0, 0, 0, .55); transition: scale .5s var(--spring); }
.ba-handle i::before, .ba-handle i::after { content: ""; position: absolute; top: 50%; width: 0.5rem; height: 0.5rem; margin-top: -0.25rem; border: solid #2b2033; border-width: 0 0 2px 2px; rotate: 45deg; left: 0.7rem; }
.ba-handle i::after { rotate: -135deg; left: auto; right: 0.7rem; }
.ba-stage:active .ba-handle i { scale: 0.9; }
.ba-range:focus-visible + .ba-handle i { outline: 3px solid var(--pink); outline-offset: 3px; }
.ba figcaption { margin-top: 0.7rem; font-size: var(--step--1); color: var(--muted); }

/* Instagram: one swipe row of up to twelve posts, our own thumbnails, every tile a plain link (no Meta script, no iframe).
   Native scroll-snap like the gallery row: about one and a half tiles on phones so the next one peeks in, three on
   tablets, four on wide screens, where motion.js switches on the two arrow buttons (hidden without JS and on phones;
   the row then scrolls natively, with its own scrollbar on wide screens). Tiles are square, so nothing shifts on load. */
.ig-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; margin-bottom: clamp(1.5rem, 3vw, 2.2rem); }
.ig-head .stack { justify-items: start; }
.ig-nav { display: flex; gap: 0.6rem; flex: none; }
.ig-nav[hidden] { display: none; }
.ig-nav button {
  display: grid; place-items: center; width: 2.9rem; height: 2.9rem; padding: 0; border-radius: 50%; cursor: pointer;
  background: transparent; color: var(--fg); border: 1.5px solid var(--line); font: inherit;
  transition: background-color .2s ease, border-color .2s ease, opacity .2s ease, scale .5s var(--spring);
}
.ig-nav button:hover:not(:disabled) { background: var(--surface); border-color: var(--accent); }
.ig-nav button:active:not(:disabled) { scale: 0.92; }
.ig-nav button:focus-visible { border-radius: 50%; }
.ig-nav button:disabled { opacity: 0.35; cursor: default; }
.ig-strip {
  --ig-gap: 0.8rem; --ig-n: 4;
  display: flex; gap: var(--ig-gap); overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain;
}
.ig-strip.ig-on { scrollbar-width: none; }
.ig-strip.ig-on::-webkit-scrollbar { display: none; }
.ig-tile {
  position: relative; display: block; flex: 0 0 calc((100% - (var(--ig-n) - 1) * var(--ig-gap)) / var(--ig-n));
  aspect-ratio: 1; overflow: hidden; border-radius: var(--radius); background: var(--surface); scroll-snap-align: start;
}
.ig-tile img { width: 100%; height: 100%; object-fit: cover; }
.ig-reel::after { content: ""; position: absolute; top: 0.5rem; right: 0.5rem; width: 1.6rem; height: 1.6rem; border-radius: 50%;
  background: rgba(244, 243, 247, .92) no-repeat 56% 50% / 0.58rem 0.68rem
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 12'%3E%3Cpath d='M1 1.2v9.6a.6.6 0 0 0 .9.5l7.6-4.8a.6.6 0 0 0 0-1L1.9.7a.6.6 0 0 0-.9.5z' fill='%232b2033'/%3E%3C/svg%3E");
  box-shadow: 0 4px 14px -8px rgba(0, 0, 0, .5); }
.ig-tile:focus-visible { outline: 3px solid var(--accent); outline-offset: -3px; border-radius: var(--radius); }
@media (max-width: 980px) { .ig-strip { --ig-n: 3; } }
@media (max-width: 600px) {
  .ig-nav { display: none; }
  .ig-strip {
    --ig-gap: 0.6rem; scrollbar-width: none;
    --gpl: max(16px, env(safe-area-inset-left, 0px)); --gpr: max(16px, env(safe-area-inset-right, 0px));
    margin-left: calc(-1 * var(--gpl)); margin-right: calc(-1 * var(--gpr));
    padding-left: var(--gpl); padding-right: var(--gpr); scroll-padding-left: var(--gpl); scroll-padding-right: var(--gpr);
  }
  .ig-strip::-webkit-scrollbar { display: none; }
  .ig-tile { flex-basis: 70%; }
}

/* FAQ (salon pages and /praca/): plain <details>; the answer opens smoothly where supported */
.faq { display: grid; gap: .6rem; max-width: 52rem; }
.faq details { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.2rem; }
.faq summary { font-weight: 700; cursor: pointer; }
.faq p { margin-top: .6rem; color: var(--muted); }
@media (prefers-reduced-motion: no-preference) { @supports (interpolate-size: allow-keywords) {
  .faq details { interpolate-size: allow-keywords; }
  .faq details::details-content { block-size: 0; overflow: clip; transition: block-size .5s var(--ease), content-visibility .5s allow-discrete; }
  .faq details[open]::details-content { block-size: auto; }
} }

/* reviews */
.reviews { text-align: left; }
.reviews .big { font-family: var(--display); font-size: clamp(4rem, 12vw, 7.5rem); line-height: 1; color: var(--accent); }

/* jobs teaser */
.jobs { background: var(--accent-soft); }
.jobs .split { align-items: center; }
.jobs img { border-radius: var(--radius); aspect-ratio: 3 / 2; object-fit: cover; width: 100%; }

/* contact */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.contact-grid > div { display: grid; gap: 0.5rem; align-content: start; min-width: 0; }
.hours { display: grid; grid-template-columns: auto auto; gap: 0.2rem 1.4rem; justify-content: start; font-variant-numeric: tabular-nums; }
.hours dt { color: var(--muted); }
.hours dd { margin: 0; }
.big-link { font-family: var(--display); font-size: var(--step-2); text-decoration: none; }
@media (max-width: 820px) { .contact-grid { grid-template-columns: 1fr; } }

footer { border-top: 1px solid var(--line); font-size: var(--step--1); color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; padding-block: 1.6rem 6rem; }
footer .privacy-note { flex-basis: 100%; font-size: .8rem; color: var(--muted); }

/* floating booking: always in reach, desktop bottom-right, phone bottom-centre */
.book-bar {
  position: fixed; z-index: 25; display: flex; align-items: center; gap: 0.5rem;
  right: calc(1.5rem + env(safe-area-inset-right, 0px)); bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px));
  padding: 0.4rem; border-radius: 999px;
  background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(12px);
  border: 1px solid var(--line); box-shadow: 0 18px 40px -18px rgba(43, 32, 51, 0.45);
}
.book-bar .btn { padding: 0.75rem 1.4rem; white-space: nowrap; }
.book-bar .call {
  width: 2.9rem; height: 2.9rem; border-radius: 50%; display: grid; place-items: center;
  color: var(--accent); background: var(--surface); text-decoration: none; flex: none;
}
.book-bar .call svg { width: 1.25rem; height: 1.25rem; }
.book-bar .call span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
@media (max-width: 760px) {
  .book-bar { left: 50%; right: auto; transform: translateX(-50%); bottom: calc(0.9rem + env(safe-area-inset-bottom, 0px)); }
  .top .btn { display: none; }
}

/* jobs page */
.page-hero { padding-block: clamp(2.5rem, 6vw, 4.5rem); }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); gap: 1rem; }
.card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem; display: grid; gap: 0.5rem; align-content: start; }
.card p { font-size: 0.95rem; color: var(--muted); }

/* ===== Motion (BDOG-375): "one calm stroke". Lines draw, words settle on a soft spring, and since round 3 every section
   has its own hand: the hero lifts a curtain, the visit deals photos off its rail, the gallery blooms, single photos open like an aperture.
   Rules: only opacity, translate, scale and clip-path move; every hidden "before" state lives under html.js-motion
   (set by assets/js/motion.js, never with reduced motion), so no-JS and reduced-motion visitors see the end state. ===== */
:root { --ease: cubic-bezier(.22, .61, .36, 1); --out: cubic-bezier(.16, 1, .3, 1); --spring: cubic-bezier(.2, .9, .3, 1.03); }
@supports (transition-timing-function: linear(0, 1)) {
  /* damped spring, zeta 0.72, 3.8 % overshoot */
  :root { --spring: linear(0, .016 2%, .06 4%, .159 7%, .28 10%, .451 14%, .61 18%, .745 22%, .873 27%, .958 32%, 1.014 38%, 1.037 45%, 1.035 53%, 1.021 62%, 1.007 72%, 1 85%, 1); }
}

/* the drawn line: eyebrow rule, stroke under the italic hero word, header progress hairline */
.eyebrow::before { content: ""; display: inline-block; width: 1.6rem; height: 1.5px; margin-right: 0.7rem; vertical-align: 0.28em; background: var(--accent); transform-origin: left; }
.hero-copy h1 .w { display: inline-block; }
.hero-copy h1 em { position: relative; display: inline-block; isolation: isolate; }
.hero-copy h1 em::after {
  content: ""; position: absolute; z-index: -1; left: -3%; right: -3%; bottom: -0.02em; height: 0.2em; background: var(--pink);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 14' preserveAspectRatio='none'%3E%3Cpath d='M3 9.5C38 3.5 82 2.5 120 5.5s58 3.5 77-.5' fill='none' stroke='%23000' stroke-width='4.5' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 14' preserveAspectRatio='none'%3E%3Cpath d='M3 9.5C38 3.5 82 2.5 120 5.5s58 3.5 77-.5' fill='none' stroke='%23000' stroke-width='4.5' stroke-linecap='round'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
}
.top::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: linear-gradient(90deg, var(--accent), var(--pink)); transform-origin: left; transform: scaleX(var(--sp, 0)); }
.nav a.hide-sm { background: linear-gradient(var(--pink), var(--pink)) no-repeat 0 100% / 0 2px; padding-block: 0.2rem; transition: background-size .5s var(--ease), color .3s; }
.nav a.hide-sm[aria-current] { color: var(--fg); background-size: 100% 2px; }
.stars { display: inline-block; }
.reviews .big { font-variant-numeric: tabular-nums; }
.hours .today { font-weight: 700; }
.hours dd.today::after { content: ""; display: inline-block; width: 0.5rem; height: 0.5rem; margin-left: 0.5rem; border-radius: 50%; background: var(--pink); vertical-align: 0.08em; }

/* hero photo frame: clips the slow drift and the sheen; the image paints at its final size in the first frame */
.hero-photo picture { display: block; position: relative; overflow: hidden; border-radius: calc(var(--radius) * 1.6); }
.hero-photo picture::after { content: ""; position: absolute; inset: 0; pointer-events: none; translate: 130% 0; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .38) 50%, transparent 65%); }

/* the visit as a timeline: a rail that fills with the scroll (--p from motion.js; 1 without JS) */
@media (min-width: 981px) {
  .visit { position: relative; padding-top: 3rem; }
  .visit::before, .visit::after { content: ""; position: absolute; left: 0; right: 0; top: calc(0.85rem - 1px); height: 2px; border-radius: 2px; background: var(--line); }
  .visit::after { background: var(--accent); transform-origin: left; transform: scaleX(var(--p, 1)); }
  .visit li { position: relative; }
  .visit h3::before { position: absolute; left: 0; top: -3rem; margin: 0; z-index: 1; box-shadow: 0 0 0 6px var(--bg); }
}
@media (max-width: 520px) {
  .visit { position: relative; padding-left: 2.6rem; gap: 1.8rem; }
  .visit::before, .visit::after { content: ""; position: absolute; left: calc(0.85rem - 1px); top: 0; bottom: 0; width: 2px; border-radius: 2px; background: var(--line); }
  .visit::after { background: var(--accent); transform-origin: top; transform: scaleY(var(--p, 1)); }
  .visit h3 { position: relative; }
  .visit h3::before { position: absolute; left: -2.6rem; top: -0.1rem; margin: 0; z-index: 1; box-shadow: 0 0 0 5px var(--bg); }
}
.visit li.on h3::before { background: var(--accent); color: var(--on-accent); }

/* press feedback for touch; the buttons keep their look */
.btn { transition: transform .15s ease, box-shadow .15s ease, scale .5s var(--spring); }
.btn:active { scale: 0.95; transition-duration: .1s; }
.book-bar .call, .chip, .nav .lang { transition: scale .5s var(--spring); }
.book-bar .call:active, .nav .lang:active { scale: 0.9; transition-duration: .1s; }
.book-bar { translate: var(--mx, 0px) var(--my, 0px); }

/* gallery lightbox (motion.js); without JS each photo links to its full-size file */
.lb { border: 0; padding: 0; margin: 0; background: transparent; max-width: none; max-height: none; width: 100vw; height: 100vh; height: 100dvh; overflow: hidden; touch-action: pinch-zoom; overscroll-behavior: contain; }
.lb[open] { display: grid; place-items: center; }
.lb::backdrop { background: rgba(23, 19, 27, .9); }
.lb img { width: auto; height: auto; max-width: min(92vw, 68rem); max-height: 78vh; max-height: 78svh; border-radius: var(--radius); }
.lb button { position: absolute; width: 3rem; height: 3rem; border-radius: 50%; border: 0; cursor: pointer; font: 400 1.6rem/1 var(--body); background: rgba(244, 243, 247, .92); color: #2b2033; transition: scale .5s var(--spring); }
.lb button:active { scale: 0.9; }
.lb button:focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; border-radius: 50%; }
.lb-x { top: calc(0.8rem + env(safe-area-inset-top, 0px)); right: calc(0.8rem + env(safe-area-inset-right, 0px)); }
.lb-p, .lb-n { bottom: calc(1rem + env(safe-area-inset-bottom, 0px)); }
.lb-p { left: calc(50% - 3.5rem); } .lb-n { right: calc(50% - 3.5rem); }
@media (min-width: 900px) { .lb-p, .lb-n { bottom: auto; top: calc(50% - 1.5rem); } .lb-p { left: 1.5rem; } .lb-n { right: 1.5rem; } }

@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-group(shot) { animation-duration: .55s; animation-timing-function: var(--ease); }

  /* hero appear, CSS only: runs without JS and never touches the LCP image's first paint */
  @keyframes rise { from { opacity: 0; translate: 0 0.9em; } }
  @keyframes soft { from { opacity: 0; translate: 0 0.5em; } }
  @keyframes pop { from { opacity: 0; scale: 0.8; translate: 0 0.6rem; } }
  @keyframes wipe-x { from { clip-path: inset(-20% 100% -20% 0); } to { clip-path: inset(-20% 0 -20% 0); } }
  @keyframes draw-x { from { scale: 0 1; } }
  /* a word comes up from behind its own baseline: the clip moves against the translate, so the edge stands still */
  @keyframes lift { from { translate: 0 110%; clip-path: inset(-10% -10% 110% -10%); } to { translate: 0 0; clip-path: inset(-10% -10% -20% -10%); } }
  /* the photo is there from the first frame and opens out of a smaller frame while the picture settles back */
  @keyframes open { from { clip-path: inset(7% 6% 7% 6% round calc(var(--radius) * 1.6)); } to { clip-path: inset(0 round calc(var(--radius) * 1.6)); } }
  @keyframes settle { from { scale: 1.14; } }
  @keyframes drift { to { scale: 1.07; } }
  @keyframes sheen { from { translate: -130% 0; } to { translate: 130% 0; } }
  @keyframes bar-in { from { opacity: 0; translate: 0 150%; } }
  /* first screen, "curtain up" (round 3): masked headline, opening photo, then the quiet lines */
  .hero-copy > * { animation: soft 1.2s var(--ease) both; }
  .hero-copy > .eyebrow { animation-delay: .05s; }
  .hero-copy > h1 { animation: none; }
  .hero-copy h1 .w { animation: lift 1.15s var(--out) backwards; animation-delay: calc(.15s + var(--i, 0) * .1s); }
  .hero-copy h1 em::after { animation: wipe-x .7s var(--ease) 1.15s both; }
  .hero-copy > .lead { animation-delay: .7s; }
  .hero-copy > .cta-row { animation-delay: .85s; }
  .hero-copy > .rating { animation-delay: 1s; }
  .hero-copy .eyebrow::before { animation: draw-x .8s var(--ease) .3s both; }
  .hero-copy .stars { animation: wipe-x .9s linear 1.3s both; }
  .hero-photo picture { animation: open 1.5s var(--out) backwards; }
  .hero-photo img { animation: settle 1.9s var(--out) backwards, drift 16s var(--ease) 1.9s forwards; }
  .hero-photo picture::after { animation: sheen 1.5s var(--ease) 1s both; }
  .hero-photo .tag { animation: pop .8s var(--spring) 1.2s both; }
  .book-bar { animation: bar-in 1s var(--spring) 1.2s backwards; transition: translate .6s var(--spring); }

  /* appear on scroll (motion.js adds .rv below the fold, then .in) */
  .js-motion .rv { opacity: 0; translate: 0 1.4rem; }
  .js-motion .rv.in { opacity: 1; translate: 0 0; transition: opacity .6s var(--ease) var(--d, 0s), translate 1s var(--spring) var(--d, 0s); }
  .js-motion .rv.eyebrow::before { scale: 0 1; }
  .js-motion .rv.in.eyebrow::before { scale: 1 1; transition: scale .8s var(--ease) calc(var(--d, 0s) + .25s); }
  .js-motion .rv .stars { clip-path: inset(-20% 100% -20% 0); }
  .js-motion .rv.in .stars { clip-path: inset(-20% 0 -20% 0); transition: clip-path 1s linear .35s; }
  /* a translate would make the h3 the containing block of its rail node: fade only */
  .js-motion .visit h3.rv { translate: none; }
  /* headings: words settle one after another */
  .js-motion h2 .w { display: inline-block; }
  .js-motion h2.rv { opacity: 1; translate: none; }
  .js-motion h2.rv .w { opacity: 0; translate: 0 0.7em; }
  .js-motion h2.rv.in .w { opacity: 1; translate: 0 0; transition: opacity .6s var(--ease), translate 1s var(--spring); transition-delay: calc(var(--d, 0s) + var(--i, 0) * 45ms); }
  /* photos (round 3): each section has its own hand; none is unveiled top to bottom any more.
     Default "aperture": the photo is on screen from the start and opens out of a smaller frame. */
  .js-motion picture.fr { display: block; overflow: hidden; border-radius: var(--r, var(--radius)); }
  .js-motion picture.rv { opacity: 1; translate: none; clip-path: inset(11% 10% 11% 10% round var(--r, var(--radius))); }
  .js-motion picture.rv.in { clip-path: inset(0 0 0 0 round var(--r, var(--radius))); transition: clip-path 1.3s var(--out) var(--d, 0s); }
  .js-motion picture.rv img { scale: 1.22; }
  .js-motion picture.rv.in img { scale: 1; transition: scale 1.6s var(--out) var(--d, 0s); }
  /* "curtain" (Julia): drawn aside from the left edge */
  .js-motion picture.cur.rv { clip-path: inset(0 100% 0 0 round var(--r, var(--radius))); }
  .js-motion picture.cur.rv.in { clip-path: inset(0 0 0 0 round var(--r, var(--radius))); transition-duration: 1.4s; }
  /* "deal" (about, visit): the whole photo is laid down like a card, a little turned, and settles on the spring */
  .js-motion picture.deal.rv { clip-path: none; opacity: 0; translate: 0 2.4rem; rotate: 2deg; }
  .js-motion picture.deal.rv:nth-child(2n):not(.in), .js-motion .visit li:nth-child(2n) picture.rv:not(.in) { rotate: -2deg; }
  .js-motion picture.deal.rv.in { opacity: 1; translate: 0 0; rotate: 0deg; transition: opacity .35s var(--ease) var(--d, 0s), translate 1.1s var(--spring) var(--d, 0s), rotate 1.3s var(--spring) var(--d, 0s), scale .9s var(--spring); }
  /* the visit: photos come off the rail (from above in the row, from the left on phones) and hang on it;
     each one steps forward when the rail reaches its number */
  .visit picture { display: block; transform-origin: 50% 0; transition: scale .9s var(--spring); }
  .js-motion .visit picture.rv { translate: 0 -2rem; }
  .js-motion .visit li:not(.on) picture { scale: 0.94; }
  @media (max-width: 520px) {
    .visit picture { transform-origin: 0 50%; }
    .js-motion .visit picture.rv { translate: -2.2rem 0; }
  }
  /* depth: the photo drifts inside its frame with the scroll (--p 0..1) */
  .js-motion picture.px img, .js-motion picture.px.rv.in img { scale: 1.12; translate: 0 calc((var(--p, .5) - .5) * -9%); }
  .js-motion picture.px.rv img { scale: 1.3; }
  /* extras: the chips pop, one after another */
  .js-motion .chip.rv { translate: 0 0.5rem; scale: 0.8; }
  .js-motion .chip.rv.in { scale: 1; transition: opacity .4s var(--ease) var(--d, 0s), translate .9s var(--spring) var(--d, 0s), scale .9s var(--spring) var(--d, 0s); }
  /* gallery: the wall blooms tile by tile; the phone row glides in from the side it swipes to */
  .js-motion .gallery.rv, .js-motion .ig-strip.rv { opacity: 1; translate: none; }
  .js-motion .gallery.rv > a { opacity: 0; scale: 0.9; }
  .js-motion .gallery.rv.in > a { opacity: 1; scale: 1; translate: 0 0; transition: opacity .5s var(--ease), scale 1.1s var(--spring), translate 1.2s var(--out); transition-delay: calc(var(--d, 0s) + var(--i, 0) * 90ms); }
  .gallery > a:nth-child(2) { --i: 1; } .gallery > a:nth-child(3) { --i: 2; } .gallery > a:nth-child(4) { --i: 3; } .gallery > a:nth-child(n+5) { --i: 4; }
  @media (max-width: 600px) { .js-motion .gallery.rv > a { scale: 1; translate: 45% 0; } }
  /* Instagram strip: the tiles switch on one after another from the left; the row never moves */
  .js-motion .ig-strip.rv > a { opacity: 0; }
  .js-motion .ig-strip.rv > a img { scale: 1.25; }
  .js-motion .ig-strip.rv.in > a { opacity: 1; transition: opacity .6s var(--ease) calc(var(--d, 0s) + var(--i, 0) * 85ms); }
  .js-motion .ig-strip.rv.in > a img { scale: 1; transition: scale 1.4s var(--out) calc(var(--d, 0s) + var(--i, 0) * 85ms); }
  .ig-strip > a:nth-child(2) { --i: 1; } .ig-strip > a:nth-child(3) { --i: 2; } .ig-strip > a:nth-child(4) { --i: 3; } .ig-strip > a:nth-child(n+5) { --i: 4; }
  .ig-tile img { transition: scale .9s var(--ease); }
  /* timeline nodes and the quote, switched by the scroll */
  .visit h3::before { transition: background-color .4s var(--ease), color .4s var(--ease), scale .7s var(--spring); }
  .js-motion .visit li:not(.on) h3::before { scale: 0.82; }
  .js-motion blockquote .w { opacity: 0.2; transition: opacity .5s var(--ease); }
  .js-motion blockquote .w.on { opacity: 1; }
}
@media (hover: hover) and (pointer: fine) {
  .gallery a, .gallery img { transition: opacity .5s var(--ease), scale .9s var(--ease); }
  .gallery a:hover img, .gallery a:focus-visible img { scale: 1.04; }
  .ig-tile:hover img { scale: 1.05; }
  .gallery:has(a:hover) a:not(:hover) { opacity: 0.72; }
}

/* About headline as a lilac italic tagline, like the hero accent (Julia, bot message 30, 2026-11-23) */
h2.tagline em { font-style: italic; color: var(--accent); }
h2.tagline em { display: block; }
/* team: face tabs, one person at a time (variant B, owner M1035, quotes chosen M1105, 2026-11-24).
   Phone: the selected face is twice the size of the others, the row keeps a fixed height so nothing below moves.
   Desktop: tabs above, the panel shows the portrait left and the text right. Without JS every panel is shown. */
.tm-wrap { max-width: 56rem; }
.team .eyebrow { text-align: center; max-width: none; margin-bottom: 1.5rem; }
.tm-tabs { display: flex; justify-content: center; gap: clamp(0.25rem, 3vw, 1.5rem); margin-bottom: 1.1rem; }
.team:not(.tm-js) .tm-tabs { display: none; }
.tm-tab { background: none; border: 0; padding: 0.5rem 0.25rem 0.25rem; width: 6.25rem; display: grid; justify-items: center; gap: 0.45rem; font-weight: 600; font-size: 0.95rem; color: var(--muted); border-radius: var(--radius); -webkit-tap-highlight-color: transparent; }
.tm-av { width: 5.5rem; scale: 0.8; transition: scale .6s var(--spring); }
.tm-av img { width: 100%; aspect-ratio: 1; border-radius: 50%; object-fit: cover; object-position: var(--pos); border: 3px solid var(--line); filter: saturate(0.75); transition: border-color .3s ease, box-shadow .4s ease, filter .3s ease; }
.tm-tab span { position: relative; padding-bottom: 0.3rem; transition: color .3s ease; }
.tm-tab span::after { content: ""; position: absolute; inset: auto 0 0; height: 2px; border-radius: 2px; background: var(--accent); scale: 0 1; transition: scale .45s var(--out); }
.tm-tab:hover .tm-av { scale: 0.88; }
.tm-tab[aria-selected="true"] { color: var(--fg); }
.tm-tab[aria-selected="true"] .tm-av { scale: 1.08; }
.tm-tab[aria-selected="true"] .tm-av img { border-color: var(--accent); filter: none; box-shadow: 0 0 0 6px color-mix(in srgb, var(--accent) 18%, transparent); }
.tm-tab[aria-selected="true"] span::after { scale: 1 1; }
.tm-panels { display: grid; gap: 1rem; }
.tm-panel { background: var(--bg); border: 1px solid var(--line); border-radius: calc(var(--radius) * 1.6); padding: 1.75rem 1.1rem; display: grid; align-content: center; justify-items: center; text-align: center; }
.tm-js .tm-panel { grid-area: 1 / 1; visibility: hidden; opacity: 0; }
.tm-js .tm-panel.is-active { visibility: visible; opacity: 1; transition: opacity .35s var(--ease); }
.tm-ph { display: none; }
.tm-body { display: grid; gap: 0.85rem; justify-items: center; min-width: 0; }
.tm-body h2 { font-size: var(--step-3); }
.tm-role { font-weight: 700; font-size: var(--step-1); letter-spacing: 0.02em; line-height: 1.3; text-wrap: balance; margin-top: -0.4rem; }
.tm-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.4rem; justify-content: center; }
.tm-chip { display: inline-flex; align-items: center; padding: 0.28rem 0.75rem; border-radius: 999px; font-size: 0.8125rem; font-weight: 600; line-height: 1.3; border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent); background: color-mix(in srgb, var(--accent) 10%, transparent); white-space: nowrap; }
.tm-chip.exp { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-family: var(--display); font-style: italic; font-weight: 500; font-size: 0.9rem; }
.tm-q { margin-block: 0.35rem 0.15rem; font-family: var(--display); font-weight: 500; color: var(--fg); font-size: clamp(1.55rem, 6.4vw, 2.1rem); line-height: 1.15; letter-spacing: -0.01em; max-width: 19ch; text-wrap: balance; }
.tm-q em { font-style: italic; color: var(--accent); }
.tm-bio { font-size: 1rem; line-height: 1.6; max-width: 46ch; text-wrap: pretty; }
.tm-bio strong { font-weight: 700; color: var(--fg); }
@media (prefers-reduced-motion: no-preference) {
  .tm-panel.is-active.anim .tm-body > * { animation: tm-in .6s var(--out) both; animation-delay: calc(var(--i) * 70ms); }
  .tm-panel.is-active.anim .tm-ph { animation: tm-ph .7s var(--out) both; }
}
@keyframes tm-in { from { opacity: 0; translate: 0 16px; } }
@keyframes tm-ph { from { opacity: 0; scale: 0.94; } }
@media (max-width: 760px) {
  .tm-tabs { --big: clamp(7.5rem, 39vw, 9rem); --small: clamp(3.75rem, 19vw, 4.5rem); gap: clamp(0.5rem, 3vw, 1rem); align-items: flex-end; height: calc(var(--big) + 3.1rem); margin-bottom: 1rem; }
  .tm-tab { width: auto; padding: 0.5rem 0 0.25rem; }
  .tm-av, .tm-tab:hover .tm-av { width: var(--small); scale: 1; transition: width .7s var(--spring); }
  .tm-tab[aria-selected="true"] .tm-av { width: var(--big); scale: 1; }
  .tm-tab span { transition: color .3s ease, font-size .5s var(--out); }
  .tm-tab[aria-selected="true"] span { font-size: 1.1rem; }
  .tm-panel { padding-inline: 0.8rem; }
  .tm-chips { gap: 0.35rem; }
}
@media (min-width: 820px) {
  .tm-panel { grid-template-columns: minmax(0, 18rem) minmax(0, 1fr); align-items: center; justify-items: start; text-align: left; gap: 3.25rem; padding: 2.5rem 3rem; }
  .tm-ph { display: block; width: 100%; }
  .tm-ph img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: var(--pos); border-radius: calc(var(--radius) * 1.6); }
  .tm-body { justify-items: start; }
  .tm-chips { justify-content: flex-start; }
}
