/* BarberCruz 010
   Palette from the logo: true black, bone white, sign-gold, and the pole's red and blue.
   Bodoni Moda (19th-century didone, like the shop-window lettering) + Archivo for reading. */

:root {
  --black: #000;
  --coal: #141210;
  --bone: #ece4d3;
  --bone-dim: #a9a193;
  --gold: #d29b34;
  --gold-deep: #9c7022;
  --red: #c4252c;
  --blue: #2c2f8c;

  --serif: "Bodoni Moda", "Didot", "Bodoni 72", Georgia, serif;
  --sans: "Archivo", "Helvetica Neue", Arial, sans-serif;

  --gutter: clamp(16px, 5vw, 72px);
  --ease: cubic-bezier(.2, .7, .1, 1);
  --nav-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--black);
  color: var(--bone);
  font: 400 1.0625rem/1.6 var(--sans);
  font-stretch: 92%;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--gold); color: var(--black); padding: 10px 14px; text-decoration: none;
}
.skip:focus { top: 12px; }

.display {
  font-family: var(--serif);
  font-weight: 500;
  font-optical-sizing: auto;
  font-size: clamp(2.4rem, 6.4vw, 5.4rem);
  line-height: 1.02;
  letter-spacing: -.01em;
  margin: 0 0 .5em;
  text-wrap: balance;
}

/* ---------- Buttons ---------- */
.btn {
  --h: 54px;
  display: inline-flex; align-items: center; justify-content: center;
  min-height: var(--h); padding: 0 28px;
  background: var(--gold); color: var(--black);
  font: 600 1rem/1 var(--sans); font-stretch: 100%;
  text-decoration: none; border: 0; border-radius: 2px;
  position: relative; overflow: hidden; isolation: isolate;
  transition: color .35s var(--ease);
}
/* Hover: a pole stripe sweeps through the button */
.btn::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: var(--bone);
  transform: translateX(-130%) skewX(-30deg);
  transform-origin: left;
  transition: transform .45s var(--ease);
}
.btn:hover::before, .btn:focus-visible::before { transform: translateX(0) skewX(0); }
.btn--small { --h: 42px; padding: 0 18px; font-size: .9375rem; }

.link {
  color: var(--bone); text-decoration: none; font-weight: 500;
  background: linear-gradient(var(--gold), var(--gold)) 0 100% / 100% 1px no-repeat;
  padding-bottom: 3px; transition: background-size .35s var(--ease);
}
.link:hover { background-size: 0 1px; background-position: 100% 100%; }

/* ---------- Barber pole (scroll indicator) ---------- */
.pole {
  position: fixed; z-index: 40;
  right: max(10px, env(safe-area-inset-right));
  top: 50%; transform: translateY(-50%);
  height: min(46vh, 360px); width: 12px;
  display: flex; flex-direction: column; align-items: center;
  pointer-events: none;
  opacity: 0; transition: opacity .8s .9s;
}
.is-ready .pole { opacity: 1; }
.pole__cap { width: 16px; height: 8px; background: var(--gold); border-radius: 8px 8px 2px 2px; flex: none; }
.pole__cap:last-child { border-radius: 2px 2px 8px 8px; }
.pole__glass {
  flex: 1; width: 100%;
  background:
    linear-gradient(90deg, rgba(0,0,0,.45), rgba(255,255,255,.18) 40%, rgba(0,0,0,.35)),
    repeating-linear-gradient(-55deg,
      var(--red) 0 7px, var(--bone) 7px 12px, var(--blue) 12px 19px, var(--bone) 19px 24px);
  background-size: 100% 100%, 100% 200%;
  background-position: 0 0, 0 var(--spin, 0px);
}
@media (max-width: 700px) {
  .pole { width: 5px; height: 24vh; right: 3px; }
  .pole__cap { width: 8px; height: 5px; }
}

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 var(--gutter);
  padding-top: env(safe-area-inset-top);
  transition: background .4s, border-color .4s;
  border-bottom: 1px solid transparent;
}
.nav.is-solid { background: rgba(0,0,0,.86); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-color: rgba(210,155,52,.22); }
.nav__brand img { height: 44px; width: auto; opacity: 0; transform: translateY(-6px); transition: opacity .4s, transform .4s var(--ease); }
.nav.is-solid .nav__brand img { opacity: 1; transform: none; }
.nav__links { display: flex; gap: 32px; }
.nav__links a { text-decoration: none; color: var(--bone-dim); font-size: .9375rem; transition: color .2s; }
.nav__links a:hover { color: var(--bone); }
.nav__end { display: flex; align-items: center; gap: 12px; }
.lang {
  background: none; border: 1px solid rgba(236,228,211,.3); color: var(--bone);
  font: 500 .8125rem/1 var(--sans); padding: 0 10px; height: 34px; min-width: 44px;
  border-radius: 2px; cursor: pointer;
}
.lang:hover { border-color: var(--gold); }
@media (max-width: 760px) { .nav__links { display: none; } }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .85fr);
  align-items: center;
  padding: calc(var(--nav-h) + 24px) var(--gutter) 64px;
  gap: clamp(24px, 4vw, 64px);
}
.hero__photo { grid-column: 2; grid-row: 1; position: relative; height: min(82svh, 780px); }
.hero__photo img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%;
  filter: contrast(1.08);
  opacity: 0; transition: opacity 1.8s ease;
}
.hero__photo img.is-on { opacity: 1; }
/* thin gold frame offset behind the photo, like a mirror on the shop wall */
.hero__photo::after {
  content: ""; position: absolute; inset: 14px -14px -14px 14px;
  border: 1px solid var(--gold-deep); z-index: -1;
}
.hero__body { grid-column: 1; grid-row: 1; position: relative; z-index: 2; max-width: 640px; }
.hero__logo { margin: 0 0 clamp(20px, 3vw, 36px); width: min(100%, 560px); margin-left: -2%; }
.hero__logo img { width: 100%; filter: drop-shadow(0 6px 24px rgba(0,0,0,.6)); }
.hero__quote { margin: 0 0 22px; font-family: var(--serif); font-style: italic; font-size: clamp(1.45rem, 2.6vw, 2.1rem); line-height: 1.22; color: var(--bone); }
.hero__quote .line { display: block; overflow: hidden; padding-bottom: .08em; }
.hero__quote .line > span { display: inline-block; }
.hero__sub { color: var(--bone-dim); max-width: 44ch; margin-bottom: 32px; }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; }

@media (max-width: 899px) {
  .hero { grid-template-columns: 1fr; align-items: end; padding-bottom: 40px; }
  .hero__body { grid-column: 1; grid-row: 1; }
  /* grid-area auto so the absolute photo fills the whole hero, not just its grid cell */
  .hero__photo { grid-area: auto; position: absolute; inset: 0; height: auto; }
  .hero__photo::after { display: none; }
  .hero__photo img { object-position: 40% 20%; filter: contrast(1.08) brightness(.75); }
  .hero__photo::before {
    content: ""; position: absolute; inset: 0; z-index: 1;
    background: linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,0) 30%, rgba(0,0,0,.65) 58%, #000 92%);
  }
  .hero__logo { width: min(88%, 420px); }
}

/* ---------- Page-load sequence: the one orchestrated moment ----------
   The logo is wiped in along the pole's stripe angle, then the quote rises line by line. */
.js .hero__logo img { clip-path: polygon(0 0, 0 0, -40% 100%, -40% 100%); }
.js .hero__photo { opacity: 0; transform: scale(1.06); }
.js .hero__quote .line > span { transform: translateY(105%); }
.js .hero__sub, .js .hero__cta { opacity: 0; transform: translateY(12px); }

.is-ready .hero__logo img { clip-path: polygon(0 0, 140% 0, 100% 100%, -40% 100%); transition: clip-path 1.2s var(--ease) .15s; }
.is-ready .hero__photo { opacity: 1; transform: none; transition: opacity 1.4s ease .1s, transform 2.2s var(--ease) .1s; }
.is-ready .hero__quote .line > span { transform: none; transition: transform .9s var(--ease); }
.is-ready .hero__quote .line:nth-child(1) > span { transition-delay: .85s; }
.is-ready .hero__quote .line:nth-child(2) > span { transition-delay: .97s; }
.is-ready .hero__quote .line:nth-child(3) > span { transition-delay: 1.09s; }
.is-ready .hero__sub, .is-ready .hero__cta { opacity: 1; transform: none; transition: opacity .8s ease 1.35s, transform .8s var(--ease) 1.35s; }
.is-ready .hero__cta { transition-delay: 1.5s; }

/* ---------- Experience ---------- */
.exp {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(32px, 6vw, 112px); align-items: center;
  padding: clamp(88px, 13vw, 180px) var(--gutter);
  max-width: 1440px; margin: 0 auto;
}
.exp__text > p { font-size: 1.1875rem; max-width: 52ch; color: var(--bone); margin-bottom: 48px; }
.facts { margin: 0; display: grid; gap: 0; border-top: 1px solid rgba(210,155,52,.35); }
.facts > div { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr); gap: 8px 24px; padding: 20px 0; border-bottom: 1px solid rgba(210,155,52,.35); }
.facts dt { font-family: var(--serif); font-size: 1.3rem; line-height: 1.25; color: var(--gold); }
.facts dd { margin: 0; color: var(--bone-dim); }
.exp__photo { margin: 0; }
.exp__photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.exp__photo figcaption { margin-top: 12px; font-size: .875rem; color: var(--bone-dim); }
@media (max-width: 899px) {
  .exp { grid-template-columns: 1fr; }
  .exp__photo { order: -1; width: min(100%, 460px); }
  .facts > div { grid-template-columns: 1fr; }
}

/* ---------- Work reel ---------- */
.work { padding: clamp(40px, 6vw, 80px) 0 clamp(88px, 12vw, 160px); background: var(--coal); }
.work__head { padding: clamp(40px, 6vw, 72px) var(--gutter) 32px; display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 8px 48px; }
.work__head .display { margin: 0; }
.work__head p { color: var(--bone-dim); max-width: 36ch; }
.reel {
  list-style: none; margin: 0; padding: 8px var(--gutter) 24px;
  display: flex; gap: clamp(12px, 1.6vw, 24px);
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-padding: 0 var(--gutter);
  scrollbar-width: thin; scrollbar-color: var(--gold-deep) transparent;
  cursor: grab;
}
.reel.is-dragging { cursor: grabbing; scroll-snap-type: none; }
.reel.is-dragging img { pointer-events: none; }
.reel li { flex: 0 0 clamp(230px, 27vw, 380px); scroll-snap-align: start; }
.reel li:nth-child(even) { margin-top: clamp(24px, 4vw, 64px); }
.reel img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; user-select: none; -webkit-user-drag: none; }
/* Darkroom: portraits develop from a flat grey print as they come into view */
.js .reel img { filter: brightness(1.9) contrast(.35); transition: filter 1.4s ease; }
.js .reel li.is-in img { filter: none; }

/* ---------- Price board ---------- */
.prices { padding: clamp(88px, 12vw, 170px) var(--gutter); display: grid; place-items: center; }
.board {
  width: min(100%, 860px);
  padding: clamp(36px, 6vw, 72px) clamp(20px, 6vw, 80px);
  border: 1px solid var(--gold);
  outline: 1px solid var(--gold-deep); outline-offset: -9px;
  position: relative;
}
.board .display { text-align: center; font-size: clamp(2.1rem, 5vw, 3.8rem); margin-bottom: .7em; }
.menu { list-style: none; margin: 0; padding: 0; }
.menu a {
  display: grid; grid-template-columns: auto 1fr auto; align-items: baseline; gap: 14px;
  padding: 18px 4px; text-decoration: none;
  border-bottom: 1px solid rgba(236,228,211,.1);
  transition: background .3s, padding .3s var(--ease);
}
.menu li:last-child a { border-bottom: 0; }
.menu a:hover, .menu a:focus-visible { background: rgba(210,155,52,.08); padding-left: 14px; padding-right: 14px; }
.menu__name { font-family: var(--serif); font-size: clamp(1.2rem, 2.4vw, 1.6rem); line-height: 1.2; }
.menu__name small { display: block; font-family: var(--sans); font-size: .875rem; color: var(--bone-dim); margin-top: 4px; }
.menu__dots { border-bottom: 2px dotted rgba(210,155,52,.5); transform: translateY(-.35em); min-width: 16px; }
.menu__price { font-family: var(--serif); font-size: clamp(1.2rem, 2.4vw, 1.6rem); color: var(--gold); white-space: nowrap; }
.menu__price[data-i18n] { font-family: var(--sans); font-size: .9375rem; color: var(--bone-dim); }
.board__note { text-align: center; color: var(--bone-dim); font-size: .9375rem; margin-top: 28px; }
@media (max-width: 520px) {
  .menu a { grid-template-columns: 1fr auto; }
  .menu__dots { display: none; }
}

/* ---------- Booking ---------- */
.book { padding: 0 var(--gutter) clamp(88px, 12vw, 160px); max-width: 1180px; margin: 0 auto; }
.book__head { text-align: center; max-width: 620px; margin: 0 auto 36px; }
.book__head p { color: var(--bone-dim); }
.book__frame {
  min-height: 700px; background: var(--bone); border-radius: 2px;
  display: grid; place-items: center; position: relative; overflow: hidden;
}
.book__frame iframe { width: 100%; height: 100%; min-height: 700px; border: 0; position: absolute; inset: 0; }
@media (max-width: 700px) { .book { padding-left: 0; padding-right: 0; } .book__head { padding: 0 16px; } .book__frame, .book__frame iframe { min-height: 960px; } }

/* ---------- Footer ---------- */
.foot {
  border-top: 1px solid rgba(210,155,52,.3);
  padding: 48px var(--gutter) calc(40px + env(safe-area-inset-bottom));
  display: grid; grid-template-columns: auto 1fr; gap: 24px 64px; align-items: end;
}
.foot__mark {
  font-family: var(--serif); font-weight: 700; line-height: .8;
  font-size: clamp(6rem, 22vw, 18rem);
  color: transparent; -webkit-text-stroke: 1px var(--gold);
  letter-spacing: -.03em;
}
.foot__info { display: flex; flex-wrap: wrap; gap: 20px 56px; color: var(--bone-dim); font-size: .9375rem; }
.foot__info strong { color: var(--bone); font-weight: 600; }
.foot__info a { color: var(--bone); }
.foot__copy { flex-basis: 100%; }
@media (max-width: 700px) { .foot { grid-template-columns: 1fr; } }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; transition-delay: 0s !important; animation: none !important; }
  .js .hero__logo img { clip-path: none; }
  .js .hero__photo, .js .hero__sub, .js .hero__cta { opacity: 1; transform: none; }
  .js .hero__quote .line > span { transform: none; }
  .js .reel img { filter: none; }
}

/* ---------- Social buttons ---------- */
.work__follow {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 16px 32px; padding: 32px var(--gutter) 0;
}
.work__follow p { color: var(--bone-dim); max-width: 40ch; }
.social { display: flex; flex-wrap: wrap; gap: 12px; }
.social__btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 0 20px;
  border: 1px solid var(--gold); border-radius: 2px;
  color: var(--bone); text-decoration: none; font-weight: 500;
  transition: background .3s, color .3s;
}
.social__btn svg { width: 20px; height: 20px; color: var(--gold); transition: color .3s; }
.social__btn:hover, .social__btn:focus-visible { background: var(--gold); color: var(--black); }
.social__btn:hover svg, .social__btn:focus-visible svg { color: var(--black); }
.social--foot { flex-basis: 100%; }
@media (max-width: 520px) {
  .work__follow .social, .work__follow .social__btn { flex: 1; justify-content: center; }
}
