/* ============================================================
   HERRWERK — Herrenfriseur & Barbier, Hannover (Demo)
   Static recreation of the "BRANDMEN" barbershop reference, ~95%.
   Monochrome B&W editorial · Playfair Display + Jost (self-hosted)
   Shape rule: content is all-sharp (radius 0); ONLY interactive
   pills (active nav) and circular controls/avatars are rounded.
   ============================================================ */

/* ---------- Fonts ---------- */
@font-face {
  font-family: "Playfair Display";
  src: url("../fonts/playfair-var.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Jost";
  src: url("../fonts/jost-var.woff2") format("woff2");
  font-weight: 300 600;
  font-style: normal;
  font-display: swap;
}

/* ---------- Tokens ---------- */
:root {
  --ink: #141414;
  --ink-2: #2b2b2b;
  --paper: #ffffff;
  --paper-2: #f6f6f4;
  --muted: #6c6c6c;
  --muted-2: #8a8a8a;
  --line: #e6e6e4;
  --line-ink: #141414;

  --serif: "Playfair Display", Georgia, serif;
  --sans: "Jost", "Helvetica Neue", Arial, sans-serif;

  --wrap: 1200px;
  --nav-h: 84px;

  --ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* ---------- Reset ---------- */
*,
*::before,
*::after { box-sizing: border-box; }
* { margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: var(--sans);
  font-weight: 400;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }

.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 24px; }

/* ---------- Shared type ---------- */
.section-title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(2.1rem, 5.2vw, 3.5rem);
  line-height: 1.05;
  text-align: center;
  letter-spacing: -0.01em;
}
.section-sub {
  text-align: center;
  color: var(--muted);
  font-size: 0.98rem;
  margin-top: 14px;
}
.section-sub a { border-bottom: 1px solid currentColor; padding-bottom: 1px; }

section { scroll-margin-top: var(--nav-h); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--sans);
  font-weight: 500;
  font-size: 0.74rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  padding: 17px 34px;
  white-space: nowrap;
  transition: transform 0.25s var(--ease), background 0.25s var(--ease),
    color 0.25s var(--ease), border-color 0.25s var(--ease);
}
.btn:active { transform: translateY(1px); }

.btn--solid {
  background: var(--ink);
  color: #fff;
  border: 1px solid var(--ink);
}
.btn--solid:hover { background: #000; }

.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}
.btn--ghost:hover { background: var(--ink); color: #fff; }

.btn--ghost-light {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.85);
}
.btn--ghost-light:hover { background: #fff; color: var(--ink); }

/* ============================================================
   HEADER / NAV
   ============================================================ */
.header {
  position: fixed;
  inset: 0 0 auto 0;
  height: var(--nav-h);
  z-index: 100;
  display: flex;
  align-items: center;
  transition: background 0.35s var(--ease), height 0.35s var(--ease),
    box-shadow 0.35s var(--ease);
}
/* soft top scrim so the dark nav/brand stay legible over dark hero slides */
.header::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 150px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(255, 255, 255, 0.55) 45%, rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
  z-index: -1;
  transition: opacity 0.35s var(--ease);
}
.header.scrolled::before { opacity: 0; }
.header.scrolled {
  height: 68px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 var(--line);
}
.header__inner {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  font-family: var(--serif);
  font-size: 1.5rem;
  letter-spacing: 0.02em;
  color: var(--ink);
  white-space: nowrap;
}
.brand b { font-weight: 700; }
.brand span { font-weight: 400; }

.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  font-size: 0.82rem;
  letter-spacing: 0.02em;
  padding: 10px 18px;
  border-radius: 999px; /* pill — documented exception */
  color: var(--ink-2);
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.nav a:hover { color: #000; }
.nav a.active { background: var(--ink); color: #fff; }

.socials { display: flex; align-items: center; gap: 16px; }
.socials a {
  color: var(--ink);
  opacity: 0.85;
  transition: opacity 0.2s, transform 0.2s var(--ease);
}
.socials a:hover { opacity: 1; transform: translateY(-2px); }
.socials svg { width: 19px; height: 19px; display: block; }

.nav-toggle { display: none; width: 30px; height: 22px; position: relative; }
.nav-toggle span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--ink);
  transition: transform 0.3s var(--ease), opacity 0.2s;
}
.nav-toggle span:nth-child(1) { top: 0; }
.nav-toggle span:nth-child(2) { top: 10px; }
.nav-toggle span:nth-child(3) { top: 20px; }
body.menu-open .nav-toggle span:nth-child(1) { transform: translateY(10px) rotate(45deg); }
body.menu-open .nav-toggle span:nth-child(2) { opacity: 0; }
body.menu-open .nav-toggle span:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #d9d7d2;
}
/* wood-plank backdrop with soft diagonal sunlight */
.hero__bg {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(115deg, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0) 45%),
    url("../img/hero-wood.jpg");
  background-size: cover;
  background-position: center;
  filter: grayscale(1) brightness(1.05) contrast(1.06);
  z-index: 0;
}
.hero__bg::after {
  /* subtle vertical plank seams for extra structure */
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.05) 0 1px,
    rgba(0, 0, 0, 0) 1px 120px
  );
  mix-blend-mode: multiply;
  opacity: 0.5;
}

/* soft light scrim behind the hero copy so dark text/index/CTA stay legible
   over the busy wood + dark model slides (fades out before the model on the right) */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    100deg,
    rgba(255, 255, 255, 0.72) 0%,
    rgba(255, 255, 255, 0.55) 26%,
    rgba(255, 255, 255, 0.28) 46%,
    rgba(255, 255, 255, 0) 62%
  );
}

/* model image, right half, B&W, cross-fading slides */
.hero__models { position: absolute; inset: 0; z-index: 1; }
.hero__model {
  position: absolute;
  right: 0;
  top: 0;
  height: 100%;
  width: 52%;
  object-fit: cover;
  object-position: center 20%;
  filter: grayscale(1) contrast(1.02);
  opacity: 0;
  transition: opacity 1.1s var(--ease);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 22%);
  mask-image: linear-gradient(90deg, transparent 0%, #000 22%);
}
.hero__model.active { opacity: 1; }

.hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding: calc(var(--nav-h) + 20px) 24px 40px;
}
.hero__content { max-width: 640px; margin-left: clamp(0px, 5vw, 68px); }

.hero__eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--ink-2);
  margin-bottom: 10px;
}
.hero__title {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(3.2rem, 10vw, 7rem);
  line-height: 0.92;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.hero__subtitle {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(1.3rem, 3.4vw, 2rem);
  color: var(--ink-2);
  margin-top: 14px;
}
.hero__text {
  color: var(--ink-2);
  font-size: 0.98rem;
  max-width: 34ch;
  margin-top: 26px;
}
.hero__rule {
  width: 320px;
  max-width: 60%;
  height: 1px;
  background: var(--ink);
  opacity: 0.35;
  margin: 30px 0;
}

/* vertical slide index dots */
.hero__dots {
  position: absolute;
  left: max(24px, calc((100vw - var(--wrap)) / 2 - 6px));
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.hero__dot {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink-2);
  font-size: 0.95rem;
  letter-spacing: 0.05em;
  transition: color 0.3s var(--ease);
}
.hero__dot i {
  width: 9px;
  height: 9px;
  border: 1px solid var(--ink);
  border-radius: 50%;
  transform: rotate(45deg);
  transition: background 0.3s var(--ease);
}
.hero__dot.active { color: var(--ink); }
.hero__dot.active i { background: var(--ink); }
.hero__dot span { font-variant-numeric: tabular-nums; }

@media (max-width: 900px) {
  .hero__model { width: 100%; -webkit-mask-image: none; mask-image: none; opacity: 0; }
  .hero__model.active { opacity: 0.2; }
  /* the vertical index collides with the headline on narrow screens — hide it (slider auto-plays) */
  .hero__dots { display: none; }
  .hero__content { max-width: 100%; margin-left: 0; }
  /* guarantee the hero CTA stays visible over any slide (ghost -> solid on mobile) */
  .hero .btn--ghost { background: var(--ink); color: #fff; border-color: var(--ink); }
}

/* ============================================================
   TEAM
   ============================================================ */
.team { padding: clamp(80px, 12vw, 140px) 0; }
.team__grid {
  margin-top: 64px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 34px;
}
.member { text-align: center; }
.member__photo {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--paper-2);
  margin-bottom: 18px;
}
.member__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1);
  transition: filter 0.5s var(--ease), transform 0.6s var(--ease);
}
.member:hover .member__photo img { filter: grayscale(0); transform: scale(1.04); }
.member__name {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 1.5rem;
}
.member__role {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-top: 4px;
}
.member__socials {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin: 14px 0 20px;
}
.member__socials a { color: var(--ink); opacity: 0.8; transition: opacity 0.2s, transform 0.2s; }
.member__socials a:hover { opacity: 1; transform: translateY(-2px); }
.member__socials svg { width: 17px; height: 17px; }
.member .btn { width: 100%; }

@media (max-width: 900px) {
  .team__grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
}
@media (max-width: 520px) {
  .team__grid { grid-template-columns: 1fr; max-width: 340px; margin-inline: auto; }
}

/* ============================================================
   GALLERY
   ============================================================ */
.gallery { padding: clamp(70px, 10vw, 120px) 0; background: var(--paper-2); }
.gallery__stage {
  position: relative;
  margin-top: 54px;
  display: flex;
  align-items: center;
  gap: 20px;
}
.gallery__grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 150px;
  grid-auto-flow: dense;
  gap: 12px;
  transition: opacity 0.4s var(--ease);
}
.gallery__grid.fading { opacity: 0; }
.gallery__grid figure { overflow: hidden; background: #ddd; }
.gallery__grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease);
}
.gallery__grid figure:hover img { transform: scale(1.06); }
/* masonry-ish spans to mirror the reference collage */
.g-tall { grid-row: span 2; }
.g-wide { grid-column: span 2; }
.g-big { grid-row: span 2; grid-column: span 2; }

.gallery__nav {
  flex: none;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: grid;
  place-items: center;
  transition: transform 0.25s var(--ease), background 0.25s;
}
.gallery__nav:hover { background: #000; transform: scale(1.06); }
.gallery__nav:active { transform: scale(0.96); }
.gallery__nav svg { width: 22px; height: 22px; }

@media (max-width: 900px) {
  .gallery__grid { grid-template-columns: repeat(3, 1fr); grid-auto-rows: 120px; }
  .gallery__nav { width: 46px; height: 46px; }
}
@media (max-width: 560px) {
  .gallery__grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 130px; gap: 8px; }
  .g-big { grid-row: span 2; grid-column: span 2; }
  .g-wide { grid-column: span 2; }
}

/* ============================================================
   PRICES + SCHEDULE
   ============================================================ */
.prices { padding: clamp(80px, 12vw, 140px) 0 0; }
.prices__stage {
  position: relative;
  margin-top: 60px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: stretch;
}
.panel {
  border: 1px solid var(--line-ink);
  padding: 40px 44px;
}
.panel__row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  padding: 16px 0;
  font-size: 1.02rem;
}
.panel__row + .panel__row { border-top: 1px solid var(--line); }
.panel__row .name { color: var(--ink-2); }
.panel__row .val { font-weight: 500; white-space: nowrap; }
.panel__row .val.closed { color: var(--muted-2); font-weight: 400; }

.prices__logo {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  background: var(--ink);
  color: #fff;
  font-family: var(--serif);
  font-size: 1.35rem;
  letter-spacing: 0.06em;
  padding: 26px 30px;
  z-index: 2;
  box-shadow: 0 0 0 10px #fff;
  white-space: nowrap;
}
.prices__logo b { font-weight: 700; }
.prices__logo span { font-weight: 400; }

@media (max-width: 820px) {
  .prices__stage { grid-template-columns: 1fr; }
  .prices__logo { position: static; transform: none; box-shadow: none; justify-self: center; text-align: center; margin: 4px 0; }
  .panel { padding: 30px 26px; }
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact { padding: clamp(80px, 12vw, 130px) 0; }
.contact__grid {
  margin-top: 56px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}
.contact__card {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--line);
}
.contact__map {
  position: relative;
  min-height: 320px;
  background: #e9e9e7;
  filter: grayscale(1) contrast(1.02);
}
.contact__map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.contact__info { padding: 34px 32px; }
.contact__info h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 1.5rem;
  margin-bottom: 18px;
}
.contact__info .label {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
  margin-top: 16px;
}
.contact__info .value { font-size: 1.02rem; color: var(--ink); }
.contact__info .value a:hover { text-decoration: underline; }
.contact__info .mini-socials { display: flex; gap: 14px; margin-top: 10px; }
.contact__info .mini-socials a svg { width: 18px; height: 18px; }

.contact__pitch p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.75;
  max-width: 42ch;
}
.contact__pitch p a { color: var(--ink); border-bottom: 1px solid var(--ink); }
.contact__pitch .btn { margin-top: 28px; }

@media (max-width: 820px) {
  .contact__grid { grid-template-columns: 1fr; gap: 30px; }
  .contact__card { grid-template-columns: 1fr; }
  .contact__map { min-height: 260px; }
}

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--ink);
  color: #fff;
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 26px 24px;
  max-width: var(--wrap);
  margin-inline: auto;
  flex-wrap: wrap;
}
.footer__brand { font-family: var(--serif); font-size: 1.3rem; letter-spacing: 0.04em; }
.footer__brand b { font-weight: 700; }
.footer__meta { font-size: 0.82rem; color: rgba(255, 255, 255, 0.72); }
.footer__meta a { color: rgba(255, 255, 255, 0.72); }
.footer__meta a:hover { color: #fff; }

/* ============================================================
   LIVE OPENING STATUS (semantic state, monochrome)
   ============================================================ */
.open-pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
}
.open-pill[hidden] { display: none; }
.open-pill i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--muted-2);
  flex: none;
}
.open-pill.is-open i {
  background: var(--ink);
  box-shadow: 0 0 0 0 rgba(20, 20, 20, 0.5);
  animation: statusPulse 2.4s infinite;
}
@keyframes statusPulse {
  0% { box-shadow: 0 0 0 0 rgba(20, 20, 20, 0.45); }
  70% { box-shadow: 0 0 0 7px rgba(20, 20, 20, 0); }
  100% { box-shadow: 0 0 0 0 rgba(20, 20, 20, 0); }
}
.open-pill .muted { color: var(--muted); font-weight: 400; letter-spacing: 0.04em; text-transform: none; }
@media (prefers-reduced-motion: reduce) { .open-pill.is-open i { animation: none; } }

/* hero pill sits on the wood backdrop */
#heroStatus { margin: 4px 0 2px; }
/* schedule status pill = header of the hours panel */
.hours-status {
  padding-bottom: 16px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--line);
}
#contactStatus { margin: 2px 0 4px; }

/* highlight today's row in the schedule */
.panel__row.today { position: relative; }
.panel__row.today .name { font-weight: 600; color: var(--ink); }
.panel__row.today .val { font-weight: 600; }
.panel__row.today .name::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  background: var(--ink);
  border-radius: 50%;
  margin-right: 9px;
  vertical-align: middle;
}

/* ============================================================
   BOOKING MODAL
   ============================================================ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal.open { display: flex; }
.modal__scrim {
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.62);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity 0.3s var(--ease);
}
.modal.open .modal__scrim { opacity: 1; }
.modal__box {
  position: relative;
  width: 100%;
  max-width: 460px;
  background: #fff;
  padding: 40px 38px 34px;
  transform: translateY(14px) scale(0.98);
  opacity: 0;
  transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
  max-height: 92vh;
  overflow-y: auto;
}
.modal.open .modal__box { transform: none; opacity: 1; }
.modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  color: var(--muted);
}
.modal__close:hover { color: var(--ink); }
.modal__eyebrow {
  font-size: 0.68rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.modal__title { font-family: var(--serif); font-weight: 600; font-size: 1.9rem; margin: 6px 0 22px; }

.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.field label {
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.field input,
.field select,
.field textarea {
  font-family: var(--sans);
  font-size: 0.98rem;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line-ink);
  padding: 12px 14px;
  width: 100%;
}
.field input:focus,
.field select:focus,
.field textarea:focus { outline: 2px solid var(--ink); outline-offset: -1px; }
.field textarea { resize: vertical; min-height: 74px; }
.field .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.modal .btn { width: 100%; margin-top: 8px; }
.modal__hint {
  font-size: 0.78rem;
  color: var(--muted);
  text-align: center;
  margin-top: 14px;
}
.field .hint-err {
  font-size: 0.76rem;
  color: #b23b3b;
  margin-top: -8px;
  margin-bottom: 12px;
}

/* confirmation view */
.book-done[hidden] { display: none; }
.book-done { text-align: center; }
.book-done .check {
  width: 54px;
  height: 54px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
}
.book-done h4 { font-family: var(--serif); font-weight: 600; font-size: 1.6rem; margin-bottom: 8px; }
.book-done > p { color: var(--muted); font-size: 0.92rem; margin-bottom: 18px; }
.book-done .summary { text-align: left; border: 1px solid var(--line); padding: 16px 18px; margin-bottom: 18px; }
.book-done .summary .row { display: flex; justify-content: space-between; gap: 16px; padding: 6px 0; font-size: 0.92rem; }
.book-done .summary .row + .row { border-top: 1px solid var(--line); }
.book-done .summary .row .k { color: var(--muted-2); text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.68rem; }
.book-done .summary .row .v { font-weight: 500; text-align: right; }
.book-done .btn { margin-top: 10px; }
.book-done .textlink {
  display: inline-block;
  margin-top: 14px;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--muted);
  padding-bottom: 1px;
}
.book-done .textlink:hover { color: var(--ink); border-color: var(--ink); }

/* ============================================================
   REVEAL ON SCROLL
   ============================================================ */
/* progressive enhancement: only hide when JS is confirmed running */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; transition: none; }
  .hero__model { transition: none; }
}

/* ---------- legal pages ---------- */
.legal { padding: calc(var(--nav-h) + 60px) 0 100px; }
.legal h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 8px; }
.legal h2 { font-family: var(--serif); font-weight: 500; font-size: 1.4rem; margin: 34px 0 10px; }
.legal p, .legal li { color: var(--ink-2); max-width: 72ch; margin-bottom: 10px; }
.legal ul { padding-left: 20px; list-style: disc; }
.legal a { color: var(--ink); border-bottom: 1px solid var(--ink); }
.legal .back { display: inline-block; margin-bottom: 30px; font-size: 0.8rem; letter-spacing: 0.18em; text-transform: uppercase; }
.credits-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin-top: 20px; }
.credits-grid li { border: 1px solid var(--line); padding: 12px 14px; font-size: 0.86rem; list-style: none; margin: 0; }
.credits-grid b { display: block; margin-bottom: 4px; }
