/* The Corner Barbershop — site styles
   Direction: "The place carries it" (taste-skill, seed 33731487)
   Idea: the corner. Names sit in corners, pictures open from a corner, pages arrive from a corner. */

/* ---------- fonts (self-hosted, variable) ---------- */
@font-face { font-family: "Sofia Sans XC"; font-style: normal; font-display: swap; font-weight: 1 1000;
  src: url(/fonts/sofia-sans-extra-condensed-cyrillic-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Sofia Sans XC"; font-style: normal; font-display: swap; font-weight: 1 1000;
  src: url(/fonts/sofia-sans-extra-condensed-latin-ext-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Sofia Sans XC"; font-style: normal; font-display: swap; font-weight: 1 1000;
  src: url(/fonts/sofia-sans-extra-condensed-latin-wght-normal.woff2) format("woff2-variations");
  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: "EB Garamond"; font-style: normal; font-display: swap; font-weight: 400 800;
  src: url(/fonts/eb-garamond-cyrillic-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "EB Garamond"; font-style: normal; font-display: swap; font-weight: 400 800;
  src: url(/fonts/eb-garamond-latin-ext-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "EB Garamond"; font-style: normal; font-display: swap; font-weight: 400 800;
  src: url(/fonts/eb-garamond-latin-wght-normal.woff2) format("woff2-variations");
  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: "EB Garamond"; font-style: italic; font-display: swap; font-weight: 400 800;
  src: url(/fonts/eb-garamond-cyrillic-wght-italic.woff2) format("woff2-variations");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "EB Garamond"; font-style: italic; font-display: swap; font-weight: 400 800;
  src: url(/fonts/eb-garamond-latin-wght-italic.woff2) format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

/* ---------- tokens ---------- */
:root {
  --bg: #0c0a08;
  --surface: #181512;
  --surface-2: #231f1a;
  --ink: #ffffff;
  --muted: #a29b92;
  --paper: #e5e3df;
  --paper-2: #d8d5cf;
  --paper-ink: #14110d;
  --paper-muted: #5a5248;
  --ok: #a7d49b;
  --note: #f6d84a;
  --note-ink: #1d1700;

  --f-display: "Sofia Sans XC", "Arial Narrow", "Roboto Condensed", sans-serif;
  --f-text: "EB Garamond", Georgia, "Times New Roman", serif;

  /* five sizes */
  --s-small: 0.9375rem;                                  /* 15 */
  --s-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);   /* 17–19 */
  --s-lead: clamp(1.25rem, 1.12rem + 0.45vw, 1.5rem);     /* 20–24 */
  --s-head: clamp(3rem, 1.4rem + 6.4vw, 8.5rem);          /* 48–136 */
  --s-display: clamp(4.75rem, 1.6rem + 14.2vw, 16.5rem);  /* 76–264 */

  --m: clamp(20px, 2.5vw, 36px);        /* outer margin, one pair everywhere */
  --g: clamp(12px, 1.6vw, 24px);        /* column gap */
  --section: clamp(96px, 12vw, 200px);  /* gap between sections */
  --rail-h: 64px;
  --bar-h: 0px;

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-exit: cubic-bezier(0.55, 0.055, 0.675, 0.19);
  --ease-drawer: cubic-bezier(0.32, 0.72, 0, 1);
}
@media (max-width: 860px) {
  :root { --bar-h: calc(60px + env(safe-area-inset-bottom)); --rail-h: 60px; }
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; background: var(--bg); color-scheme: dark; scroll-padding-top: calc(var(--rail-h) + 16px); }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: var(--f-text); font-size: var(--s-body); line-height: 1.5; font-weight: 400;
  font-kerning: normal; font-variant-ligatures: common-ligatures;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
  overflow-x: clip;
  padding-bottom: var(--bar-h);
}
img { display: block; max-width: 100%; height: auto; }
figure { margin: 0; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a[href^="tel:"] { white-space: nowrap; }
.addr { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.22em; text-decoration-color: color-mix(in srgb, currentColor 45%, transparent); transition: text-decoration-color 180ms ease; }
@media (hover: hover) and (pointer: fine) { .addr:hover { text-decoration-color: currentColor; } }
p { margin: 0; text-wrap: pretty; }
h1, h2, h3 { margin: 0; font-weight: inherit; text-wrap: balance; }
ul { margin: 0; padding: 0; list-style: none; }
dl, dd { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--paper); outline-offset: 3px; }
::selection { background: var(--paper); color: var(--paper-ink); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.tab { font-variant-numeric: tabular-nums; }

.display, .phead__title, .intro__title, .window__title, .corners__title, .cta__title, .sheet__title,
.brands__title, .brands__list, .faq__title, .barber__name, .mosaic__title, .shop__name,
.more__title, .footer__name, .credits__title {
  font-family: var(--f-display); font-weight: 760; text-transform: uppercase;
  line-height: 0.86; letter-spacing: -0.005em;
}

.skip { position: absolute; left: var(--m); top: -100px; z-index: 100; background: var(--paper); color: var(--paper-ink); padding: 12px 16px; }
.skip:focus { top: 12px; }

/* ---------- demo notes ---------- */
.note {
  display: inline; font-family: var(--f-text); font-size: var(--s-small); font-weight: 500; font-style: italic;
  letter-spacing: 0; text-transform: none; line-height: 1.4;
  background: var(--note); color: var(--note-ink); padding: 0.05em 0.4em; white-space: nowrap;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.notes-off .note--tbc { display: none; }
.notes-off .note--fill { background: none; color: var(--muted); padding: 0; font-style: normal; }
.notes-hint {
  position: fixed; left: 16px; bottom: 16px; z-index: 30; max-width: 340px;
  background: var(--note); color: var(--note-ink); font-size: var(--s-small); line-height: 1.35; padding: 10px 14px;
}
.notes-hint button { text-decoration: underline; text-underline-offset: 0.2em; font-weight: 600; }
.notes-off .notes-hint { display: none; }
@media (max-width: 860px) { .notes-hint { display: none; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.6em;
  min-height: 52px; padding: 0 28px;
  font-family: var(--f-display); font-weight: 720; font-size: var(--s-lead); line-height: 1;
  text-transform: uppercase; letter-spacing: 0.03em; text-decoration: none; white-space: nowrap;
  border-radius: 0; user-select: none; -webkit-user-select: none; touch-action: manipulation;
  transition: transform 140ms var(--ease-out), background-color 180ms ease, color 180ms ease;
}
.btn:active { transform: scale(0.97); }
.btn--paper { background: var(--paper); color: var(--paper-ink); }
.btn--ink { background: var(--paper-ink); color: var(--paper); }
.btn--xl { min-height: 76px; padding: 0 48px; }
@media (hover: hover) and (pointer: fine) {
  .btn--paper:hover { background: #fff; }
  .btn--ink:hover { background: #000; }
}

/* text links that act */
.sheet__more, .shop__dir, .barber__book, .lost__book {
  font-family: var(--f-display); font-weight: 700; font-size: var(--s-lead); text-transform: uppercase; letter-spacing: 0.03em;
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.28em;
  transition: text-underline-offset 200ms var(--ease-out), opacity 180ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .sheet__more:hover, .shop__dir:hover, .barber__book:hover, .lost__book:hover { text-underline-offset: 0.42em; }
}

/* ---------- rail (header) ---------- */
.rail {
  position: sticky; top: 0; z-index: 40; height: var(--rail-h);
  background: var(--bg); color: var(--ink);
  view-transition-name: rail;
  transition: background-color 300ms ease;
}
.rail--home { background: rgba(12, 10, 8, 0.3); }
.rail--home.is-docked { background: var(--bg); }
html:not(.js) .rail--home { background: var(--bg); }
.rail__inner { display: flex; align-items: center; gap: clamp(16px, 2vw, 36px); height: 100%; padding: 0 var(--m); }
.rail__brand { margin: 0; font-family: var(--f-display); font-weight: 780; font-size: 2rem; line-height: 1; text-transform: uppercase; letter-spacing: 0; white-space: nowrap; }
.rail__brand a { text-decoration: none; }
/* home: the name lives on the picture; it joins the rail once the rail docks */
.rail--home .rail__brand { opacity: 0; visibility: hidden; transition: opacity 300ms ease, visibility 0s 300ms; }
.rail--home.is-docked .rail__brand, html:not(.js) .rail--home .rail__brand { opacity: 1; visibility: visible; transition: opacity 300ms ease, visibility 0s; }
.rail__kind { font-weight: 400; }
/* home, wide screens: the line sits top-left in the rail; the name is on the picture */
.rail__line { margin: 0; font-size: var(--s-body); line-height: 1.3; max-width: 40ch; }
@media (min-width: 1000px) { .rail--home .rail__brand { display: none; } }
@media (min-width: 1240px) { .rail__line { max-width: none; white-space: nowrap; } }
@media (max-width: 999px) { .rail__line { display: none; } }
.rail__nav { display: flex; gap: clamp(16px, 2vw, 32px); margin-left: auto; }
.rail__nav a, .rail__lang, .rail__menu {
  position: relative; font-family: var(--f-display); font-weight: 680; font-size: var(--s-lead);
  text-transform: uppercase; letter-spacing: 0.03em; text-decoration: none; line-height: 1; padding: 10px 0;
}
.rail__nav a::after, .rail__lang::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 2px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform 300ms var(--ease-out);
}
.rail__nav a[aria-current="page"]::after { transform: scaleX(1); }
@media (hover: hover) and (pointer: fine) {
  .rail__nav a:hover::after, .rail__lang:hover::after { transform: scaleX(1); transform-origin: left; }
}
.rail__book { min-height: 44px; padding: 0 22px; }
.rail__menu { display: none; margin-left: auto; padding: 12px 0 12px 16px; }
@media (max-width: 860px) {
  .rail__nav, .rail__lang, .rail__book { display: none; }
  .rail__menu { display: block; }
  .rail__brand { font-size: 1.75rem; }
}

/* ---------- hero ---------- */
.hero { position: relative; margin-top: calc(var(--rail-h) * -1); }
.hero__frame { position: relative; height: 100svh; min-height: 520px; overflow: hidden; background: var(--surface); }
.hero__slides { position: absolute; inset: 0; }
.hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.6s ease; }
.hero__img.is-on { opacity: 1; }
.motion .hero__img.is-on, .motion .hero__img.is-leaving { animation: hero-drift 9s linear both; }
@keyframes hero-drift { from { transform: scale(1.07); } to { transform: scale(1); } }
/* The name broken across the full width: THE CORNER holds the left, BARBERSHOP the right,
   and the space each leaves carries the rating and the booking button. Measured in this face at 780, -0.01em:
   THE CORNER 3.798em, CORNER 2.506em, BARBERSHOP 4.052em. */
.hero__text { --hs: min(calc((100vw - 2 * var(--m)) * 0.18), 28svh); position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 0 var(--m) clamp(22px, 3.4vh, 36px); }
.hero__text::before {
  content: ""; position: absolute; inset: -70% 0 0 0; z-index: -1; pointer-events: none;
  background: linear-gradient(to top, rgba(12, 10, 8, 0.78), rgba(12, 10, 8, 0.4) 55%, rgba(12, 10, 8, 0)); /* taste-skill-ignore: neutral scrim under text on a photo */
}
.hero__title { font-family: var(--f-display); font-weight: 780; text-transform: uppercase; letter-spacing: -0.01em; line-height: 0.82; font-size: var(--hs); margin: 0; }
.hl { display: block; }
.hl--1 { margin-left: -0.035em; }
.hl--2 { text-align: right; margin: -0.1em -0.02em 0 0; }
.hl__mask { display: inline-block; vertical-align: top; overflow: clip; padding: 0.04em 0 0.02em; }
.hl__word { display: inline-block; }
.hero__rating {
  position: absolute; right: var(--m); top: 0; height: calc(var(--hs) * 0.76);
  display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-end; gap: 10px; text-align: right; text-decoration: none;
}
.hero__rating-value { font-family: var(--f-display); font-weight: 780; font-size: calc(var(--hs) * 0.44); line-height: 0.8; }
.hero__rating-text { font-size: var(--s-body); line-height: 1.3; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; text-decoration-color: color-mix(in srgb, currentColor 45%, transparent); }
.hero__book { position: absolute; left: var(--m); bottom: calc(clamp(22px, 3.4vh, 36px) + var(--hs) * 0.07); min-height: calc(var(--hs) * 0.36); padding: 0 calc(var(--hs) * 0.24); font-size: calc(var(--hs) * 0.12); }
.hero__line { margin-top: clamp(14px, 2vh, 22px); font-size: var(--s-lead); line-height: 1.3; max-width: 46ch; }
@media (min-width: 1000px) { .hero__line { display: none; } }
.motion .hl__word { animation: hero-rise 1.15s var(--ease-expo) 0.1s both; }
.motion .hl--2 .hl__word { animation-delay: 0.22s; }
.motion .hero__rating, .motion .hero__book, .motion .hero__line { animation: hero-line 0.8s var(--ease-out) 0.6s both; }
@keyframes hero-rise { from { transform: translateY(104%); } }
@keyframes hero-line { from { opacity: 0; transform: translateY(12px); } }
/* narrower screens: a second composition. THE small, CORNER across the whole width, BARBERSHOP under it */
@media (max-width: 999px) {
  .hero__rating, .hero__book { display: none; }
  .hl--1 { font-size: min(calc((100vw - 2 * var(--m)) * 0.393), 21svh); }
  .hl--2 { font-size: min(calc((100vw - 2 * var(--m)) * 0.243), 13svh); text-align: left; margin: 0 0 0 -0.035em; }
  .hl__the { display: block; font-size: 0.34em; line-height: 1; margin: 0 0 0.06em 0.05em; }
}

.rating { display: inline-flex; align-items: baseline; gap: 0.6em; text-decoration: none; }
.rating__value { font-family: var(--f-display); font-weight: 760; font-size: var(--s-head); line-height: 0.8; }
.rating__text { font-size: var(--s-body); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }

@media (max-width: 860px) {
  .hero__text { padding-bottom: calc(var(--bar-h) + 24px); }
  .hero__frame { min-height: 480px; }
}

/* ---------- intro: headline crossing onto a photograph ---------- */
.intro {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: auto auto 1fr; column-gap: var(--g);
  padding: var(--section) var(--m) 0;
}
.intro__title { grid-column: 1 / -1; grid-row: 1; position: relative; z-index: 2; font-size: min(var(--s-display), 12.6vw); }
.intro__l1, .intro__l2 { display: block; }
.intro__tall {
  grid-column: 7 / -1; grid-row: 1 / span 3; margin-top: calc(min(var(--s-display), 12.6vw) * 0.95);
  margin-right: calc(var(--m) * -1); aspect-ratio: 4 / 5; overflow: hidden; background: var(--surface);
}
.intro__tall img, .intro__small img, .phead__media img, .brands__pic img, .cta__pic img, .cta__corner img,
.gallery__frame img, .mosaic__wide > img { width: 100%; height: 100%; object-fit: cover; }
.intro__copy { grid-column: 1 / span 5; grid-row: 2; margin-top: clamp(32px, 4vw, 56px); display: grid; gap: 28px; align-content: start; }
.intro__text { font-size: var(--s-lead); line-height: 1.4; max-width: 30ch; }
.intro__small { grid-column: 2 / span 3; grid-row: 3; margin-top: clamp(40px, 6vw, 96px); aspect-ratio: 9 / 10; overflow: hidden; background: var(--surface); }
@media (max-width: 760px) {
  .intro__title { grid-column: 1 / -1; font-size: var(--s-head); }
  .intro__tall { grid-column: 4 / -1; grid-row: 2; margin-top: calc(var(--s-head) * -0.9); }
  .intro__copy { grid-column: 1 / -1; grid-row: 3; margin-top: 40px; }
  .intro__small { grid-column: 1 / span 6; grid-row: 4; margin-top: 40px; }
}

/* ---------- pricing: a printed sheet sliding over a held picture ---------- */
.pricing { position: relative; margin-top: var(--section); }
.pricing__held { position: sticky; top: 0; height: 100svh; overflow: hidden; z-index: 0; background: var(--surface); }
.pricing__pic { position: absolute; inset: 0; }
.pricing__pic img { width: 100%; height: 100%; object-fit: cover; }
.sheet {
  position: relative; z-index: 1; margin-top: -62svh; padding: 0 var(--m) 22svh;
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--g);
}
.sheet__paper {
  grid-column: 7 / -1; justify-self: end; width: 100%; max-width: 640px; position: relative;
  background: var(--paper); color: var(--paper-ink); padding: 64px; text-align: center;
}
.sheet__paper::before, .sheet__paper::after {
  content: ""; position: absolute; left: 0; right: 0; height: 12px;
  background-repeat: repeat-x; background-size: 24px 12px; background-position: center;
}
.sheet__paper::before { top: -12px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='12'%3E%3Ccircle cx='12' cy='12' r='12' fill='%23e5e3df'/%3E%3C/svg%3E"); }
.sheet__paper::after { bottom: -12px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='12'%3E%3Ccircle cx='12' cy='0' r='12' fill='%23e5e3df'/%3E%3C/svg%3E"); }
.sheet__title { font-size: var(--s-head); }
.sheet__note { margin-top: 16px; font-size: var(--s-small); color: var(--paper-muted); }
.sheet__group { margin-top: 52px; }
.sheet__group-name { font-family: var(--f-display); font-weight: 720; font-size: var(--s-lead); text-transform: uppercase; letter-spacing: 0.06em; }
.sheet__items { margin: 20px auto 0; max-width: 440px; display: grid; gap: 16px; text-align: left; }
.sheet__item { display: grid; grid-template-columns: 1fr auto; column-gap: 16px; align-items: baseline; }
.sheet__name { font-size: var(--s-body); font-weight: 600; }
.sheet__price { font-size: var(--s-body); font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
.sheet__min { font-weight: 400; color: var(--paper-muted); margin-right: 14px; font-size: var(--s-small); }
.sheet__desc { grid-column: 1 / -1; font-size: var(--s-body); font-style: italic; margin-top: 2px; }
.sheet__aside { margin: 40px auto 0; max-width: 40ch; font-size: var(--s-body); }
.sheet__aside + .sheet__aside { margin-top: 12px; }
.sheet__hours { margin-top: 48px; font-size: var(--s-body); line-height: 1.4; }
.sheet__actions { margin-top: 36px; display: flex; flex-direction: column; align-items: center; gap: 22px; }
.pricing--full .sheet { margin-top: -78svh; }
@media (max-width: 960px) {
  .sheet__paper { grid-column: 2 / -2; justify-self: center; }
}
@media (max-width: 760px) {
  .sheet { padding: 0 10px 14svh; margin-top: -48svh; }
  .pricing--full .sheet { margin-top: -60svh; }
  .sheet__paper { grid-column: 1 / -1; padding: 44px 24px 40px; }
  .sheet__items { max-width: none; }
  .sheet__group { margin-top: 40px; }
  .sheet__min { margin-right: 10px; }
}

/* ---------- window: a picture opening from the corner ---------- */
.window { position: relative; height: 100svh; margin-top: var(--section); }
.motion .window { height: 230svh; }
.window__stage { position: sticky; top: 0; height: 100svh; overflow: hidden; }
.window__frame { position: absolute; inset: 0; overflow: hidden; transform-origin: 100% 100%; background: var(--surface); }
.window__frame::after { content: ""; position: absolute; inset: 0; background: rgba(12, 10, 8, 0.38); }
.window__pic { position: absolute; inset: 0; }
.window__pic img { width: 100%; height: 100%; object-fit: cover; }
.window__text { position: absolute; left: var(--m); top: calc(var(--rail-h) + clamp(24px, 5vh, 56px)); z-index: 2; max-width: min(92vw, 1100px); }
.window__title { font-size: var(--s-display); }
.window__lead { margin-top: 24px; font-size: var(--s-lead); line-height: 1.4; max-width: 34ch; }

/* ---------- corners: two visit cards on a photograph ---------- */
.corners { position: relative; margin-top: var(--section); min-height: max(100svh, 760px); overflow: hidden; }
.corners__media { position: absolute; inset: 0; background: var(--surface); }
.corners__pic { position: absolute; inset: -7% 0; }
.corners__pic img { width: 100%; height: 100%; object-fit: cover; }
.corners__media::after { content: ""; position: absolute; inset: 0; background: rgba(12, 10, 8, 0.42); }
.corners__title { position: absolute; left: var(--m); bottom: var(--m); z-index: 2; font-size: var(--s-head); }
.visit {
  position: absolute; z-index: 2; top: 60px; width: 380px; display: flex; flex-direction: column; gap: 14px;
  background: var(--paper); color: var(--paper-ink); padding: 32px 32px 0;
}
.visit--i { left: var(--m); }
.visit--ii { right: var(--m); }
.visit__name { font-family: var(--f-display); font-weight: 760; font-size: var(--s-lead); text-transform: uppercase; line-height: 0.9; }
.visit__area { font-size: var(--s-body); color: var(--paper-muted); margin-top: -6px; }
.visit__addr { font-size: var(--s-body); line-height: 1.4; }
.visit__rows { display: grid; gap: 6px; font-size: var(--s-body); }
.visit__rows div { display: flex; justify-content: space-between; gap: 16px; }
.visit__rows dt { color: var(--paper-muted); }
.visit__rows dd { text-align: right; }
.visit__rows .tab { margin-left: 0.5em; }
.visit__book { margin: 18px -32px 0; min-height: 56px; }
@media (max-width: 960px) {
  .corners { min-height: 0; padding: 0 var(--m) var(--m); display: grid; gap: 12px; }
  .corners__media { position: relative; inset: auto; height: 70svh; margin: 0 calc(var(--m) * -1) -80px; }
  .corners__title { left: var(--m); top: calc(var(--rail-h) + 24px); bottom: auto; }
  .visit { position: relative; top: auto; left: auto; right: auto; width: auto; }
  .visit__book { min-height: 56px; }
}

/* ---------- closing band ---------- */
.cta { margin-top: var(--section); }
.cta__strip { display: grid; grid-template-columns: repeat(3, 1fr); height: 40svh; min-height: 260px; }
.cta__pic { overflow: hidden; background: var(--surface); }
.cta__band { position: relative; background: var(--surface); padding: clamp(64px, 8vw, 128px) var(--m); min-height: 44svh; }
.cta__copy { max-width: 900px; display: grid; gap: 28px; justify-items: start; }
.cta__title { font-size: var(--s-head); }
.cta__text { font-size: var(--s-lead); line-height: 1.4; max-width: 36ch; }
.cta__small { font-size: var(--s-small); color: var(--muted); max-width: 52ch; }
.cta__corner { position: absolute; right: var(--m); bottom: var(--m); width: 180px; aspect-ratio: 4 / 5; overflow: hidden; }
@media (max-width: 760px) {
  .cta__strip { grid-template-columns: 1fr 1fr; height: auto; min-height: 0; }
  .cta__pic:first-child { grid-column: 1 / -1; aspect-ratio: 4 / 3; }
  .cta__pic { aspect-ratio: 1 / 1; }
  .cta__band { padding-bottom: 160px; }
  .cta__copy { justify-items: stretch; }
  .cta__title, .cta__text, .cta__small { justify-self: start; }
  .cta__corner { width: 96px; }
  .btn--xl { width: 100%; }
}

/* ---------- footer: the name across the last photograph ---------- */
.footer {
  position: relative; isolation: isolate; overflow: hidden; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: space-between; gap: 48px;
  padding: 32px var(--m) 24px; color: var(--ink);
}
.footer__media { position: absolute; inset: 0; z-index: -1; background: var(--surface); }
.footer__media img { width: 100%; height: 100%; object-fit: cover; filter: brightness(0.5); }
.footer__top { display: flex; justify-content: space-between; gap: 48px; align-items: flex-start; }
.footer__links { display: grid; gap: 6px; font-size: var(--s-body); }
.footer__links a { text-decoration: none; width: fit-content; }
.footer__links a[aria-current="page"], .footer__links a:hover { text-decoration: underline; }
.footer__contact { display: grid; grid-template-columns: repeat(2, minmax(0, 240px)); gap: 40px; font-size: var(--s-body); line-height: 1.4; text-align: right; }
.footer__shopname { font-family: var(--f-display); font-weight: 760; font-size: var(--s-lead); text-transform: uppercase; margin-bottom: 6px; }
.footer__shopname span { display: block; font-family: var(--f-text); font-weight: 400; text-transform: none; font-size: var(--s-body); }
.footer__name { font-size: 25.4vw; line-height: 0.78; letter-spacing: -0.02em; white-space: nowrap; margin: auto 0 0 -0.04em; }
.footer__legal { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: var(--s-small); align-items: baseline; }
.footer__legal a { text-decoration: underline; }
.footer__notes { text-decoration: underline; text-underline-offset: 0.2em; }
@media (max-width: 760px) {
  .footer { min-height: 88svh; padding-top: 28px; }
  .footer__top { flex-direction: column; gap: 32px; }
  .footer__contact { grid-template-columns: 1fr 1fr; gap: 20px; text-align: left; }
  .footer__name { font-size: 25vw; }
}

/* ---------- inner page head ---------- */
.phead {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-rows: auto auto 1fr auto; column-gap: var(--g);
  padding: clamp(48px, 7vw, 112px) var(--m) 0;
}
.phead__text { display: contents; }
.phead__title { grid-column: 1 / -1; grid-row: 1; position: relative; z-index: 2; font-size: var(--s-display); }
.phead__media {
  grid-column: 8 / -1; grid-row: 1 / span 3; margin-top: calc(var(--s-display) * 0.95);
  margin-right: calc(var(--m) * -1); aspect-ratio: 4 / 5; max-height: 92svh; overflow: hidden; background: var(--surface);
}
.phead__lead { grid-column: 1 / span 6; grid-row: 2; margin-top: clamp(28px, 3vw, 44px); font-size: var(--s-lead); line-height: 1.4; max-width: 34ch; }
.phead__note { grid-column: 1 / span 6; grid-row: 3; margin-top: 20px; font-size: var(--s-small); color: var(--muted); max-width: 52ch; }
.phead--plain .phead__lead { grid-column: 1 / span 7; }
.phead__after { grid-column: 1 / -1; grid-row: 4; }
@media (max-width: 760px) {
  .phead__media { grid-column: 3 / -1; grid-row: 2; margin-top: calc(var(--s-display) * -0.86); }
  .phead__lead { grid-column: 1 / -1; grid-row: 3; }
  .phead__note { grid-column: 1 / -1; grid-row: 4; }
  .phead--plain .phead__lead { grid-column: 1 / -1; grid-row: 2; }
}

/* ---------- services: brands as a type wall ---------- */
.brands {
  display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--g); row-gap: 40px;
  padding: var(--section) var(--m) 0; align-items: start;
}
.brands__copy { grid-column: 1 / span 5; display: grid; gap: 24px; }
.brands__title { font-size: var(--s-head); }
.brands__text { font-size: var(--s-lead); line-height: 1.4; max-width: 30ch; }
.brands__list { grid-column: 1 / span 7; grid-row: 2; font-size: var(--s-display); color: var(--paper); }
.brands__list li { display: block; }
.brands__pic { grid-column: 8 / -1; grid-row: 1 / span 2; margin-right: calc(var(--m) * -1); aspect-ratio: 3 / 4; overflow: hidden; background: var(--surface); }
@media (max-width: 760px) {
  .brands__copy, .brands__list { grid-column: 1 / -1; }
  .brands__pic { grid-column: 3 / -1; grid-row: 3; aspect-ratio: 4 / 5; }
}

/* ---------- services: answers ---------- */
.faq { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--g); padding: var(--section) var(--m) 0; }
.faq__title { grid-column: 1 / span 4; font-size: var(--s-head); align-self: start; position: sticky; top: calc(var(--rail-h) + 32px); }
.faq__list { grid-column: 6 / -1; display: grid; gap: 4px; }
.faq__item { background: var(--surface); }
.faq__item summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 24px 28px; font-size: var(--s-lead); line-height: 1.3; font-weight: 500;
  transition: background-color 180ms ease;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+"; font-family: var(--f-display); font-size: 2rem; line-height: 1; font-weight: 400;
  transition: transform 240ms var(--ease-out);
}
.faq__item[open] summary::after { transform: rotate(45deg); }
@media (hover: hover) and (pointer: fine) { .faq__item summary:hover { background: var(--surface-2); } }
.faq__item p { padding: 0 28px 26px; max-width: 60ch; }
@media (max-width: 760px) {
  .faq__title { grid-column: 1 / -1; position: static; margin-bottom: 32px; }
  .faq__list { grid-column: 1 / -1; }
  .faq__item summary { padding: 20px; }
  .faq__item p { padding: 0 20px 22px; }
}

/* ---------- team ---------- */
.crew { padding-top: var(--section); display: grid; gap: clamp(96px, 10vw, 160px); }
.barber { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--g); align-items: end; }
.barber__photo {
  grid-column: 1 / span 4; position: relative; aspect-ratio: 4 / 5; background: var(--surface); overflow: hidden;
  display: grid; place-items: center;
}
.barber__initial { font-family: var(--f-text); font-weight: 500; font-size: clamp(10rem, 22vw, 26rem); line-height: 0.8; color: #2c2721; }
.barber__info { grid-column: 6 / -1; display: grid; gap: 18px; justify-items: start; }
.barber__name { font-size: var(--s-display); }
.barber__alt { font-size: var(--s-lead); }
.barber__rows { display: grid; gap: 8px; font-size: var(--s-body); width: min(100%, 520px); margin-top: 8px; }
.barber__rows div { display: grid; grid-template-columns: 11em 1fr; gap: 16px; }
.barber__rows dt { color: var(--muted); }
.barber__book { margin-top: 12px; }
.barber--flip .barber__photo { grid-column: 9 / -1; grid-row: 1; }
.barber--flip .barber__info { grid-column: 1 / span 7; grid-row: 1; }
@media (max-width: 760px) {
  .barber__photo, .barber--flip .barber__photo { grid-column: 1 / span 9; grid-row: 1; }
  .barber--flip .barber__photo { grid-column: 4 / -1; }
  .barber__info, .barber--flip .barber__info { grid-column: 1 / -1; grid-row: 2; margin-top: 28px; }
  .barber__rows div { grid-template-columns: 8em 1fr; }
}

/* team: wide photo, colour tile, facts */
.mosaic { padding: var(--section) var(--m) 0; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--g); }
.mosaic__title { grid-column: 1 / -1; font-size: var(--s-head); }
.mosaic__lead { grid-column: 1 / span 6; margin-top: 24px; font-size: var(--s-lead); line-height: 1.4; max-width: 36ch; }
.mosaic__grid { grid-column: 1 / -1; margin-top: 72px; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; align-items: start; }
.mosaic__wide { grid-column: 1 / span 8; grid-row: 1 / span 2; position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface); }
.mosaic__block { position: absolute; top: 0; right: 0; width: 320px; max-width: 70%; background: var(--paper); color: var(--paper-ink); padding: 20px; font-size: var(--s-body); line-height: 1.4; }
.mosaic__tile { grid-column: 9 / -1; background: var(--surface-2); aspect-ratio: 4 / 3.2; padding: 28px; display: flex; flex-direction: column; justify-content: space-between; }
.mosaic__tile-num { font-family: var(--f-text); font-weight: 500; font-size: var(--s-display); line-height: 0.8; }
.mosaic__tile-text { font-size: var(--s-body); line-height: 1.4; }
.mosaic__facts { grid-column: 9 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 20px 16px; font-size: var(--s-body); padding-top: 12px; }
.mosaic__facts dt { color: var(--muted); font-size: var(--s-small); }
@media (max-width: 760px) {
  .mosaic__lead { grid-column: 1 / -1; }
  .mosaic__grid { grid-template-columns: 1fr; margin-top: 48px; }
  .mosaic__wide, .mosaic__tile, .mosaic__facts { grid-column: 1; grid-row: auto; }
  .mosaic__wide { aspect-ratio: auto; overflow: visible; background: none; }
  .mosaic__wide > img { width: 100%; height: auto; aspect-ratio: 4 / 3; }
  .mosaic__block { position: static; width: auto; max-width: none; background: none; color: var(--ink); padding: 18px 0 0; }
  .mosaic__tile { aspect-ratio: 3 / 2; margin-top: 64px; }
}

/* ---------- gallery: staggered pairs in empty ground ---------- */
.gallery { padding-top: clamp(80px, 9vw, 140px); }
.gallery__pair { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--g); align-items: start; }
.gallery__pair + .gallery__pair { margin-top: 18vh; }
.gallery__fig figcaption { margin-top: 10px; font-size: var(--s-small); color: var(--muted); line-height: 1.4; }
.gallery__fig figcaption span { display: block; }
.gallery__frame { overflow: hidden; background: var(--surface); }
.gallery__pair--a .gallery__fig--1, .gallery__pair--e .gallery__fig--1 { grid-column: 1 / span 4; }
.gallery__pair--a .gallery__fig--1 .gallery__frame, .gallery__pair--e .gallery__fig--1 .gallery__frame { aspect-ratio: 3 / 4; }
.gallery__pair--a .gallery__fig--2, .gallery__pair--e .gallery__fig--2 { grid-column: 7 / -1; margin-top: 30vh; }
.gallery__pair--a .gallery__fig--2 .gallery__frame, .gallery__pair--e .gallery__fig--2 .gallery__frame { aspect-ratio: 5 / 4; }
.gallery__pair--b .gallery__fig--1 { grid-column: 6 / span 6; }
.gallery__pair--b .gallery__fig--1 .gallery__frame { aspect-ratio: 3 / 2; }
.gallery__pair--b .gallery__fig--2 { grid-column: 2 / span 3; grid-row: 1; margin-top: 24vh; }
.gallery__pair--b .gallery__fig--2 .gallery__frame { aspect-ratio: 4 / 5; }
.gallery__pair--c .gallery__fig--1 { grid-column: 9 / -1; }
.gallery__pair--c .gallery__fig--1 .gallery__frame { aspect-ratio: 3 / 4; }
.gallery__pair--c .gallery__fig--2 { grid-column: 1 / span 6; grid-row: 1; margin-top: 30vh; }
.gallery__pair--c .gallery__fig--2 .gallery__frame { aspect-ratio: 5 / 4; }
.gallery__pair--d .gallery__fig--1 { grid-column: 2 / span 6; }
.gallery__pair--d .gallery__fig--1 .gallery__frame { aspect-ratio: 3 / 2; }
.gallery__pair--d .gallery__fig--2 { grid-column: 9 / span 3; margin-top: 24vh; }
.gallery__pair--d .gallery__fig--2 .gallery__frame { aspect-ratio: 4 / 5; }
@media (max-width: 760px) {
  .gallery__pair { display: block; }
  .gallery__pair + .gallery__pair { margin-top: 64px; }
  .gallery__fig { width: 70%; }
  .gallery__fig + .gallery__fig { margin-top: 64px !important; }
  .gallery__pair .gallery__fig { margin-top: 0 !important; }
  .gallery__fig--2 { margin-left: auto; width: 84%; }
  .gallery__pair--b .gallery__fig--1, .gallery__pair--d .gallery__fig--1 { width: 56%; }
  .gallery__pair--b .gallery__fig--2, .gallery__pair--d .gallery__fig--2 { width: calc(100% + var(--m) * 2); margin-left: calc(var(--m) * -1); }
  .gallery__pair--b .gallery__fig--2 figcaption, .gallery__pair--d .gallery__fig--2 figcaption { padding: 0 var(--m); }
  .gallery__fig .gallery__frame { aspect-ratio: 4 / 5 !important; }
}

.credits { padding: var(--section) var(--m) 0; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--g); }
.credits__title { grid-column: 1 / -1; font-size: var(--s-head); }
.credits__text { grid-column: 1 / span 6; margin-top: 24px; max-width: 52ch; }
.credits__list { grid-column: 1 / -1; margin-top: 48px; columns: 3 280px; column-gap: var(--g); font-size: var(--s-small); }
.credits__list li { break-inside: avoid; padding: 10px 0; display: grid; }
.credits__list span { color: var(--muted); }

/* ---------- locations ---------- */
.shops { display: grid; gap: var(--section); padding-top: var(--section); }
.shop {
  position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--g); row-gap: 40px;
  padding: 0 var(--m); align-items: start;
}
.shop__num {
  position: absolute; top: -0.12em; right: var(--m); z-index: 0; pointer-events: none;
  font-family: var(--f-text); font-weight: 500; font-size: clamp(12rem, 30vw, 34rem); line-height: 0.8; color: #2a251f;
}
.shop--flip .shop__num { right: auto; left: var(--m); }
.shop__info { grid-column: 1 / span 5; position: relative; z-index: 1; display: grid; gap: 20px; justify-items: start; }
.shop__name { font-size: var(--s-head); }
.shop__area { font-size: var(--s-lead); margin-top: -6px; }
.shop__facts { display: grid; gap: 14px; font-size: var(--s-body); width: 100%; margin-top: 8px; }
.shop__facts div { display: grid; grid-template-columns: 9.5em 1fr; gap: 16px; }
.shop__facts dt { color: var(--muted); }
.shop__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; margin-top: 12px; }
.shop__rating { margin-top: 28px; }
.shop__map { grid-column: 7 / -1; position: relative; z-index: 1; aspect-ratio: 4 / 3.4; background: var(--surface); margin-top: clamp(80px, 12vw, 200px); }
.shop__map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: invert(0.9) hue-rotate(180deg) saturate(0.55) brightness(0.95) contrast(0.92); }
.shop--flip .shop__info { grid-column: 8 / -1; grid-row: 1; }
.shop--flip .shop__map { grid-column: 1 / span 6; grid-row: 1; }
@media (max-width: 760px) {
  .shop__info, .shop--flip .shop__info { grid-column: 1 / -1; grid-row: 1; padding-top: 30vw; }
  .shop__map, .shop--flip .shop__map { grid-column: 1 / -1; grid-row: 2; margin: 0 calc(var(--m) * -1); aspect-ratio: 1 / 1; }
  .shop__facts div { grid-template-columns: 8em 1fr; }
}

.status { display: inline-flex; align-items: center; gap: 10px; font-size: var(--s-body); }
.status::before { content: ""; width: 9px; height: 9px; background: var(--muted); flex: none; }
.status[data-state="open"]::before { background: var(--ok); }
.status--unknown::before { opacity: 0.45; }
.visit .status, .chooser .status { color: var(--paper-ink); }
.visit .status::before, .chooser .status::before { background: var(--paper-muted); }
.visit .status[data-state="open"]::before, .chooser .status[data-state="open"]::before { background: #2f7a3a; }
.visit .status--unknown::before, .chooser .status--unknown::before { opacity: 0.45; }

.more { padding: var(--section) var(--m) 0; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--g); }
.more__title { grid-column: 1 / span 5; font-size: var(--s-head); }
.more__rows { grid-column: 7 / -1; display: grid; gap: 20px; font-size: var(--s-body); align-self: end; }
.more__rows div { display: grid; grid-template-columns: 11em 1fr; gap: 16px; }
.more__rows dt { color: var(--muted); }
@media (max-width: 760px) {
  .more__title, .more__rows { grid-column: 1 / -1; }
  .more__rows { margin-top: 32px; }
  .more__rows div { grid-template-columns: 1fr; gap: 2px; }
}

/* ---------- privacy, 404 ---------- */
.legal { padding: var(--section) var(--m) 0; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--g); }
.prose { grid-column: 1 / -1; columns: 2 380px; column-gap: calc(var(--g) * 4); }
.prose > * { break-inside: avoid; }
.prose p { margin-bottom: 16px; max-width: 62ch; }
.prose h2 { font-family: var(--f-display); font-weight: 740; font-size: var(--s-lead); text-transform: uppercase; letter-spacing: 0.04em; margin: 28px 0 10px; break-after: avoid; }
.prose > p:first-child { margin-bottom: 8px; }
.lost { padding: 64px var(--m) var(--section); }
.lost__links { display: flex; flex-wrap: wrap; align-items: center; gap: 24px 36px; }

/* ---------- phone action bar ---------- */
.actionbar { display: none; }
@media (max-width: 860px) {
  .actionbar {
    display: grid; grid-template-columns: 1fr 1.35fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
    height: var(--bar-h); padding-bottom: env(safe-area-inset-bottom); background: var(--bg);
    view-transition-name: actionbar;
  }
  .actionbar a {
    display: flex; align-items: center; justify-content: center; text-decoration: none;
    font-family: var(--f-display); font-weight: 720; font-size: var(--s-lead); text-transform: uppercase; letter-spacing: 0.03em;
    user-select: none; -webkit-user-select: none; touch-action: manipulation;
    transition: transform 140ms var(--ease-out);
  }
  .actionbar a:active { transform: scale(0.97); }
  .actionbar__call { background: var(--surface-2); color: var(--ink); }
  .actionbar__book { background: var(--paper); color: var(--paper-ink); }
}

/* ---------- dialogs: menu and "which corner?" ---------- */
dialog { padding: 0; border: 0; max-width: none; max-height: none; color: inherit; }
dialog::backdrop { background: rgba(6, 5, 4, 0.74); }

.menu {
  position: fixed; inset: 0; width: 100%; height: 100%; margin: 0; background: var(--bg); color: var(--ink);
  padding: 0 var(--m) calc(var(--m) + env(safe-area-inset-bottom)); display: none; flex-direction: column;
}
.menu[open] { display: flex; }
.menu__top { display: flex; justify-content: space-between; align-items: center; height: var(--rail-h); }
.menu__brand { font-family: var(--f-display); font-weight: 780; font-size: 1.75rem; text-transform: uppercase; }
.menu__close, .chooser__close { font-family: var(--f-display); font-weight: 680; font-size: var(--s-lead); text-transform: uppercase; letter-spacing: 0.03em; padding: 12px 0 12px 16px; }
.menu__nav { display: grid; gap: 6px; margin-top: 8vh; }
.menu__nav a {
  font-family: var(--f-display); font-weight: 760; font-size: clamp(2.75rem, 11vw, 4.5rem); line-height: 0.95;
  text-transform: uppercase; text-decoration: none; width: fit-content;
}
.menu__nav a[aria-current="page"] { color: var(--paper); text-decoration: underline; text-decoration-thickness: 3px; text-underline-offset: 0.12em; }
.menu__foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; font-size: var(--s-lead); }
.menu__lang { font-family: var(--f-display); font-weight: 700; text-transform: uppercase; text-decoration: underline; text-underline-offset: 0.2em; }

.chooser {
  width: min(680px, calc(100vw - 32px)); margin: auto; background: var(--paper); color: var(--paper-ink);
}
.chooser__panel { padding: 36px; }
.chooser__head { display: flex; justify-content: space-between; align-items: center; }
.chooser__title { font-family: var(--f-display); font-weight: 780; font-size: clamp(3rem, 2rem + 3vw, 4.5rem); line-height: 0.86; text-transform: uppercase; }
.chooser__text { margin-top: 14px; color: var(--paper-muted); max-width: 46ch; }
.chooser__options { display: grid; gap: 6px; margin-top: 28px; }
.chooser__opt {
  display: grid; grid-template-columns: 96px 1fr auto; align-items: center; gap: 20px;
  padding: 20px 24px 20px 20px; background: var(--paper-2); text-decoration: none;
  transition: background-color 180ms ease, transform 140ms var(--ease-out);
}
.chooser__opt:active { transform: scale(0.985); }
@media (hover: hover) and (pointer: fine) { .chooser__opt:hover { background: #cbc7c0; } .chooser__opt:hover .chooser__go { transform: translateX(4px); } }
.chooser__num { font-family: var(--f-text); font-weight: 500; font-size: 5rem; line-height: 0.8; text-align: center; }
.chooser__body { display: grid; gap: 6px; }
.chooser__name { font-family: var(--f-display); font-weight: 760; font-size: var(--s-lead); text-transform: uppercase; letter-spacing: 0.02em; display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.chooser__last { display: none; font-family: var(--f-text); text-transform: none; letter-spacing: 0; font-weight: 500; font-size: var(--s-small); color: var(--paper-muted); }
.chooser__opt.is-last .chooser__last { display: inline; }
.chooser__addr { font-size: var(--s-body); }
.chooser__go { font-size: 1.75rem; transition: transform 200ms var(--ease-out); }

@media (max-width: 760px) {
  .chooser { width: 100%; margin: auto 0 0; max-height: 92svh; overflow-y: auto; }
  .chooser__panel { padding: 24px var(--m) calc(24px + env(safe-area-inset-bottom)); }
  .chooser__opt { grid-template-columns: 64px 1fr; gap: 14px; padding: 18px 16px; }
  .chooser__num { font-size: 4rem; }
  .chooser__go { display: none; }
}

/* dialog motion: fast in, faster out */
.motion .chooser[open] { animation: chooser-in 220ms var(--ease-out); }
.motion .chooser.is-closing { animation: chooser-out 150ms var(--ease-exit) forwards; }
.motion .menu[open] { animation: menu-in 300ms var(--ease-out); }
.motion .menu.is-closing { animation: menu-out 180ms var(--ease-exit) forwards; }
.motion dialog[open]::backdrop { animation: fade-in 220ms ease; }
.motion dialog.is-closing::backdrop { animation: fade-out 150ms ease forwards; }
@keyframes chooser-in { from { opacity: 0; transform: scale(0.96); } }
@keyframes chooser-out { to { opacity: 0; transform: scale(0.98); } }
@keyframes menu-in { from { clip-path: inset(0 0 100% 100%); } to { clip-path: inset(0); } }
@keyframes menu-out { to { opacity: 0; } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes fade-out { to { opacity: 0; } }
@media (max-width: 760px) {
  .motion .chooser[open] { animation: sheet-in 320ms var(--ease-drawer); }
  .motion .chooser.is-closing { animation: sheet-out 200ms var(--ease-exit) forwards; }
  @keyframes sheet-in { from { transform: translateY(100%); } }
  @keyframes sheet-out { to { transform: translateY(100%); } }
}

/* ---------- scroll entrances: hidden only while the script is about to run ---------- */
.motion [data-split] { visibility: hidden; animation: reveal-failsafe 0s 2.4s forwards; }
.motion .phead [data-rise], .motion .phead [data-open-corner] { opacity: 0; animation: reveal-failsafe-o 0s 2.4s forwards; }
.motion.is-ready [data-split], .motion.is-ready .phead [data-rise], .motion.is-ready .phead [data-open-corner] { animation: none; }
@keyframes reveal-failsafe { to { visibility: visible; } }
@keyframes reveal-failsafe-o { to { opacity: 1; } }
.line-mask { overflow: clip; padding-bottom: 0.04em; margin-bottom: -0.04em; }

/* ---------- page to page: the new page opens from the corner ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-dim 460ms var(--ease-in-out) both; }
::view-transition-new(root) { animation: vt-corner 460ms var(--ease-in-out) both; }
::view-transition-group(rail), ::view-transition-group(actionbar) { animation-duration: 460ms; animation-timing-function: var(--ease-in-out); }
@keyframes vt-dim { to { opacity: 0.4; transform: scale(0.985); } }
@keyframes vt-corner { from { clip-path: inset(100% 0 0 100%); } to { clip-path: inset(0); } }

/* ---------- reduced motion: the finished page, no travel ---------- */
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  *, *::before, *::after { scroll-behavior: auto !important; }
  .hero__img { transition-duration: 0.01ms; }
  .rail__nav a::after, .rail__lang::after { transition: none; }
}
