/* Karlova Barbershop — site styles. Brand: Eczar, Gunmetal / Butterscotch / Almond / Lion brown. */

@font-face {
  font-family: "Eczar";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/fonts/eczar-latin.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;
}
@font-face {
  font-family: "Eczar";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("/fonts/eczar-latin-ext.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  --gunmetal: #2B3138;
  --gunmetal-deep: #22272D;
  --gunmetal-raised: #353C45;
  --butterscotch: #E9973B;
  --butterscotch-soft: #F2B46D;
  --almond: #FDE5D1;
  --lion: #A18560;
  --white: #FFFFFF;
  --almond-press: #F9DCC4; /* price row hover on the almond board */
  --open: #5FD38A;         /* the live "open now" dot, a status colour outside the brand five */

  --ink: #FFFFFF;
  --ink-body: #DAD3CC;
  --ink-mute: #ADA49A;
  --ink-dark: #2B3138;
  --ink-dark-body: #463E36;
  --ink-dark-mute: #66594C;
  --rule: rgba(161, 133, 96, 0.45);
  --rule-dark: rgba(161, 133, 96, 0.6);

  --font: "Eczar", Georgia, "Times New Roman", serif;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 76px;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --bevel: 10px;
  --section-y: clamp(72px, 9vw, 128px);
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 12px);
  scrollbar-color: var(--lion) var(--gunmetal-deep);
  background: var(--gunmetal);
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: clamp(1.0625rem, 1rem + 0.2vw, 1.1875rem);
  line-height: 1.6;
  color: var(--ink-body);
  background: var(--gunmetal);
  caret-color: var(--butterscotch);
  font-variant-numeric: lining-nums;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}

::selection { background: var(--butterscotch); color: var(--gunmetal); }

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

h1, h2, h3 {
  margin: 0;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.08;
  text-wrap: balance;
  letter-spacing: -0.005em;
}
h2 { font-size: clamp(2.125rem, 1.4rem + 2.6vw, 3.5rem); }
h3 { font-size: clamp(1.375rem, 1.2rem + 0.6vw, 1.75rem); }
p { margin: 0 0 1em; text-wrap: pretty; }
p:last-child { margin-bottom: 0; }

a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { color: var(--butterscotch); }

:focus-visible {
  outline: 2px solid var(--butterscotch);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0);
  white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute;
  left: 12px; top: -100px;
  z-index: 100;
  padding: 12px 18px;
  background: var(--butterscotch);
  color: var(--gunmetal);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }
.skip-link:hover { color: var(--gunmetal); }

.icon {
  width: 1.25em; height: 1.25em;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.icon-sm { width: 1.05em; height: 1.05em; }

/* ------------------------------------------------------------ octagon geometry
   Chamfered corners come from the brandbook's octagon. They are drawn with clip-path so they
   look the same in Safari, Firefox and Chrome. A 2px "line" is the element's ::before layer,
   the fill is ::after, inset by the line width and clipped one step smaller. */
.btn, .icon-btn, .menu-toggle {
  --c: 10px;
  --ci: calc(var(--c) - 0.83px);
  --line: rgba(253, 229, 209, 0.4);
  --fill: var(--surface, var(--gunmetal));
  position: relative;
  isolation: isolate;
  border: 0;
  background: none;
  clip-path: polygon(var(--c) 0, calc(100% - var(--c)) 0, 100% var(--c), 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, var(--c) 100%, 0 calc(100% - var(--c)), 0 var(--c));
  -webkit-tap-highlight-color: transparent;
}
.btn::before, .icon-btn::before, .menu-toggle::before,
.btn::after, .icon-btn::after, .menu-toggle::after {
  content: "";
  position: absolute;
  z-index: -1;
  transition: background-color 0.2s;
}
.btn::before, .icon-btn::before, .menu-toggle::before { inset: 0; background: var(--line); }
.btn::after, .icon-btn::after, .menu-toggle::after { inset: 2px; background: var(--fill); clip-path: polygon(var(--ci) 0, calc(100% - var(--ci)) 0, 100% var(--ci), 100% calc(100% - var(--ci)), calc(100% - var(--ci)) 100%, var(--ci) 100%, 0 calc(100% - var(--ci)), 0 var(--ci)); }
.btn:focus-visible, .icon-btn:focus-visible, .menu-toggle:focus-visible {
  outline: 2px solid var(--focus, var(--butterscotch));
  outline-offset: -7px;
}

/* Gold ornament under section headings: hairline, octagon-diamond, hairline. */
.section-head h2::after, .salon-text h2::after, .contact-info h2::after, .salon-quote p::before {
  content: "";
  display: block;
  width: 132px;
  height: 14px;
  margin-top: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='132' height='14' viewBox='0 0 132 14'%3E%3Cg fill='none' stroke='%23E9973B'%3E%3Cpath d='M0 7h52M80 7h52'/%3E%3Cpath d='M66 1l6 6-6 6-6-6z'/%3E%3Cpath d='M66 4.2l2.8 2.8-2.8 2.8-2.8-2.8z' fill='%23E9973B'/%3E%3C/g%3E%3C/svg%3E") no-repeat left center;
}

/* ------------------------------------------------------------ buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55em;
  min-height: 48px;
  padding: 0.6em 1.3em 0.55em;
  font: inherit;
  font-weight: 600;
  font-size: 1.0625rem;
  line-height: 1.1;
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s, transform 0.2s var(--ease-out);
}
.btn .icon { width: 1.15em; height: 1.15em; transition: transform 0.35s var(--ease-out); }
.btn:hover .icon:last-child { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }

.btn-primary { --line: var(--butterscotch); --fill: var(--butterscotch); --focus: var(--gunmetal); color: var(--gunmetal); }
.btn-primary:hover { --line: var(--butterscotch-soft); --fill: var(--butterscotch-soft); color: var(--gunmetal); }

.btn-ghost { color: var(--ink); }
.btn-ghost:hover { --line: var(--butterscotch); color: var(--butterscotch); }

.btn-lg { min-height: 56px; padding-inline: 1.55em; font-size: 1.1875rem; }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 48px; height: 48px;
  padding: 0;
  color: var(--ink);
  cursor: pointer;
}
.icon-btn:hover { --line: var(--butterscotch); color: var(--butterscotch); }

/* double line frame, after the crest outline: butterscotch outer line, almond inner line */
.frame {
  --c: 30px;
  --ci: calc(var(--c) - 0.83px);
  position: relative;
  isolation: isolate;
  padding: 8px;
  clip-path: polygon(var(--c) 0, calc(100% - var(--c)) 0, 100% var(--c), 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, var(--c) 100%, 0 calc(100% - var(--c)), 0 var(--c));
}
.frame::before, .frame::after, .frame-in::before, .frame-in::after { content: ""; position: absolute; z-index: -1; }
.frame::before { inset: 0; background: var(--butterscotch); }
.frame::after { inset: 2px; background: var(--surface, var(--gunmetal)); clip-path: polygon(var(--ci) 0, calc(100% - var(--ci)) 0, 100% var(--ci), 100% calc(100% - var(--ci)), calc(100% - var(--ci)) 100%, var(--ci) 100%, 0 calc(100% - var(--ci)), 0 var(--ci)); }
.frame-in {
  --c: 25.3px;
  --ci: calc(var(--c) - 0.41px);
  position: relative;
  isolation: isolate;
  padding: 5px;
  clip-path: polygon(var(--c) 0, calc(100% - var(--c)) 0, 100% var(--c), 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, var(--c) 100%, 0 calc(100% - var(--c)), 0 var(--c));
}
.frame-in::before { inset: 0; background: rgba(253, 229, 209, 0.75); }
.frame-in::after { inset: 1px; background: var(--surface, var(--gunmetal)); clip-path: polygon(var(--ci) 0, calc(100% - var(--ci)) 0, 100% var(--ci), 100% calc(100% - var(--ci)), calc(100% - var(--ci)) 100%, var(--ci) 100%, 0 calc(100% - var(--ci)), 0 var(--ci)); }
.frame img { --c: 22.4px; width: 100%; clip-path: polygon(var(--c) 0, calc(100% - var(--c)) 0, 100% var(--c), 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, var(--c) 100%, 0 calc(100% - var(--c)), 0 var(--c)); }

/* the brand pattern as a frieze band */
.frieze {
  height: var(--frieze-h, 168px);
  background-image: url("/brand/pattern-dark.svg");
  background-repeat: repeat-x;
  background-size: var(--frieze-tile, 210px) var(--frieze-tile, 210px);
  background-position: center top;
}

/* ------------------------------------------------------------ header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--gunmetal);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.site-header.is-scrolled { border-bottom-color: var(--rule); }

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: var(--header-h);
}
.brand { flex: none; display: block; padding: 6px 0; }
.brand img { width: auto; height: 56px; }

.site-nav { display: flex; gap: clamp(16px, 2.2vw, 34px); }
.site-nav ul {
  display: flex;
  gap: clamp(16px, 2.2vw, 34px);
  margin: 0; padding: 0;
  list-style: none;
}
.site-nav a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 8px 0 10px;
  color: var(--ink-body);
  text-decoration: none;
  font-size: 1.0625rem;
  background: linear-gradient(var(--butterscotch), var(--butterscotch)) no-repeat left calc(100% - 4px) / 0 2px;
  transition: background-size 0.4s var(--ease-out), color 0.2s;
}
.site-nav a:hover, .site-nav a[aria-current="true"] { color: var(--ink); background-size: 100% 2px; }
.nav-icon { width: 22px; height: 22px; color: var(--butterscotch); stroke-width: 1.4; transition: transform 0.4s var(--ease-out); }
.site-nav a:hover .nav-icon { transform: translateY(-2px); }

/* wide screens: the crest sits in the middle, the menu splits around it (three left, two right) */
@media (min-width: 1180px) {
  .header-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: clamp(28px, 3vw, 48px); }
  .site-nav { display: contents; }
  .nav-left { grid-column: 1; grid-row: 1; justify-self: end; }
  .brand { grid-column: 2; grid-row: 1; margin-inline: 34px; }
  .nav-right { grid-column: 3; grid-row: 1; justify-self: start; }
  .header-actions { grid-column: 3; grid-row: 1; justify-self: end; margin-left: 0; }
  /* at the top of the home page the crest is large and hangs over the photo, then settles as you scroll */
  .js .page-home .brand img { transform-origin: 50% 0; transition: transform 0.45s var(--ease-out); }
  .js .page-home .site-header:not(.is-scrolled) .brand img { transform: scale(1.7); }
}

.header-actions { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.lang-link {
  display: inline-grid;
  place-items: center;
  min-width: 48px; min-height: 48px;
  padding: 0 8px;
  color: var(--ink-body);
  font-weight: 600;
  text-decoration: none;
  letter-spacing: 0.04em;
}
.lang-link:hover { color: var(--butterscotch); }
.lang-link.is-suggested .lang-short { display: none; }
.lang-link.is-suggested::after { content: attr(data-suggest); letter-spacing: 0; }

.menu-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 14px;
  font: inherit;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}
.menu-toggle:hover, .menu-toggle[aria-expanded="true"] { --line: var(--butterscotch); }

@media (max-width: 1060px) {
  .site-nav ul { gap: 18px; }
}

@media (max-width: 999px) {
  :root { --header-h: 68px; }
  .brand img { height: 48px; }
  .js .menu-toggle { display: inline-flex; }
  .btn-header { display: none; }
  .js .site-nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    overflow-y: auto;
    padding: 8px var(--gutter) 28px;
    background: var(--gunmetal);
    border-bottom: 1px solid var(--rule);
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.25s, transform 0.35s var(--ease-out), visibility 0s linear 0.35s;
  }
  .js .site-nav.is-open {
    visibility: visible;
    opacity: 1;
    transform: none;
    transition: opacity 0.25s, transform 0.35s var(--ease-out), visibility 0s;
  }
  .js .site-nav { flex-direction: column; gap: 0; }
  .js .site-nav ul { flex-direction: column; gap: 0; }
  .js .site-nav a {
    flex-direction: row;
    gap: 16px;
    align-items: center;
    padding: 14px 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--ink);
    border-bottom: 1px solid var(--rule);
    background: none;
  }
  html:not(.js) .header-inner { flex-wrap: wrap; height: auto; padding-block: 8px; }
  html:not(.js) .site-nav { order: 3; width: 100%; overflow-x: auto; }
}
@media (max-width: 759px) {
  .js .header-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 12px; }
  .js .brand { grid-column: 2; grid-row: 1; }
  .js .brand img { height: 52px; }
  .js .header-actions { display: contents; }
  .js .lang-link { grid-column: 1; grid-row: 1; justify-self: start; margin-left: -8px; }
  .js .menu-toggle { grid-column: 3; grid-row: 1; justify-self: end; }
}
@media (max-width: 759px) {
  .menu-toggle-label {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
  }
  .menu-toggle { padding: 0 11px; }
}

/* ------------------------------------------------------------ hero
   A full-width photo that fades into the page on every side, so it reads as part of
   the page rather than a box. Words sit on it: title bottom-left, booking in the middle, contacts right.
   On phones the title stays on the photo, the rest follows below. */
.hero { position: relative; }
.stage {
  position: relative;
  /* the page's content edge, so the words line up with every section below */
  --edge: calc(max(0px, (100% - var(--wrap) - 2 * var(--gutter)) / 2) + var(--gutter));
}
.stage-media { position: relative; }
.hero-figure {
  position: relative;
  margin: 0;
  overflow: hidden;
  --fade-y: linear-gradient(to bottom, transparent 0, #000 14%, #000 58%, transparent 100%);
  --fade-x: linear-gradient(to right, transparent 0, #000 14%, #000 86%, transparent 100%);
  -webkit-mask-image: var(--fade-y), var(--fade-x);
  mask-image: var(--fade-y), var(--fade-x);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}
/* darken toward the words so they always read, whatever photo is chosen */
.hero-figure::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to top, rgba(43, 49, 56, 0.9) 0%, rgba(43, 49, 56, 0) 55%),
    linear-gradient(to right, rgba(43, 49, 56, 0.65) 0%, rgba(43, 49, 56, 0) 50%);
}
.hero-photo {
  display: block;
  width: 100%;
  height: clamp(500px, calc(100svh - var(--header-h) - 70px), 820px);
  object-fit: cover;
  object-position: 62% 38%;
  filter: brightness(0.85);
}
.hero-figure.is-bw .hero-photo { filter: grayscale(1) contrast(1.1) brightness(0.8); }
.stage-title {
  position: absolute;
  z-index: 1;
  left: var(--edge);
  bottom: clamp(36px, 5vw, 72px);
  /* never reaches the centred booking button */
  max-width: calc(50% - 148px - var(--edge));
}
.hero-intro {
  margin: 0 0 14px;
  color: var(--butterscotch);
  font-size: 1.0625rem;
  line-height: 1.4;
}
@media (min-width: 1100px) {
  /* the short line above the title sits higher than the button, so it may run wider than the title */
  .hero-intro { width: max-content; max-width: 60vw; }
}
.hero-intro::before { content: ""; display: inline-block; width: 28px; height: 1px; margin: 0 10px 0.3em 0; vertical-align: middle; background: currentColor; }
.hero h1 {
  font-size: clamp(2.25rem, 0.8rem + 2.6vw, 2.875rem);
  line-height: 1.02;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.hero h1 em { display: block; font-style: normal; color: var(--butterscotch); }

.stage-side {
  position: absolute;
  z-index: 1;
  left: var(--edge);
  right: var(--edge);
  bottom: clamp(36px, 5vw, 72px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: end;
  gap: 24px;
  pointer-events: none;
}
.stage-side > * { pointer-events: auto; }
.hero-actions { grid-column: 2; margin: 0; }
.btn-stage {
  min-height: 64px;
  min-width: 248px;
  padding-inline: 2em;
  font-size: 1.1875rem;
}
.hero-facts {
  grid-column: 3;
  justify-self: end;
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: right;
  color: var(--ink-body);
  font-size: 1.0625rem;
}
.hero-facts li:nth-child(3) { margin-top: 10px; }
.hero-facts a { color: var(--ink); text-decoration: none; background: linear-gradient(var(--butterscotch), var(--butterscotch)) no-repeat right bottom / 0 1px; transition: background-size 0.35s var(--ease-out), color 0.2s; }
.hero-facts a:hover { color: var(--butterscotch); background-size: 100% 1px; }
.hero-facts [data-open-status].is-open { color: var(--ink); }

/* a quiet cue that the page continues */
.scroll-cue { display: flex; justify-content: center; margin: clamp(14px, 2vw, 24px) 0 0; }
.scroll-cue a { display: grid; justify-items: center; width: 48px; height: 64px; }
.scroll-cue span { position: relative; display: block; width: 1px; height: 52px; background: linear-gradient(var(--butterscotch), rgba(233, 151, 59, 0)); }
.scroll-cue span::after {
  content: "";
  position: absolute;
  left: -3.5px;
  top: 0;
  width: 8px; height: 8px;
  background: var(--butterscotch);
  transform: rotate(45deg);
}
@media (prefers-reduced-motion: no-preference) {
  .scroll-cue span::after { animation: cue-drop 2.4s var(--ease-out) 2.6s 2 both; } /* hints twice, then rests */
}
@keyframes cue-drop {
  0% { transform: translateY(0) rotate(45deg); opacity: 0; }
  20% { opacity: 1; }
  70%, 100% { transform: translateY(44px) rotate(45deg); opacity: 0; }
}

.frieze-hero { --frieze-h: clamp(120px, 13vw, 190px); --frieze-tile: clamp(150px, 15vw, 230px); margin-top: clamp(20px, 3vw, 40px); }
@media (prefers-reduced-motion: no-preference) {
  .frieze-hero.is-pending, .frieze-hero.is-revealing {
    -webkit-mask-image: linear-gradient(90deg, #000 0 44%, transparent 56% 100%);
    mask-image: linear-gradient(90deg, #000 0 44%, transparent 56% 100%);
    -webkit-mask-size: 260% 100%;
    mask-size: 260% 100%;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
  }
  .frieze-hero.is-pending { -webkit-mask-position: 100% 0; mask-position: 100% 0; }
  .frieze-hero.is-revealing { animation: frieze-reveal 2.2s var(--ease-out) both; }
}
@keyframes frieze-reveal {
  from { -webkit-mask-position: 100% 0; mask-position: 100% 0; }
  to { -webkit-mask-position: 0 0; mask-position: 0 0; }
}

@media (max-width: 1099px) {
  /* not enough room for three columns on the photo: booking and contacts move just below it */
  .hero-photo { height: clamp(400px, 60vw, 620px); }
  .stage-title { max-width: 70%; }
  .hero h1 { font-size: clamp(2.25rem, 1rem + 3.4vw, 3.25rem); }
  .stage-side { position: static; grid-template-columns: auto minmax(0, 1fr); align-items: center; margin-top: 8px; padding-inline: var(--edge); }
  .hero-actions { grid-column: 1; }
  .hero-facts { grid-column: 2; }
}
@media (max-width: 760px) {
  .hero-photo { height: auto; aspect-ratio: 4 / 5; object-position: 70% 45%; }
  /* narrow screens: the photo runs edge to edge, fading only top and bottom */
  .hero-figure { -webkit-mask-image: var(--fade-y); mask-image: var(--fade-y); }
  .stage-title { left: var(--edge); right: var(--edge); bottom: 22px; max-width: none; }
  .hero-intro { margin-bottom: 10px; font-size: 1rem; text-wrap: balance; }
  .hero-intro::before { display: none; }
  .scroll-cue { display: none; }
  .frieze-hero { margin-top: 36px; }
  .stage-side { grid-template-columns: 1fr; justify-items: center; gap: 20px; margin-top: 20px; }
  .hero-actions { grid-column: auto; width: 100%; }
  .btn-stage { width: 100%; min-width: 0; }
  .hero-facts { grid-column: auto; justify-self: center; gap: 4px; text-align: center; }
  .hero-facts li:nth-child(4) { display: none; } /* Facebook: in the footer; the first screen stays calm */
  .hero-facts a { background-position: center bottom; }
}

/* ------------------------------------------------------------ section heads */
/* split heads (hinnakiri, barberid): the short intro sits beside the title on wide screens */
@media (min-width: 900px) {
  .section-head.is-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr); column-gap: 48px; align-items: end; }
  .section-head.is-split p { margin: 0 0 6px; justify-self: end; text-align: right; }
}
.section-head { margin-bottom: clamp(32px, 4vw, 56px); }
.section-head p { max-width: 46ch; margin-top: 14px; color: var(--ink-mute); font-size: 1.125rem; }

/* ------------------------------------------------------------ services: the price board */
.services {
  --surface: var(--almond);
  padding-top: var(--section-y);
  background: var(--almond);
  color: var(--ink-dark-body);
}
.services h2, .services h3 { color: var(--ink-dark); }
.services .section-head p { color: var(--ink-dark-mute); }
.services :focus-visible { outline-color: var(--gunmetal); }
.services ::selection { background: var(--gunmetal); color: var(--almond); }

/* beside the list: the shop's sign, crest on the brand pattern */
.menu-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
}
/* left column: the rolling pole and a small booking card; together they travel down with the list */
.menu-side { position: sticky; top: calc(var(--header-h) + 32px); display: grid; gap: 28px; padding-top: 18px; }
.menu-sign { width: 100%; }
.menu-sign .pole { display: block; width: 100%; height: auto; }
.menu-card {
  --c: 18px;
  --surface: var(--gunmetal);
  padding: clamp(22px, 2.4vw, 30px);
  background: var(--gunmetal);
  color: var(--ink-body);
  clip-path: polygon(var(--c) 0, calc(100% - var(--c)) 0, 100% var(--c), 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, var(--c) 100%, 0 calc(100% - var(--c)), 0 var(--c));
}
.services .menu-card h3 { margin: 0 0 12px; color: var(--butterscotch); font-size: 1.1875rem; }
.menu-hours { margin: 0; }
.menu-hours div { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; border-bottom: 1px solid var(--rule); }
.menu-hours dt { color: var(--ink-body); }
.menu-hours dd { margin: 0; color: var(--ink); font-variant-numeric: tabular-nums; }
.menu-status, .menu-address { display: flex; align-items: center; gap: 8px; margin: 14px 0 0; font-size: 0.9375rem; }
.menu-status .icon, .menu-address .icon { flex: none; color: var(--butterscotch); }
.menu-status [data-open-status].is-open { color: var(--ink); }
[data-open-status].is-open::before {
  content: "";
  display: inline-block;
  width: 8px; height: 8px;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--open);
  vertical-align: 0.08em;
}
.menu-address { margin-top: 6px; }
.menu-address a { color: var(--ink-body); }
.menu-address a:hover { color: var(--butterscotch); }
.menu-actions { display: grid; margin-top: 20px; }
.menu-actions .btn { padding-inline: 0.8em; }
/* site.js sets --pole from the scroll position: the stripes roll along as you scroll */
.menu-sign .spin { transform: translateY(var(--pole, 0px)); }

.price-list { margin: 0; padding: 0; list-style: none; }
.price-row {
  --row-bg: var(--almond);
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "badge badge" "line line" "meta card" "meta book";
  column-gap: clamp(16px, 3vw, 40px);
  row-gap: 8px;
  padding: clamp(20px, 2.2vw, 28px) clamp(14px, 1.6vw, 22px);
  border-top: 1px solid var(--rule-dark);
  transition: background-color 0.3s;
}
.price-row:first-child { border-top: 0; }
@media (hover: hover) { .price-row:hover { --row-bg: var(--almond-press); background: var(--row-bg); } } /* no sticky tint after a tap */
.price-row.is-featured + .price-row { border-top: 0; }

.price-line { grid-area: line; position: relative; display: flex; align-items: flex-end; align-items: last baseline; gap: 12px; min-width: 0; }
/* Dot leader: one dotted rule at the height of the name's LAST line; name text and price sit on the
   row colour and cover it, so the dots run exactly from the end of the name to the price. */
.price-line::before {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0.42em;
  border-bottom: 2px dotted var(--lion);
}
.price-name { position: relative; flex: 1 1 auto; min-width: 0; font-size: clamp(1.375rem, 1.1rem + 0.9vw, 1.875rem); line-height: 1.15; }
.price-name span, .price-amount { background: var(--row-bg); transition: background-color 0.3s; }
.price-name span { padding-right: 0.35em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.price-amount {
  position: relative;
  margin: 0;
  padding-left: 0.35em;
  font-size: clamp(1.25rem, 1.05rem + 0.6vw, 1.5rem);
  font-weight: 600;
  color: var(--ink-dark-mute);
  white-space: nowrap;
}
.price-amount .num {
  font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.5rem);
  font-weight: 700;
  color: var(--ink-dark);
  font-variant-numeric: tabular-nums lining-nums;
  letter-spacing: -0.01em;
}
.price-amount .pay { font-size: 0.9375rem; font-weight: 400; color: var(--ink-dark-mute); }
.price-card {
  grid-area: card;
  justify-self: end;
  margin: -4px 0 0;
  color: var(--ink-dark-body);
  font-size: 1rem;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.price-meta { grid-area: meta; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.price-text { margin: 0; max-width: 46ch; color: var(--ink-dark-body); }
.price-time {
  display: inline-flex; align-items: center; gap: 6px;
  margin: 0;
  padding: 3px 10px 3px 8px;
  --c: 6px;
  background: rgba(161, 133, 96, 0.16);
  clip-path: polygon(var(--c) 0, calc(100% - var(--c)) 0, 100% var(--c), 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, var(--c) 100%, 0 calc(100% - var(--c)), 0 var(--c));
  color: var(--ink-dark-mute);
  font-size: 0.9375rem;
  white-space: nowrap;
}
.price-book {
  grid-area: book;
  align-self: end;
  --line: var(--gunmetal);
  --fill: var(--row-bg);
  color: var(--ink-dark);
  min-width: 132px;
}
.price-book:hover { --fill: var(--gunmetal); color: var(--almond); }

/* the one service lifted out of the list */
.price-row.is-featured {
  --row-bg: var(--gunmetal);
  --c: 18px;
  margin-block: 10px;
  padding-block: clamp(22px, 2.4vw, 30px);
  background: var(--row-bg);
  color: var(--ink-body);
  border-top: 0;
  clip-path: polygon(var(--c) 0, calc(100% - var(--c)) 0, 100% var(--c), 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, var(--c) 100%, 0 calc(100% - var(--c)), 0 var(--c));
}
.price-row.is-featured:hover { --row-bg: var(--gunmetal-raised); }
.services .is-featured .price-name { color: var(--ink); }
.is-featured .price-line::before { border-bottom-color: rgba(233, 151, 59, 0.6); }
.is-featured .price-amount, .is-featured .price-amount .pay, .is-featured .price-card { color: var(--ink-body); }
.is-featured .price-amount .num { color: var(--butterscotch); }
.is-featured .price-text { color: var(--ink-body); }
.is-featured .price-time { color: var(--ink-body); background: rgba(253, 229, 209, 0.1); }
.is-featured .price-book { --line: var(--butterscotch); --fill: var(--butterscotch); color: var(--gunmetal); }
.is-featured .price-book:hover { --line: var(--butterscotch-soft); --fill: var(--butterscotch-soft); }
.price-badge {
  grid-area: badge;
  justify-self: start;
  margin: 0 0 2px;
  padding: 3px 12px;
  background: var(--butterscotch);
  color: var(--gunmetal);
  font-size: 0.875rem;
  font-weight: 700;
  --c: 6px;
  clip-path: polygon(var(--c) 0, calc(100% - var(--c)) 0, 100% var(--c), 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, var(--c) 100%, 0 calc(100% - var(--c)), 0 var(--c));
}

.board-note { display: flex; align-items: center; gap: 10px; margin: 22px clamp(14px, 1.6vw, 22px) 0; color: var(--ink-dark-mute); font-size: 1rem; }
.board-note .icon { flex: none; color: var(--lion); }
.frieze-light {
  /* exactly one motif row: half a tile high, offset so the row is centred */
  --frieze-tile: clamp(170px, 17vw, 230px);
  --frieze-h: calc(var(--frieze-tile) * 0.5);
  margin-top: var(--section-y);
  background-image: url("/brand/pattern-light.svg");
  background-position: center calc(var(--frieze-tile) * 0.05);
}

@media (max-width: 999px) {
  .menu-grid { grid-template-columns: 1fr; }
  .menu-side { position: static; padding-top: 0; }
  .menu-card { display: none; } /* phones and tablets: the bottom bar already books and calls */
  .menu-sign .pole { width: min(100%, 420px); margin-inline: auto; }
}
@media (max-width: 640px) {
  .menu-sign .pole { width: min(62%, 240px); } /* phones: the prices start sooner */
}
@media (max-width: 640px) {
  /* phones: name, then price and button side by side, then the details */
  .price-row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "badge badge" "name name" "price book" "card book" "meta meta"; row-gap: 4px; padding-inline: 4px; }
  .price-card { justify-self: start; margin: 0; }
  .price-row.is-featured { padding-inline: 18px; margin-inline: -6px; }
  .price-line { display: contents; }
  .price-line::before { content: none; }
  .price-name { grid-area: name; }
  .price-amount { grid-area: price; align-self: center; padding-left: 0; }
  .price-book { grid-area: book; align-self: center; min-width: 0; min-height: 44px; padding-inline: 1.2em; }
  .price-meta { margin-top: 4px; }
}

/* ------------------------------------------------------------ barbers */
.barbers { padding-top: var(--section-y); }
.barbers .barber-layout { margin-bottom: var(--section-y); }
.barber-layout {
  display: grid;
  grid-template-columns: minmax(220px, 3fr) minmax(0, 9fr);
  gap: clamp(28px, 4vw, 64px);
  align-items: start;
}
.barber-picker { display: grid; gap: 4px; }
.barber-tab {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 10px;
  color: var(--ink-mute);
  text-decoration: none;
  --c: 14px;
  clip-path: polygon(var(--c) 0, calc(100% - var(--c)) 0, 100% var(--c), 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, var(--c) 100%, 0 calc(100% - var(--c)), 0 var(--c));
  transition: background-color 0.2s, color 0.2s;
}
.barber-tab:focus-visible { outline-offset: -4px; }
.barber-tab:hover { color: var(--ink); background: var(--gunmetal-raised); }
.barber-thumb {
  flex: none;
  width: 64px;
  --c: 9px;
  --ci: calc(var(--c) - 0.83px);
  position: relative;
  isolation: isolate;
  padding: 4px;
  clip-path: polygon(var(--c) 0, calc(100% - var(--c)) 0, 100% var(--c), 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, var(--c) 100%, 0 calc(100% - var(--c)), 0 var(--c));
}
.barber-thumb::before, .barber-thumb::after { content: ""; position: absolute; z-index: -1; }
.barber-thumb::before { inset: 0; background: transparent; transition: background-color 0.2s; }
.barber-thumb::after { inset: 2px; background: var(--gunmetal-raised); clip-path: polygon(var(--ci) 0, calc(100% - var(--ci)) 0, 100% var(--ci), 100% calc(100% - var(--ci)), calc(100% - var(--ci)) 100%, var(--ci) 100%, 0 calc(100% - var(--ci)), 0 var(--ci)); }
.barber-thumb img { --c: 6.7px; aspect-ratio: 3 / 4; object-fit: cover; clip-path: polygon(var(--c) 0, calc(100% - var(--c)) 0, 100% var(--c), 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, var(--c) 100%, 0 calc(100% - var(--c)), 0 var(--c)); filter: grayscale(0.6); transition: filter 0.3s; }
.barber-tab-text { display: grid; gap: 2px; line-height: 1.2; }
.barber-tab-name { font-size: 1.375rem; font-weight: 600; }
.barber-tab-role { font-size: 0.9375rem; }
.barber-tab[aria-selected="true"] { color: var(--ink); background: var(--gunmetal-raised); }
.barber-tab[aria-selected="true"] .barber-thumb::before { background: var(--butterscotch); }
.barber-tab:not([aria-selected="true"]) .barber-thumb::after { background: transparent; }
.barber-tab:not([aria-selected="true"]):hover .barber-thumb::after { background: var(--gunmetal-raised); }
.barber-tab[aria-selected="true"] .barber-thumb img, .barber-tab:hover .barber-thumb img { filter: none; }
.barber-tab[aria-selected="true"] .barber-tab-role { color: var(--butterscotch); }

.barber-profiles { display: grid; gap: 64px; }
.barber-profile {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}
.js .barber-profile[hidden] { display: none; }
.barber-photo { aspect-ratio: 3 / 4; object-fit: cover; }
.barber-text h3 { font-size: clamp(2.5rem, 1.6rem + 3vw, 4.25rem); line-height: 1; }
.barber-role { margin: 10px 0 24px; color: var(--butterscotch); font-size: 1.25rem; font-weight: 600; }
.barber-bio { max-width: 58ch; margin-bottom: 32px; }
@media (prefers-reduced-motion: no-preference) {
  .barber-profile.is-entering .barber-art { animation: rise 0.7s var(--ease-out) both; }
  .barber-profile.is-entering .barber-text { animation: rise 0.7s var(--ease-out) 0.06s both; }
}
@keyframes rise {
  from { opacity: 0.001; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 999px) {
  .barber-layout { grid-template-columns: 1fr; }
  .barber-picker { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
  .barber-tab { flex-direction: column; align-items: stretch; gap: 10px; padding: 8px; text-align: center; }
  .barber-thumb { width: 100%; }
  .barber-tab-name { font-size: 1.125rem; }
  .barber-tab-role { display: none; }
}
@media (max-width: 719px) {
  .barber-profile { grid-template-columns: 1fr; }
  .barber-art { max-width: 420px; }
  .barber-photo { aspect-ratio: 1 / 1; object-position: 50% 25%; }
  .barber-text h3 { font-size: 2.5rem; }
}

/* ------------------------------------------------------------ gallery */
.gallery {
  --surface: var(--almond);
  padding-block: var(--section-y);
  background: var(--almond);
  color: var(--ink-dark-body);
}
.gallery h2 { color: var(--ink-dark); }
.gallery .section-head p { color: var(--ink-dark-mute); }
.gallery :focus-visible { outline-color: var(--gunmetal); }
.gallery .btn-ghost { --line: var(--gunmetal); color: var(--ink-dark); }
.gallery .btn-ghost:hover { --fill: var(--gunmetal); color: var(--almond); }
.gallery .gallery-more-wrap { margin-bottom: 0; }
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(8px, 1.2vw, 16px);
  margin: 0; padding: 0;
  list-style: none;
}
.gallery-grid a {
  display: block;
  --c: 14px;
  overflow: hidden;
  background: var(--gunmetal-raised);
  clip-path: polygon(var(--c) 0, calc(100% - var(--c)) 0, 100% var(--c), 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, var(--c) 100%, 0 calc(100% - var(--c)), 0 var(--c));
}
.gallery-grid a:focus-visible { outline-offset: -5px; }
.gallery-grid img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform 0.8s var(--ease-out), filter 0.4s;
}
.gallery-grid a:hover img { transform: scale(1.04); }
.gallery-grid li.is-extra { display: none; }
.gallery-grid.is-expanded li.is-extra { display: block; }
.gallery-more-wrap { margin: 32px 0 0; text-align: center; }
@media (max-width: 999px) { .gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 599px) { .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ------------------------------------------------------------ salon */
.salon { padding-bottom: var(--section-y); }
.salon-figure { margin: 0; overflow: hidden; }
.salon-photo {
  width: 100%;
  height: clamp(300px, 58vw, 760px);
  object-fit: cover;
  object-position: 50% 55%;
}
.salon-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(32px, 5vw, 96px);
  align-items: start;
  padding-top: clamp(48px, 6vw, 96px);
}
/* the quote: a dark octagon plate like every other box, the heading ornament above the words,
   the tile pattern only as a soft glow from one corner */
.salon-quote {
  --c: 24px;
  position: relative;
  isolation: isolate;
  margin: 0;
  padding: clamp(30px, 3.4vw, 48px);
  background: var(--gunmetal-deep);
  clip-path: polygon(var(--c) 0, calc(100% - var(--c)) 0, 100% var(--c), 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, var(--c) 100%, 0 calc(100% - var(--c)), 0 var(--c));
  font-size: clamp(1.75rem, 1.3rem + 1.8vw, 2.75rem);
  line-height: 1.15;
  font-weight: 600;
  color: var(--ink);
  text-wrap: balance;
}
.salon-quote::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: url("/brand/pattern-dark.svg") right bottom / 220px 220px;
  opacity: 0.16;
  -webkit-mask-image: radial-gradient(circle at 100% 100%, #000 0%, transparent 70%);
  mask-image: radial-gradient(circle at 100% 100%, #000 0%, transparent 70%);
}
.salon-quote p { margin: 0; }
.salon-quote p::before { margin: 0 0 22px; }
.salon-text h2 { margin-bottom: 24px; }
.salon-text p { max-width: 60ch; }
@media (max-width: 860px) { .salon-grid { grid-template-columns: 1fr; row-gap: 48px; } .salon-quote { --c: 18px; } }

/* ------------------------------------------------------------ contact */
.contact { --surface: var(--gunmetal-deep); padding-block: var(--section-y); background: var(--gunmetal-deep); }
.contact-grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: clamp(36px, 5vw, 80px);
  align-items: stretch;
}
.contact-info h2 { margin-bottom: 36px; }
.contact-block h3 { font-size: 1.25rem; margin-bottom: 12px; color: var(--butterscotch); }
.contact-block + .contact-block, .contact-pair { margin-top: 36px; }
.contact-pair { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 28px; }
.contact-pair .contact-block { margin-top: 0; }
address { font-style: normal; color: var(--ink); font-size: 1.1875rem; }
.dir-links { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 12px; }
.dir-links a, .contact-list a {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 40px;
  color: var(--ink-body);
}
.dir-links .icon, .contact-list .icon { color: var(--butterscotch); }
.contact-list { margin: 0; padding: 0; list-style: none; }
.contact-list a { overflow-wrap: anywhere; }
@media (min-width: 481px) { .contact-list a { overflow-wrap: normal; white-space: nowrap; } }
@media (min-width: 861px) and (max-width: 1199px) { .contact-pair { grid-template-columns: 1fr; } }

.hours-table { width: 100%; max-width: 440px; border-collapse: collapse; font-variant-numeric: tabular-nums lining-nums; }
.hours-table th, .hours-table td { padding: 9px 0; border-bottom: 1px solid var(--rule); text-align: left; font-weight: 400; }
.hours-table td { text-align: right; color: var(--ink); }
.hours-table tr.is-today th, .hours-table tr.is-today td { color: var(--butterscotch); font-weight: 600; }
.today-tag {
  margin-left: 10px;
  padding: 1px 8px 0;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--gunmetal);
  background: var(--butterscotch);
  border-radius: 2px;
  vertical-align: 0.12em;
}
.special-hours { margin-top: 20px; }
.special-hours h3 { font-size: 1.0625rem; color: var(--ink); margin-bottom: 8px; }
.special-hours ul { margin: 0; padding: 0; list-style: none; max-width: 440px; }
.special-hours li { display: flex; justify-content: space-between; gap: 16px; padding: 6px 0; border-bottom: 1px solid var(--rule); }

/* The map: drawn like an ink street map that melts into the page; a tap swaps in the live Google map. */
.contact { overflow-x: clip; }
.map {
  position: relative;
  min-height: 520px;
  /* runs out to the right edge of the window */
  margin-right: calc(-1 * (max(0px, (100vw - var(--wrap) - 2 * var(--gutter)) / 2) + var(--gutter)));
}
.map-placeholder { position: absolute; inset: 0; }
.map-placeholder[hidden] { display: none; }
.map-art {
  position: absolute;
  inset: 0;
  --fade-x: linear-gradient(to right, transparent 0, #000 16%);
  --fade-y: linear-gradient(to bottom, transparent 0, #000 12%, #000 86%, transparent 100%);
  -webkit-mask-image: var(--fade-x), var(--fade-y);
  mask-image: var(--fade-x), var(--fade-y);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
}
.km { display: block; width: 100%; height: 100%; }
.km-street { font: 600 21px var(--font); fill: var(--almond); fill-opacity: 0.8; stroke: var(--gunmetal-deep); stroke-width: 6px; stroke-linejoin: round; paint-order: stroke; }
.km-main { font-size: 28px; fill: var(--butterscotch); fill-opacity: 1; }
.km-stop circle { fill: var(--gunmetal-deep); stroke: var(--almond); stroke-opacity: 0.8; stroke-width: 2px; }
.km-stop path { fill: none; stroke: var(--almond); stroke-width: 2px; stroke-linecap: round; }
.km-stop text { font: 600 19px var(--font); fill: var(--almond); stroke: var(--gunmetal-deep); stroke-width: 5px; paint-order: stroke; }
.km-compass circle { fill: none; stroke: var(--almond); stroke-opacity: 0.55; stroke-width: 1.5px; }
.km-compass path { fill: var(--butterscotch); }
.km-compass .km-compass-w { fill: var(--almond); fill-opacity: 0.55; }
.km-compass text { font: 700 20px var(--font); fill: var(--almond); }
.km-pointer, .km-badge { fill: var(--butterscotch); }
.km-badge-ring { fill: none; stroke: var(--gunmetal); stroke-width: 2px; }
.km-x { fill: var(--gunmetal); stroke: var(--butterscotch); stroke-width: 3px; }
.km-addr { font: 600 19px var(--font); fill: var(--almond); stroke: var(--gunmetal-deep); stroke-width: 5px; paint-order: stroke; }

.map-open {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: end center;
  padding: 0 0 26px;
  border: 0;
  background: none;
  cursor: pointer;
  font: inherit;
}
.map-open[hidden] { display: none; }
.map-open:focus-visible { outline: 2px solid var(--butterscotch); outline-offset: -6px; }
.map-hint {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  --c: 9px;
  --ci: calc(var(--c) - 0.41px);
  position: relative;
  isolation: isolate;
  background: var(--butterscotch); /* the 1px line; the fill is ::after */
  clip-path: polygon(var(--c) 0, calc(100% - var(--c)) 0, 100% var(--c), 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, var(--c) 100%, 0 calc(100% - var(--c)), 0 var(--c));
  color: var(--almond);
  font-size: 0.9375rem;
  font-weight: 600;
  transition: color 0.2s;
}
.map-hint::after { content: ""; position: absolute; inset: 1px; z-index: -1; background: var(--gunmetal-deep); clip-path: polygon(var(--ci) 0, calc(100% - var(--ci)) 0, 100% var(--ci), 100% calc(100% - var(--ci)), calc(100% - var(--ci)) 100%, var(--ci) 100%, 0 calc(100% - var(--ci)), 0 var(--ci)); transition: background-color 0.2s; }
.map-hint .icon { color: var(--butterscotch); }
.map-open:hover .map-hint { color: var(--gunmetal); }
.map-open:hover .map-hint::after { background: var(--butterscotch); }
.map-open:hover .map-hint .icon { color: var(--gunmetal); }
.map-gmaps {
  position: absolute;
  z-index: 1;
  top: 14px;
  right: max(var(--gutter), calc((100vw - var(--wrap) - 2 * var(--gutter)) / 2 + var(--gutter)));
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  color: var(--ink-body);
  font-size: 0.9375rem;
}
.map-gmaps .icon { color: var(--butterscotch); }
.map-gmaps:hover { color: var(--butterscotch); }
.map-credit { position: absolute; z-index: 1; right: max(var(--gutter), calc((100vw - var(--wrap) - 2 * var(--gutter)) / 2 + var(--gutter))); bottom: 4px; margin: 0; font-size: 0.8125rem; color: var(--ink-mute); }
.map-credit a { color: inherit; }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map.is-live { --c: 24px; clip-path: polygon(var(--c) 0, 100% 0, 100% 100%, var(--c) 100%, 0 calc(100% - var(--c)), 0 var(--c)); }

@media (max-width: 860px) {
  .contact-grid { grid-template-columns: 1fr; }
  .map { min-height: 440px; margin-inline: calc(-1 * var(--gutter)); }
  .map-art { -webkit-mask-image: var(--fade-y); mask-image: var(--fade-y); }
  .map-gmaps, .map-credit { right: var(--gutter); }
  .map.is-live { clip-path: none; }
}
@media (max-width: 480px) {
  .contact-pair { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------ footer */
.site-footer { --surface: var(--gunmetal-deep); background: var(--gunmetal-deep); color: var(--ink-mute); font-size: 1rem; }
.frieze-footer { --frieze-h: 84px; --frieze-tile: 168px; opacity: 0.9; }
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
  gap: 32px;
  padding-top: 56px;
}
.footer-brand img { width: 168px; margin-bottom: 18px; }
.footer-brand p { max-width: 28ch; }
.footer-title { font-size: 1.0625rem; color: var(--ink); margin-bottom: 10px; }
.footer-col a { color: var(--ink-body); }
.footer-hours { margin: 0; padding: 0; list-style: none; max-width: 220px; }
.footer-hours li { display: flex; justify-content: space-between; gap: 12px; }
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px 24px;
  margin-top: 48px;
  padding-top: 20px;
  padding-bottom: 28px;
  border-top: 1px solid var(--rule);
  font-size: 0.9375rem;
}
.footer-legal p { margin: 0; display: flex; flex-wrap: wrap; gap: 6px 20px; }
.footer-legal a { color: var(--ink-mute); }
@media (max-width: 860px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------ mobile booking bar */
/* shown only in the owner's browser after logging in to the admin */
.admin-return {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 45;
  padding: 11px 18px;
  --c: 9px;
  --ci: calc(var(--c) - 0.41px);
  isolation: isolate;
  background: var(--butterscotch);
  clip-path: polygon(var(--c) 0, calc(100% - var(--c)) 0, 100% var(--c), 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, var(--c) 100%, 0 calc(100% - var(--c)), 0 var(--c));
  color: var(--almond);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
}
.admin-return::after { content: ""; position: absolute; inset: 1px; z-index: -1; background: var(--gunmetal-deep); clip-path: polygon(var(--ci) 0, calc(100% - var(--ci)) 0, 100% var(--ci), 100% calc(100% - var(--ci)), calc(100% - var(--ci)) 100%, var(--ci) 100%, 0 calc(100% - var(--ci)), 0 var(--ci)); }
.admin-return:hover { color: var(--gunmetal); }
.admin-return:hover::after { background: var(--butterscotch); }
.site-nav .nav-owner { display: none; }
@media (max-width: 999px) {
  .js .admin-return { display: none; }
  .js .site-nav .nav-owner { display: flex; margin-top: 20px; }
  .js .site-nav .nav-owner a { color: var(--butterscotch); font-size: 1.125rem; border-bottom: 0; }
}
.mobile-bar { display: none; }
@media (max-width: 759px) {
  .mobile-bar {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 30;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 10px;
    padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
    background: var(--gunmetal);
    border-top: 1px solid var(--rule);
    transform: translateY(0);
    transition: transform 0.35s var(--ease-out);
  }
  .mobile-bar.is-hidden, .mobile-bar.is-tucked { transform: translateY(110%); }
  .mobile-bar .btn { min-height: 52px; white-space: nowrap; padding-inline: 1em; }
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom)); }
  /* keyboard focus must never land under the fixed booking bar (WCAG 2.2 focus not obscured) */
  html { scroll-padding-bottom: calc(88px + env(safe-area-inset-bottom)); }
}
/* finger-sized hit areas for the small text links on touch screens */
@media (pointer: coarse) {
  .hero-facts a, .footer-col a, .footer-legal a, .footer-consent, .dir-links a, .contact-list a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
}

/* ------------------------------------------------------------ dialogs */
dialog { color: var(--ink-body); --surface: var(--gunmetal); }
dialog::backdrop { background: rgba(18, 21, 25, 0.78); }
html.has-dialog { overflow: hidden; }

.booking {
  width: min(600px, calc(100vw - 32px));
  height: min(880px, calc(100dvh - 32px));
  max-width: none;
  max-height: none;
  padding: 0;
  overflow: hidden;
  --c: 24px;
  --ci: calc(var(--c) - 0.83px);
  isolation: isolate;
  background: var(--butterscotch);
  border: 0;
  clip-path: polygon(var(--c) 0, calc(100% - var(--c)) 0, 100% var(--c), 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, var(--c) 100%, 0 calc(100% - var(--c)), 0 var(--c));
}
.booking::before { content: ""; position: absolute; inset: 2px; z-index: -1; background: var(--gunmetal); clip-path: polygon(var(--ci) 0, calc(100% - var(--ci)) 0, 100% var(--ci), 100% calc(100% - var(--ci)), calc(100% - var(--ci)) 100%, var(--ci) 100%, 0 calc(100% - var(--ci)), 0 var(--ci)); }
.booking[open] { display: flex; flex-direction: column; }
@media (prefers-reduced-motion: no-preference) {
  .booking[open] { animation: dialog-in 0.45s var(--ease-out); }
}
@keyframes dialog-in {
  from { opacity: 0; transform: scale(0.88); }
  to { opacity: 1; transform: none; }
}
.booking-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 18px 14px 24px;
  border-bottom: 1px solid var(--rule);
}
.booking-head h2 { font-size: 1.75rem; }
.booking-hint { margin: 6px 0 0; color: var(--ink-body); font-size: 1rem; }
.booking-hint strong { color: var(--butterscotch); }
.booking-body { position: relative; flex: 1; min-height: 0; margin: 0 2px; background: #FFFFFF; }
.booking-body iframe { display: block; width: 100%; height: 100%; border: 0; }
.booking-loading {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 14px;
  padding: 24px;
  text-align: center;
  background: var(--gunmetal);
  transition: opacity 0.4s, visibility 0s linear 0.4s;
}
.booking-loading.is-done { opacity: 0; visibility: hidden; }
.booking-slow { color: var(--ink-mute); font-size: 0.9375rem; max-width: 30ch; }

/* barber pole loader, after the poles in the crest */
.pole {
  position: relative;
  width: 26px;
  height: 84px;
  padding: 10px 0;
}
.pole::before, .pole::after {
  content: "";
  position: absolute;
  left: -5px; right: -5px;
  height: 10px;
  background: var(--butterscotch);
  border-radius: 4px;
}
.pole::before { top: 0; }
.pole::after { bottom: 0; }
.pole span {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 2px;
  background: repeating-linear-gradient(-45deg, var(--white) 0 8px, var(--gunmetal-deep) 8px 16px);
  background-size: 100% 22.6px;
  box-shadow: inset 0 0 0 2px var(--white);
}
@media (prefers-reduced-motion: no-preference) {
  .pole span { animation: pole-spin 0.9s linear infinite; }
}
@keyframes pole-spin {
  from { background-position: 0 0; }
  to { background-position: 0 -22.6px; }
}

.booking-foot {
  padding: 12px 24px 14px;
  border-top: 1px solid var(--rule);
  font-size: 0.9375rem;
  color: var(--ink-mute);
}
.booking-foot p { margin: 0; }
.booking-foot a { color: var(--ink); }
.booking-pay { margin-top: 2px !important; }

@media (max-width: 640px) {
  .booking {
    width: 100vw;
    height: 100dvh;
    margin: 0;
    background: var(--gunmetal);
    clip-path: none;
  }
  .booking::before { display: none; }
  .booking-body { margin: 0; }
  .booking-head { padding: 12px 12px 10px 18px; padding-top: calc(12px + env(safe-area-inset-top)); }
  .booking-head h2 { font-size: 1.5rem; }
  .booking-foot { padding: 10px 18px calc(12px + env(safe-area-inset-bottom)); }
}

.lightbox {
  width: 100vw;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  background: rgba(18, 21, 25, 0.97);
  border: 0;
}
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: rgba(18, 21, 25, 0.97); }
.lightbox-figure {
  display: grid;
  justify-items: center;
  gap: 12px;
  margin: 0;
  padding: 64px 72px 20px;
  max-height: 100dvh;
}
.lightbox-figure img {
  max-width: min(100%, 1050px);
  max-height: calc(100dvh - 140px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 3px;
}
.lightbox-figure figcaption { display: flex; gap: 16px; color: var(--ink-body); font-size: 1rem; text-align: center; }
.lightbox-count { color: var(--ink-mute); font-variant-numeric: tabular-nums; }
.lightbox .icon-btn { position: fixed; --surface: var(--gunmetal); }
.lightbox-close { top: calc(12px + env(safe-area-inset-top)); right: 12px; }
.lightbox-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 12px; top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) {
  .lightbox-figure { padding: 64px 8px 84px; }
  .lightbox-prev, .lightbox-next { top: auto; bottom: calc(16px + env(safe-area-inset-bottom)); transform: none; }
  .lightbox-prev { left: calc(50% - 60px); }
  .lightbox-next { right: calc(50% - 60px); }
}

/* ------------------------------------------------------------ legal + 404 */
.legal { max-width: calc(760px + 2 * var(--gutter)); padding-block: 40px var(--section-y); }
.legal-back a { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-mute); text-decoration: none; }
.legal-back a:hover { color: var(--butterscotch); }
.legal h1 { margin: 28px 0 24px; font-size: clamp(2.5rem, 1.6rem + 3vw, 4rem); }
.legal h2 { margin: 40px 0 12px; font-size: 1.5rem; color: var(--butterscotch); }
.legal ul { padding-left: 1.2em; }
.legal li { margin-bottom: 0.5em; }
.legal li::marker { color: var(--butterscotch); }
.legal strong { color: var(--ink); font-weight: 600; }
.legal-updated { margin-top: 48px; color: var(--ink-mute); font-size: 0.9375rem; }

.not-found { padding-block: clamp(64px, 12vw, 160px); }
.not-found h1 { font-size: clamp(2.75rem, 1.6rem + 4vw, 4.75rem); margin-bottom: 20px; }
.not-found p { max-width: 52ch; }
.not-found p[lang] { color: var(--ink-mute); }

/* ------------------------------------------------------------ motion
   One grammar everywhere: slow exponential ease-out, small rise, never bouncy.
   One orchestrated moment: the hero load sequence (pure CSS, always ends visible) plus the frieze.
   Everything else moves only in answer to the visitor. Reduced motion = static page. */
@media (prefers-reduced-motion: no-preference) {
  .hero h1, .hero-intro, .hero-actions, .hero-facts { animation: rise-in 1.1s var(--ease-out) both; }
  .hero-intro { animation-delay: 0.14s; }
  .hero-actions { animation-delay: 0.26s; }
  .hero-facts { animation-delay: 0.38s; }
  .hero-figure { animation: rise-in 1.3s var(--ease-out) 0.18s both; }
  .hero-photo { animation: settle 2.4s var(--ease-out) 0.18s both; }
}
/* Opening curtain (home page only): the crest with spinning barber poles, then the page rises into view.
   Pure CSS with a fixed end, so it always clears itself; never blocks clicks; skipped for reduced motion. */
.intro { display: none; }
@media (prefers-reduced-motion: no-preference) {
  .intro {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: grid;
    place-items: center;
    background: var(--gunmetal);
    pointer-events: none;
    animation: intro-out 0.75s cubic-bezier(0.7, 0, 0.2, 1) 1.7s forwards;
  }
  .intro img { width: min(340px, 72vw); height: auto; } /* brand/logo-intro.svg animates itself: poles roll apart, the name appears */
  /* the page's own entrance starts as the curtain lifts */
  .page-home .hero h1 { animation-delay: 1.8s; }
  .page-home .hero-intro { animation-delay: 1.94s; }
  .page-home .hero-actions { animation-delay: 2.06s; }
  .page-home .hero-facts { animation-delay: 2.18s; }
  .page-home .hero-figure, .page-home .hero-photo { animation-delay: 1.98s; }
  .page-home .frieze-hero.is-revealing { animation-delay: 2s; }
}
html.no-intro .intro { display: none; }
html.no-intro .page-home .hero h1 { animation-delay: 0s; }
html.no-intro .page-home .hero-intro { animation-delay: 0.14s; }
html.no-intro .page-home .hero-actions { animation-delay: 0.26s; }
html.no-intro .page-home .hero-facts { animation-delay: 0.38s; }
html.no-intro .page-home .hero-figure, html.no-intro .page-home .hero-photo { animation-delay: 0.18s; }
html.no-intro .page-home .frieze-hero.is-revealing { animation-delay: 0.2s; }
html.no-intro .page-home .scroll-cue span::after { animation-delay: 1s; }
@keyframes intro-out {
  to { transform: translateY(-100%); visibility: hidden; }
}
@keyframes rise-in {
  from { opacity: 0; transform: translateY(24px); filter: blur(6px); }
  to { opacity: 1; transform: none; filter: none; }
}
@keyframes settle { from { transform: scale(1.12); } to { transform: scale(1); } }

/* ------------------------------------------------------------ consent (external embeds) */
.consent {
  position: fixed;
  z-index: 150;
  left: max(12px, env(safe-area-inset-left));
  right: max(12px, env(safe-area-inset-right));
  bottom: max(12px, env(safe-area-inset-bottom));
  max-width: 520px;
  --c: 12px;
  --ci: calc(var(--c) - 0.83px);
  isolation: isolate;
  padding: 14px 16px 12px;
  color: var(--ink-body);
  background: var(--butterscotch); /* the 2px line; the fill is ::after */
  clip-path: polygon(var(--c) 0, calc(100% - var(--c)) 0, 100% var(--c), 100% calc(100% - var(--c)), calc(100% - var(--c)) 100%, var(--c) 100%, 0 calc(100% - var(--c)), 0 var(--c));
}
.consent::after { content: ""; position: absolute; inset: 2px; z-index: -1; background: var(--gunmetal-deep); clip-path: polygon(var(--ci) 0, calc(100% - var(--ci)) 0, 100% var(--ci), 100% calc(100% - var(--ci)), calc(100% - var(--ci)) 100%, var(--ci) 100%, 0 calc(100% - var(--ci)), 0 var(--ci)); }
.consent[hidden] { display: none; }
.consent p { margin: 0; font-size: 0.875rem; line-height: 1.45; }
.consent a { color: var(--almond); }
.consent-options { display: grid; gap: 8px; margin-top: 10px; }
.consent-options[hidden] { display: none; }
.consent-opt { display: flex; gap: 10px; align-items: flex-start; font-size: 0.875rem; line-height: 1.4; cursor: pointer; }
.consent-opt input { flex: none; width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--butterscotch); }
.consent-opt strong { display: block; color: var(--ink); }
.consent-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.consent-actions .btn { flex: 1 1 120px; min-height: 44px; padding: 0.4em 0.6em; font-size: 0.9375rem; white-space: nowrap; } /* allow and decline are the same size: declining is as easy as allowing */
.consent-actions .btn[hidden] { display: none; }
.consent-more {
  padding: 0;
  border: 0;
  background: none;
  color: var(--almond);
  font: inherit;
  font-size: 0.875rem;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.consent-more[hidden] { display: none; }
.consent-more:hover { color: var(--butterscotch); }
.footer-consent { margin: 0; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.footer-consent[hidden] { display: none; }
@media (max-width: 759px) {
  .consent { bottom: calc(12px + env(safe-area-inset-bottom)); }
  .consent-open .mobile-bar { transform: translateY(110%); } /* the notice takes the bottom of the screen while open */
}

/* ------------------------------------------------------------ late motion rules (must follow the base rules) */

/* map: streets ink themselves in, then the shop badge drops onto its spot */
.km.is-waiting .km-road { stroke-dasharray: 1 1; stroke-dashoffset: 1; }
.km.is-waiting .km-sleepers, .km.is-waiting text, .km.is-waiting .km-stop, .km.is-waiting .km-compass, .km.is-waiting .km-drop { opacity: 0; }
.km.is-drawing .km-road { stroke-dasharray: 1 1; animation: km-draw 2.2s cubic-bezier(0.45, 0, 0.2, 1) both; }
.km.is-drawing .km-sleepers, .km.is-drawing text, .km.is-drawing .km-stop, .km.is-drawing .km-compass { animation: km-fade 0.8s ease-out 1.5s both; }
.km.is-drawing .km-drop { animation: km-drop 0.8s var(--ease-out) 1.9s both; }
@keyframes km-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes km-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes km-drop { from { opacity: 0; transform: translateY(-70px); } to { opacity: 1; transform: none; } }

@media print {
  .site-header, .mobile-bar, .frieze, .map, dialog { display: none !important; }
  body { background: #fff; color: #000; }
  h1, h2, h3 { color: #000; }
}

/* ------------------------------------------------------------ page to page: a quiet crossfade, the header stays put */
@view-transition { navigation: auto; }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }
@media (prefers-reduced-motion: no-preference) {
  .site-header { view-transition-name: site-header; }
  ::view-transition-old(root) { animation: 0.18s ease-in both vt-out; }
  ::view-transition-new(root) { animation: 0.32s var(--ease-out) both vt-in; }
}
@keyframes vt-out { to { opacity: 0; } }
@keyframes vt-in { from { opacity: 0; } }
