/* House of Art Barber Studio — design proposal. Colours taken from the shop:
   gold plaster walls (ground), black sign (ink and fields), blue pool table (accent). */
:root {
  --bg: #c6ad7f;
  --surface: #d3bd92;
  --ink: #121110;
  --muted: #3a3024;
  --accent: #1c5aa6;
  --accent-ink: #ffffff;
  --field: #141312;
  --field-ink: #f4f3f0;
  --serif: "EB Garamond", Garamond, Georgia, serif;
  --sans: "Montserrat", "Helvetica Neue", Arial, sans-serif;
  --m: clamp(20px, 6vw, 88px);
  --step-small: 0.875rem;
  --step-body: clamp(1.125rem, 1.05rem + 0.3vw, 1.3125rem);
  --step-lead: clamp(1.375rem, 1.1rem + 1vw, 2rem);
  --step-head: clamp(2.5rem, 1.6rem + 3.6vw, 4.5rem);
  --step-hero: clamp(72px, 8.6vw, 136px);
  --ease: cubic-bezier(.16, 1, .3, 1);
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 var(--step-body)/1.5 var(--serif); overflow-x: hidden; }
h1, h2, h3, p, figure, blockquote, ul, fieldset { margin: 0; padding: 0; border: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
.wrap { padding-left: var(--m); padding-right: var(--m); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }

/* bar */
.bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding-top: 18px; padding-bottom: 18px; }
.bar-link { font: 500 16px/1 var(--sans); text-decoration: none; justify-self: start; }
.bar-link:hover { text-decoration: underline; }
.mark { text-decoration: none; display: grid; justify-items: center; gap: 4px; background: var(--field); color: var(--field-ink); padding: 10px 18px; }
.mark span { font: 600 15px/1 var(--sans); letter-spacing: .22em; text-transform: uppercase; padding-left: .22em; }
.mark small { font: 500 13px/1 var(--sans); letter-spacing: .12em; text-transform: uppercase; }
.bar .btn { justify-self: end; }

/* buttons */
.btn { display: inline-flex; align-items: center; min-height: 52px; padding: 0 26px; background: var(--accent); color: var(--accent-ink); font: 500 16px/1 var(--sans); text-decoration: none; border-radius: 0; transition: transform .2s var(--ease), background .2s; }
.btn:hover { background: #154a8c; transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-sm { min-height: 44px; padding: 0 18px; }
.btn-light { background: var(--field-ink); color: var(--ink); }
.btn-light:hover { background: #fff; }
.link { font: 500 16px/1 var(--sans); text-underline-offset: 5px; }
.link:hover { text-decoration-thickness: 2px; }
.link.light { color: var(--field-ink); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 24px; }

/* hero: stepped title + two photographs */
.hero { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 16px; padding-top: 24px; padding-bottom: 40px; min-height: calc(100svh - 80px); align-content: start; }
.hero-small { grid-column: 10 / 13; grid-row: 1; aspect-ratio: 16 / 10; overflow: hidden; margin-bottom: 20px; }
.hero-small img { width: 100%; height: 100%; object-fit: cover; }
.hero-title { grid-column: 1 / 13; grid-row: 2; font: 400 var(--step-hero)/1 var(--serif); letter-spacing: -.02em; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: .08em; }
.hero-title .line > span { display: inline-block; }
.hero-title .l2 { padding-left: calc((100% + 16px) * 5 / 12); }
.hero-tall { grid-column: 1 / 6; grid-row: 3 / 5; margin-top: 24px; aspect-ratio: 4 / 5; overflow: hidden; }
.hero-tall img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; animation: drift 18s ease-in-out infinite alternate; }
.hero-copy { grid-column: 6 / 12; grid-row: 3; margin-top: 32px; display: grid; gap: 28px; align-content: start; }
.hero-copy p { font-size: var(--step-lead); line-height: 1.3; max-width: 30ch; }
@keyframes drift { from { transform: scale(1); } to { transform: scale(1.06) translateY(-1%); } }

/* services: one axis, margin photographs */
.services { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 16px; padding-top: clamp(80px, 9vw, 140px); }
.services > * { grid-column: 3 / 13; }
.statement { font: 400 var(--step-head)/1.05 var(--serif); letter-spacing: -.01em; }
.services-note { margin-top: 16px; margin-bottom: clamp(48px, 7vw, 96px); font-size: var(--step-lead); line-height: 1.3; max-width: 32ch; }
.row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 40px; align-items: start; padding-bottom: clamp(56px, 7vw, 104px); }
.row h3 { font: 400 clamp(1.75rem, 1.2rem + 2vw, 3rem)/1.05 var(--serif); margin-bottom: 10px; }
.row p { max-width: 34ch; }
.row img { object-fit: cover; max-width: 38vw; }
.m1 { width: 340px; aspect-ratio: 4 / 5; }
.m2 { width: 480px; aspect-ratio: 3 / 2; object-position: 50% 15%; }
.m3 { width: 280px; aspect-ratio: 1; object-position: 50% 45%; }
.m4 { width: 380px; aspect-ratio: 4 / 5; }
.reviews-head img { width: min(100%, 440px); aspect-ratio: 4 / 5; object-fit: cover; margin-top: 24px; }

/* booking: black field like the sign */
.book { background: var(--field); color: var(--field-ink); padding-top: clamp(80px, 10vw, 160px); padding-bottom: clamp(80px, 10vw, 160px); }
.book-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 16px; row-gap: 40px; }
.book-head { grid-column: 1 / 6; display: grid; gap: 20px; align-content: start; }
.book-head h2 { font: 400 var(--step-head)/1.05 var(--serif); }
.status { font-size: var(--step-lead); line-height: 1.3; max-width: 22ch; }
.picker { grid-column: 7 / 13; display: grid; gap: 28px; }
legend { font: 500 16px/1 var(--sans); margin-bottom: 12px; padding: 0; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { position: relative; cursor: pointer; }
.chips input { position: absolute; opacity: 0; inset: 0; }
.chips span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; background: #2a2826; font: 500 16px/1 var(--sans); transition: background .2s, color .2s, transform .2s var(--ease); }
.chips label:hover span { background: #3a3734; }
.chips input:checked + span { background: var(--field-ink); color: var(--ink); }
.chips input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.chips input:disabled + span { opacity: .35; cursor: not-allowed; }
.preview { font-style: italic; font-size: var(--step-body); line-height: 1.45; max-width: 32ch; background: #22201e; padding: 20px 22px; }

/* gallery: staggered prints on the wall */
.gallery { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 16px; padding-top: clamp(80px, 9vw, 140px); }
.gallery h2 { grid-column: 1 / 13; font: 400 var(--step-head)/1.05 var(--serif); margin-bottom: 48px; }
.gallery figure { display: grid; gap: 10px; }
.gallery figcaption { font-size: var(--step-small); color: var(--muted); font-family: var(--sans); }
.gallery img { width: 100%; object-fit: cover; }
.g1 { grid-column: 1 / 6; }
.g1 img { aspect-ratio: 3 / 4; }
.g2 { grid-column: 6 / 13; margin-top: 12vh; }
.g2 img { aspect-ratio: 5 / 4; }
.g3 { grid-column: 6 / 13; margin-top: 8vh; }
.g3 img { aspect-ratio: 3 / 2; object-position: 50% 0; }
.g4 { grid-column: 1 / 5; margin-top: 8vh; grid-row: 3 / 5; }
.g4 img { aspect-ratio: 4 / 5; object-position: 50% 30%; }
.g3 { grid-row: 3; }

/* quote over photograph */
.quote { position: relative; background: var(--field); height: 80svh; min-height: 480px; margin-top: clamp(80px, 9vw, 140px); overflow: hidden; color: var(--field-ink); }
.quote > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: brightness(.5); }
.quote-inner { position: relative; height: 100%; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 16px; align-content: end; padding-bottom: 64px; }
.quote blockquote { grid-column: 1 / 10; font: italic 400 var(--step-hero)/1 var(--serif); letter-spacing: -.02em; }
.quote .who { grid-column: 10 / 13; justify-self: end; align-self: end; font: 500 16px/1.3 var(--sans); }
@media (max-width: 1100px) { .reviews-head, .said { grid-column: 1 / 13; } .said { margin-top: 40px; } }

/* reviews */
.reviews { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 16px; padding-top: clamp(80px, 9vw, 140px); }
.reviews-head { grid-column: 1 / 6; display: grid; gap: 16px; align-content: start; }
.reviews h2 { font: 400 var(--step-head)/1.05 var(--serif); }
.said { grid-column: 7 / 13; list-style: none; display: grid; gap: 36px; }
.said p { font-size: var(--step-lead); line-height: 1.3; }
.said span { display: block; margin-top: 8px; font: 500 16px/1 var(--sans); color: var(--muted); }

/* visit */
.visit { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 16px; row-gap: 32px; padding-top: clamp(80px, 9vw, 140px); padding-bottom: clamp(80px, 9vw, 140px); align-items: start; }
.visit-text { grid-column: 1 / 6; display: grid; gap: 20px; }
.visit-text h2 { font: 400 var(--step-head)/1.05 var(--serif); }
.big { font-size: var(--step-lead); line-height: 1.3; }
.visit-img { grid-column: 6 / 9; width: 100%; aspect-ratio: 1; object-fit: cover; object-position: 50% 30%; }
.visit-links { grid-column: 10 / 13; display: grid; gap: 14px; justify-items: start; }
.visit-links .q { font: 500 16px/1.2 var(--sans); }
.visit-links a { font: 500 16px/1.3 var(--sans); text-underline-offset: 5px; }
.visit-links a:hover { text-decoration-thickness: 2px; }
.small { font-size: var(--step-small); font-family: var(--sans); color: var(--muted); }

/* footer: name across the last photograph */
.foot { position: relative; background: var(--field); height: 90svh; min-height: 520px; color: var(--field-ink); overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr); align-content: space-between; }
.foot > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; filter: brightness(.45); }
.foot-top, .foot-bottom { position: relative; }
.foot-top { display: flex; justify-content: space-between; gap: 24px; padding-top: 32px; font: 500 16px/1.5 var(--sans); }
.foot-top nav { display: grid; gap: 6px; }
.foot-top a { text-decoration: none; }
.foot-top a:hover { text-decoration: underline; }
.foot-top p { text-align: right; }
.foot-bottom { padding-bottom: 32px; }
.foot-mark { font: 600 clamp(40px, 10.2vw, 190px)/.9 var(--sans); letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.foot .small { color: var(--field-ink); opacity: .85; margin-top: 14px; }

/* motion */
.js .hero-title .line > span { transform: translateY(105%); animation: rise .95s var(--ease) forwards; }
.js .hero-title .l2 > span { animation-delay: .11s; }
.js .hero-copy { opacity: 0; animation: fade .7s ease-out .55s forwards; }
@keyframes rise { to { transform: none; } }
@keyframes fade { to { opacity: 1; } }
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease-out, transform .8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .hero-title .line > span, .js .hero-copy { animation: none; transform: none; opacity: 1; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .hero-tall img { animation: none; }
  html { scroll-behavior: auto; }
}

/* phone */
@media (max-width: 760px) {
  .bar { padding-top: 14px; padding-bottom: 14px; }
  .bar-link { display: none; }
  .bar { grid-template-columns: auto 1fr; }
  .mark { justify-self: start; padding: 9px 14px; }
  .hero { grid-template-columns: minmax(0, 1fr); min-height: 0; padding-top: 12px; }
  .hero-small { grid-column: 1; width: 52%; justify-self: end; margin-bottom: 14px; }
  .hero-title { grid-column: 1; font-size: 19vw; }
  .hero-title .l2 { padding-left: 20vw; }
  .hero-tall { grid-column: 1; grid-row: 3; width: 78%; margin-top: 18px; }
  .hero-copy { grid-column: 1; grid-row: 4; margin-top: 24px; }
  .services, .gallery, .reviews, .visit, .book-grid, .quote-inner { grid-template-columns: minmax(0, 1fr); }
  .services > *, .gallery h2, .reviews-head, .said, .visit-text, .visit-links, .book-head, .picker, .quote blockquote, .quote .who { grid-column: 1; }
  .row { grid-template-columns: minmax(0, 1fr); }
  .row img { max-width: 100%; }
  .m1 { width: 100%; }
  .m2 { width: 72%; justify-self: end; }
  .m3 { width: 56%; }
  .m4 { width: 80%; justify-self: end; }
  .reviews-head img { width: 64%; }
  .g1, .g2, .g3, .g4 { grid-column: 1; grid-row: auto; margin-top: 56px; }
  .g1 { width: 72%; margin-top: 0; }
  .g2 { width: 86%; justify-self: end; }
  .g3 { width: 60%; }
  .g4 { width: 100%; }
  .quote { height: 72svh; min-height: 420px; }
  .quote blockquote { font-size: 16vw; }
  .quote .who { justify-self: start; margin-top: 16px; }
  .said { margin-top: 36px; }
  .visit-img { grid-column: 1; width: 96px; grid-row: 2; }
  .visit-links { grid-row: 2; padding-left: 116px; }
  .foot { height: 82svh; }
  .foot-top { flex-direction: column; }
  .foot-top p { text-align: left; }
}
