/* Barbershop 89 — one ground, one ink, one accent. */

:root {
  --bg: #121212;
  --surface: #1c1c1b;
  --ink: #ecebe7;
  --muted: #b3ada2;
  --accent: #c9a24a;
  --accent-strong: #e0b95b;
  --accent-ink: #121212;
  --inv-bg: #ecebe7;
  --inv-ink: #121212;
  --inv-muted: #5f5a52;

  --font-display: "Gambarino", "Times New Roman", Georgia, serif;
  --font-text: "General Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

  --step-small: clamp(0.875rem, 0.85rem + 0.1vw, 0.9375rem);
  --step-body: clamp(1.0625rem, 1rem + 0.25vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.7vw, 1.625rem);
  --step-statement: clamp(1.375rem, 1.05rem + 1.1vw, 2rem);
  --step-rows: clamp(44px, 6vw, 88px);
  --step-name: clamp(56px, 8.5vw, 136px);
  --step-number: clamp(112px, 17vw, 280px);

  --margin: clamp(16px, 2vw, 28px);
  --gutter: clamp(12px, 1.6vw, 24px);
  --section: clamp(96px, 10vw, 160px);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.76, 0, 0.24, 1);
  --ease-soft: cubic-bezier(0.33, 1, 0.68, 1);
  --t-press: 140ms;
  --t-hover: 180ms;
  --t-ui: 240ms;
  --t-reveal: 800ms;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: auto; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: var(--step-body);
  line-height: 1.5;
  font-kerning: normal;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
h1, h2, h3, p, figure, blockquote, ul, ol, dl, dd { margin: 0; }
ul[class], ol[class] { padding: 0; list-style: none; }
img, video, svg, iframe { display: block; max-width: 100%; }
img, video { height: auto; background: var(--surface); }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; }
:target { scroll-margin-top: 2rem; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
p { text-wrap: pretty; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.nums { font-variant-numeric: tabular-nums; }

/* ---------- controls ---------- */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 1.6rem;
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease;
}
.button:active { transform: scale(0.97); }
.link {
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 0.22em;
  text-decoration-thickness: 0.07em;
  transition: text-decoration-color var(--t-hover) ease, color var(--t-hover) ease;
}
@media (hover: hover) and (pointer: fine) {
  .button:hover { background-color: var(--accent-strong); }
  .link:hover { text-decoration-color: currentColor; }
}

/* ---------- navigation ---------- */
.nav {
  position: absolute;
  top: calc(var(--margin) + 0.35em);
  right: var(--margin);
  z-index: 7;
  display: flex;
  gap: 1.6rem;
  font-size: var(--step-small);
  font-weight: 500;
}
.nav a { text-decoration: none; }

/* ---------- the monument ---------- */
.stage { position: relative; }
.monument-layer {
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
}
.monument {
  position: sticky;
  top: 0;
  height: 100svh;
}
.monument h1 {
  position: absolute;
  inset: 0;
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 0.85;
  color: var(--ink);
}
.half { position: absolute; display: block; white-space: nowrap; }
.half-a {
  top: var(--margin);
  left: var(--margin);
  font-size: var(--step-name);
}
.half-b {
  bottom: var(--margin);
  right: var(--margin);
  font-size: var(--step-number);
  line-height: 0.74;
}

.panel {
  position: relative;
  height: 100svh;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
}
.panel img, .panel video { width: 100%; height: 100%; object-fit: cover; }

.panel-1__video {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.panel-1__video::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(10, 10, 10, 0.42);
}
/* The source is letterboxed 1350x1080 with a 1350x760 picture; the oversize box crops the bars. */
.panel-1__video { overflow: hidden; }
.panel-1__video video {
  background: #000;
  position: absolute;
  left: 0;
  top: 50%;
  width: 100%;
  height: 142.11%;
  transform: translateY(-50%);
}
.panel-1__text {
  position: relative;
  z-index: 1;
  grid-column: 2 / 8;
  align-self: center;
  padding-top: 8vh;
}
.support {
  font-size: var(--step-lead);
  line-height: 1.35;
  max-width: 34ch;
}
.panel-1__text .button { margin-top: 2rem; }
.status {
  margin-top: 1.4rem;
  font-size: var(--step-body);
  color: var(--ink);
  max-width: 34ch;
}
.sound {
  margin-top: 2.2rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0 1rem;
  background: var(--ink);
  color: var(--bg);
  font-size: var(--step-small);
  font-weight: 500;
  transition: transform var(--t-press) var(--ease-out), opacity var(--t-hover) ease;
}
.sound:active { transform: scale(0.96); }
.sound[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }

.panel-2 .panel__img { grid-column: 6 / 10; height: 100svh; overflow: hidden; }
.panel-2 .panel__img video { background: #000; }
.panel-2__text {
  grid-column: 1 / 6;
  align-self: end;
  padding: 0 0 12vh var(--margin);
}
.statement {
  font-size: var(--step-statement);
  line-height: 1.25;
  max-width: 24ch;
  text-wrap: pretty;
}
.statement-note {
  margin-top: 1rem;
  font-size: var(--step-body);
  color: var(--muted);
  max-width: 34ch;
}

/* ---------- services as a poster ---------- */
.services { padding: 80px 0; background: var(--bg); position: relative; z-index: 1; }
.services li a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--gutter);
  padding: 0.04em var(--margin);
  text-decoration: none;
  color: var(--ink);
  font-family: var(--font-display);
  font-size: var(--step-name);
  line-height: 0.92;
  letter-spacing: -0.02em;
  white-space: nowrap;
  transition: color var(--t-hover) ease;
}
.services .detail {
  font-family: var(--font-text);
  font-size: var(--step-body);
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
  flex: none;
}
@media (hover: hover) and (pointer: fine) {
  .services li a:hover { color: var(--accent); }
  .services li a:hover .detail { color: var(--accent); }
}

/* ---------- photo run ---------- */
.run {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--gutter);
  padding: 0 var(--margin);
}
.run figure { overflow: hidden; }
.run img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 60% 50%; }
.run .run__wide { grid-column: 1 / -1; margin-bottom: 40px; }
.run .run__wide img { aspect-ratio: 16 / 9; object-position: 50% 50%; }
.run figcaption {
  margin-top: 0.8rem;
  font-size: var(--step-small);
  color: var(--muted);
}

/* ---------- about: side facts, wide paragraph ---------- */
.about {
  display: grid;
  grid-template-columns: 34% 1fr;
  row-gap: 72px;
  padding: var(--section) var(--margin);
}
.facts {
  display: grid;
  gap: 20px;
  align-content: start;
  max-width: 260px;
  font-size: var(--step-body);
}
.facts dt { color: var(--muted); }
.facts dd { color: var(--ink); font-weight: 500; }
.about .wide {
  font-size: var(--step-statement);
  line-height: 1.3;
  max-width: 92%;
  text-wrap: pretty;
}
.about .more {
  margin-top: 1.2rem;
  font-size: var(--step-lead);
  line-height: 1.4;
  max-width: 52ch;
}
.about .word {
  font-size: var(--step-small);
  color: var(--ink);
  align-self: start;
}
.record {
  display: grid;
  grid-template-columns: 300px 300px;
  column-gap: 64px;
  row-gap: 40px;
  font-size: var(--step-body);
}
.record h3 { font: inherit; font-weight: 500; margin-bottom: 10px; }
.record li { display: flex; justify-content: space-between; gap: 1rem; padding: 5px 0; }
.record li span:last-child { color: var(--muted); font-variant-numeric: tabular-nums; }

/* ---------- reviews: one lead, two corners ---------- */
.reviews {
  min-height: 100svh;
  background: var(--surface);
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 14vh var(--margin) 32px;
}
.reviews .lead {
  justify-self: center;
  text-align: center;
  max-width: 60%;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1.1rem + 1.5vw, 2.25rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.reviews .lead footer {
  margin-top: 1.2rem;
  font-family: var(--font-text);
  font-size: var(--step-body);
  color: var(--muted);
  letter-spacing: 0;
}
.reviews .corners {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  align-items: end;
}
.reviews .corner { font-size: var(--step-body); line-height: 1.5; }
.reviews .corner:first-child { grid-column: 1 / 4; }
.reviews .corner:last-child { grid-column: 10 / 13; }
.reviews .corner footer { margin-top: 0.6rem; color: var(--muted); font-size: var(--step-small); }

/* ---------- contact: address in display rows ---------- */
.contact .row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--gutter);
  min-height: 150px;
  padding: 36px 20px 22px;
  font-family: var(--font-display);
  font-size: var(--step-rows);
  line-height: 1;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.contact .row:nth-child(odd) { background: var(--surface); }
.contact .row a { text-decoration: none; }
.contact .row .note {
  font-family: var(--font-text);
  font-size: var(--step-body);
  letter-spacing: 0;
  line-height: 1.4;
  color: var(--muted);
  max-width: 30ch;
  text-align: right;
  flex: none;
  padding-bottom: 0.15em;
}
.contact .row-greet { background: var(--bg); }
.contact .row-greet a {
  display: inline-flex;
  align-items: center;
  gap: 24px;
}
.round {
  display: inline-grid;
  place-items: center;
  width: 0.9em;
  height: 0.9em;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  transition: transform var(--t-press) var(--ease-out), background-color var(--t-hover) ease;
}
.round svg { width: 42%; height: 42%; }
@media (hover: hover) and (pointer: fine) {
  .contact .row-greet a:hover .round { background: var(--accent-strong); transform: translate(3px, -3px); }
  .contact .row a:not(.round):hover { color: var(--accent); }
}
.map { position: relative; height: 70svh; background: var(--surface); }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(1) contrast(1.05); }

/* ---------- cta: one word is the button ---------- */
.cta {
  position: relative;
  display: block;
  min-height: 60svh;
  background: var(--accent);
  color: var(--accent-ink);
  text-decoration: none;
  overflow: hidden;
}
.cta__note {
  position: absolute;
  top: 20px;
  left: 20px;
  max-width: 34ch;
  font-size: var(--step-body);
  line-height: 1.4;
}
.cta__arrow { position: absolute; top: 20px; right: 20px; width: 48px; height: 48px; }
.cta__word {
  position: absolute;
  left: 20px;
  bottom: -0.02em;
  font-family: var(--font-display);
  font-size: clamp(150px, 30vw, 460px);
  line-height: 0.8;
  letter-spacing: -0.03em;
  white-space: nowrap;
}
.cta:hover, .cta:focus-visible { background: var(--accent-ink); color: var(--accent); }

/* ---------- footer: invitation over a cropped name ---------- */
.footer {
  position: relative;
  min-height: 88svh;
  background: var(--inv-bg);
  color: var(--inv-ink);
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto 1fr auto auto;
  padding: var(--section) 0 0;
}
.footer > * { min-width: 0; }
.footer__top {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--gutter);
  padding: 0 var(--margin);
}
.footer__invite { grid-column: 1 / 8; }
.footer__invite p {
  font-family: var(--font-display);
  font-size: var(--step-name);
  line-height: 0.95;
  letter-spacing: -0.02em;
  max-width: 14ch;
  text-wrap: balance;
}
.footer__invite .button { margin-top: 2rem; }
.footer__links {
  grid-column: 10 / 13;
  display: grid;
  gap: 0.5rem;
  align-content: start;
  font-size: var(--step-body);
}
.footer__links a { text-decoration: none; }
.footer__logo { grid-column: 8 / 10; width: 100%; max-width: 300px; justify-self: end; }
.footer__logo img { background: transparent; }
.footer__legal {
  display: flex;
  justify-content: space-between;
  gap: var(--gutter);
  flex-wrap: wrap;
  padding: 0 var(--margin) 8px;
  font-size: var(--step-small);
  color: var(--inv-muted);
}
.footer__legal a { text-decoration: none; }
.footer__name {
  font-family: var(--font-display);
  font-size: var(--step-number);
  line-height: 0.8;
  letter-spacing: -0.03em;
  white-space: nowrap;
  padding-left: var(--margin);
  transform: translateY(30%);
}

/* ---------- motion (content stays visible without script) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js [data-rise] {
    opacity: 0;
    transform: translateY(18px);
    animation: rise var(--t-reveal) var(--ease-out) forwards;
    animation-delay: calc(var(--i, 0) * 90ms + 120ms);
  }
  .js [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 700ms var(--ease-out), transform 900ms var(--ease-out); transition-delay: calc(var(--i, 0) * 80ms); }
  .js [data-reveal].is-in { opacity: 1; transform: none; }
  .js .settle[data-reveal] { opacity: 1; transform: none; }
  .js .settle[data-reveal] img { transform: scale(1.08); transition: transform 1400ms var(--ease-soft); }
  .js .settle[data-reveal].is-in img { transform: none; }
  .js .services li { opacity: 0; transform: translateX(-24px); transition: opacity 600ms var(--ease-out), transform 800ms var(--ease-out); transition-delay: calc(var(--i, 0) * 70ms); }
  .js .services li.is-in { opacity: 1; transform: none; }
  .cta__word { transition: transform 600ms var(--ease-soft); }
  .cta:hover .cta__word { transform: translateX(10px); }
}
@keyframes rise { to { opacity: 1; transform: none; } }

/* ---------- tablet ---------- */
@media (max-width: 1024px) {
  .panel-1__text { grid-column: 1 / 8; padding-left: var(--margin); }
  .panel-1__video { grid-column: 8 / 13; }
  .panel-2 .panel__img { grid-column: 6 / 11; }
  .panel-2__text { grid-column: 1 / 6; }
  .record { grid-template-columns: 1fr 1fr; column-gap: 32px; }
  .reviews .lead { max-width: 80%; }
  .reviews .corner:first-child { grid-column: 1 / 6; }
  .reviews .corner:last-child { grid-column: 8 / 13; }
  .run { grid-template-columns: 1fr 1fr 1fr; }
}

/* ---------- phone ---------- */
@media (max-width: 767px) {
  .nav { gap: 0; }
  .nav a:not(.nav__book) { display: none; }
  :root { --step-name: 13vw; --step-number: 30vw; --step-rows: 9.6vw; --step-statement: 19px; --step-lead: 19px; --step-body: 17px; --step-small: 15px; }

  /* On a phone the two halves hold the first screen only; nothing is pinned. */
  .monument-layer { bottom: auto; height: 100svh; }
  .monument { position: static; }

  .panel { display: block; height: auto; min-height: 0; }
  .panel-1 { position: relative; min-height: 100svh; display: flex; align-items: flex-end; }
  .panel-1__text { padding: calc(13vw + 48px) 16px 120px; max-width: 72%; }
  .support { max-width: none; }
  .panel-2 .panel__img { height: 70svh; }
  .panel-2__text { padding: 24px 16px 72px; }
  .statement { max-width: 30ch; }

  .services { padding: 64px 0; }
  .services ul { display: grid; gap: 14px; }
  .services li a { flex-wrap: wrap; padding: 0 16px; font-size: var(--step-rows); white-space: normal; }

  .run { grid-template-columns: 1fr; padding: 0 16px; gap: 24px; }
  .run .run__wide { margin-bottom: 8px; }

  .about { grid-template-columns: 1fr; row-gap: 40px; padding: 96px 16px; }
  .about__text { order: -1; }
  .about .wide { max-width: none; }
  .about .more { font-size: var(--step-body); }
  .facts { grid-template-columns: 1fr 1fr; max-width: none; }
  .record { grid-template-columns: 1fr; row-gap: 40px; }
  .about .word { font-weight: 500; }

  .reviews { padding: 96px 16px 32px; }
  .reviews .lead { max-width: none; text-align: left; justify-self: start; font-size: 24px; line-height: 1.25; margin-bottom: 96px; }
  .reviews .corners { display: block; }
  .reviews .corner:last-child { margin-top: 32px; margin-left: 25%; }

  .contact .row { display: block; min-height: 84px; padding: 24px 16px 14px; }
  .contact .row .note { display: block; text-align: left; margin-top: 10px; max-width: none; }
  .contact .row-greet { background: var(--accent); color: var(--accent-ink); }
  .contact .row-greet a { display: flex; justify-content: space-between; width: 100%; }
  .round { width: 56px; height: 56px; }
  .map { height: 56svh; }

  .cta { min-height: 46svh; }
  .cta__note { font-size: 17px; max-width: 60%; left: 16px; top: 16px; }
  .cta__arrow { width: 32px; height: 32px; right: 16px; top: 16px; }
  .cta__word { left: 16px; font-size: 44vw; }

  .footer { padding-top: 96px; }
  .footer__top { display: block; padding: 0 16px; }
  .footer__invite p { max-width: none; }
  .footer__invite .button { width: 100%; }
  .footer__logo { width: 120px; margin: 40px 0 0; }
  .footer__links { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 24px; }
  .footer__legal { padding: 0 16px 6px; }
  .footer__name { padding-left: 16px; }
}
