/* Fadeline Barber Room. One idea: a fade is a gradient done by hand with hard lines.
   System: bone + ink + one signal red. Square corners everywhere. 12-column grid.
   Spacing steps: 8 16 24 40 64 104 168. Rules: 2px for structure, 1px inside groups. */

@font-face {
  font-family: "Big Shoulders";
  src: url("/concepts/fadeline-barber-room/fonts/big-shoulders-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "JetBrains Mono";
  src: url("/concepts/fadeline-barber-room/fonts/jetbrains-mono-latin.woff2") format("woff2");
  font-weight: 100 800;
  font-display: swap;
}

:root {
  --bone: #edebe6;
  --bone-2: #e2dfd8;
  --ink: #141414;
  --red: #d0281e;
  --mute: #5b5955;
  --disp: "Big Shoulders", "Arial Narrow", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --m: clamp(20px, 4vw, 56px);
  --head: 64px;

  --cx-ink: #141414;
  --cx-paper: #f6f5f2;
  --cx-accent: #d0281e;
  --cx-on-accent: #fff;
  --cx-phone: #141414;
  --cx-in: #e2dfd8;
  --cx-in-ink: #141414;
}

* { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--head) + 16px); }
body {
  margin: 0;
  background: var(--bone);
  color: var(--ink);
  font: 400 15px/1.65 var(--mono);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 3px; }
h1, h2, h3 { font-family: var(--disp); margin: 0; }
p { margin: 0; }

.wrap { padding-inline: var(--m); max-width: 1520px; margin-inline: auto; }
.grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: 24px; }

/* Buttons: square, one line, red on hover. */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  min-height: 52px; padding: 0 26px;
  background: var(--ink); color: var(--bone);
  font: 700 13px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase;
  text-decoration: none; white-space: nowrap;
  transition: background-color .2s ease, transform .15s ease;
}
.btn:hover { background: var(--red); color: #fff; }
.btn:active { transform: translateY(1px); }
.btn-line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn-line:hover { background: var(--ink); color: var(--bone); }
.btn i { width: 18px; height: 2px; background: currentColor; }
.note { font-size: 12px; color: var(--mute); margin-top: 10px; }
.tag {
  display: inline-block; padding: 4px 8px;
  border: 1px solid var(--red); color: var(--red);
  font: 600 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase;
}
.cx-gen { display: block; margin-top: 8px; color: var(--mute); font-family: var(--mono); }

/* Header */
.top {
  position: sticky; top: 0; z-index: 50;
  height: var(--head);
  background: var(--bone);
  box-shadow: 0 2px 0 transparent;
  transition: box-shadow .25s ease;
}
.top.scrolled { box-shadow: 0 2px 0 var(--ink); }
.top-in { height: 100%; display: flex; align-items: center; gap: 32px; }
.logo {
  display: flex; align-items: center; gap: 10px; text-decoration: none;
  font: 800 26px/1 var(--disp); text-transform: uppercase; letter-spacing: .02em;
}
.logo i { width: 22px; height: 3px; background: var(--red); }
.top nav { display: flex; gap: 28px; margin-left: auto; }
.top nav a {
  font: 600 12px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; text-decoration: none;
  padding: 10px 0; background: linear-gradient(var(--red), var(--red)) 0 100% / 0 2px no-repeat;
  transition: background-size .25s ease;
}
.top nav a:hover { background-size: 100% 2px; }
.top .btn { min-height: 44px; padding: 0 20px; }

/* Hero: the shop name, cut by the fade line. */
.hero {
  min-height: calc(100svh - var(--head) - 34px);
  display: flex; flex-direction: column;
  overflow: hidden;
}
.mark { padding: 28px var(--m) 0; position: relative; }
.mark h1 {
  font: 900 clamp(96px, 21vw, 330px)/.8 var(--disp);
  text-transform: uppercase; letter-spacing: -.01em;
}
.mark.built h1 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.mark svg { width: 100%; height: auto; overflow: visible; }
.mark text { font-family: var(--disp); font-weight: 900; font-variation-settings: "opsz" 72; }
.mark .fl-line { fill: var(--red); }
.hero-low { width: 100%; padding-block: 32px 40px; margin-top: auto; align-items: end; row-gap: 32px; }
.lead { grid-column: 1 / span 5; }
.lead p { font: 500 clamp(22px, 2vw, 28px)/1.25 var(--disp); max-width: 26ch; margin-bottom: 24px; }
.lead .note { font: 400 12px/1.4 var(--mono); }

.board { grid-column: 8 / -1; border-top: 2px solid var(--ink); }
.board-head { display: flex; justify-content: space-between; align-items: baseline; padding: 10px 0; }
.board-head b { font: 800 22px/1 var(--disp); text-transform: uppercase; letter-spacing: .02em; }
.board-head span { font-size: 11px; color: var(--mute); letter-spacing: .06em; text-transform: uppercase; }
.board ol { list-style: none; margin: 0; padding: 0; }
.board a {
  display: grid; grid-template-columns: 72px 1fr auto; align-items: center; gap: 16px;
  min-height: 46px; border-top: 1px solid color-mix(in srgb, var(--ink) 22%, transparent);
  text-decoration: none; font-size: 13px;
  transition: background-color .2s ease, padding .2s ease;
}
.board a:hover { background: var(--bone-2); padding-inline: 8px; }
.board .ch { color: var(--mute); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.board b { font: 700 20px/1 var(--disp); text-transform: uppercase; }
.board .st { text-align: right; }
.board .open .st { color: var(--red); font-weight: 700; }
.board .open .st::before {
  content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 8px;
  background: var(--red); animation: fl-blink 1.6s steps(2, jump-none) infinite;
}
@keyframes fl-blink { 50% { opacity: .2; } }

.ticker { background: var(--ink); color: var(--bone); overflow: hidden; white-space: nowrap; }
.ticker-run { display: inline-flex; will-change: transform; }
.ticker span { padding: 14px 0; font: 500 13px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.ticker span::after { content: ""; display: inline-block; width: 28px; height: 2px; margin: 0 22px 4px; background: var(--red); vertical-align: middle; }

/* Hard-stop bars that thin out below the middle: the same fade as the hero, in plain CSS. */
.faded {
  color: transparent;
  background-image: linear-gradient(var(--fc) 0 52.73%, transparent 52.73% 52.73%, var(--fc) 52.73% 56.92%, transparent 56.92% 57.45%, var(--fc) 57.45% 61.13%, transparent 61.13% 62.18%, var(--fc) 62.18% 65.36%, transparent 65.36% 66.91%, var(--fc) 66.91% 69.60%, transparent 69.60% 71.64%, var(--fc) 71.64% 73.85%, transparent 73.85% 76.36%, var(--fc) 76.36% 78.13%, transparent 78.13% 81.09%, var(--fc) 81.09% 82.43%, transparent 82.43% 85.82%, var(--fc) 85.82% 86.75%, transparent 86.75% 90.55%, var(--fc) 90.55% 91.11%, transparent 91.11% 95.27%, var(--fc) 95.27% 95.51%, transparent 95.51% 100.00%);
  -webkit-background-clip: text; background-clip: text;
}

/* Sections */
.sec { padding-block: clamp(64px, 8vw, 128px); }
.h2 {
  font: 800 clamp(52px, 7.4vw, 120px)/.92 var(--disp);
  text-transform: uppercase; letter-spacing: -.005em;
  position: relative; padding-bottom: 22px; margin-bottom: 32px;
}
.h2::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: min(220px, 40%); height: 4px; background: var(--red);
  transform-origin: left;
  transition: transform 1s cubic-bezier(.7, 0, .2, 1) .25s;
}
/* The red rule draws itself under each heading as it comes into view. */
.cx-js .h2[data-reveal]::after { transform: scaleX(0); }
.cx-js .h2[data-reveal].in::after { transform: none; }
.body { max-width: 52ch; color: var(--ink); }
.body + .body { margin-top: 16px; }

/* The room: full-bleed photo opened by a line moving down. */
.room { padding-top: 0; }
.room figure { margin: 0; }
.room-img { position: relative; }
.room-img img { width: 100%; height: clamp(320px, 62vw, 820px); object-fit: cover; }
.room-img::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px;
  background: var(--red); opacity: var(--wipe-line, 0);
  transform: translateY(var(--wipe-y, 0));
}
.room figcaption { padding-inline: var(--m); }
.room-text { padding-top: 64px; row-gap: 32px; }
.room-text .h2 { grid-column: 1 / span 7; margin: 0; }
.room-text .copy { grid-column: 9 / -1; align-self: end; }

/* Menu: rules thin out row by row, like a fade. */
.menu-grid { row-gap: 48px; }
.menu-list { grid-column: 1 / span 7; margin: 0; padding: 0; list-style: none; }
.svc {
  display: grid; grid-template-columns: 1fr auto; column-gap: 24px; row-gap: 4px;
  padding: 22px 0 24px; border-top: var(--w, 1px) solid var(--ink);
}
.svc h3 { font: 700 clamp(30px, 3.2vw, 46px)/.95 var(--disp); text-transform: uppercase; }
.svc .price { font: 700 clamp(20px, 1.8vw, 26px)/1 var(--mono); align-self: start; padding-top: 4px; }
.svc p { color: var(--mute); font-size: 14px; }
.svc .min { font-size: 13px; color: var(--mute); text-align: right; }
.menu-side { grid-column: 9 / -1; }
.menu-side .stick { position: sticky; top: calc(var(--head) + 32px); }
.menu-side img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.menu-side .body { margin-top: 24px; }

/* Barbers: four columns split by 2px ink, a striped chair number fading out. */
.crew { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2px; background: var(--ink); border-block: 2px solid var(--ink); }
.barber { background: var(--bone); padding: 24px 24px 28px; display: flex; flex-direction: column; min-height: 520px; }
.barber .num { font: 900 clamp(150px, 15vw, 240px)/.78 var(--disp); --fc: var(--ink); padding-top: 8px; }
.barber:hover .num { --fc: var(--red); }
.barber .chair { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--mute); margin-top: 16px; }
.barber h3 { font: 800 clamp(44px, 4.4vw, 68px)/.9 var(--disp); text-transform: uppercase; margin: 6px 0 16px; }
.barber p { font-size: 14px; }
.barber .years { color: var(--mute); margin-top: 8px; }
.barber .btn { margin-top: auto; align-self: flex-start; }

/* Walk-ins: a barber pole drawn in CSS, stripes moved by scroll and time. */
.walk-grid { align-items: center; row-gap: 48px; }
.pole-cell { grid-column: 2 / span 3; display: flex; justify-content: center; }
.pole { width: 96px; display: flex; flex-direction: column; align-items: center; }
.pole .cap { width: 120px; height: 22px; background: var(--ink); }
.pole .cap.b { height: 30px; }
.pole .tube { position: relative; width: 96px; height: clamp(360px, 44vw, 520px); overflow: hidden; background: var(--bone); }
.pole .stripes {
  position: absolute; left: 0; right: 0; top: -160px; bottom: -160px;
  background: repeating-linear-gradient(45deg, var(--red) 0 18px, var(--bone) 18px 36px, var(--ink) 36px 54px, var(--bone) 54px 72px);
  will-change: transform;
}
.pole .tube::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(20,20,20,.38), rgba(20,20,20,0) 28%, rgba(255,255,255,.42) 44%, rgba(255,255,255,0) 58%, rgba(20,20,20,.34));
}
.walk-copy { grid-column: 6 / -1; }
.walk-copy .big { font: 600 clamp(26px, 2.6vw, 36px)/1.2 var(--disp); max-width: 30ch; margin-bottom: 32px; }
.rules { list-style: none; margin: 0 0 32px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.rules li { border-top: 2px solid var(--ink); padding-top: 12px; font-size: 14px; }
.rules b { display: block; font: 700 22px/1.1 var(--disp); text-transform: uppercase; margin-bottom: 6px; }

/* Texts from the shop (FlowWays features). */
.feat { background: var(--bone-2); }
.feat-grid { row-gap: 56px; align-items: start; }
.feat-intro { grid-column: 1 / -1; }
.feat-card { grid-column: span 4; }
.feat-card .tag { margin-bottom: 20px; }
.feat-card h3 { font: 700 30px/1 var(--disp); text-transform: uppercase; margin-bottom: 10px; }
.feat-card > p { font-size: 14px; max-width: 40ch; }
.feat-card .cx-phone { margin: 0 0 24px; }
.cx-phone { border-radius: 40px; }
.cx-screen { min-height: 470px; }
.cx-msg { font-size: 13.5px; }
.side-stack { display: grid; gap: 40px; }
.panel { background: var(--bone); border-top: 4px solid var(--ink); padding: 24px; }
.asks { list-style: none; padding: 0; margin: 16px 0 20px; display: grid; gap: 8px; }
.asks li {
  padding: 10px 12px; font-size: 13px; line-height: 1.35;
  background: var(--cx-in); border-left: 3px solid var(--ink);
}
.panel .btn { width: 100%; }
.slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin: 16px 0 12px; }
.slots a {
  min-height: 44px; display: grid; place-items: center; text-decoration: none;
  border: 1px solid color-mix(in srgb, var(--ink) 30%, transparent);
  font: 600 13px/1 var(--mono);
  transition: background-color .2s ease, color .2s ease;
}
.slots a:hover { background: var(--red); border-color: var(--red); color: #fff; }

/* Reviews: staggered pairs. */
.revs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 64px 24px; }
.rev { margin: 0; border-top: 2px solid var(--ink); padding-top: 24px; }
.rev:nth-child(even) { margin-top: 96px; }
.rev blockquote { margin: 0 0 20px; font: 500 clamp(26px, 2.4vw, 34px)/1.15 var(--disp); max-width: 26ch; }
.rev figcaption { font-size: 13px; }
.rev small { display: block; color: var(--mute); font-size: 11px; letter-spacing: .04em; margin-top: 4px; }

/* FAQ */
.faq-grid { row-gap: 32px; }
.faq-grid .h2 { grid-column: 1 / span 4; align-self: start; position: sticky; top: calc(var(--head) + 32px); }
.faq { grid-column: 6 / -1; border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid color-mix(in srgb, var(--ink) 30%, transparent); }
.faq summary {
  list-style: none; cursor: pointer; min-height: 64px; padding: 18px 48px 18px 0; position: relative;
  font: 600 clamp(22px, 2vw, 28px)/1.15 var(--disp); text-transform: uppercase;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after {
  content: ""; position: absolute; right: 4px; top: 50%; width: 20px; height: 2px; background: var(--ink);
  transition: transform .3s cubic-bezier(.2, .7, .2, 1);
}
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0); }
.faq details p { padding: 0 48px 24px 0; max-width: 60ch; }

/* Visit */
.visit-grid { row-gap: 48px; }
.map { grid-column: 1 / span 7; margin: 0; }
.map svg { width: 100%; height: auto; border: 2px solid var(--ink); }
.map figcaption { font-size: 12px; color: var(--mute); margin-top: 8px; }
.visit-info { grid-column: 9 / -1; }
/* In a 2fr/1fr grid a 3:2 image and a 3:4 image come out the same height at any width. */
.shop-pics { grid-column: 1 / -1; display: grid; grid-template-columns: 2fr 1fr; gap: 24px; }
.shop-pics figure { margin: 0; }
.shop-pics img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.shop-pics figure + figure img { aspect-ratio: 3 / 4; }
.shop-pics figcaption { margin-top: 8px; }
.visit-info .addr { font: 700 clamp(28px, 2.6vw, 38px)/1 var(--disp); text-transform: uppercase; margin-bottom: 8px; }
.hours { list-style: none; margin: 32px 0; padding: 0; border-top: 2px solid var(--ink); }
.hours li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid color-mix(in srgb, var(--ink) 22%, transparent); font-size: 14px; }
.visit-info .phone { display: inline-block; font: 700 22px/1 var(--mono); margin-bottom: 24px; text-decoration: none; border-bottom: 2px solid var(--red); padding-bottom: 4px; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; }

/* Footer */
.foot { background: var(--ink); color: var(--bone); padding-block: 64px 40px; }
.foot-name { font: 900 min(calc((100vw - 2 * var(--m)) * .3), 420px)/.8 var(--disp); font-variation-settings: "opsz" 72; text-transform: uppercase; --fc: var(--bone); margin: 0 0 48px; white-space: nowrap; }
.foot-grid { row-gap: 24px; font-size: 13px; }
.foot-grid > div { grid-column: span 4; }
.foot a { color: var(--bone); text-underline-offset: 3px; }
.foot a:hover { color: #fff; }
.foot .fw { border-top: 1px solid rgba(237, 235, 230, .25); margin-top: 40px; padding-top: 20px; display: flex; flex-wrap: wrap; gap: 8px 32px; }

/* Phone bar: Book and Call always in reach. */
.bookbar { display: none; }

@media (max-width: 1100px) {
  .top nav { display: none; }
  .top .btn { margin-left: auto; }
  .lead { grid-column: 1 / span 6; }
  .board { grid-column: 7 / -1; }
  .crew { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .barber { min-height: 460px; }
  .feat-card { grid-column: span 6; }
  .feat-card.side { grid-column: 1 / -1; }
  .side-stack { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  :root { --head: 56px; }
  body { font-size: 14.5px; }
  .foot { padding-bottom: 104px; }
  .logo { font-size: 22px; }
  .top .btn { display: none; }
  .hero { min-height: calc(100svh - var(--head) - 70px); }
  .mark { padding-top: 20px; }
  .hero-low { padding-block: 24px 28px; order: 2; margin-top: 0; }
  .ticker { order: 1; margin-top: 20px; }
  .lead, .board { grid-column: 1 / -1; }
  .lead p { font-size: 22px; margin-bottom: 20px; }
  .lead .btn { width: 100%; }
  .grid > * { grid-column: 1 / -1 !important; }
  .room-text { padding-top: 40px; }
  .svc { grid-template-columns: 1fr auto; }
  .crew { grid-template-columns: 1fr; }
  .barber { min-height: 0; display: grid; grid-template-columns: auto 1fr; column-gap: 20px; padding: 24px 20px; }
  .barber .num { grid-row: span 4; font-size: 132px; }
  .barber .btn { grid-column: 1 / -1; margin-top: 20px; width: 100%; }
  .pole-cell { order: 2; }
  .pole .tube { height: 320px; }
  .shop-pics { grid-template-columns: 1fr; }
  .shop-pics figure + figure img { aspect-ratio: 1; }
  .rules { grid-template-columns: 1fr; }
  .side-stack { grid-template-columns: 1fr; }
  .feat-card .cx-phone { margin-inline: auto; }
  .revs { grid-template-columns: 1fr; gap: 40px; }
  .rev:nth-child(even) { margin-top: 0; }
  .faq-grid .h2 { position: static; }
  .faq summary { padding-right: 40px; }
  .bookbar {
    display: grid; grid-template-columns: 1fr auto; gap: 8px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    padding: 8px 84px calc(8px + env(safe-area-inset-bottom)) 12px; background: var(--ink);
  }
  .bookbar .btn { min-height: 48px; background: var(--red); color: #fff; }
  .bookbar .btn-line { background: transparent; color: var(--bone); box-shadow: inset 0 0 0 2px var(--bone); }
}

@media (prefers-reduced-motion: reduce) {
  .board .open .st::before { animation-duration: 4s; }
  .h2::after { transition-duration: 2.5s; }
  .faq summary::before, .faq summary::after { transition-duration: .75s; }
}
