:root {
  --ink: #0e0d0c;
  --ink-2: #171513;
  --bone: #ece4d6;
  --bone-dim: #a59d90;
  --red: #c8322b;
  --navy: #1f2f55;
  --brass: #c9a063;
  --line: rgba(236, 228, 214, .14);
  --display: "Anton", Impact, sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Manrope", system-ui, sans-serif;
  --gutter: clamp(16px, 4vw, 56px);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--ink); color: var(--bone); scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--sans); font-size: 16px; line-height: 1.6; background: var(--ink); overflow-x: clip; }
a { color: inherit; text-decoration: none; }
em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--brass); }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 18px var(--gutter);
  animation: fadeDown 1s .9s cubic-bezier(.2, .8, .2, 1) both;
  transition: background-color .35s ease, padding .35s ease;
}
/* past the hero the bar turns solid so page content never slides under the links */
.nav.solid { background-color: rgba(14, 13, 12, .94); padding-top: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 1.15rem; letter-spacing: .06em; text-transform: uppercase; }
.brand-mark { width: 12px; height: 28px; }
.nav-links { display: flex; gap: 32px; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; color: var(--bone-dim); }
.nav-links a { transition: color .3s; }
.nav-links a:hover { color: var(--bone); }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px; border-radius: 999px;
  background: var(--red); color: #fff;
  font-weight: 700; font-size: .9rem; letter-spacing: .04em;
  transition: transform .35s cubic-bezier(.2, .8, .2, 1), background .3s;
}
.btn:hover { transform: translateY(-2px); background: #dd3a32; }
.btn-small { padding: 10px 20px; font-size: .8rem; }
.btn-light { background: var(--bone); color: var(--ink); }
.btn-light:hover { background: #fff; }

/* ---------- hero ---------- */
.hero-track { position: relative; height: 680vh; overflow: clip; }
.hero-stage {
  position: sticky; top: 0; height: 100svh; overflow: visible;
  isolation: isolate;
  /* where the 3D pole sits at rest, measured from its render (pole.webp) */
  --pole-h: 77.65%; --pole-y: -50.2%;
}
@media (max-aspect-ratio: 4/5) { .hero-stage { --pole-h: 48.36%; } }
/* background reaches 100lvh so no band shows when the phone address bar hides */
.hero-stage::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 100lvh; z-index: -2;
  background: radial-gradient(120% 80% at 50% 30%, #1d1a16 0%, var(--ink) 60%);
}
.hero-glow {
  position: absolute; left: 50%; top: 50%; width: 90vmin; height: 90vmin; z-index: -1;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(201, 160, 99, .22) 0%, rgba(201, 160, 99, .06) 40%, transparent 70%);
  animation: fadeIn 2s .2s ease both;
}

.hero-title {
  position: absolute; inset: 0; z-index: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-family: var(--display); font-weight: 400;
  font-size: clamp(5.5rem, 23vw, 24rem); line-height: .84; letter-spacing: .01em;
  color: var(--bone); text-transform: uppercase;
  will-change: transform, opacity;
  pointer-events: none;
}
.hero-line { display: block; overflow: hidden; padding: 0 .02em; }
.hero-letter {
  display: inline-block;
  animation: rise 1.25s cubic-bezier(.16, .9, .2, 1) both;
  animation-delay: calc(.2s + var(--i) * .055s);
}
.hero-letter.amp { color: var(--red); font-family: var(--serif); font-style: italic; text-transform: none; margin-right: .06em; }

#pole { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; display: block; opacity: 0; transition: opacity .35s ease; }
#pole.on { opacity: 1; }

/* still render of the pole: shows instantly and does the intro rise while the 3D loads */
.pole-poster {
  position: absolute; left: 50%; top: 50%; z-index: 1; width: auto; height: var(--pole-h);
  transform: translate(-50%, var(--pole-y));
  animation: poleRise 1.6s .15s cubic-bezier(.16, 1, .3, 1) both;
  transition: opacity .3s .35s ease;
  pointer-events: none;
}
.pole-poster.off { opacity: 0; }
@keyframes poleRise { from { transform: translate(-50%, 70vh); } to { transform: translate(-50%, var(--pole-y)); } }

.hero-kicker {
  position: absolute; left: 0; right: 0; bottom: 9vh; z-index: 2; text-align: center;
  font-size: .78rem; letter-spacing: .32em; text-transform: uppercase; color: var(--bone-dim);
}
/* the intro animation sits on the inner element so JS can fade the outer one */
.hero-kicker > span { display: inline-block; animation: fadeUp 1s 1.1s cubic-bezier(.2, .8, .2, 1) both; }
.hero-kicker i { color: var(--red); font-style: normal; padding: 0 .4em; }

.scene-label {
  position: absolute; z-index: 2; top: 84px; left: calc(var(--gutter) + 18px);
  font-size: .7rem; letter-spacing: .28em; text-transform: uppercase; color: var(--bone-dim);
  animation: fadeIn 1.2s 1.4s ease both;
}
.scene-num { color: var(--bone); }
.scene-name { margin-left: 1.2em; color: var(--brass); }

.scene-copy { position: absolute; inset: 0; z-index: 2; pointer-events: none; }
.sc-title, .sc-sub { position: absolute; left: calc(var(--gutter) + 18px); overflow: hidden; }
.sc-title {
  bottom: calc(26% + 10px);
  font-family: var(--serif); font-weight: 400; font-size: clamp(2.8rem, 5.4vw, 6rem); line-height: 1.02;
  padding-bottom: .06em;
}
.sc-sub { top: calc(74% + 18px); max-width: 24rem; color: var(--bone-dim); font-size: .95rem; padding: 4px 0; }
.sc-title span, .sc-sub span { display: block; transform: translateY(150%); will-change: transform; }
.scene-cta .sc-sub { padding: 6px 6px 10px 0; }

.hero-cue {
  position: absolute; left: var(--gutter); bottom: 9vh; z-index: 2;
  font-size: .72rem; letter-spacing: .3em; text-transform: uppercase; color: var(--bone-dim);
}
.cue-in { display: flex; align-items: center; gap: 12px; animation: fadeUp 1s 1.3s cubic-bezier(.2, .8, .2, 1) both; }
.hero-cue i { width: 48px; height: 1px; background: var(--line); position: relative; overflow: hidden; }
.hero-cue i::after { content: ""; position: absolute; inset: 0; background: var(--bone); animation: cue 2.2s 2s cubic-bezier(.6, 0, .2, 1) infinite; transform: translateX(-100%); }

.hero-progress { position: absolute; right: var(--gutter); bottom: 9vh; z-index: 2; width: 120px; height: 1px; background: var(--line); animation: fadeUp 1s 1.3s ease both; }
.hero-progress i { position: absolute; inset: 0; background: var(--red); transform-origin: left; transform: scaleX(0); }

.hero-fade { position: absolute; inset: 0 0 auto 0; height: 100lvh; z-index: 3; background: var(--ink); opacity: 0; pointer-events: none; }

/* ---------- sections ---------- */
section:not(.hero-track) { position: relative; padding: clamp(96px, 14vw, 180px) var(--gutter); scroll-margin-top: -40px; }
.book { scroll-margin-top: 90px; }

.statement p {
  max-width: 18ch; margin: 0 auto; text-align: center;
  font-family: var(--display); text-transform: uppercase;
  font-size: clamp(2.6rem, 7vw, 6.5rem); line-height: 1;
}
.statement em { text-transform: none; display: block; }

.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; padding-bottom: 28px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.eyebrow { font-size: .75rem; letter-spacing: .3em; text-transform: uppercase; color: var(--red); }
h2 { font-family: var(--serif); font-weight: 400; font-size: clamp(2.6rem, 6vw, 5.5rem); line-height: 1; }

.menu { list-style: none; }
.menu li {
  display: grid; grid-template-columns: 1.1fr 1.6fr auto; align-items: baseline; gap: 24px;
  padding: 28px 0; border-bottom: 1px solid var(--line);
  transition: padding .4s cubic-bezier(.2, .8, .2, 1);
}
.menu li:hover { padding-left: 14px; }
.menu-name { font-family: var(--display); font-size: clamp(1.5rem, 3vw, 2.4rem); text-transform: uppercase; letter-spacing: .02em; }
.menu-note { color: var(--bone-dim); }
.menu-price { font-family: var(--serif); font-size: clamp(1.6rem, 3vw, 2.4rem); color: var(--brass); }

.ritual { background: var(--ink-2); }
.steps { list-style: none; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 40px; }
.steps li { padding: 8px 28px 8px 0; border-left: 1px solid var(--line); padding-left: 24px; }
.steps b { font-family: var(--serif); font-weight: 400; font-size: 1rem; color: var(--red); }
.steps h3 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: 2.2rem; margin: 12px 0 10px; letter-spacing: .02em; }
.steps p { color: var(--bone-dim); font-size: .95rem; }

/* ----- the cuts gallery ----- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.cut { position: relative; overflow: hidden; border-radius: 6px; aspect-ratio: 4 / 5; background: var(--ink-2); }
.cut img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 1.2s cubic-bezier(.2, .8, .2, 1); }
.cut:hover img { transform: scale(1.05); }
.cut figcaption {
  position: absolute; inset: auto 0 0 0; padding: 60px 20px 18px;
  display: flex; align-items: flex-end; justify-content: space-between; gap: 12px;
  background: linear-gradient(to top, rgba(14, 13, 12, .92), rgba(14, 13, 12, 0));
}
.cut figcaption b { display: block; font-family: var(--display); font-weight: 400; font-size: 1.5rem; text-transform: uppercase; letter-spacing: .02em; line-height: 1.1; }
.cut figcaption i { font-style: normal; font-size: .8rem; color: var(--brass); }
.cut-book, .card-book {
  flex: none; font: 700 .78rem/1 var(--sans); letter-spacing: .04em; cursor: pointer;
  padding: 10px 16px; border-radius: 999px; border: 1px solid rgba(236, 228, 214, .4);
  background: transparent; color: var(--bone);
  transition: background .3s, color .3s, border-color .3s;
}
.cut-book:hover, .card-book:hover { background: var(--bone); color: var(--ink); border-color: var(--bone); }

/* ----- barbers ----- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.card {
  position: relative; overflow: hidden; border-radius: 6px;
  background: var(--ink-2); border: 1px solid var(--line);
  display: flex; flex-direction: column;
  transition: border-color .4s;
}
.card:hover { border-color: rgba(201, 160, 99, .5); }
.card img { width: 100%; height: auto; aspect-ratio: 4 / 4.4; object-fit: cover; display: block; filter: saturate(.85); }
.card-body { padding: 24px 24px 28px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card-role { font-size: .72rem; letter-spacing: .24em; text-transform: uppercase; color: var(--brass); }
.card h3 { font-family: var(--display); font-weight: 400; font-size: 2.4rem; text-transform: uppercase; line-height: 1; }
.card p { color: var(--bone-dim); flex: 1; }
.card-book { align-self: flex-start; margin-top: 12px; }

.visit { background: var(--red); color: #fff; }
.visit .eyebrow { color: rgba(255, 255, 255, .75); }
.visit-inner { max-width: 980px; margin: 0 auto; }
.visit-copy { text-align: center; }
.visit h2 { font-family: var(--display); text-transform: uppercase; font-size: clamp(3.4rem, 10vw, 9rem); margin: 18px 0 20px; }
.visit-copy p { font-size: 1.1rem; margin: 0 auto 40px; max-width: 32rem; }

/* ----- WhatsApp booking form ----- */
.book {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px 20px;
  padding: clamp(22px, 4vw, 40px); border-radius: 8px;
  background: rgba(14, 13, 12, .16); border: 1px solid rgba(255, 255, 255, .22);
}
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field-wide { grid-column: span 3; }
.field label { font-size: .72rem; letter-spacing: .22em; text-transform: uppercase; color: rgba(255, 255, 255, .8); }
.field label i { font-style: normal; text-transform: none; letter-spacing: 0; opacity: .7; }
.field input, .field select {
  width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, .35); background: rgba(255, 255, 255, .1); color: #fff;
  font: 500 1rem var(--sans); color-scheme: dark; outline: none;
  transition: border-color .25s, background .25s;
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #fff 50%), linear-gradient(135deg, #fff 50%, transparent 50%); background-position: calc(100% - 20px) 22px, calc(100% - 15px) 22px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.field select option { color: var(--ink); background: #fff; }
.field input::placeholder { color: rgba(255, 255, 255, .55); }
.field input:focus, .field select:focus { border-color: #fff; background: rgba(255, 255, 255, .16); }
.field.bad input, .field.bad select { border-color: #ffd7a8; background: rgba(255, 215, 168, .14); }
.book-style, .book-error { grid-column: 1 / -1; margin: 0; }
.book-style[hidden], .book-error[hidden] { display: none; }
.book-style { display: flex; align-items: center; gap: 10px; font-size: .95rem; }
.book-style span { padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .16); }
.book-style-x { border: 0; background: none; color: #fff; font-size: 1.3rem; line-height: 1; cursor: pointer; opacity: .8; }
.book-error { color: #ffe1bd; font-weight: 700; }
.book-send { grid-column: 1 / -1; justify-self: start; border: 0; cursor: pointer; font-family: var(--sans); font-size: 1rem; padding: 16px 28px; }
.visit-info { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 56px; padding-top: 32px; border-top: 1px solid rgba(255, 255, 255, .3); }
.visit-info dt { font-size: .72rem; letter-spacing: .3em; text-transform: uppercase; opacity: .75; margin-bottom: 6px; }

.footer { display: flex; justify-content: space-between; gap: 16px; padding: 28px var(--gutter); font-size: .8rem; color: var(--bone-dim); border-top: 1px solid var(--line); }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(40px); transition: opacity 1s cubic-bezier(.2, .8, .2, 1), transform 1s cubic-bezier(.2, .8, .2, 1); }
.reveal.in { opacity: 1; transform: none; }
.menu li.reveal:nth-child(2), .steps li:nth-child(2), .card:nth-child(2) { transition-delay: .08s; }
.menu li.reveal:nth-child(3), .steps li:nth-child(3), .card:nth-child(3) { transition-delay: .16s; }
.steps li:nth-child(4) { transition-delay: .24s; }
.cut:nth-child(3n+2) { transition-delay: .08s; }
.cut:nth-child(3n) { transition-delay: .16s; }

/* ---------- keyframes ---------- */
@keyframes rise { from { transform: translateY(105%); } to { transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-16px); } to { opacity: 1; transform: none; } }
@keyframes cue { 0% { transform: translateX(-100%); } 60%, 100% { transform: translateX(100%); } }

/* ---------- phones ---------- */
@media (max-width: 820px) {
  .nav-links { display: none; }
  .sc-title { font-size: clamp(2.6rem, 12vw, 4.2rem); right: var(--gutter); }
  .sc-sub { right: var(--gutter); font-size: .9rem; }
  .scene-label { top: 76px; }
  .hero-kicker { bottom: 5vh; letter-spacing: .22em; font-size: .68rem; }
  .hero-cue, .hero-progress { display: none; }
  .menu li { grid-template-columns: 1fr auto; gap: 4px 16px; }
  .menu-note { grid-column: 1 / -1; grid-row: 2; font-size: .9rem; }
  .steps { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .gallery { grid-template-columns: 1fr 1fr; gap: 12px; }
  .cut figcaption { flex-direction: column; align-items: flex-start; padding: 48px 12px 12px; gap: 8px; }
  .cut figcaption b { font-size: 1.1rem; }
  .cut-book { padding: 8px 12px; font-size: .72rem; }
  .cards { grid-template-columns: 1fr; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .book { grid-template-columns: 1fr 1fr; gap: 16px 12px; }
  .field { grid-column: 1 / -1; }
  .field-half { grid-column: span 1; }
  .field input, .field select { font-size: .95rem; padding: 12px; }
  .book-send { justify-self: stretch; justify-content: center; }
  .visit-info { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .hero-letter, .nav, .hero-kicker > span, .cue-in, .hero-progress, .hero-glow, .scene-label, .pole-poster { animation: none; }
  .reveal { transition: none; }
}
