/* Gabinet Lipowa — a sunlit, warm, bright clinic.
   Layout: monumental type and one tall capsule photo under drifting leaf shadows. */
:root {
  --cream: #FBF6EE;      /* canvas */
  --sand: #F2E9DB;       /* secondary surface */
  --daylight: #FCF0CC;   /* light pool, warm bands */
  --mint: #DCEEE4;       /* fresh wash, the clinical note */
  --sage: #2F6A55;       /* the one accent: links, small marks */
  --ink: #27221E;        /* text, dark pills */
  --ink-soft: #5A5149;   /* secondary text */
  --line: #DCD2C4;       /* hairlines */

  --f-display: "Bricolage Grotesque", "Instrument Sans", system-ui, sans-serif;
  --f-body: "Instrument Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "Azeret Mono", ui-monospace, Menlo, monospace;

  --gutter: clamp(16px, 3.4vw, 48px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--ink); font: 400 1rem/1.55 var(--f-body); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
.skip { position: absolute; left: -9999px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { left: 16px; top: 16px; z-index: 50; background: var(--ink); color: var(--cream); padding: 10px 14px; border-radius: 10px; }
:focus-visible { outline: 2px solid var(--sage); outline-offset: 3px; }

/* ------------------------------------------------------------------ Pills */
.pill {
  display: inline-flex; align-items: center; gap: 12px; height: 44px; padding: 0 20px;
  border-radius: 999px; font: 500 0.9375rem/1 var(--f-body); text-decoration: none; white-space: nowrap;
  transition: background-color 200ms ease, color 200ms ease, transform 300ms var(--ease);
}
.pill:active { transform: scale(0.97); }
.pill-lg { height: 54px; padding: 0 26px; font-size: 1rem; }
.pill-ink { background: var(--ink); color: var(--cream); padding-right: 8px; }
.pill-ink.pill-lg { padding-right: 9px; }
.pill-line { border: 1px solid var(--ink); }
.pill-line:hover { background: var(--ink); color: var(--cream); }
.pill-arrow { width: 32px; height: 32px; border-radius: 50%; background: var(--cream); position: relative; flex: none; transition: transform 300ms var(--ease); }
.pill-lg .pill-arrow { width: 38px; height: 38px; }
.pill-arrow::before { content: ""; position: absolute; inset: 0; margin: auto; width: 12px; height: 12px; border-top: 2px solid var(--ink); border-right: 2px solid var(--ink); transform: translateX(-2px) rotate(45deg); }
.pill-ink:hover .pill-arrow { transform: translateX(3px); }

/* ------------------------------------------------------------------ Nav */
.nav {
  position: fixed; z-index: 30; left: 0; right: 0; top: 0;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 18px var(--gutter);
  border: 1px solid transparent; border-radius: 0;
  transition: left 500ms var(--ease), right 500ms var(--ease), top 500ms var(--ease), padding 500ms var(--ease),
    border-radius 500ms var(--ease), background-color 400ms ease, border-color 400ms ease, box-shadow 400ms ease;
}
/* After the hero top scrolls away, the bar floats as a sand capsule so it reads as separate from the page. */
.nav.is-stuck {
  top: 12px; left: var(--gutter); right: var(--gutter);
  padding: 8px 8px 8px 22px; border-radius: 999px;
  background: rgba(240, 229, 212, 0.86); border-color: rgba(39, 34, 30, 0.08);
  backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3);
  box-shadow: 0 10px 30px -12px rgba(39, 34, 30, 0.22);
}
@media (max-width: 900px) { .nav.is-stuck { top: 8px; left: 10px; right: 10px; padding-left: 16px; } }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 560 1.375rem/1 var(--f-display); letter-spacing: -0.02em; }
.logo svg { width: 26px; height: 26px; fill: var(--sage); }
.nav nav { display: flex; gap: 28px; font-weight: 500; font-size: 0.9375rem; }
.nav nav a { text-decoration: none; position: relative; }
.nav nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: left; transition: transform 300ms var(--ease); }
.nav nav a:hover::after { transform: scaleX(1); }
@media (max-width: 900px) { .nav nav { display: none; } }

/* ------------------------------------------------------------------ Hero */
.hero {
  position: relative; overflow: hidden; isolation: isolate;
  min-height: max(720px, 100svh);
  padding: 96px var(--gutter) 40px;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: 1fr auto auto;
  column-gap: 20px;
  background: linear-gradient(180deg, var(--cream) 0%, #FAF2E4 100%);
}
/* Warm daylight pooling behind the capsule. */
.hero-light {
  position: absolute; z-index: -1; right: 4%; top: 6%; width: 62vw; height: 80%;
  background: radial-gradient(closest-side, var(--daylight), rgba(252, 240, 204, 0));
  filter: blur(20px);
}

.hero-meta {
  grid-column: 1 / -1; grid-row: 3; margin-top: 28px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  border-top: 1px solid var(--line); padding-top: 12px;
  font-size: 0.8125rem; font-weight: 500; color: var(--ink-soft); letter-spacing: 0.01em;
}

.hero-title {
  grid-column: 1 / -1; grid-row: 1; align-self: center; z-index: 3;
  margin: 0; font-family: var(--f-display); font-weight: 500; color: var(--ink);
  pointer-events: none;
}
.hero-title .line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.hero-title .rise { display: inline-block; }
.hero-title .big { font-size: clamp(5.5rem, 17.5vw, 19rem); line-height: 0.86; letter-spacing: -0.055em; font-variation-settings: "wdth" 88, "opsz" 96; margin-left: -0.04em; }
.hero-title .small { font-size: clamp(2rem, 4.6vw, 4.6rem); line-height: 1; letter-spacing: -0.035em; margin-top: 0.12em; font-variation-settings: "wdth" 92, "opsz" 72; }

.hero-capsule {
  grid-column: 8 / 12; grid-row: 1 / 3; align-self: center; z-index: 2;
  position: relative; margin: 40px 0 0; aspect-ratio: 11 / 17; max-height: calc(100svh - 140px); justify-self: center; width: 100%;
  border-radius: 999px; overflow: hidden; background: var(--sand);
  clip-path: inset(0 round 999px);
}
.hero-capsule img { width: 100%; height: 100%; object-fit: cover; object-position: 40% 60%; }
.hero-tag {
  position: absolute; left: 50%; bottom: 9%; transform: translateX(-50%);
  display: flex; align-items: center; gap: 14px; white-space: nowrap;
  padding: 8px 8px 8px 18px; border-radius: 999px;
  background: rgba(251, 246, 238, 0.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  font-size: 0.8125rem; font-weight: 500;
}
.hero-tag b { font: 500 0.9375rem/1 var(--f-mono); letter-spacing: -0.04em; background: var(--ink); color: var(--cream); padding: 9px 12px; border-radius: 999px; }

.hero-foot { grid-column: 1 / 7; grid-row: 2; z-index: 3; display: grid; gap: 22px; padding-bottom: 8px; }
.hero-lead { margin: 0; max-width: 34ch; font-size: clamp(1.0625rem, 1.3vw, 1.25rem); line-height: 1.45; color: var(--ink-soft); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 10px; }

/* Leaf shadows: a multiply layer over everything, drifting like light through a window. */
.hero-shadows {
  position: absolute; z-index: 4; inset: -12% -8%; pointer-events: none;
  background: url(img/shadows.webp) right 10% top 30% / 70% auto no-repeat;
  mix-blend-mode: multiply; opacity: 0.32; filter: blur(2px);
  transform-origin: 70% 30%;
}

@media (max-width: 900px) {
  .hero { padding-top: 92px; grid-template-rows: auto auto auto auto; row-gap: 24px; min-height: auto; }
  .hero-title { grid-row: 1; }
  .hero-meta { grid-row: 4; margin-top: 8px; }
  .hero-title .big { font-size: 23vw; }
  .hero-title .small { font-size: 8.4vw; }
  .hero-capsule { grid-column: 1 / -1; grid-row: 2; margin: 0; width: min(100%, 420px); max-height: none; aspect-ratio: 4 / 5; border-radius: 220px 220px 32px 32px; clip-path: inset(0 round 220px 220px 32px 32px); }
  .hero-foot { grid-column: 1 / -1; grid-row: 3; }
  .hero-shadows { background-size: 140% auto; background-position: right -20% top 20%; opacity: 0.26; }
}

/* ------------------------------------------------------------------ Motion
   Entrance once, then only the light moves. Everything is static with reduced motion. */
@media (prefers-reduced-motion: no-preference) {
  .js .hero-title .rise { transform: translateY(105%); }
  .js .hero-capsule img { animation: capsule-settle 2200ms var(--ease) both; }
  .js .hero-meta, .js .hero-foot, .js .nav, .js .hero-tag { opacity: 0; }
  .js .hero-shadows { opacity: 0; }

  .is-ready .hero-title .rise { transform: none; transition: transform 1100ms var(--ease); }
  .is-ready .hero-title .small .rise { transition-delay: 120ms; }

  .is-ready .hero-meta, .is-ready .nav { opacity: 1; transition: opacity 800ms ease 300ms; }
  .is-ready .hero-foot { opacity: 1; transition: opacity 900ms ease 650ms; }
  .is-ready .hero-tag { opacity: 1; transition: opacity 700ms ease 1200ms; }
  .is-ready .hero-shadows { opacity: 0.32; transition: opacity 2400ms ease 600ms; animation: drift 22s ease-in-out 600ms infinite alternate; }

  @media (max-width: 900px) {
    .is-ready .hero-shadows { opacity: 0.26; }
  }

  /* Scroll: the capsule rises a little slower than the page, the light keeps sliding. */
  @supports (animation-timeline: view()) {
    .hero-capsule { animation: settle linear both; animation-timeline: view(); animation-range: exit 0% exit 100%; }
    .hero-title .big { animation: slide linear both; animation-timeline: view(); animation-range: exit 0% exit 100%; }
  }
}
@keyframes capsule-settle { from { transform: scale(1.14); } to { transform: none; } }
@keyframes drift {
  0% { transform: translate3d(0, 0, 0) rotate(0deg) scale(1); }
  50% { transform: translate3d(-2.5%, 1.5%, 0) rotate(-1.2deg) scale(1.04); }
  100% { transform: translate3d(1.5%, -1%, 0) rotate(0.8deg) scale(1.02); }
}
@keyframes settle { to { transform: translateY(10%) scale(0.97); } }
@keyframes slide { to { transform: translateX(-4%); } }

/* ------------------------------------------------------------------ Shared section type */
.eyebrow { margin: 0 0 18px; font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.04em; color: var(--sage); }
.h2 { margin: 0; font: 500 clamp(2.5rem, 5.2vw, 5rem)/0.98 var(--f-display); letter-spacing: -0.045em; font-variation-settings: "wdth" 90, "opsz" 72; text-wrap: balance; }
.lead { margin: 22px 0 0; max-width: 40ch; font-size: 1.0625rem; line-height: 1.55; color: var(--ink-soft); }

/* ------------------------------------------------------------------ Results */
.cases {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 20px; row-gap: 40px; align-items: center;
  padding: clamp(80px, 11vw, 160px) var(--gutter);
  background: linear-gradient(180deg, #FAF2E4 0%, var(--sand) 100%);
}
.cases-copy { grid-column: 1 / 5; grid-row: 1; align-self: end; }
.cases-meta { grid-column: 1 / 5; grid-row: 2; align-self: start; }
.ba { grid-column: 5 / -1; grid-row: 1 / 3; }
.cases { row-gap: 0; }
@media (max-width: 900px) {
  .cases { row-gap: 28px; }
  .cases-copy, .cases-meta, .ba { grid-column: 1 / -1; grid-row: auto; }
  .ba { order: 2; } .cases-meta { order: 3; }
  .cases-meta .case-facts { margin-top: 0; }
}

.tabs { display: inline-flex; flex-wrap: wrap; gap: 6px; margin-top: 34px; padding: 5px; border-radius: 999px; background: rgba(39, 34, 30, 0.06); }
.tabs button {
  border: 0; background: transparent; color: var(--ink); cursor: pointer;
  min-height: 42px; padding: 0 18px; border-radius: 999px; font: 500 0.9375rem/1 var(--f-body);
  transition: background-color 250ms ease, color 250ms ease;
}
.tabs button[aria-selected="true"] { background: var(--ink); color: var(--cream); }
.tabs button:not([aria-selected="true"]):hover { background: rgba(39, 34, 30, 0.08); }

.case-facts { margin: 30px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.case-facts div { padding: 16px 0; border-bottom: 1px solid var(--line); }
.case-facts div:nth-child(odd) { padding-right: 16px; }
.case-facts dt { font-size: 0.8125rem; color: var(--ink-soft); }
.case-facts dd { margin: 4px 0 0; font-weight: 500; transition: opacity 300ms ease; }
.case-facts dd[data-f="visits"], .case-facts dd[data-f="price"] { font: 500 1.0625rem/1.3 var(--f-mono); letter-spacing: -0.04em; }
.case-facts.is-swapping dd { opacity: 0; }
.note { margin: 22px 0 0; max-width: 46ch; font-size: 0.8125rem; line-height: 1.5; color: var(--ink-soft); }

/* The slider: "after" is the base, "before" is clipped to the left of the divider. */
.ba {
  position: relative; overflow: hidden; border-radius: 32px; aspect-ratio: 3 / 2; background: var(--cream);
  touch-action: pan-y; user-select: none; -webkit-user-select: none; cursor: ew-resize;
  --fx: 53%; --fy: 40%; --zoom: 1.15;
}
.ba img { pointer-events: none; -webkit-user-drag: none; user-select: none; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(var(--zoom)); transform-origin: var(--fx) var(--fy); object-position: var(--fx) var(--fy); transition: opacity 450ms ease; }
.ba-before-wrap { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.ba.is-swapping img { opacity: 0; }
.ba-line { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: var(--cream); pointer-events: none; }
/* A soft band of light rides along the divider. */
.ba-line::before { content: ""; position: absolute; top: 0; bottom: 0; left: -60px; width: 120px; background: radial-gradient(ellipse 50% 60% at 50% 50%, rgba(255, 249, 232, 0.55), rgba(255, 249, 232, 0)); mix-blend-mode: screen; }
.ba-knob {
  position: absolute; top: 50%; left: 50%; width: 56px; height: 56px; transform: translate(-50%, -50%);
  border-radius: 50%; background: var(--cream); box-shadow: 0 8px 24px -8px rgba(39, 34, 30, 0.35);
  transition: transform 300ms var(--ease);
}
.ba-knob::before, .ba-knob::after { content: ""; position: absolute; top: 50%; width: 9px; height: 9px; border-top: 2px solid var(--ink); border-left: 2px solid var(--ink); }
.ba-knob::before { left: 15px; transform: translateY(-50%) rotate(-45deg); }
.ba-knob::after { right: 15px; transform: translateY(-50%) rotate(135deg); }
.ba.is-dragging .ba-knob { transform: translate(-50%, -50%) scale(0.92); }
.ba-tag { position: absolute; top: 20px; padding: 8px 14px; border-radius: 999px; font-size: 0.8125rem; font-weight: 600; background: rgba(251, 246, 238, 0.85); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); pointer-events: none; transition: opacity 300ms ease; }
.ba-tag-before { left: 20px; }
.ba-tag-after { right: 20px; }
.ba-range { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; margin: 0; pointer-events: none; }
.ba:has(.ba-range:focus-visible) { outline: 2px solid var(--sage); outline-offset: 4px; }
.ba-range:focus-visible + * { outline: none; }
@media (max-width: 900px) { .ba { aspect-ratio: 4 / 3.4; border-radius: 24px; --zoom: 1.35; } .ba-knob { width: 48px; height: 48px; } }

/* ------------------------------------------------------------------ Treatments and prices
   A daylight band: the warmest surface on the page, with the leaf shadows passing again. */
.care {
  position: relative; overflow: hidden; isolation: isolate;
  padding: clamp(80px, 11vw, 160px) var(--gutter);
  background: linear-gradient(180deg, var(--sand) 0%, var(--daylight) 22%, #FDF4DA 100%);
}
.care-shadows {
  position: absolute; z-index: -1; left: -10%; top: -10%; width: 60%; height: 90%; pointer-events: none;
  background: url(img/shadows.webp) left top / cover no-repeat; transform: scaleX(-1) rotate(8deg);
  mix-blend-mode: multiply; opacity: 0.07; filter: blur(6px);
}
.care-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px; align-items: end; }
.metric { justify-self: end; text-align: right; }
.metric-num { margin: 0; display: flex; align-items: flex-start; justify-content: flex-end; gap: 0.06em; font: 500 clamp(6rem, 15vw, 13.5rem)/0.82 var(--f-mono); letter-spacing: -0.09em; color: var(--ink); }
.metric-digits { display: inline-flex; overflow: hidden; padding-bottom: 0.04em; }
.metric-digits span { display: inline-block; }
.metric-unit { font: 500 0.32em/1 var(--f-display); letter-spacing: -0.03em; margin-top: 0.12em; margin-left: 0.12em; }
.metric-cap { margin: 18px 0 0 auto; max-width: 30ch; font-size: 0.9375rem; color: var(--ink-soft); }

.care-body { margin-top: clamp(56px, 7vw, 96px); display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.tabs-wide { margin-top: 0; }
.price-head { display: grid; grid-template-columns: minmax(0, 1fr) 120px 140px; gap: 20px; margin-top: 36px; padding-bottom: 10px; border-bottom: 1px solid var(--ink); font-size: 0.75rem; font-weight: 600; letter-spacing: 0.04em; color: var(--ink-soft); }
.price-head span:nth-child(n+2) { text-align: right; }
.price-list { list-style: none; margin: 0; padding: 0; }
.price-row {
  display: grid; grid-template-columns: minmax(0, 1fr) 120px 140px; gap: 20px; align-items: baseline;
  padding: 22px 12px; margin: 0 -12px; border-bottom: 1px solid var(--line); border-radius: 14px;
  transition: background-color 250ms ease;
}
.price-row:hover { background: rgba(255, 255, 255, 0.55); }
.price-row h3 { margin: 0; font: 500 1.25rem/1.25 var(--f-display); letter-spacing: -0.015em; }
.price-row p { margin: 4px 0 0; font-size: 0.9375rem; color: var(--ink-soft); }
.price-time { text-align: right; font-size: 0.875rem; color: var(--ink-soft); }
.price-val { text-align: right; font: 500 1.25rem/1 var(--f-mono); letter-spacing: -0.04em; white-space: nowrap; }
.price-val small { font: 500 0.875rem/1 var(--f-body); letter-spacing: 0; color: var(--ink-soft); }
.price-val small:first-child { margin-right: 6px; }
.price-val small:last-child { margin-left: 5px; }
.price-val.is-text { font: 500 1rem/1.2 var(--f-body); color: var(--sage); }
.care-note { margin: 22px 0 0; font-size: 0.875rem; color: var(--ink-soft); }

.care-photo { position: sticky; top: 110px; margin: 0; aspect-ratio: 3 / 4; border-radius: 999px 999px 28px 28px; overflow: hidden; background: var(--sand); }
.care-photo img { width: 100%; height: 100%; object-fit: cover; transition: opacity 500ms ease, transform 900ms var(--ease); }
.care-photo.is-swapping img { opacity: 0; transform: scale(1.04); }

@media (max-width: 900px) {
  .care-head, .care-body { grid-template-columns: minmax(0, 1fr); }
  .metric { justify-self: start; text-align: left; }
  .metric-num { justify-content: flex-start; font-size: 34vw; }
  .metric-cap { margin-left: 0; }
  .care-photo { position: relative; top: 0; order: -1; aspect-ratio: 4 / 3; border-radius: 160px 160px 24px 24px; }
  .tabs-wide { display: flex; flex-wrap: nowrap; overflow-x: auto; max-width: 100%; scrollbar-width: none; }
  .tabs-wide::-webkit-scrollbar { display: none; }
  .tabs-wide button { flex: none; }
  .price-head { display: none; }
  .price-row { grid-template-columns: minmax(0, 1fr) auto; row-gap: 6px; padding: 18px 0; margin: 0; border-radius: 0; }
  .price-row > div { grid-column: 1 / -1; }
  .price-time { text-align: left; }
}

/* ------------------------------------------------------------------ Reveal on scroll (once) */
@media (prefers-reduced-motion: no-preference) {
  .js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 900ms ease, transform 1100ms var(--ease); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  .js .metric .metric-digits span { transform: translateY(105%); transition: transform 1100ms var(--ease); }
  .js .metric.is-in .metric-digits span { transform: none; }
  .js .metric.is-in .metric-digits span:nth-child(2) { transition-delay: 90ms; }
  .js .metric.is-in .metric-digits span:nth-child(3) { transition-delay: 180ms; }
  .price-panel.is-entering .price-row { animation: row-in 600ms var(--ease) both; }
  .price-panel.is-entering .price-row:nth-child(2) { animation-delay: 50ms; }
  .price-panel.is-entering .price-row:nth-child(3) { animation-delay: 100ms; }
  .price-panel.is-entering .price-row:nth-child(4) { animation-delay: 150ms; }
}
@keyframes row-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ------------------------------------------------------------------ First visit
   A mint band. The ruler is 30 minutes wide; each step occupies its real share of it. */
.visit {
  padding: clamp(80px, 11vw, 160px) var(--gutter);
  background: linear-gradient(180deg, #FDF4DA 0%, var(--mint) 18%, #E6F3EB 100%);
}
.visit-head { max-width: 760px; }
.visit-track { --total: 30; --run: 3200ms; margin-top: clamp(56px, 7vw, 96px); }
.visit-ruler { position: relative; height: 44px; border-bottom: 1px solid rgba(39, 34, 30, 0.25); }
.visit-fill { position: absolute; left: 0; right: 0; bottom: -2px; height: 3px; background: var(--sage); border-radius: 3px; transform-origin: left; transform: scaleX(0); }
.visit-dot { position: absolute; bottom: -9px; left: 0; width: 17px; height: 17px; margin-left: -8px; border-radius: 50%; background: var(--sage); box-shadow: 0 0 0 6px rgba(47, 106, 85, 0.16); }
.visit-tick { position: absolute; bottom: 12px; left: calc(var(--at) / var(--total) * 100%); transform: translateX(-50%); font: 500 0.8125rem/1 var(--f-mono); letter-spacing: -0.04em; color: var(--ink-soft); }
.visit-tick:first-of-type { transform: none; }
.visit-tick.is-end { transform: translateX(-100%); }
.visit-tick::after { content: ""; position: absolute; left: 50%; bottom: -13px; width: 1px; height: 8px; background: rgba(39, 34, 30, 0.35); }
.visit-tick:first-of-type::after { left: 0; }
.visit-tick.is-end::after { left: auto; right: 0; }

.visit-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 5fr 10fr 5fr 10fr; }
.visit-step { padding: 28px 24px 0 0; min-width: 0; border-left: 1px solid rgba(39, 34, 30, 0.12); padding-left: 18px; }
.visit-step:first-child { border-left: 0; padding-left: 0; }
.visit-min { display: block; font: 500 0.8125rem/1 var(--f-mono); letter-spacing: -0.04em; color: var(--ink-soft); }
.visit-step h3 { display: flex; align-items: center; gap: 10px; margin: 14px 0 0; font: 500 1.5rem/1.15 var(--f-display); letter-spacing: -0.02em; }
.visit-n { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 1px solid rgba(39, 34, 30, 0.3); font: 500 0.8125rem/1 var(--f-mono); transition: background-color 400ms ease, color 400ms ease, border-color 400ms ease; }
.visit-step p { margin: 10px 0 0; font-size: 0.9375rem; line-height: 1.5; color: var(--ink-soft); max-width: 34ch; }

.visit-perks { list-style: none; margin: clamp(48px, 6vw, 80px) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.visit-perks li { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 18px 0 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.6); font-size: 0.9375rem; font-weight: 500; }
.visit-perks li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--sage); }

/* The run: fill and dot travel 0 → 30 min; each step lights up when the dot reaches its start. */
.visit-track.is-in .visit-fill { transform: scaleX(1); transition: transform var(--run) linear 300ms; }
.visit-track.is-in .visit-dot { left: 100%; transition: left var(--run) linear 300ms; }
.visit-track.is-in .visit-n { background: var(--sage); border-color: var(--sage); color: var(--cream); transition-delay: calc(300ms + var(--start) / var(--total) * var(--run)); }
.js .visit-track:not(.is-in) .visit-n { background: transparent; }
@media (prefers-reduced-motion: reduce) {
  .visit-fill { transform: scaleX(1); } .visit-dot { left: 100%; }
  .visit-n { background: var(--sage); border-color: var(--sage); color: var(--cream); }
}

@media (max-width: 900px) {
  .visit-track { position: relative; padding-left: 40px; }
  .visit-ruler { position: absolute; left: 8px; top: 6px; bottom: 6px; width: 3px; height: auto; border: 0; background: rgba(39, 34, 30, 0.15); border-radius: 3px; }
  .visit-fill { left: 0; right: auto; top: 0; bottom: 0; width: 3px; height: auto; transform-origin: top; transform: scaleY(0); }
  .visit-track.is-in .visit-fill { transform: scaleY(1); }
  .visit-dot { left: -7px; top: 0; bottom: auto; margin: 0; }
  .visit-track.is-in .visit-dot { left: -7px; top: calc(100% - 17px); transition: top var(--run) linear 300ms; }
  .visit-tick { display: none; }
  .visit-steps { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .visit-step, .visit-step:first-child { border: 0; padding: 0; }
  .visit-step h3 { margin-top: 8px; }
  .visit-track.is-in .visit-n { transition-delay: calc(300ms + var(--i) / 4 * var(--run)); }
  @media (prefers-reduced-motion: reduce) { .visit-fill { transform: scaleY(1); } .visit-dot { top: calc(100% - 17px); } }
}

/* ------------------------------------------------------------------ Team
   Back to the cream canvas. Two arch portraits; the second sits lower, like a magazine spread. */
.team {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 20px; row-gap: 48px; align-items: start;
  padding: clamp(80px, 11vw, 160px) var(--gutter);
  background: linear-gradient(180deg, #E6F3EB 0%, var(--cream) 14%);
}
.team-copy { grid-column: 1 / 5; position: sticky; top: 120px; }
.team-people { grid-column: 6 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.person:nth-child(2) { margin-top: clamp(60px, 9vw, 140px); }

.team-count { list-style: none; margin: 34px 0 0; padding: 0; display: flex; gap: 28px; }
.team-count li { display: grid; gap: 2px; }
.team-count b { font: 500 2.75rem/1 var(--f-mono); letter-spacing: -0.06em; }
.team-count span { font-size: 0.875rem; color: var(--ink-soft); }

.person-photo { position: relative; margin: 0; aspect-ratio: 2 / 3; border-radius: 999px 999px 24px 24px; overflow: hidden; background: var(--sand); }
.person-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; transition: transform 1200ms var(--ease); }
.person:hover .person-photo img { transform: scale(1.04); }
/* The quote rises over the lower part of the photo on hover; on touch screens it is always shown. */
.person-quote {
  position: absolute; left: 12px; right: 12px; bottom: 12px; margin: 0; padding: 18px 20px;
  border-radius: 18px; background: rgba(251, 246, 238, 0.86); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  font: 500 1.0625rem/1.35 var(--f-display); letter-spacing: -0.01em;
  transform: translateY(calc(100% + 16px)); transition: transform 600ms var(--ease);
}
.person-quote p { margin: 0; }
.person:hover .person-quote, .person:focus-within .person-quote { transform: none; }
@media (hover: none) { .person-quote { transform: none; } }

.person-body { padding: 22px 4px 0; }
.person-body h3 { margin: 0; font: 500 1.625rem/1.1 var(--f-display); letter-spacing: -0.025em; }
.person-body h3 small { display: block; margin-bottom: 4px; font: 500 0.8125rem/1 var(--f-body); letter-spacing: 0.02em; color: var(--ink-soft); }
.person-role { margin: 8px 0 0; color: var(--ink-soft); }
.person-tags { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.person-tags li { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); font-size: 0.8125rem; font-weight: 500; }
.person-facts { margin: 18px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.person-facts div { padding-top: 12px; }
.person-facts dt { font-size: 0.75rem; color: var(--ink-soft); }
.person-facts dd { margin: 2px 0 0; font: 500 0.9375rem/1.3 var(--f-mono); letter-spacing: -0.03em; }

/* Arches rise in, one after the other. */
@media (prefers-reduced-motion: no-preference) {
  .js .person[data-reveal] { opacity: 1; transform: none; }
  .js .person[data-reveal] .person-photo { clip-path: inset(100% 0 0 0 round 999px 999px 24px 24px); transition: clip-path 1300ms var(--ease) calc(var(--i) * 180ms); }
  .js .person[data-reveal] .person-photo img { transform: scale(1.15); transition: transform 1600ms var(--ease) calc(var(--i) * 180ms); }
  .js .person[data-reveal] .person-body { opacity: 0; transform: translateY(16px); transition: opacity 800ms ease calc(400ms + var(--i) * 180ms), transform 1000ms var(--ease) calc(400ms + var(--i) * 180ms); }
  .js .person.is-in .person-photo { clip-path: inset(0 round 999px 999px 24px 24px); }
  .js .person.is-in .person-photo img { transform: none; }
  .js .person.is-in .person-body { opacity: 1; transform: none; }
  .js .person.is-in:hover .person-photo img { transform: scale(1.04); transition-delay: 0ms; }
}

@media (max-width: 900px) {
  .team-copy { grid-column: 1 / -1; position: static; }
  .team-people { grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr); gap: 48px; }
  .person:nth-child(2) { margin-top: 0; }
  .person-photo { aspect-ratio: 4 / 5; }
}
.person-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; font-weight: 500; text-decoration: none; color: var(--sage); }
.person-link::after { content: ""; width: 7px; height: 7px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg); transition: transform 300ms var(--ease); }
.person-link:hover::after { transform: translateX(3px) rotate(45deg); }
.team .h2 { font-size: clamp(2.5rem, 3.9vw, 3.75rem); }

/* ------------------------------------------------------------------ Booking and contact
   Sand surface; flat underline fields like the reference, chips for the quick choices. */
.book {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 20px; row-gap: 48px; align-items: start;
  padding: clamp(80px, 11vw, 160px) var(--gutter);
  background: linear-gradient(180deg, var(--cream) 0%, var(--sand) 20%);
}
.book-copy { grid-column: 1 / 6; }
.book-form { grid-column: 7 / -1; background: var(--cream); border-radius: 28px; padding: clamp(24px, 3.4vw, 48px); display: grid; gap: 26px; position: relative; }
@media (max-width: 900px) { .book-copy, .book-form { grid-column: 1 / -1; } }

.book-info { margin-top: 40px; }
.open-now { display: inline-flex; align-items: center; gap: 10px; margin: 0; padding: 8px 14px; border-radius: 999px; background: var(--cream); font-size: 0.875rem; font-weight: 500; }
.open-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--strong, #9A8F83); }
.open-now.is-open .open-dot { background: #3E9A6F; box-shadow: 0 0 0 4px rgba(62, 154, 111, 0.18); }
.hours { margin: 20px 0 0; border-top: 1px solid var(--line); }
.hours div { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--line); }
.hours dt { color: var(--ink-soft); }
.hours dd { margin: 0; font: 500 0.9375rem/1.4 var(--f-mono); letter-spacing: -0.03em; }
.hours div.is-today dt, .hours div.is-today dd { color: var(--ink); font-weight: 600; }
.book-phone { margin: 24px 0 0; display: grid; gap: 2px; }
.book-phone a { font: 500 clamp(2rem, 3.4vw, 2.875rem)/1 var(--f-display); letter-spacing: -0.03em; text-decoration: none; font-variant-numeric: tabular-nums; }
.book-phone span { font-size: 0.8125rem; color: var(--ink-soft); }
.map { position: relative; margin-top: 28px; height: 180px; border-radius: 20px; overflow: hidden; }
.map svg { width: 100%; height: 100%; display: block; }
.map-pin { position: absolute; left: 52%; top: 46%; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; background: var(--sage); box-shadow: 0 0 0 8px rgba(47, 106, 85, 0.18); }
.map-pin span { position: absolute; inset: -8px; border-radius: 50%; border: 2px solid var(--sage); opacity: 0; }
@media (prefers-reduced-motion: no-preference) { .map-pin span { animation: ping 2.4s ease-out infinite; } }
@keyframes ping { 0% { transform: scale(0.6); opacity: 0.7; } 100% { transform: scale(2.2); opacity: 0; } }
.book-address { margin: 16px 0 0; font-weight: 500; }
.book-address span { font-weight: 400; font-size: 0.9375rem; color: var(--ink-soft); }

.f-group { border: 0; margin: 0; padding: 0; min-width: 0; }
.f-group legend { padding: 0; margin-bottom: 10px; font-size: 0.875rem; font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; min-height: 42px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--cream); font-size: 0.9375rem; font-weight: 500; transition: background-color 200ms ease, color 200ms ease, border-color 200ms ease; }
.chip:hover span { border-color: var(--ink-soft); }
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.chip input:focus-visible + span { outline: 2px solid var(--sage); outline-offset: 2px; }

.f-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
@media (max-width: 560px) { .f-row { grid-template-columns: minmax(0, 1fr); } }
.f-field { display: grid; gap: 4px; min-width: 0; }
.f-field label { font-size: 0.875rem; font-weight: 600; }
.f-opt { font-weight: 400; color: var(--ink-soft); }
.f-field input, .f-field textarea {
  width: 100%; border: 0; border-bottom: 1px solid var(--ink); border-radius: 0; background: transparent;
  padding: 10px 0; font: 400 1.0625rem/1.4 var(--f-body); color: var(--ink); resize: vertical;
}
.f-field input::placeholder, .f-field textarea::placeholder { color: #9A8F83; }
.f-field input:focus-visible, .f-field textarea:focus-visible { outline: none; border-bottom: 2px solid var(--sage); padding-bottom: 9px; }
.f-field [aria-invalid="true"] { border-bottom-color: #B4442F; }
.f-error { margin: 4px 0 0; font-size: 0.8125rem; color: #A23C29; }
.f-check { display: flex; gap: 12px; align-items: flex-start; font-size: 0.9375rem; color: var(--ink-soft); cursor: pointer; }
.f-check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--sage); flex: none; }
.f-submit { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.f-demo { margin: 0; font-size: 0.8125rem; color: var(--ink-soft); }
.f-done[hidden] { display: none; }
.f-done { position: absolute; inset: 0; border-radius: inherit; background: var(--cream); display: grid; place-content: center; text-align: center; padding: 32px; }
.f-done:not([hidden]) { animation: row-in 600ms var(--ease) both; }
.f-done p { margin: 8px auto 0; max-width: 36ch; color: var(--ink-soft); }
.f-done .f-done-title { font: 500 clamp(2rem, 3.6vw, 3rem)/1.05 var(--f-display); letter-spacing: -0.035em; color: var(--ink); }

/* ------------------------------------------------------------------ Footer: the one dark surface */
.foot { position: relative; overflow: hidden; isolation: isolate; background: #241F1B; color: #EDE4D6; padding: clamp(64px, 8vw, 110px) var(--gutter) 28px; }
.foot a { color: inherit; }
.foot-shadows { position: absolute; z-index: -1; right: -10%; top: -20%; width: 70%; height: 140%; background: url(img/shadows.webp) center / cover no-repeat; mix-blend-mode: screen; opacity: 0.06; filter: invert(1) blur(3px); pointer-events: none; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.foot-claim { margin: 0 0 22px; max-width: 22ch; font: 500 clamp(1.5rem, 2.4vw, 2rem)/1.15 var(--f-display); letter-spacing: -0.02em; }
.foot-h { margin: 0 0 12px; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.06em; color: #A79C8E; }
.foot nav { display: grid; gap: 8px; align-content: start; }
.foot nav a, .foot-grid p { font-size: 0.9375rem; text-decoration: none; line-height: 1.7; margin-top: 0; }
.foot nav a:hover { text-decoration: underline; text-underline-offset: 3px; }
.foot .pill-cream { background: #EDE4D6; color: #241F1B; padding-right: 8px; text-decoration: none; }
.pill-cream .pill-arrow { background: #241F1B; }
.pill-cream .pill-arrow::before { border-color: #EDE4D6; }
.foot-word { margin: clamp(40px, 6vw, 80px) 0 0; font: 500 clamp(6rem, 25vw, 24rem)/0.78 var(--f-display); letter-spacing: -0.04em; font-variation-settings: "wdth" 84, "opsz" 96; color: #EDE4D6; opacity: 0.94; margin-left: -0.05em; white-space: nowrap; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 28px; padding-top: 18px; border-top: 1px solid rgba(237, 228, 214, 0.16); font-size: 0.8125rem; color: #A79C8E; }
.foot-bottom p { margin: 0; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot-grid > div:first-child { grid-column: 1 / -1; } }
@media (max-width: 900px) { .foot-word { font-size: 36vw; } }

/* ------------------------------------------------------------------ Phone menu */
.nav-actions { display: flex; align-items: center; gap: 8px; }
.menu-btn { display: none; position: relative; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(39, 34, 30, 0.08); cursor: pointer; flex: none; }
.menu-btn span { position: absolute; left: 13px; right: 13px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform 350ms var(--ease), top 350ms var(--ease); }
.menu-btn span:first-child { top: 17px; }
.menu-btn span:last-child { top: 25px; }
.menu-btn[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

.menu {
  position: fixed; z-index: 29; left: 10px; right: 10px; top: 76px;
  padding: 10px 22px 22px; border-radius: 28px;
  background: rgba(240, 229, 212, 0.94); backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3);
  border: 1px solid rgba(39, 34, 30, 0.08); box-shadow: 0 24px 50px -20px rgba(39, 34, 30, 0.35);
  opacity: 0; transform: translateY(-10px) scale(0.98); transform-origin: top center;
  transition: opacity 250ms ease, transform 450ms var(--ease);
}
.menu.is-open { opacity: 1; transform: none; }
.menu nav { display: grid; }
.menu nav a { padding: 14px 2px; border-bottom: 1px solid rgba(39, 34, 30, 0.12); text-decoration: none; font: 500 1.625rem/1.1 var(--f-display); letter-spacing: -0.025em; }
.menu-foot { display: grid; gap: 2px; padding-top: 16px; }
.menu-foot a { font: 500 1.25rem/1.2 var(--f-display); text-decoration: none; }
.menu-foot span { font-size: 0.875rem; color: var(--ink-soft); }
@media (prefers-reduced-motion: reduce) { .menu { transition: opacity 150ms linear; transform: none; } }

@media (max-width: 900px) {
  .menu-btn { display: block; }
  /* While the menu is open the bar takes its floating look, even at the top of the page. */
  .nav.is-open { top: 8px; left: 10px; right: 10px; padding: 8px 8px 8px 16px; border-radius: 999px; background: rgba(240, 229, 212, 0.94); border-color: rgba(39, 34, 30, 0.08); backdrop-filter: blur(16px) saturate(1.3); -webkit-backdrop-filter: blur(16px) saturate(1.3); }
}
@media (max-width: 380px) { .nav .pill-ink { padding-left: 14px; gap: 8px; font-size: 0.875rem; } }
@media (min-width: 901px) { .menu { display: none; } }
