/* Sections. The page is the shop's stationery: the price list is a printed sheet, the footer the back of the card. */

/* ---------- header ---------- */
.site-head { position: fixed; inset: 0 0 auto; z-index: 40; color: var(--bone); transition: background-color var(--dur-ui) ease; }
.site-head.is-solid, .site-head.menu-open { background: var(--ink); }
.head-row { display: flex; align-items: center; gap: 16px; max-width: var(--max); margin-inline: auto; padding: max(10px, env(safe-area-inset-top)) var(--gutter) 10px; min-height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; font: 800 1.5rem/1 var(--display); text-transform: uppercase; letter-spacing: 0.01em; margin-right: auto; min-width: 0; }
.brand-mark { width: 40px; height: 30px; flex: none; }
.brand span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: 1.25; padding-block: 2px; }
.nav { display: flex; gap: 28px; }
.nav a { text-decoration: none; font-weight: 600; padding: 12px 0; }
.lang { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: rgb(243 240 234 / 0.14); }
.lang button { min-width: 44px; min-height: 44px; border: 0; border-radius: 999px; background: transparent; font-weight: 700; font-size: var(--step-small); cursor: pointer; touch-action: manipulation; }
.lang [aria-pressed="true"] { background: var(--bone); color: var(--ink); }
.head-cta { display: none; }
.site-head.is-solid .head-cta { display: inline-flex; }
.site-head.menu-open .head-cta { display: none; }   /* the menu has its own booking button */
.menu-btn { display: none; color: var(--bone); }
.drawer { display: grid; padding: 4px var(--gutter) 20px; }
.drawer a { font: 800 2rem/1.1 var(--display); text-transform: uppercase; text-decoration: none; padding: 10px 0; }
.drawer[hidden] { display: none; }
@media (max-width: 899px) { .nav { display: none; } .menu-btn { display: inline-grid; } }
.cta-short { display: none; }
.drawer .lang--drawer { justify-self: start; margin: 12px 0 8px; }
.drawer .btn { justify-self: start; }
@media (min-width: 521px) { .lang--drawer { display: none; } }
@media (max-width: 520px) {
  .head-row { gap: 6px; } .brand { font-size: 1.25rem; }
  .head-row > .lang { display: none; }                 /* language moves into the menu; the booking button stays */
  .head-cta { padding: 0 16px; min-height: 44px; } .cta-long { display: none; } .cta-short { display: inline; }
}
@media (hover: hover) and (pointer: fine) { .nav a:hover { text-decoration: underline; } .lang button:not([aria-pressed="true"]):hover { background: rgb(243 240 234 / 0.14); } }

/* ---------- hero: one photo, one line, one button ---------- */
.hero { position: relative; min-height: 100svh; display: grid; align-items: end; background: var(--ink); color: var(--bone); isolation: isolate; overflow: hidden; }
.hero picture { position: absolute; inset: 0; z-index: -2; }
.hero-img { width: 100%; height: 100%; }
.hero-img { object-fit: cover; object-position: 50% 30%; filter: grayscale(1) contrast(1.06) brightness(0.62); background: var(--ink); }
.hero::after { content: ""; position: absolute; inset: 40% 0 0; z-index: -1; background: linear-gradient(to top, rgb(18 17 16 / 0.85), rgb(18 17 16 / 0)); } /* taste-skill-ignore: neutral scrim under text on a photo */
.hero-copy { width: 100%; max-width: var(--max); margin-inline: auto; padding: 0 var(--gutter) max(48px, calc(env(safe-area-inset-bottom) + 32px)); display: grid; gap: 22px; justify-items: start; }
.hero-title { font-size: var(--step-hero); }
.hero-title span { display: block; }
.hero-sub { font-size: var(--step-lead); max-width: 34ch; color: var(--bone); }

/* ---------- services: the printed price sheet on ink ---------- */
.services { background: var(--ink); padding: var(--section) 10px; }
.sheet { --sc: 12px; position: relative; max-width: 780px; margin-inline: auto; background: var(--bone); color: var(--ink); padding: clamp(48px, 7vw, 80px) clamp(20px, 6vw, 72px);
  /* scalloped top and bottom edges, cut with a mask */ /* taste-skill-ignore: mask shapes the paper edge, not a visible gradient */
  -webkit-mask: radial-gradient(circle at 50% 0, #0000 var(--sc), #000 calc(var(--sc) + 0.5px)) top / calc(var(--sc) * 2.6) 51% repeat-x, /* taste-skill-ignore */
                radial-gradient(circle at 50% 100%, #0000 var(--sc), #000 calc(var(--sc) + 0.5px)) bottom / calc(var(--sc) * 2.6) 51% repeat-x; /* taste-skill-ignore */
          mask: radial-gradient(circle at 50% 0, #0000 var(--sc), #000 calc(var(--sc) + 0.5px)) top / calc(var(--sc) * 2.6) 51% repeat-x, /* taste-skill-ignore */
                radial-gradient(circle at 50% 100%, #0000 var(--sc), #000 calc(var(--sc) + 0.5px)) bottom / calc(var(--sc) * 2.6) 51% repeat-x; } /* taste-skill-ignore */
.sheet-title { font-size: var(--step-title); text-align: center; }
.sheet-note { text-align: center; color: var(--muted); margin: 12px auto 0; max-width: 36ch; }
.price-groups { display: grid; gap: 48px; margin-top: 56px; }
.group-h { font: 800 var(--step-name)/1 var(--display); text-transform: uppercase; text-align: center; margin-bottom: 12px; }
.price-row { width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 20px; row-gap: 2px; padding: 14px 16px; margin-inline: -16px; width: calc(100% + 32px);
  border: 0; border-radius: var(--r-field); background: transparent; text-align: left; cursor: pointer; touch-action: manipulation; transition: background-color var(--dur-ui) ease, transform var(--dur-press) var(--ease-out); }
.price-row:active { transform: scale(0.99); } /* taste-skill-ignore */
.pr-name { font-weight: 700; font-size: var(--step-body); display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.pr-price { font-weight: 700; font-size: var(--step-body); text-align: right; }
.pr-desc { color: var(--muted); font-size: 1rem; }
.pr-time { color: var(--muted); font-size: 1rem; text-align: right; }
.pr-tag { font-size: var(--step-small); font-weight: 700; background: var(--ink); color: var(--bone); padding: 2px 10px; border-radius: 999px; }
.is-featured .price-row { background: var(--ink); color: var(--bone); }
.is-featured .pr-desc, .is-featured .pr-time { color: var(--muted-dark); }
.is-featured .pr-tag { background: var(--bone); color: var(--ink); }
.discount { margin-top: 40px; text-align: center; }
.sheet-hours { margin-top: 12px; text-align: center; color: var(--muted); font-size: 1rem; }
.sheet-cta { display: grid; justify-items: center; gap: 14px; margin-top: 44px; text-align: center; font-weight: 600; }
@media (hover: hover) and (pointer: fine) { .price-row:hover { background: var(--bone-2); } .is-featured .price-row:hover { background: var(--ink-2); } }

/* ---------- shared section heading ---------- */
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 40px; margin-bottom: clamp(32px, 4vw, 56px); }
.section-head p { max-width: 32ch; color: var(--muted); font-size: var(--step-lead); }
.section-title { font-size: var(--step-title); }

/* ---------- team ---------- */
.team { padding-block: var(--section); }
.team-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 40px); }
.barber { display: grid; align-content: start; gap: 8px; }
.barber img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r-card); filter: grayscale(1); margin-bottom: 10px; transition: filter 400ms ease; }
.barber-name { font-size: var(--step-name); }
.barber-spec { font-weight: 600; }
.barber-does { color: var(--muted); font-size: 1rem; }
.barber .btn { justify-self: start; margin-top: 10px; }
@media (max-width: 899px) {
  .team-list { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .barber { grid-template-columns: 112px minmax(0, 1fr); column-gap: 16px; align-items: start; }
  .barber img { grid-row: span 4; margin: 0; }
  .barber .btn { grid-column: 1 / -1; justify-self: stretch; }
}
@media (hover: hover) and (pointer: fine) { .barber:hover img { filter: none; } }

/* one barber: a single large block, photo and words side by side */
.solo { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(28px, 5vw, 80px); align-items: center; }
.solo-photo img { width: 100%; aspect-ratio: 4 / 4.4; object-fit: cover; border-radius: var(--r-card); filter: grayscale(1); }
.solo-text { display: grid; justify-items: start; gap: 16px; }
.solo-name { font-size: var(--step-title); }
.solo-spec { font-weight: 700; font-size: var(--step-lead); }
.solo-about { font-size: var(--step-lead); max-width: 40ch; }
.solo-text .btn { margin-top: 12px; }
@media (max-width: 760px) { .solo { grid-template-columns: minmax(0, 1fr); } .solo-photo img { aspect-ratio: 4 / 4.2; } .solo-text .btn { justify-self: stretch; } }

/* ---------- our work ---------- */
.work { background: var(--ink); color: var(--bone); padding-block: var(--section); }
.work .section-head p { color: var(--muted-dark); }
.work-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.work-tile img { width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover; filter: grayscale(1); background: var(--ink-2); }
.work-tile--big { grid-column: span 2; grid-row: span 2; }
.work-tile--wide { grid-column: span 2; }
.work-tile--wide img { aspect-ratio: auto; }  /* big (4 cells) + wide (2) + 6 = 12: full rows at 4 and at 2 columns */
@media (max-width: 760px) { .work-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; } }

/* ---------- reviews ---------- */
.reviews { padding-block: var(--section); }
.reviews[hidden] { display: none; }
.rating { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin-bottom: 20px; }
.rating-n { font-size: var(--step-title); }
.stars { display: flex; gap: 4px; }
.stars svg { width: 26px; height: 26px; fill: var(--ink); stroke: none; }
.rating-of { flex-basis: 100%; color: var(--muted); }
.quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 48px); margin-top: clamp(32px, 4vw, 56px); }
.quote blockquote { font-size: var(--step-lead); font-weight: 600; line-height: 1.45; }
.quote-by { margin-top: 14px; color: var(--muted); }
.reviews-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: clamp(40px, 5vw, 72px); }
.reviews-cta > span { font: 800 var(--step-name)/1 var(--display); text-transform: uppercase; }
.quote:first-child { grid-column: 1 / -1; }
.quote:first-child blockquote { font: 800 var(--step-name)/1.05 var(--display); text-transform: uppercase; max-width: 28ch; }
@media (max-width: 760px) { .quotes { grid-template-columns: minmax(0, 1fr); } }

/* ---------- about: a letter on ink ---------- */
.about { background: var(--ink); padding: var(--section) var(--gutter); }
.letter { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); max-width: 1080px; margin-inline: auto; background: var(--bone); border-radius: var(--r-card); overflow: hidden; }
.letter-photo { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1); aspect-ratio: 4 / 5; }
.letter-text { display: grid; align-content: center; gap: 18px; padding: clamp(28px, 5vw, 72px); font-size: var(--step-lead); }
.letter-text h2 { font-size: var(--step-title); }
@media (max-width: 760px) { .letter { grid-template-columns: minmax(0, 1fr); } .letter-photo { aspect-ratio: 4 / 3; } }

/* ---------- visit ---------- */
.visit { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); min-height: 640px; background: var(--bone-2); }
.map { position: relative; min-height: 420px; background: var(--bone-2); }
.map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; filter: grayscale(1); }
.visit-card { display: grid; align-content: center; gap: 16px; padding: clamp(32px, 5vw, 72px) var(--gutter); background: var(--bone); }
.visit-card h2 { font-size: var(--step-title); margin-bottom: 6px; }
.visit-line { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; font-size: var(--step-body); }
.visit-line svg { width: 24px; height: 24px; flex: none; margin-top: 2px; }
.visit-line a { text-decoration: underline; display: inline-block; padding-block: 11px; margin-block: -11px; }   /* 44px tap height, same line box */
.hours { border-collapse: collapse; width: 100%; margin-top: 6px; }
.hours th, .hours td { padding: 7px 0; text-align: left; font-weight: 400; }
.hours td { text-align: right; white-space: nowrap; padding-left: 16px; }
.hours tr + tr th, .hours tr + tr td { border-top: 1px solid var(--bone-2); }
.hours .is-today { font-weight: 700; }
.hours .is-today th, .hours .is-today td { font-weight: 700; }
.visit-actions { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 860px) { .visit { grid-template-columns: minmax(0, 1fr); } .map { min-height: 46svh; } }

/* ---------- footer: the back of the card ---------- */
.site-foot { background: var(--ink); padding: clamp(56px, 7vw, 120px) 10px max(24px, env(safe-area-inset-bottom)); }
.card-back { --sc: 14px; max-width: 1080px; margin-inline: auto; background: var(--bone); color: var(--ink); padding: clamp(48px, 6vw, 80px) clamp(24px, 6vw, 72px) 28px;
  display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr); gap: 28px 40px; align-items: start; /* taste-skill-ignore: mask cuts the scalloped edge */
  -webkit-mask: radial-gradient(circle at 50% 0, #0000 var(--sc), #000 calc(var(--sc) + 0.5px)) top / calc(var(--sc) * 2.6) 100% repeat-x; /* taste-skill-ignore */
          mask: radial-gradient(circle at 50% 0, #0000 var(--sc), #000 calc(var(--sc) + 0.5px)) top / calc(var(--sc) * 2.6) 100% repeat-x; } /* taste-skill-ignore */
.foot-logo { width: 190px; height: auto; aspect-ratio: 400 / 215; }
.foot-msg { display: grid; justify-items: start; gap: 10px; }
.foot-cta { margin-top: 8px; }
.foot-sign { font-size: var(--step-name); }
.foot-lines { display: grid; gap: 10px; font-weight: 600; }
.foot-lines a { text-decoration: underline; display: inline-block; padding-block: 11px; margin-block: -11px; }
.foot-base { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px 24px; padding-top: 22px; color: var(--muted); font-size: var(--step-small); }
.foot-base a { color: var(--ink); display: inline-block; padding-block: 11px; margin-block: -11px; }
@media (max-width: 760px) { .card-back { grid-template-columns: minmax(0, 1fr); } .foot-logo { width: 160px; } }

/* ---------- motion (emil-design-eng) ---------- */
/* Entrances: once per element as it enters. Only hidden when the script that reveals them is running. */
.js-reveal [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 600ms var(--ease-out), transform 600ms var(--ease-out); transition-delay: calc(var(--i, 0) * 80ms); }
.js-reveal [data-reveal].is-in { opacity: 1; transform: none; }
/* Hero photo settles once on load */
.hero-img { animation: hero-settle 1400ms var(--ease-out) both; }
@keyframes hero-settle { from { transform: scale(1.06); } }
.hero-copy > * { animation: rise 700ms var(--ease-out) both; }
.hero-copy > :nth-child(2) { animation-delay: 90ms; }
.hero-copy > :nth-child(3) { animation-delay: 180ms; }
@keyframes rise { from { opacity: 0; transform: translateY(20px); } }
@media (prefers-reduced-motion: reduce) {
  .js-reveal [data-reveal] { transform: none; transition: opacity 300ms ease; transition-delay: 0ms; }
  .hero-img { animation: none; }
  .hero-copy > * { animation-name: fade-in; animation-duration: 300ms; }
}
@keyframes fade-in { from { opacity: 0; } }
