/* JK nails, Justyna Krysiak, stylistka paznokci, Nadarzyn
   World: her own photographs on one powder-pink ground.
   The ground never changes while scrolling; white carries every surface; saturated colour is only her polish.
   Radius rule: interactive = pill, surfaces = 24px, photos = 18px. */

@font-face {
  font-family: "Host Grotesk";
  font-style: normal;
  font-display: swap;
  font-weight: 300 800;
  src: url("../fonts/host-grotesk-latin-ext-wght-normal.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-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Host Grotesk";
  font-style: normal;
  font-display: swap;
  font-weight: 300 800;
  src: url("../fonts/host-grotesk-latin-wght-normal.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;
}

/* ---------- Tokens: one powder ground for every page, white surfaces ---------- */
:root {
  color-scheme: light only;
  --gold: #a4885a;
  --accent: #8a5c63;

  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-soft: cubic-bezier(0.22, 1, 0.36, 1);

  --r-surface: 24px;
  --r-photo: 18px;
  --r-pill: 999px;

  --gutter: clamp(1rem, 4vw, 3rem);
  --maxw: 88rem;
  --header-h: 4.5rem;
  --section-y: clamp(5rem, 10vw, 9.5rem);

  /* the only ground (powder pink, her wish); white for cards, strips, notes and chips */
  --bg: #f7e6e5;
  --surface: #ffffff;
  --fg: #3b1d24;
  --fg-2: #74535a;
  --line: rgb(59 29 36 / 0.13);
  --btn-bg: #865860;
  --btn-fg: #ffffff;
  --link: #7f5056;
  --chip: #ffffff;
  --chip-fg: #3b1d24;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  font-family: "Host Grotesk", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  font-kerning: normal;
  scroll-padding-top: calc(var(--header-h) + 0.5rem);
  scrollbar-gutter: stable;
  background: var(--bg);
}
html.lb-open { overflow: hidden; }
/* once the lacquer covers the screen it also paints the reserved scrollbar gutter */
html.lb-flooded { background: var(--lb-flood, #3b1d24); }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--fg);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
::selection { background: #865860; color: #ffffff; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 { margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 6px; }
.nw { white-space: nowrap; }
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.icon { width: 1.25em; height: 1.25em; flex: none; fill: currentColor; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip {
  position: absolute; left: var(--gutter); top: -4rem; z-index: 100;
  padding: 0.7rem 1rem; border-radius: var(--r-pill);
  background: var(--btn-bg); color: var(--btn-fg); font-weight: 600; text-decoration: none;
  transition: top 200ms var(--ease-out);
}
.skip:focus-visible { top: 0.75rem; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* Intro: first-screen pieces wait hidden for main.js (boot.js sets .js; .anim-off is the safety net) */
.js:not(.anim-off) [data-intro] { visibility: hidden; }

/* masks for split-text reveals; padding keeps accents and descenders from being clipped */
.w-mask, .c-mask { padding: 0.12em 0.05em 0.16em; margin: -0.12em -0.05em -0.16em; }

/* ---------- Type voice: a light lead-in word, a bold key word ---------- */
.thin { font-weight: 320; letter-spacing: -0.035em; }
/* the light lead-in word of every display line takes the dusty rose of her buttons */
.hero h1 .thin, .h2 .thin, .visit__title .thin, .legal-hero h1 .thin, .lost h1 .thin { color: var(--accent); }
.h2 {
  font-size: clamp(2.6rem, 1.2rem + 4.4vw, 5.6rem);
  font-weight: 640;
  line-height: 0.96;
  letter-spacing: -0.04em;
}
.lead {
  margin-top: 1.4rem;
  max-width: 38ch;
  font-size: clamp(1.0625rem, 0.98rem + 0.35vw, 1.25rem);
  line-height: 1.5;
  color: var(--fg-2);
}

/* ---------- Header ---------- */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 40;
  height: var(--header-h);
  color: var(--fg);
  transition: background-color 400ms ease, box-shadow 400ms ease, translate 500ms var(--ease-out);
}
.header.is-stuck {
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  backdrop-filter: blur(16px) saturate(1.5);
  box-shadow: 0 1px 0 var(--line);
}
.header.is-hidden { translate: 0 -100%; }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; height: 100%; }
.brand { display: inline-flex; align-items: center; gap: 0.8rem; text-decoration: none; color: var(--fg); }
.brand__mark { height: 2.6rem; width: auto; fill: var(--gold); }
.brand__name { font-size: 0.75rem; font-weight: 460; letter-spacing: 0.3em; text-transform: uppercase; white-space: nowrap; }
.nav { display: flex; align-items: center; gap: 2rem; }
.nav__list { display: flex; gap: 1.9rem; margin: 0; padding: 0; list-style: none; }
.nav__list a { position: relative; font-size: 0.9375rem; font-weight: 540; text-decoration: none; padding-block: 0.4rem; }
.nav__list a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0.1rem; height: 2px; border-radius: 2px;
  background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform 360ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .nav__list a:hover::after { transform: scaleX(1); transform-origin: left; }
}
.nav__list a.is-current::after { transform: scaleX(1); transform-origin: left; }
.nav__extra { display: none; }
.menu-btn {
  display: none; align-items: center; gap: 0.5rem; height: 2.75rem; padding: 0 1rem 0 0.85rem;
  border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--surface); color: var(--fg);
  font: inherit; font-size: 0.9375rem; font-weight: 600; cursor: pointer; transition: transform 160ms var(--ease-out);
}
.menu-btn:active { transform: scale(0.97); }
.menu-btn .icon { width: 1.15rem; height: 1.15rem; }
.menu-btn__close { display: none; }
.menu-btn[aria-expanded="true"] .menu-btn__open { display: none; }
.menu-btn[aria-expanded="true"] .menu-btn__close { display: block; }

/* ---------- Button: a dusty rose pill (the class keeps its old name, .stick) ---------- */
.stick {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  height: 3.4rem;
  padding: 0 1.65rem;
  border: 0;
  border-radius: var(--r-pill);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font: inherit;
  font-size: 1.0625rem;
  font-weight: 620;
  letter-spacing: -0.01em;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 14px 30px -16px rgb(90 40 50 / 0.42);
  transition: scale 180ms var(--ease-out), box-shadow 300ms ease, background-color 400ms ease, color 400ms ease;
  -webkit-tap-highlight-color: transparent;
}
.stick:active { scale: 0.97; }
@media (hover: hover) and (pointer: fine) {
  .stick:hover { box-shadow: 0 18px 34px -16px rgb(90 40 50 / 0.5); }
}
.stick--sm { height: 2.7rem; padding: 0 1.2rem; font-size: 0.9375rem; gap: 0.55rem; }
.stick__label { display: inline-block; }

.phone-link {
  display: inline-flex; align-items: center; gap: 0.55rem; min-height: 3.2rem; padding: 0 0.3rem;
  font-weight: 620; font-size: 1.0625rem; text-decoration: none; white-space: nowrap; color: var(--fg);
}
.phone-link span { background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1.5px no-repeat; padding-bottom: 2px; transition: background-size 400ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .phone-link:hover span { background-size: 0% 1.5px; background-position: 100% 100%; }
}
.phone-link .icon { width: 1.15rem; height: 1.15rem; }
.text-link {
  font-weight: 600; text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1.5px no-repeat; padding-bottom: 2px;
  transition: background-size 400ms var(--ease-out);
}
@media (hover: hover) and (pointer: fine) {
  .text-link:hover { background-size: 0% 1.5px; background-position: 100% 100%; }
}

/* ---------- Hero: copy on the left, her work on the right ---------- */
.hero {
  position: relative;
  min-height: max(40rem, 100svh);
  display: grid;
  align-items: center;
  overflow: clip;
  isolation: isolate;
}
.hero__inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; column-gap: clamp(2rem, 5vw, 5.5rem); }
.hero__copy { max-width: 46rem; padding: calc(var(--header-h) + 2rem) 0 5rem; }
.hero h1 {
  font-size: clamp(2.9rem, 5.6vw, 5.6rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  font-weight: 640;
}
.hero h1 .line { display: block; }
.hero__lead { max-width: 36ch; margin-top: 1.8rem; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.4rem; margin-top: 2.4rem; }

/* two of her photographs: a large one, and a small print laid over its lower corner */
.hero__media { position: relative; z-index: 1; width: clamp(17rem, 32vw, 30rem); margin: calc(var(--header-h) + 2rem) 0 5rem auto; }
.hero__shot {
  position: relative; display: block; overflow: hidden;
  border-radius: var(--r-photo);
  background: var(--surface);
  -webkit-tap-highlight-color: transparent;
}
.hero__shot img { display: block; width: 100%; height: 100%; object-fit: cover; }
.hero__shot--main { aspect-ratio: 4 / 5; box-shadow: 0 40px 70px -40px rgb(90 40 50 / 0.55); }
.hero__shot--main img { object-position: 50% 28%; }
.hero__shot--accent {
  position: absolute; left: -26%; bottom: -10%; z-index: 2;
  width: 44%; aspect-ratio: 4 / 5;
  border: 0.45rem solid #ffffff;
  border-radius: calc(var(--r-photo) + 0.45rem);
  box-shadow: 0 30px 50px -26px rgb(90 40 50 / 0.6);
}
.hero__shot--accent img { object-position: 50% 40%; }
.hero__shot:focus-visible { outline: 3px solid var(--fg); outline-offset: 4px; }
@media (hover: hover) and (pointer: fine) {
  .hero__shot { cursor: zoom-in; }
  .hero__shot img { transition: transform 900ms var(--ease-out); }
  .hero__shot:hover img { transform: scale(1.04); }
}

/* ---------- Ticker: one band of her services ---------- */
.ticker {
  position: relative;
  overflow: clip;
  border-block: 1px solid var(--line);
  padding-block: 1.1rem;
  user-select: none;
}
.ticker__track { display: flex; width: max-content; will-change: transform; }
.ticker__group { display: flex; flex: none; }
.ticker__item {
  display: inline-flex; align-items: center; gap: 0.9rem;
  padding-right: 2.6rem;
  font-size: clamp(1.25rem, 0.9rem + 1.4vw, 2.1rem);
  font-weight: 320;
  letter-spacing: -0.03em;
  white-space: nowrap;
}
.ticker__item b { font-weight: 640; }
.ticker__dot {
  flex: none;
  width: 0.32em; height: 0.32em;
  border-radius: 50%;
  background: var(--accent);
}

/* ---------- Sections ---------- */
.section { position: relative; padding-block: var(--section-y); }

/* ---------- Work ---------- */
.work__head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: end; gap: 1.5rem 3rem; }
/* photo grid: portrait cells 4:5, wide photos span two columns; rows come from the container width */
.grid-wrap { margin-top: 2.5rem; container-type: inline-size; }
.grid {
  --cols: 4;
  --gap: 1rem;
  display: grid;
  grid-template-columns: repeat(var(--cols), minmax(0, 1fr));
  grid-auto-rows: 24vw;
  grid-auto-rows: calc((100cqw - (var(--cols) - 1) * var(--gap)) / var(--cols) * 1.22);
  grid-auto-flow: dense;
  gap: var(--gap);
  margin: 0; padding: 0; list-style: none;
}
.tile { position: relative; min-width: 0; }
.tile--wide { grid-column: span 2; }
.tile__link {
  position: relative; display: block; width: 100%; height: 100%;
  border-radius: var(--r-photo); overflow: hidden; background: var(--surface);
  cursor: zoom-in; -webkit-tap-highlight-color: transparent;
}
.tile__link img { width: 100%; height: 100%; object-fit: cover; transition: transform 900ms var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .tile__link:hover img { transform: scale(1.05); }
}
.tile__link:focus-visible { outline-offset: 4px; }


/* phones: the first rows, then everything on request */
.grid-more { display: flex; margin: 1.5rem auto 0; }
.grid-more[hidden] { display: none; }
.stick--light { --btn-bg: var(--chip); --btn-fg: var(--chip-fg); box-shadow: 0 10px 24px -16px rgb(90 40 50 / 0.38), inset 0 0 0 1px var(--line); }

/* ---------- Prices ---------- */
.prices__top { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1.5rem 2rem; }
.tabs {
  position: relative; display: grid; grid-template-columns: 1fr 1fr;
  padding: 0.3rem; border-radius: var(--r-pill);
  background: color-mix(in srgb, var(--fg) 10%, transparent);
}
.tabs__btn {
  position: relative; z-index: 1; min-width: 7.5rem; height: 2.85rem; padding: 0 1.4rem;
  border: 0; border-radius: var(--r-pill); background: transparent; color: var(--fg-2);
  font: inherit; font-size: 1rem; font-weight: 620; cursor: pointer; transition: color 300ms ease;
  -webkit-tap-highlight-color: transparent;
}
.tabs__btn[aria-selected="true"] { color: var(--btn-fg); }
.tabs__ind {
  position: absolute; top: 0.3rem; bottom: 0.3rem; left: 0.3rem; width: calc(50% - 0.3rem);
  border-radius: var(--r-pill); background: var(--btn-bg);
  transition: transform 420ms var(--ease-out);
}
.tabs[data-active="1"] .tabs__ind { transform: translateX(100%); }
.no-js .tabs { display: none; }
.panel { margin-top: 2.5rem; }
.panel__title { margin-bottom: 1.25rem; font-size: 1.5rem; }
.js .panel__title { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.panel__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; align-items: start; }
.panel__stack { display: grid; gap: 1rem; }
.card {
  position: relative;
  padding: clamp(1.4rem, 2.6vw, 2.1rem);
  border-radius: var(--r-surface);
  background: var(--surface);
  box-shadow: 0 24px 48px -36px rgb(90 40 50 / 0.4);
}
.card__head { display: flex; align-items: center; gap: 0.8rem; }
.card__head h4 { font-size: 1.375rem; font-weight: 640; letter-spacing: -0.02em; line-height: 1.2; }
.card__desc { margin-top: 0.6rem; font-size: 0.9375rem; line-height: 1.5; color: var(--fg-2); }
.menu { display: grid; margin: 1.1rem 0 0; padding: 0; list-style: none; }
.menu li {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 1.25rem; align-items: center;
  padding-block: 0.7rem;
  border-top: 1px solid var(--line);
}
.menu li:first-child { border-top: 0; }
.menu__name { font-weight: 540; line-height: 1.35; }
.menu__time { grid-column: 1; font-size: 0.875rem; color: var(--fg-2); }
.menu__price { grid-column: 2; grid-row: 1 / span 2; font-weight: 660; font-size: 1.125rem; font-variant-numeric: tabular-nums lining-nums; white-space: nowrap; text-align: right; color: var(--link); }
.menu__note-row { border-top: 0 !important; padding-top: 0 !important; }
.menu__note { grid-column: 1 / -1; font-size: 0.875rem; color: var(--fg-2); }
.prices__foot {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem 1.5rem;
  margin-top: 1rem; padding: 0.85rem 0.85rem 0.85rem clamp(1.4rem, 2.6vw, 2.1rem);
  border-radius: var(--r-surface);
  background: var(--surface);
}
.prices__foot p { max-width: 52ch; color: var(--fg-2); font-size: 0.9375rem; }

/* ---------- About ---------- */
.about__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(1.25rem, 3vw, 3rem); row-gap: 3rem; align-items: start; }
.about__photo { grid-column: 1 / span 5; grid-row: 1 / span 2; margin: 0; position: relative; }
.about__photo-frame { border-radius: var(--r-photo); overflow: hidden; background: #363231; }
.about__photo img { width: 100%; }

.about__text { grid-column: 7 / -1; padding-top: clamp(0rem, 3vw, 2.5rem); }
.about__text p { margin-top: 1.1rem; max-width: 44ch; font-size: 1.1875rem; color: var(--fg-2); }
.about__text p:first-of-type { margin-top: 1.6rem; }
.about__text .text-link { display: inline-block; margin-top: 1.5rem; color: var(--fg); }
.about__quotes { grid-column: 7 / -1; display: grid; gap: 2rem; }
.quote { margin: 0; }
.quote p { font-size: 1.125rem; line-height: 1.5; }
.quote footer { margin-top: 0.6rem; font-size: 0.875rem; color: var(--fg-2); }
.quote--lead p { font-size: clamp(1.9rem, 1.2rem + 2vw, 3rem); font-weight: 560; line-height: 1.08; letter-spacing: -0.03em; text-wrap: balance; }
.quote__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem 2rem; padding-top: 2rem; border-top: 1px solid var(--line); }

/* ---------- Contact ---------- */
.visit { overflow: clip; }
.visit__title { position: relative; z-index: 2; font-size: clamp(2.9rem, 1.2rem + 4.6vw, 5.6rem); font-weight: 660; line-height: 0.96; letter-spacing: -0.04em; }
.visit__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: clamp(1.25rem, 3vw, 3rem); row-gap: 2.5rem; align-items: start; margin-top: clamp(2rem, 4vw, 3.5rem); }
.visit__main { grid-column: 1 / span 6; }
.visit__photo { grid-column: 8 / -1; position: relative; z-index: 1; margin: 0; }
.visit__photo-frame { border-radius: var(--r-photo); overflow: hidden; background: #3b3838; box-shadow: 0 40px 70px -40px rgb(90 40 50 / 0.55); }
.visit__photo img { width: 100%; }
.visit__main p { max-width: 36ch; font-size: 1.1875rem; color: var(--fg-2); }
.visit__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.5rem; margin-top: 2.2rem; }
.visit .phone-link { font-size: clamp(1.4rem, 1.1rem + 0.9vw, 1.9rem); letter-spacing: -0.015em; }
.visit .phone-link .icon { width: 1.4rem; height: 1.4rem; }
.visit__card { margin-top: clamp(2.5rem, 4vw, 3.5rem); padding-top: 1.75rem; border-top: 1px solid var(--line); max-width: 30rem; }
.visit__card address { margin-top: 0.4rem; font-style: normal; font-size: 1.125rem; line-height: 1.5; }
.visit__card h3 { font-size: 1.5rem; font-weight: 660; letter-spacing: -0.02em; }
.visit__card > .text-link { display: inline-flex; align-items: center; gap: 0.35rem; margin-top: 0.9rem; }
.visit__card .text-link .icon { width: 1rem; height: 1rem; }
.facts { display: grid; gap: 0.6rem; margin: 1.35rem 0 0; padding: 1.25rem 0 0; border-top: 1px solid var(--line); list-style: none; font-size: 0.9375rem; }
.facts li { display: flex; align-items: center; gap: 0.65rem; }
.facts .icon { width: 1.15rem; height: 1.15rem; opacity: 0.8; }

/* ---------- Footer ---------- */
.footer { padding: clamp(3.5rem, 7vw, 5.5rem) 0 calc(2.5rem + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.footer__grid { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 2rem clamp(2rem, 5vw, 4.5rem); align-items: start; }
.lockup { display: grid; justify-items: center; gap: 0.9rem; text-decoration: none; }
.lockup svg { height: 4.8rem; width: auto; fill: var(--gold); }
.lockup span { font-size: 0.6875rem; letter-spacing: 0.34em; text-transform: uppercase; font-weight: 460; color: #8a6d42; margin-right: -0.34em; }
.footer__info { font-size: 0.9375rem; line-height: 1.7; color: var(--fg-2); }
.footer__info strong { color: var(--fg); font-weight: 620; }
.footer__links { display: grid; gap: 0.4rem; margin: 0; padding: 0; list-style: none; font-size: 0.9375rem; }
.footer__links a { text-decoration: none; }
@media (hover: hover) and (pointer: fine) {
  .footer__links a:hover { text-decoration: underline; text-underline-offset: 0.24em; }
}
.footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem 2rem; margin-top: 2.75rem; padding-top: 1.25rem; border-top: 1px solid var(--line); font-size: 0.8125rem; color: var(--fg-2); }

/* ---------- Lightbox: the chosen polish floods the screen ---------- */
.lb { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: transparent; color: #fff7f8; overflow: hidden; }
.lb[data-tone="light"] { color: #3b1d24; }
.lb::backdrop { background: transparent; }
.lb[open] { display: grid; place-items: center; }
.lb__flood { position: absolute; inset: 0; background: var(--lb-flood, #3b1d24); }
.lb__figure { position: relative; z-index: 1; display: grid; justify-items: center; gap: 1rem; margin: 0; padding: 4.75rem 1rem 1.5rem; max-width: 100%; }
.lb__frame { border-radius: var(--r-photo); overflow: hidden; box-shadow: 0 40px 80px -34px rgb(20 0 6 / 0.65); }
.lb__img { display: block; width: auto; height: auto; max-width: min(calc(100vw - 2rem), 64rem); max-height: calc(100dvh - 8.5rem); touch-action: pan-y; }
.lb__count { position: absolute; z-index: 2; top: 1.6rem; left: 1.5rem; margin: 0; font-size: 1rem; font-weight: 460; font-variant-numeric: tabular-nums lining-nums; letter-spacing: 0.02em; }
.lb__btn {
  position: absolute; z-index: 2; display: grid; place-items: center; width: 3.1rem; height: 3.1rem;
  border: 0; border-radius: 50%; background: rgb(255 255 255 / 0.95); color: #3b1d24; cursor: pointer;
  box-shadow: 0 12px 24px -12px rgb(0 0 0 / 0.6); transition: transform 160ms var(--ease-out);
}
.lb__btn:active { transform: scale(0.94); }
.lb__btn .icon { width: 1.25rem; height: 1.25rem; }
.lb[data-tone="light"] .lb__btn { background: #3b1d24; color: #fff7f8; }
@media (hover: hover) and (pointer: fine) {
  .lb__btn { transition: transform 160ms var(--ease-out), scale 300ms var(--ease-out); }
  .lb__btn:hover { scale: 1.06; }
}
.lb__close { top: 1rem; right: 1rem; }
.lb__prev { left: 1rem; top: 50%; translate: 0 -50%; }
.lb__next { right: 1rem; top: 50%; translate: 0 -50%; }

/* ---------- Mobile dock ---------- */
.dock {
  position: fixed; left: 0.75rem; right: 0.75rem; bottom: calc(0.75rem + env(safe-area-inset-bottom)); z-index: 45;
  display: none; gap: 0.5rem; padding: 0.45rem; border-radius: var(--r-pill);
  background: #ffffff; box-shadow: 0 18px 36px -14px rgb(90 40 50 / 0.42);
  transform: translateY(calc(100% + 2rem)); transition: transform 240ms var(--ease-out);
}
.dock.is-visible { transform: none; transition: transform 420ms var(--ease-drawer); }
.dock .stick { flex: 1; --btn-bg: #865860; --btn-fg: #ffffff; }
.dock__call { display: grid; place-items: center; flex: none; width: 3.4rem; height: 3.4rem; border-radius: 50%; background: #3b1d24; color: #fff7f8; transition: transform 160ms var(--ease-out); }
.dock__call:active { transform: scale(0.95); }
.dock__call .icon { width: 1.3rem; height: 1.3rem; }

/* ---------- Legal page ---------- */
.legal-hero { position: relative; overflow: clip; padding: calc(var(--header-h) + clamp(2.5rem, 6vw, 5rem)) 0 clamp(2.5rem, 5vw, 4rem); }
.legal-hero h1 { font-size: clamp(2.6rem, 1.2rem + 4.4vw, 5.2rem); font-weight: 640; line-height: 0.96; letter-spacing: -0.04em; max-width: 14ch; position: relative; z-index: 2; }
.legal-hero p { position: relative; z-index: 2; }
.legal { padding-block: 0 var(--section-y); }
.legal__grid { display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: clamp(2rem, 5vw, 5rem); align-items: start; }
.legal__toc { position: sticky; top: calc(var(--header-h) + 1.5rem); display: grid; gap: 0.35rem; margin: 0; padding: 0; list-style: none; }
.legal__toc a { display: block; padding: 0.55rem 0.95rem; border-radius: var(--r-pill); text-decoration: none; font-weight: 560; font-size: 0.9375rem; transition: background-color 200ms ease; }
@media (hover: hover) and (pointer: fine) {
  .legal__toc a:hover { background: color-mix(in srgb, var(--fg) 8%, transparent); }
}
.legal__body { max-width: 46rem; }
.legal__meta { margin-top: 1rem; color: var(--fg-2); font-size: 0.9375rem; }
.legal__intro { margin-top: 1.5rem; font-size: 1.1875rem; line-height: 1.55; max-width: 46ch; }
.legal__note { margin-top: 0; padding: 1.3rem 1.5rem; border-radius: var(--r-surface); background: var(--surface); }
.legal__note p:first-child { margin-top: 0; }
.legal__section { margin-top: clamp(3rem, 6vw, 4.5rem); scroll-margin-top: calc(var(--header-h) + 1rem); }
.legal__section > h2 { font-size: clamp(1.9rem, 1.3rem + 1.6vw, 2.75rem); font-weight: 640; letter-spacing: -0.035em; line-height: 1.05; }
.legal__section h3 { margin-top: 2rem; font-size: 1.3rem; font-weight: 640; letter-spacing: -0.015em; }
.legal__section p { margin-top: 0.85rem; }
.legal__section ul,
.legal__section ol { margin: 0.85rem 0 0; padding-left: 1.25rem; }
.legal__section li { margin-top: 0.5rem; padding-left: 0.25rem; }
.legal__section li::marker { color: var(--link); }
.legal__section .text-link { color: var(--link); }

/* ---------- 404 ---------- */
.lost { position: relative; overflow: clip; min-height: 100svh; display: grid; align-content: center; gap: 1.25rem; padding: calc(var(--header-h) + 3rem) 0 4rem; }
.lost .wrap { position: relative; z-index: 2; display: grid; gap: 1.25rem; }
.lost h1 { font-size: clamp(2.6rem, 1.2rem + 4.4vw, 5.2rem); font-weight: 640; line-height: 0.96; letter-spacing: -0.04em; max-width: 12ch; }
.lost p { max-width: 38ch; color: var(--fg-2); font-size: 1.1875rem; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .nav__list { gap: 1.4rem; }
  .brand__name { display: none; }
  .hero__copy { max-width: 40rem; }
  .hero__shot--accent { left: -18%; }
}

@media (max-width: 860px) {
  :root { --header-h: 4rem; }
  .brand__mark { height: 2.25rem; }
  .brand__name { display: inline; font-size: 0.6875rem; letter-spacing: 0.28em; }
  .menu-btn { display: inline-flex; }
  .nav {
    position: fixed; top: var(--header-h); left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 1.25rem;
    padding: 0.5rem var(--gutter) 1.75rem;
    background: var(--bg); color: var(--fg);
    box-shadow: 0 1px 0 var(--line), 0 28px 40px -26px rgb(90 40 50 / 0.42);
    transform: translateY(-0.75rem); opacity: 0; visibility: hidden;
    transition: transform 200ms var(--ease-out), opacity 160ms ease, visibility 0s linear 200ms;
  }
  .nav.is-open { transform: none; opacity: 1; visibility: visible; transition: transform 340ms var(--ease-drawer), opacity 200ms ease, visibility 0s; }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__list a { display: block; padding: 0.8rem 0; font-size: 1.5rem; font-weight: 600; letter-spacing: -0.02em; }
  .nav__list a::after { display: none; }
  .nav__list li + li { border-top: 1px solid var(--line); }
  .nav__extra { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.25rem; }
  .nav .stick { align-self: flex-start; }
  .dock { display: flex; }
  body.has-dock .footer { padding-bottom: calc(6.5rem + env(safe-area-inset-bottom)); }

  .hero { display: block; min-height: 0; }
  .hero__inner { display: block; }
  .hero__copy { padding: calc(var(--header-h) + 2.25rem) 0 0; }
  .hero__media { width: min(76%, 26rem); margin: 2.75rem 0 4rem auto; }
  .hero__shot--accent { left: -30%; }

  .about__photo { grid-column: 1 / span 5; grid-row: auto; }
  .about__text { grid-column: 6 / -1; padding-top: 0; }
  .about__quotes { grid-column: 1 / -1; }
  .visit__main { grid-column: 1 / span 7; }
  .visit__photo { grid-column: 8 / -1; margin-top: 0; }
  .footer__grid { grid-template-columns: auto minmax(0, 1fr); }
  .footer__links { grid-column: 2; }
  .legal__grid { grid-template-columns: 1fr; }
  .legal__toc { position: static; display: flex; flex-wrap: wrap; gap: 0.4rem; }
  .legal__toc a { background: var(--surface); }
}

@media (max-width: 760px) {
  .hero h1 { font-size: clamp(2.6rem, 1.25rem + 6vw, 4rem); }
  .hero__actions .stick { flex: 1 1 100%; }
  .hero__media { width: 76%; margin: 2.75rem 0 4rem auto; }
  .hero__shot--accent { left: -32%; bottom: -12%; width: 52%; border-width: 0.35rem; border-radius: calc(var(--r-photo) + 0.35rem); }
  .ticker { padding-block: 0.8rem; }

  .work__head { grid-template-columns: 1fr; }
  .grid-wrap { margin-top: 1.5rem; }
  .grid { --cols: 2; --gap: 0.6rem; grid-auto-rows: 58vw; grid-auto-rows: calc((100cqw - var(--gap)) / 2 * 1.22); }

  .prices__top { align-items: start; }
  .tabs { width: 100%; }
  .tabs__btn { min-width: 0; }
  .panel__cols { grid-template-columns: 1fr; }
  .prices__foot { padding: 1.1rem; }
  .prices__foot .stick { flex: 1 1 100%; }

  .about__photo { grid-column: 1 / -1; max-width: 26rem; }
  .about__text { grid-column: 1 / -1; }
  .quote__row { grid-template-columns: 1fr; }

  .visit__actions .stick { flex: 1 1 100%; }
  .visit__main { grid-column: 1 / -1; }
  .visit__photo { grid-column: 1 / -1; margin: 0; max-width: 30rem; }

  .footer__grid { grid-template-columns: 1fr; }
  .lockup { justify-items: start; }
  .lockup span { margin-right: 0; }
  .footer__links { grid-column: auto; }

  .lb__prev, .lb__next { top: auto; bottom: 1rem; translate: none; }
  .lb__figure { padding: 4.5rem 0.75rem 5.5rem; }
}

@media (prefers-reduced-motion: reduce) {
  .stick, .tile__link img, .hero__shot img, .dock, .dock.is-visible, .nav, .nav.is-open, .tabs__ind, .menu-btn, .lb__btn, .header {
    transition-duration: 0.01ms !important;
  }
}

@media print {
  .header, .dock, .hero__media, .ticker, .lb { display: none !important; }
}
