/* Uppercuts Barber Shop, Johns Creek
   After dark: one full-screen scene, the shop under a single light, a wordmark
   the width of the screen, and a dock of three doors that slide open.
   Near-black, bone and one glove-red accent. No scrolling. */

:root {
  --ink: #0b0a09;
  --coal: #151311;
  --bone: #ece5d8;
  --dim: rgba(236, 229, 216, .64);
  --line: rgba(236, 229, 216, .18);
  --red: #c8322b;

  --display: "Anton", "Impact", "Arial Narrow", sans-serif;
  --serif: "Instrument Serif", Georgia, serif;
  --sans: "Inter", "Helvetica Neue", Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
h1, h2, p, ul, dl, dd, blockquote { margin: 0; }
ul { list-style: none; padding: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--bone); outline-offset: 3px; }

html { background: var(--ink); }
body {
  margin: 0; height: 100dvh; overflow: hidden;
  display: grid; grid-template-rows: auto auto 1fr auto auto;
  background: var(--ink); color: var(--bone);
  font-family: var(--sans); line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

/* The scene */
.top, .center, .dock { position: relative; z-index: 1; }
.pager { display: contents; }
.bg { position: fixed; inset: 0; z-index: 0; overflow: hidden; background: var(--ink); }
.bg img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 30%); opacity: 0; filter: saturate(.7) brightness(var(--b, .8)) contrast(1.06); }
.bg img.on { opacity: 1; animation: cut 2.3s linear both; }
@keyframes cut {
  0% { filter: saturate(.7) brightness(calc(var(--b, .8) * 1.9)) contrast(1.06); transform: scale(1.07); }
  9% { filter: saturate(.7) brightness(var(--b, .8)) contrast(1.06); }
  100% { transform: scale(1); }
}
.bg::before { content: ""; position: absolute; inset: 0; z-index: 1; background:
  linear-gradient(to top, var(--ink) 4%, rgba(11,10,9,.86) 30%, rgba(11,10,9,.15) 62%, rgba(11,10,9,.55) 100%); }
.bg::after { content: ""; position: absolute; inset: 0; z-index: 2; opacity: .2; mix-blend-mode: overlay; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* Top line */
.top { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 20px 0; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; }
.top__loc i { font-style: normal; color: var(--red); margin: 0 4px; }
.top__phone { text-decoration: none; white-space: nowrap; letter-spacing: 0.1em; font-size: 0.82rem; padding-bottom: 2px; border-bottom: 1px solid var(--line); transition: border-color .2s; }
.top__phone:hover { border-color: var(--red); }

/* Wordmark */
.swipe { display: none; }
.dots { display: none; }
.center { align-self: end; padding: 0 20px 22px; min-width: 0; }
.open { display: inline-flex; align-items: center; gap: 9px; font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 10px; }
.open i { width: 8px; height: 8px; border-radius: 50%; background: var(--red); flex: none; }
.open.is-open i { background: #3ecf7a; box-shadow: 0 0 0 0 rgba(62,207,122,.6); animation: pulse 1.8s infinite; }
@keyframes pulse { to { box-shadow: 0 0 0 9px rgba(62,207,122,0); } }

h1 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: 19vw; line-height: 0.92; letter-spacing: 0.005em; }
.fit { display: inline-block; white-space: nowrap; }
.hollow { color: transparent; -webkit-text-stroke: 0.014em var(--bone); }
.line { font-family: var(--serif); font-style: italic; font-size: clamp(1.35rem, 2.3vw, 2rem); line-height: 1.15; margin-top: 12px; max-width: 26ch; color: var(--bone); }

/* Dock */
.dock { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); background: rgba(11,10,9,.55); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.dock button { background: none; border: 0; border-right: 1px solid var(--line); cursor: pointer; text-align: left; padding: 14px 14px 13px; display: flex; flex-direction: column; gap: 2px; transition: background .2s, color .2s; }
.dock button:nth-of-type(3) { border-right: 0; }
.dock small { font-size: 0.66rem; font-weight: 700; letter-spacing: 0.12em; color: var(--red); transition: color .2s; }
.dock button span { font-family: var(--display); text-transform: uppercase; font-size: 1.15rem; line-height: 1.1; letter-spacing: 0.02em; white-space: nowrap; }
.dock em { font-style: normal; display: none; }
.dock button:hover { background: var(--bone); color: var(--ink); }
.dock__book { grid-column: 1 / -1; display: flex; justify-content: center; align-items: center; gap: 10px; text-decoration: none; background: var(--red); color: #fff; font-family: var(--display); text-transform: uppercase; font-size: 1.25rem; letter-spacing: 0.04em; padding: 15px 16px; transition: background .2s; }
.dock__book:hover { background: #a82822; }

/* Sheets */
.scrim { position: fixed; inset: 0; z-index: 5; background: rgba(0,0,0,.6); opacity: 0; visibility: hidden; transition: opacity .3s, visibility 0s .3s; }
.scrim.on { opacity: 1; visibility: visible; transition: opacity .3s; }
.sheet { background: var(--coal); overflow-y: auto; }
@keyframes nudge { 50% { transform: translateX(6px); } }
.sheet__close { position: absolute; top: 16px; right: 16px; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: none; cursor: pointer; font-size: 1.5rem; line-height: 1; transition: background .2s, color .2s; }
.sheet__close:hover { background: var(--bone); color: var(--ink); }
.sheet__no { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; color: var(--red); }
.sheet h2 { font-family: var(--display); font-weight: 400; text-transform: uppercase; font-size: 2.6rem; line-height: 1; letter-spacing: 0.01em; margin: 2px 0 16px; }
.sheet__lede { font-family: var(--serif); font-style: italic; font-size: 1.6rem; line-height: 1.15; }
.sheet__text { color: var(--dim); margin-top: 12px; max-width: 44ch; }

.menu li { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 13px 0; border-top: 1px solid var(--line); font-weight: 600; font-size: 1.08rem; }
.menu small { font-weight: 400; font-size: 0.86rem; color: var(--dim); margin-left: 6px; }
.menu b { font-family: var(--display); font-weight: 400; font-size: 1.35rem; letter-spacing: 0.02em; }
.menu .top-row { border-top: 0; background: var(--bone); color: var(--ink); border-radius: 12px; padding: 16px 16px; margin-bottom: 4px; font-size: 1.2rem; align-items: center; }
.menu .top-row + li { border-top: 0; }
.menu .top-row small { display: block; margin: 2px 0 0; color: rgba(11,10,9,.66); }
.menu .top-row b { font-size: 2rem; color: var(--red); }

.hours div { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); }
.hours dt { font-weight: 600; white-space: nowrap; }
.hours dd { color: var(--dim); white-space: nowrap; }
.hours .today dt::after { content: "Today"; margin-left: 9px; font-size: 0.64rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; background: var(--red); color: #fff; padding: 2px 7px; border-radius: 999px; vertical-align: 0.12em; }
.hours .today dd { color: var(--bone); font-weight: 600; }
address { font-style: normal; margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); font-family: var(--serif); font-style: italic; font-size: 1.45rem; line-height: 1.2; }

blockquote { margin-top: 18px; padding-left: 14px; border-left: 3px solid var(--red); font-family: var(--serif); font-style: italic; font-size: 1.45rem; line-height: 1.15; }
cite { display: block; margin-top: 5px; font: 500 0.8rem var(--sans); color: var(--dim); }
.wide { display: block; width: 100%; height: 130px; object-fit: cover; object-position: 50% 55%; border-radius: 12px; margin-top: 18px; filter: saturate(.75) brightness(.85); }

.btn { display: block; text-align: center; text-decoration: none; margin-top: 18px; background: var(--red); color: #fff; font-family: var(--display); text-transform: uppercase; font-size: 1.15rem; letter-spacing: 0.04em; padding: 14px 16px; border-radius: 10px; border: 1px solid var(--red); transition: background .2s, color .2s, border-color .2s; }
.btn:hover { background: #a82822; border-color: #a82822; }
.btn--line { margin-top: 10px; background: none; border-color: var(--line); color: var(--bone); }
.btn--line:hover { background: var(--bone); border-color: var(--bone); color: var(--ink); }

/* Wide screens: wordmark on one line, dock in one row, sheets slide in from the right */
@media (max-width: 759px) {
  .fit > span { display: block; }
  h1 { font-size: 38vw; line-height: 0.9; }
  .top__loc { max-width: 12em; line-height: 1.5; }
  /* Phone: the sections are pages, swiped left and right */
  .pager { display: flex; position: relative; z-index: 1; min-height: 0; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; }
  .pager::-webkit-scrollbar { display: none; }
  .pager > * { flex: 0 0 100%; min-width: 0; scroll-snap-align: start; scroll-snap-stop: always; }
  .center { align-self: stretch; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; }
  .center h1 { align-self: stretch; }
  .sheet { position: relative; background: rgba(11,10,9,.84); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); padding: 22px 20px 20px; }
  .swipe { display: block; margin-top: 14px; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; color: var(--dim); }
  .swipe span { display: inline-block; color: var(--red); animation: nudge 1.4s ease-in-out infinite; }
  .dots { grid-column: 1 / -1; display: flex; justify-content: center; gap: 6px; padding: 9px 0 0; }
  .dots i { width: 18px; height: 3px; border-radius: 2px; background: var(--line); transition: background .2s, width .2s; }
  .dots i.on { width: 30px; background: var(--bone); }
  .dock button { padding-top: 9px; }
  .dock button.here { background: var(--bone); color: var(--ink); }
  .bg img { height: 64dvh; object-position: var(--mpos, 50% 40%); }
  .bg::before { background: linear-gradient(to top, var(--ink) 36%, rgba(11,10,9,.8) 50%, rgba(11,10,9,.1) 78%, rgba(11,10,9,.5) 100%); }
}
@media (min-width: 760px) {
  .top { padding: 22px 36px 0; font-size: 0.76rem; }
  .center { padding: 0 36px 26px; }
  .line { max-width: none; }
  .dock { grid-template-columns: 1fr 1fr 1fr 1.25fr; }
  .dock button { padding: 20px 26px 19px; flex-direction: row; align-items: baseline; gap: 12px; }
  .dock button:nth-of-type(3) { border-right: 1px solid var(--line); }
  .dock button span { font-size: 1.45rem; }
  .dock em { display: inline; }
  .dock__book { grid-column: auto; font-size: 1.45rem; padding: 20px 24px; }
  .sheet { position: fixed; z-index: 6; top: 0; right: 0; bottom: 0; width: min(460px, 100%); border-left: 1px solid var(--line); padding: 34px 34px; transform: translateX(102%); visibility: hidden; transition: transform .4s cubic-bezier(.2,.8,.2,1), visibility 0s .4s; }
  .sheet.on { transform: none; visibility: visible; transition: transform .4s cubic-bezier(.2,.8,.2,1); }
}
@media (min-width: 760px) and (max-width: 1050px) { .dock em { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .bg img { transition: opacity 1.2s; }
  .bg img.on, .open.is-open i { animation: none; }
  .sheet, .sheet.on, .scrim { transition: none; }
  .swipe span { animation: none; }
}

/* DEMO BARS: Johns Creek Web preview banner, top and bottom. Remove at launch. */
.demo { --gold: #c8a96a; --gold-hi: #ecdaa8; position: relative; z-index: 7; display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 34px; padding: 5px 14px; background: #1c1810; color: #f3ead6; font-size: 0.74rem; font-weight: 600; letter-spacing: 0.04em; white-space: nowrap; }
.demo--top { border-bottom: 2px solid var(--gold); }
.demo--bottom { border-top: 2px solid var(--gold); padding-bottom: calc(5px + env(safe-area-inset-bottom)); flex-wrap: wrap; row-gap: 2px; }
.demo__tag { background: linear-gradient(135deg, var(--gold-hi), var(--gold)); color: #1c1810; font-weight: 800; font-size: 0.66rem; letter-spacing: 0.16em; text-transform: uppercase; padding: 2px 8px; border-radius: 4px; }
.demo__by { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.demo__by svg { height: 24px; width: auto; display: block; }
.demo a { text-decoration: none; }
.demo a:not(.demo__by) { color: var(--gold-hi); border-bottom: 1px solid rgba(200,169,106,.5); }
.demo a:hover { color: #fff; }
.demo__site { margin-left: auto; }
.demo--top .demo__tag { margin-right: 0; }
@media (min-width: 760px) { .demo { font-size: 0.8rem; gap: 14px; } .demo--top { justify-content: flex-start; padding-inline: 36px; } .demo--bottom { padding-inline: 36px; } }
@media (max-width: 380px) { .demo__site { display: none; } }
