/* ===========================================================================
   Kadeřnictví Lucie Ptáčková — editorial paper-and-ink, one ember accent.
   See DESIGN.md. Sharp 0px everywhere. Motion is GPU-cheap: transform/opacity.
   =========================================================================== */

/* Registered so the tone inversion can actually interpolate. Browsers without
   @property simply snap between the two grounds — still correct, just instant. */
@property --bg    { syntax: '<color>'; inherits: true; initial-value: #F3EFE7; }
@property --fg    { syntax: '<color>'; inherits: true; initial-value: #15120F; }
@property --muted { syntax: '<color>'; inherits: true; initial-value: #574E45; }
@property --accent{ syntax: '<color>'; inherits: true; initial-value: #B0421D; }
@property --line  { syntax: '<color>'; inherits: true; initial-value: #C9C2B4; }

:root {
  --paper: #F3EFE7;
  --paper-2: #E7E0D3;
  --ink: #15120F;
  --ink-2: #221D18;
  --ink-soft: #574E45;
  --ember: #B0421D;
  --ember-lift: #E8804F;

  --bg: var(--paper);
  --fg: var(--ink);
  --muted: var(--ink-soft);
  --accent: var(--ember);
  --line: #C9C2B4;

  --display: 'Bodoni Moda', 'Playfair Display', 'Times New Roman', Georgia, serif;
  --text: 'Archivo', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, 'Cascadia Mono', Consolas, monospace;

  --gut: clamp(18px, 4.2vw, 68px);
  --max: 1560px;
  --hdr: 68px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --ease-o: cubic-bezier(.33, 0, .12, 1);
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  /* Warm paper grain, blended into the ground itself. Deliberately NOT a fixed
     mix-blend-mode overlay above the content: a full-viewport blended layer
     forces the whole page into one composited group and Chromium drops the
     paint of everything under it once you scroll. */
  background-color: var(--bg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='.3'/%3E%3C/svg%3E");
  background-blend-mode: multiply;
  color: var(--fg);
  font-family: var(--text);
  font-size: clamp(15.5px, .55vw + 14px, 17.5px);
  line-height: 1.62;
  font-weight: 400;
  overflow-x: clip;
  transition: --bg .7s var(--ease-o), --fg .7s var(--ease-o),
              --muted .7s var(--ease-o), --accent .7s var(--ease-o), --line .7s var(--ease-o);
}

body.dark {
  --bg: var(--ink);
  --fg: var(--paper);
  --muted: #A79C8E;
  --accent: var(--ember-lift);
  --line: #3A332B;
}

img, svg, iframe { display: block; max-width: 100%; }
img { height: auto; }

/* ------------------------------- typography ------------------------------ */

h1, h2, h3 { margin: 0; font-weight: 400; text-wrap: balance; }
p { margin: 0 0 1.05em; }
p:last-child { margin-bottom: 0; }

b, strong { font-weight: 600; }
em.ac { font-style: italic; color: var(--accent); font-family: var(--display); font-weight: 500; }

a { color: inherit; }

.mono {
  font-family: var(--mono);
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 500;
}

.h2 {
  font-family: var(--display);
  font-size: clamp(2rem, 4.6vw, 3.9rem);
  line-height: 1.02;
  letter-spacing: -.015em;
}
.h3 {
  font-family: var(--display);
  font-size: clamp(1.35rem, 2vw, 1.8rem);
  line-height: 1.16;
}
.lead {
  font-size: clamp(1.05rem, 1.25vw, 1.32rem);
  line-height: 1.5;
  max-width: 34ch;
  color: var(--fg);
}

/* --------------------------------- layout -------------------------------- */

.wrap { width: min(100%, var(--max)); margin-inline: auto; padding-inline: var(--gut); }

.sec {
  padding-block: clamp(56px, 9vw, 132px);
  border-top: 1px solid var(--line);
}
.sec-grid {
  display: grid;
  grid-template-columns: minmax(0, 200px) minmax(0, 1fr);
  gap: clamp(22px, 4vw, 72px);
}
.rail { position: sticky; top: calc(var(--hdr) + 26px); align-self: start; }
.sec-num {
  display: block;
  font-family: var(--display);
  font-size: clamp(2.6rem, 5vw, 4.4rem);
  line-height: .8;
  color: var(--accent);
  font-weight: 500;
}
.sec-label { display: block; margin-top: .8rem; color: var(--muted); }

@media (max-width: 900px) {
  .sec-grid { grid-template-columns: 1fr; gap: 18px; }
  .rail { position: static; display: flex; align-items: baseline; gap: 14px; }
  .sec-num { font-size: 2.2rem; }
  .sec-label { margin-top: 0; }
}

/* -------------------------------- header --------------------------------- */

.skip {
  position: absolute; left: 8px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--paper);
  padding: 10px 16px; font-family: var(--mono); font-size: .75rem;
  transition: top .2s var(--ease);
}
.skip:focus { top: 8px; }

.hdr {
  position: fixed; inset: 0 0 auto; z-index: 40;
  height: var(--hdr);
  display: flex; align-items: center;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(150%) blur(9px);
  border-bottom: 1px solid var(--line);
  transform: translateY(0);
  transition: transform .45s var(--ease), background-color .3s linear;
  will-change: transform;
}
.hdr.hide { transform: translateY(-101%); }

.hdr-in { display: flex; align-items: center; justify-content: space-between; gap: 20px; width: 100%; }

.brand { display: flex; align-items: baseline; gap: .55rem; text-decoration: none; }
.brand-mark {
  font-family: var(--display); font-weight: 600; font-size: 1.32rem; letter-spacing: -.02em;
  color: var(--accent);
}
.brand-name { font-family: var(--display); font-size: 1.12rem; letter-spacing: -.01em; }
.brand-sub { display: none; }
@media (min-width: 1100px) { .brand-sub { display: inline; color: var(--muted); font-family: var(--mono); font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; } }

.nav { display: none; }
@media (min-width: 860px) {
  .nav { display: block; position: relative; }
  .nav ul { display: flex; gap: clamp(18px, 2.2vw, 38px); list-style: none; margin: 0; padding: 0; }
  .nav a {
    display: block; padding: 6px 0; text-decoration: none;
    font-family: var(--mono); font-size: .72rem; letter-spacing: .13em; text-transform: uppercase;
    color: var(--muted); transition: color .3s var(--ease);
  }
  .nav a:hover, .nav a:focus-visible, .nav a[aria-current='page'] { color: var(--fg); }
  /* sliding indicator — transform only */
  .nav-ind {
    position: absolute; left: 0; bottom: -2px; height: 2px; width: 1px;
    background: var(--accent); transform-origin: left center;
    transform: translateX(0) scaleX(0);
    transition: transform .5s var(--ease);
    pointer-events: none;
  }
}

.hdr-cta {
  display: none;
  align-items: center; gap: .55rem;
  padding: .62rem 1.1rem;
  background: var(--fg); color: var(--bg);
  text-decoration: none;
  font-family: var(--mono); font-size: .72rem; letter-spacing: .1em;
  transition: background-color .3s var(--ease), color .3s var(--ease);
}
@media (min-width: 660px) { .hdr-cta { display: inline-flex; } }
.hdr-cta:hover, .hdr-cta:focus-visible { background: var(--accent); color: var(--paper); }
.hdr-cta .ico { transition: transform .35s var(--ease); }
.hdr-cta:hover .ico { transform: translateX(3px); }

.hdr-right { display: flex; align-items: center; gap: clamp(6px, 1.2vw, 14px); }

/* below 660px the full phone pill does not fit, but the number must still be
   one tap away from the header — labelled icon button, not a mystery glyph */
.hdr-tel {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; color: var(--fg); text-decoration: none;
  border: 1px solid var(--line);
  transition: background-color .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease);
}
.hdr-tel:hover, .hdr-tel:focus-visible { background: var(--accent); border-color: var(--accent); color: #fff; }
@media (min-width: 660px) { .hdr-tel { display: none; } }

/* burger + overlay */
.burger {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 44px; height: 44px; padding: 0 10px; margin-right: -10px;
  background: none; border: 0; cursor: pointer; color: inherit;
}
@media (min-width: 860px) { .burger { display: none; } }
.burger span { display: block; height: 1.5px; background: currentColor; transition: transform .4s var(--ease), opacity .25s linear; }
.burger[aria-expanded='true'] span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.burger[aria-expanded='true'] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded='true'] span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* while the overlay is open the bar must belong to it, not float above it */
body.nav-open .hdr {
  background: transparent;
  backdrop-filter: none;
  border-bottom-color: transparent;
  color: var(--paper);
}
body.nav-open .brand-name, body.nav-open .brand-sub { color: var(--paper); }
body.nav-open .hdr-tel { color: var(--paper); border-color: #3A332B; }

.ovl {
  position: fixed; inset: 0; z-index: 39;
  background: var(--ink); color: var(--paper);
  display: flex; flex-direction: column; justify-content: center;
  padding: var(--hdr) var(--gut) var(--gut);
  clip-path: inset(0 0 100% 0);
  transition: clip-path .6s var(--ease);
  visibility: hidden;
}
.ovl.open { clip-path: inset(0 0 0 0); visibility: visible; }
.ovl ul { list-style: none; margin: 0; padding: 0; }
.ovl li { overflow: hidden; }
.ovl a {
  display: block; padding: .12em 0; text-decoration: none;
  font-family: var(--display); font-size: clamp(2.4rem, 11vw, 4.2rem); line-height: 1.12;
  transform: translateY(105%);
  transition: transform .6s var(--ease), color .3s linear;
  transition-delay: 0ms;
}
.ovl.open a { transform: translateY(0); transition-delay: calc(90ms + var(--i, 0) * 70ms); }
.ovl a[aria-current='page'] { color: var(--ember-lift); }
.ovl-foot { margin-top: auto; padding-top: 2rem; border-top: 1px solid #3A332B; color: #A79C8E; }
.ovl-foot a { font-family: var(--mono); font-size: .8rem; color: var(--paper); }

/* ---------------------------------- hero --------------------------------- */

.hero { padding-top: calc(var(--hdr) + clamp(30px, 7vh, 84px)); padding-bottom: clamp(30px, 5vw, 70px); }

.hero-kick { display: flex; align-items: center; gap: 1rem; color: var(--muted); margin-bottom: clamp(18px, 3vw, 42px); }
.hero-kick::after { content: ''; flex: 1; height: 1px; background: var(--line); }

.hero-grid { display: grid; grid-template-columns: repeat(12, 1fr); align-items: start; }

.mast {
  grid-column: 1 / -1; grid-row: 1; z-index: 2;
  font-family: var(--display);
  font-size: clamp(2.55rem, 12.8vw, 12.4rem);
  line-height: .855;
  letter-spacing: -.028em;
  font-weight: 500;
  margin: 0;
  pointer-events: none;
}
.mast .ln { display: block; overflow: hidden; }
.mast .ln > span { display: block; }
.mast .l2 { padding-left: 9%; }
.mast .l3 { padding-left: 3%; color: var(--accent); font-style: italic; }

.hero-fig {
  grid-column: 7 / -1; grid-row: 1; z-index: 1;
  margin: 0; margin-top: clamp(90px, 15vw, 210px);
  position: relative;
}
.hero-fig .ph { aspect-ratio: 4 / 5; }
/* keeps the overlapping masthead legible over a real photo */
.hero-fig::before {
  content: ''; position: absolute; inset: 0 0 55% 0; z-index: 2; pointer-events: none;
  background: linear-gradient(to bottom, color-mix(in srgb, var(--bg) 72%, transparent), transparent);
}

.hero-foot {
  display: grid; grid-template-columns: repeat(12, 1fr);
  gap: clamp(20px, 3vw, 48px);
  margin-top: clamp(26px, 4vw, 56px);
}
.hero-claim { grid-column: 1 / span 6; font-size: clamp(1.02rem, 1.2vw, 1.28rem); line-height: 1.5; max-width: 44ch; }
.hero-side { grid-column: 8 / -1; display: flex; flex-direction: column; gap: 1.1rem; align-items: flex-start; }
.hero-cap { color: var(--muted); font-family: var(--mono); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; line-height: 1.7; }

@media (max-width: 860px) {
  .hero-fig { grid-column: 1 / -1; grid-row: 2; margin-top: clamp(18px, 5vw, 36px); }
  .hero-fig::before { display: none; }
  .hero-foot { display: block; }
  .hero-claim { max-width: none; }
  .hero-side { margin-top: 1.6rem; }
  .mast { position: relative; }
}

/* marquee */
.marquee {
  overflow: hidden; border-block: 1px solid var(--line);
  padding-block: .78rem; margin-top: clamp(30px, 5vw, 62px);
  --mq: 46s;
}
.mq-track { display: flex; width: max-content; animation: mq var(--mq) linear infinite; }
.mq-track > span {
  font-family: var(--mono); font-size: .74rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--muted); padding-right: 3rem; white-space: nowrap;
}
@keyframes mq { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-50%, 0, 0); } }
.marquee:hover .mq-track { animation-play-state: paused; }

/* ------------------------- inner-page masthead --------------------------- */

.phead { padding-top: calc(var(--hdr) + clamp(28px, 6vh, 76px)); padding-bottom: clamp(30px, 5vw, 68px); }
.phead-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: clamp(22px, 4vw, 68px);
  align-items: end;
}
.phead-narrow { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); }
.phead-h1 {
  grid-column: 1;
  font-family: var(--display);
  font-size: clamp(2.3rem, 7.4vw, 6.2rem);
  line-height: .93;
  letter-spacing: -.028em;
  font-weight: 500;
  overflow: hidden;
}
.phead-h1 > span { display: block; }
.phead-lead { grid-column: 2; font-size: clamp(1rem, 1.15vw, 1.2rem); line-height: 1.5; color: var(--muted); margin: 0 0 .4em; }
.phead-fig { grid-column: 1 / -1; margin: clamp(26px, 4vw, 54px) 0 0; }
.phead-fig .ph { aspect-ratio: 16 / 7; }

@media (max-width: 820px) {
  .phead-grid, .phead-narrow { grid-template-columns: 1fr; align-items: start; }
  .phead-h1, .phead-lead { grid-column: 1; }
  .phead-lead { margin-top: 1.2rem; }
}

.duo { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: clamp(14px, 2vw, 26px); margin-top: clamp(24px, 3.5vw, 44px); }
.duo figure { margin: 0; }
.duo .ph { aspect-ratio: 1 / 1; }

.map-ph { padding: clamp(20px, 4vw, 40px); display: grid; justify-items: center; }

/* --------------------------------- photos -------------------------------- */

.ph {
  position: relative; overflow: hidden;
  background: var(--paper-2);
  display: grid; place-items: center;
  aspect-ratio: 4 / 3;
}
body.dark .ph { background: var(--ink-2); }
.ph img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(1) contrast(1.02);
  transform: scale(1.005);
  transition: filter .7s var(--ease), transform .9s var(--ease);
}
.ph:hover img, .ph:focus-within img { filter: grayscale(0) contrast(1); transform: scale(1.035); }

/* fallback plate when no photo is set — a drawn monogram, never a broken box */
.plate { position: absolute; inset: 0; display: grid; place-items: center; }
.plate::before {
  content: ''; position: absolute; inset: 9px; border: 1px solid var(--line);
}
.plate-m {
  font-family: var(--display); font-style: italic; font-weight: 500;
  font-size: clamp(3.4rem, 9vw, 7rem); color: var(--accent); opacity: .55; line-height: 1;
}
.ph[data-has-photo] .plate { display: none; }

figcaption { margin-top: .7rem; color: var(--muted); font-family: var(--mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; }

/* ------------------------------- components ------------------------------ */

.plain-list { list-style: none; margin: 0; padding: 0; }

/* principles / values */
/* two columns, never auto-fit: with four items an auto-fit grid orphans the
   last one on a three-up row at mid widths */
.prin-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: clamp(20px, 3vw, 56px); margin-top: clamp(26px, 4vw, 52px); }
@media (max-width: 620px) { .prin-list { grid-template-columns: 1fr; } }
.prin { padding: clamp(20px, 2.4vw, 34px) 0; border-top: 1px solid var(--line); }
.prin-num { font-family: var(--mono); font-size: .7rem; letter-spacing: .16em; color: var(--accent); }
.prin-t { font-family: var(--display); font-size: clamp(1.18rem, 1.5vw, 1.45rem); line-height: 1.2; margin: .7rem 0 .5rem; }
.prin-x { color: var(--muted); font-size: .95rem; margin: 0; }

/* statistics — the tone-inversion band. No background of its own: the ground
   comes from body, so the paper grain stays continuous across the inversion. */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: clamp(22px, 3vw, 44px); margin-top: clamp(26px, 4vw, 52px); }
.stat { border-top: 1px solid var(--line); padding-top: 1.1rem; }
.stat-v { display: flex; align-items: baseline; gap: .1em; font-family: var(--display); font-size: clamp(3rem, 7vw, 5.6rem); line-height: .92; letter-spacing: -.03em; }
.stat-n { display: inline-block; font-variant-numeric: tabular-nums; }
.stat-s { font-size: .34em; letter-spacing: 0; }
.stat-l { display: block; margin-top: .8rem; color: var(--muted); font-size: .9rem; max-width: 22ch; }

/* service teasers */
.svc-list { margin-top: clamp(26px, 4vw, 52px); }
.svc {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) auto;
  gap: clamp(12px, 2.5vw, 40px); align-items: baseline;
  padding: clamp(18px, 2.2vw, 30px) 0;
  border-top: 1px solid var(--line);
  position: relative;
}
.svc::after {
  content: ''; position: absolute; left: 0; top: -1px; height: 1px; width: 100%;
  background: var(--accent); transform: scaleX(0); transform-origin: left center;
  transition: transform .55s var(--ease);
}
.svc:hover::after, .svc:focus-within::after { transform: scaleX(1); }
.svc-t { font-family: var(--display); font-size: clamp(1.25rem, 1.8vw, 1.65rem); line-height: 1.15; }
.svc-x { color: var(--muted); font-size: .93rem; margin: 0; }
.svc-p { font-family: var(--display); font-size: clamp(1.3rem, 2vw, 1.8rem); white-space: nowrap; transition: transform .45s var(--ease); }
.svc:hover .svc-p { transform: translateX(-6px); }
.pre { font-family: var(--mono); font-size: .42em; letter-spacing: .12em; text-transform: uppercase; vertical-align: .35em; color: var(--muted); }
.word { font-family: var(--text); font-size: .52em; color: var(--muted); }
@media (max-width: 720px) {
  .svc { grid-template-columns: 1fr auto; }
  .svc-x { grid-column: 1 / -1; }
}

/* the ledger */
.grp-list { margin-top: clamp(24px, 3.5vw, 48px); }
.grp { margin-bottom: clamp(34px, 5vw, 72px); }
.grp-h { display: flex; flex-wrap: wrap; align-items: baseline; gap: .6rem 1.4rem; padding-bottom: .9rem; border-bottom: 2px solid var(--fg); }
.grp-t { font-family: var(--display); font-size: clamp(1.5rem, 2.6vw, 2.2rem); line-height: 1.1; }
.grp-n { margin: 0; color: var(--muted); font-size: .86rem; max-width: 46ch; }
.ledger { list-style: none; margin: 0; padding: 0; }
.lrow {
  display: grid; grid-template-columns: minmax(0, auto) minmax(24px, 1fr) auto;
  align-items: baseline; gap: .8rem;
  padding: .95rem 0; border-bottom: 1px solid var(--line);
  position: relative;
}
.lrow::after {
  content: ''; position: absolute; left: 0; bottom: -1px; height: 1px; width: 100%;
  background: var(--accent); transform: scaleX(0); transform-origin: left center;
  transition: transform .5s var(--ease);
}
.lrow:hover::after { transform: scaleX(1); }
.lrow-n { display: block; font-size: 1.02rem; }
.lrow-d { display: block; color: var(--muted); font-size: .84rem; }
.lrow-lead {
  align-self: end; height: 0; margin-bottom: .38rem;
  border-bottom: 1px dotted var(--line);
  transition: opacity .4s linear;
}
.lrow:hover .lrow-lead { opacity: .35; }
.lrow-p {
  font-family: var(--display); font-size: clamp(1.35rem, 2.1vw, 2.4rem); line-height: 1;
  white-space: nowrap; transition: transform .45s var(--ease);
}
.lrow:hover .lrow-p { transform: translateX(-6px); }
@media (max-width: 620px) {
  .lrow { grid-template-columns: minmax(0, 1fr) auto; }
  .lrow-lead { display: none; }
}

/* reviews — numbered index */
.rev-list { margin-top: clamp(26px, 4vw, 52px); columns: 2; column-gap: clamp(28px, 4vw, 72px); }
@media (max-width: 860px) { .rev-list { columns: 1; } }
.rev { break-inside: avoid; padding: clamp(18px, 2.2vw, 30px) 0; border-top: 1px solid var(--line); }
.rev:first-child { column-span: all; border-top: 0; }
.rev:first-child .rev-q p { font-family: var(--display); font-size: clamp(1.45rem, 3.2vw, 2.5rem); line-height: 1.18; }
.rev-n { font-family: var(--mono); font-size: .7rem; letter-spacing: .16em; color: var(--accent); }
.rev-q { margin: .6rem 0 .9rem; }
.rev-q p { margin: 0; font-size: 1rem; line-height: 1.55; }
.rev-a { display: flex; flex-wrap: wrap; gap: .2rem .8rem; align-items: baseline; }
.rev-a cite { font-style: normal; font-weight: 600; font-size: .92rem; }
.rev-m { font-family: var(--mono); font-size: .66rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

/* timeline */
.tl-list { margin-top: clamp(24px, 3.5vw, 48px); }
.tl { display: grid; grid-template-columns: minmax(0, 130px) minmax(0, 1fr); gap: clamp(14px, 2.5vw, 40px); padding: clamp(16px, 2vw, 26px) 0; border-top: 1px solid var(--line); }
.tl-y { font-family: var(--display); font-size: clamp(1.6rem, 2.6vw, 2.3rem); line-height: 1; color: var(--accent); }
.tl-t { font-family: var(--display); font-size: clamp(1.15rem, 1.5vw, 1.4rem); line-height: 1.2; margin-bottom: .35rem; }
.tl-x { color: var(--muted); font-size: .94rem; margin: 0; }
@media (max-width: 560px) { .tl { grid-template-columns: 1fr; gap: .4rem; } }

/* notes / routes */
.note-list, .route-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 0 clamp(24px, 3vw, 56px); margin-top: clamp(24px, 3.5vw, 48px); }
.note, .route { padding: clamp(16px, 2vw, 26px) 0; border-top: 1px solid var(--line); }
.note-t, .route-t { font-family: var(--display); font-size: clamp(1.15rem, 1.5vw, 1.4rem); margin-bottom: .4rem; }
.note-x, .route-x { color: var(--muted); font-size: .94rem; margin: 0; }

/* opening hours */
.hrs { margin-top: 1.4rem; }
/* flex, not grid: the owner can type any opening-hours string, and in the
   narrow footer column a long one has to be able to wrap instead of colliding */
.hrs-row { display: flex; flex-wrap: wrap; align-items: baseline; gap: .1rem .7rem; padding: .62rem 0; border-bottom: 1px solid var(--line); }
.hrs-day { flex: 0 0 auto; }
.hrs-lead { flex: 1 1 20px; min-width: 20px; align-self: flex-end; height: 0; margin-bottom: .34rem; border-bottom: 1px dotted var(--line); }
.hrs-time { flex: 0 1 auto; font-family: var(--mono); font-size: .82rem; }
.hrs-today { flex: 0 0 auto; font-family: var(--mono); font-size: .6rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); opacity: 0; }
.hrs-row.today { color: var(--fg); }
.hrs-row.today .hrs-day { font-weight: 600; }
.hrs-row.today .hrs-today { opacity: 1; }

/* contact detail blocks */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: clamp(28px, 4vw, 64px); margin-top: clamp(8px, 2vw, 20px); }
.big-link {
  display: inline-flex; align-items: baseline; gap: .6rem;
  font-family: var(--display); font-size: clamp(1.6rem, 3.4vw, 2.7rem); line-height: 1.1;
  text-decoration: none; letter-spacing: -.02em;
  position: relative;
}
.big-link::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: .06em; height: 1px;
  background: currentColor; transform: scaleX(0); transform-origin: right center;
  transition: transform .5s var(--ease);
}
.big-link:hover::after, .big-link:focus-visible::after { transform: scaleX(1); transform-origin: left center; }
address { font-style: normal; }
.addr { font-size: 1.1rem; line-height: 1.7; }

.soc { display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; padding: .5rem 0; font-family: var(--mono); font-size: .78rem; letter-spacing: .08em; }
.soc .ico { transition: transform .4s var(--ease); }
.soc:hover .ico, .soc:focus-visible .ico { transform: translate(3px, -3px); }
.soc-list { display: flex; flex-wrap: wrap; gap: 0 1.8rem; margin-top: .6rem; }

/* map */
.map-shell { margin-top: clamp(20px, 3vw, 36px); }
.map-box { position: relative; aspect-ratio: 16 / 9; background: var(--paper-2); border: 1px solid var(--line); display: grid; place-items: center; }
body.dark .map-box { background: var(--ink-2); }
.map-box iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-note { color: var(--muted); font-size: .88rem; max-width: 44ch; text-align: center; margin: 0 0 1rem; padding-inline: 1rem; }
.map-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1rem; align-items: center; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .82rem 1.4rem;
  background: var(--fg); color: var(--bg);
  text-decoration: none; border: 1px solid var(--fg); cursor: pointer;
  font-family: var(--mono); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase;
  transition: background-color .35s var(--ease), color .35s var(--ease), transform .3s var(--ease);
}
.btn:hover, .btn:focus-visible { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn .ico { transition: transform .4s var(--ease); }
.btn:hover .ico { transform: translateX(4px); }
.btn-ghost { background: transparent; color: var(--fg); border-color: var(--line); }
.btn-ghost:hover, .btn-ghost:focus-visible { background: var(--fg); color: var(--bg); border-color: var(--fg); }

.inline-link {
  display: inline-flex; align-items: center; gap: .45rem;
  font-family: var(--mono); font-size: .74rem; letter-spacing: .12em; text-transform: uppercase;
  text-decoration: none; color: var(--accent); position: relative; padding-bottom: 3px;
}
.inline-link::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: right center; transition: transform .45s var(--ease);
}
.inline-link:hover::after, .inline-link:focus-visible::after { transform: scaleX(1); transform-origin: left center; }
.inline-link .ico { transition: transform .4s var(--ease); }
.inline-link:hover .ico { transform: translateX(3px); }

/* closing CTA — always ink, whatever the page ground is doing */
.cta {
  background: var(--ink); color: var(--paper);
  --bg: var(--ink); --fg: var(--paper); --muted: #A79C8E; --accent: var(--ember-lift); --line: #3A332B;
}
.cta-in { padding-block: clamp(52px, 8vw, 116px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(26px, 4vw, 68px); align-items: end; }
@media (max-width: 820px) { .cta-in { grid-template-columns: 1fr; } }
.cta-h { font-family: var(--display); font-size: clamp(2rem, 5vw, 4rem); line-height: 1.02; letter-spacing: -.02em; }
.cta-phone {
  display: inline-block; font-family: var(--display); font-size: clamp(1.9rem, 5.2vw, 3.6rem);
  letter-spacing: -.02em; text-decoration: none; line-height: 1.05;
  transition: transform .35s var(--ease), color .3s linear;
}
.cta-phone:hover, .cta-phone:focus-visible { color: var(--ember-lift); }
.cta-x { color: var(--muted); max-width: 42ch; margin-bottom: 1.4rem; }
.cta-meta { color: var(--muted); font-family: var(--mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; margin-top: 1rem; }

/* magnetic pull — desktop pointers only, applied by JS */
.mag { will-change: transform; }

/* --------------------------------- footer -------------------------------- */

.ftr {
  background: var(--ink-2); color: var(--paper);
  --bg: var(--ink-2); --fg: var(--paper); --muted: #A79C8E; --accent: var(--ember-lift); --line: #3A332B;
  padding-block: clamp(40px, 6vw, 76px) clamp(24px, 3vw, 36px);
}
.ftr-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: clamp(24px, 3.5vw, 56px); }
.ftr h2 { font-family: var(--display); font-size: clamp(1.9rem, 4vw, 3rem); line-height: 1; letter-spacing: -.02em; margin-bottom: .8rem; }
.ftr-h { display: block; color: var(--muted); font-family: var(--mono); font-size: .66rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: .8rem; }
.ftr a { text-decoration: none; }
.ftr-nav li { padding: .22rem 0; }
.ftr-nav a { position: relative; }
.ftr-nav a::after { content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right center; transition: transform .45s var(--ease); }
.ftr-nav a:hover::after, .ftr-nav a:focus-visible::after { transform: scaleX(1); transform-origin: left center; }
.ftr-bot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem 2rem; margin-top: clamp(30px, 4vw, 56px); padding-top: 1.2rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .8rem; }

/* -------------------------------- a11y ---------------------------------- */

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.hdr-cta:focus-visible, .btn:focus-visible { outline-offset: 4px; }
.vh { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
[hidden] { display: none !important; }

/* -------------------------------- motion --------------------------------- */
/* Pre-animation states live here, not in JS, and only apply when JS is running
   (html.js), so a failed script can never hide content. */

.js [data-rv] { opacity: 0; transform: translate3d(0, 26px, 0); }
.js [data-rv].in { opacity: 1; transform: none; }
[data-rv] {
  transition: opacity .8s var(--ease), transform .9s var(--ease);
  transition-delay: calc(var(--i, 0) * 65ms);
}

.js [data-rv-mask] > span,
.js .mast .ln > span { transform: translate3d(0, 105%, 0); }
[data-rv-mask] > span, .mast .ln > span {
  transition: transform .95s var(--ease);
  transition-delay: calc(var(--i, 0) * 90ms);
}
.js [data-rv-mask].in > span,
.js .mast.in .ln > span { transform: translate3d(0, 0, 0); }

.js .hero-fig { opacity: 0; transform: translate3d(0, 46px, 0); }
.hero-fig { transition: opacity 1s var(--ease) .25s, transform 1.1s var(--ease) .25s; }
.js .hero-fig.in { opacity: 1; transform: none; }

/* cross-document navigation */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .22s var(--ease-o) both; }
::view-transition-new(root) { animation: vt-in .42s var(--ease) both; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-8px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(12px); } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  body { transition: none; }
  .js [data-rv],
  .js [data-rv].in { opacity: 1 !important; transform: none !important; }
  .js [data-rv-mask] > span,
  .js .mast .ln > span,
  .js .hero-fig { opacity: 1 !important; transform: none !important; }
  .mq-track { animation: none; transform: none; }
  .marquee { --mq: 0s; }
  *, *::before, *::after {
    transition-duration: .001ms !important;
    transition-delay: 0ms !important;
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
  }
  @view-transition { navigation: none; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}
