/* =========================================================
   Barbwired landing page
   Layout: centered hero on an even deep-navy gradient,
   then left-aligned photo-led sections on a 1200px grid,
   closing on a navy panel that echoes the logo tile.
   ========================================================= */

/* Font, served from this site (fonts/) instead of Google, so text doesn't
   wait on extra servers. Geist is free to use (SIL Open Font License, see
   fonts/OFL-Geist.txt). Each file holds only the letters English needs; the
   "latin-ext" file only downloads if a page shows letters like ł or ő.
   Geist is one file for every weight (400 to 700 are used). Version 5 uses
   it for everything: no serif or italic accents, for a cleaner look. */
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/geist-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("../fonts/geist-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* Color. Day mode is a soft off-white rather than pure white (5.6), so
     it's easier on the eyes; cards are a shade lighter than the page. */
  --paper: #fcfcfd;
  --ink: #0b0e1a;          /* logo background navy-black */
  --ink-2: #4a5065;        /* body text */
  --ink-3: #8b90a2;        /* captions */
  --line: #e3e6ed;
  --mist: #f0f2f6;         /* tinted section */
  --navy: #151927;         /* logo tile */
  --pole-red: #e8343f;
  --pole-blue: #1b7ae1;
  --accent: #1669d2;       /* "Book" buttons: the logo's blue, deep enough for white text */
  --accent-hover: #125bb8;
  --ok: #1f8a4c;           /* success, completed steps */
  --error: #c21f2b;
  --error-bg: #fdecee;

  /* Theme roles (day values; dark values further down) */
  --bg: #f6f7f9;           /* page */
  --tint: #f0f2f5;         /* tinted sections, booking page */
  --fill: #0b0e1a;         /* selected items, primary buttons */
  --fill-hover: #22273a;
  --on-fill: #ffffff;      /* text on --fill */
  --on-fill-2: rgba(255, 255, 255, .65);
  --line-2: #d9dce5;
  --line-strong: #c9cdd9;
  --placeholder: #a5a9b8;
  --text-off: #b3b7c4;     /* booked / unavailable */
  --input-bg: #fdfdfe;
  --btn-light: #ffffff;    /* main button on navy panels */
  --btn-light-hover: #e9ebf2;
  --btn-light-text: #0b0e1a;
  --pill-hover: var(--on-dark);
  --pill-hover-text: #0b0e1a;
  --signin-bg: #f4f6fb;    /* header Sign in button: solid and light in day mode */
  --signin-border: #f4f6fb;
  --signin-text: #0b0e1a;
  --signin-hover: #dfe3ec;
  --badge-bg: rgba(255, 255, 255, .92);
  --toast-bg: rgba(255, 255, 255, .94);
  --bar-bg: rgba(255, 255, 255, .94);
  --panel-ring: transparent;
  --hero-end: var(--night-2);
  --avatar-bg: var(--on-dark);
  --avatar-text: #0b0e1a;
  --tile-ring: transparent;
  --tab-on: #ffffff;
  --info-bg: #eaf2fd;
  --info: #1554a0;
  --ok-bg: #e8f5ed;
  --ok-text: #17693a;
  --star: #d18a00;          /* review stars */
  --viewer-btn: rgba(255, 255, 255, .92);
  --viewer-btn-text: #0b0e1a;
  --night: #070a14;        /* hero, darkest navy */
  --night-2: #141a30;      /* hero, lower navy */
  --silver: #b9c0d3;       /* headline fade, rim light */
  --on-dark: #f4f5f8;
  --on-dark-2: rgba(236, 239, 247, .68);
  --on-dark-line: rgba(255, 255, 255, .1);

  /* Type */
  --font-sans: "Geist", -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

  /* Shape + layout */
  --radius-lg: 28px;
  --radius-md: 20px;
  --maxw: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 72px;
  /* Phones with a notch or status bar overlay (and app webviews) report a top
     safe area. The header's background covers it from the very top, and the
     logo and buttons sit just under the clock: 70% of the safe area keeps them
     clear of the notch without leaving a big empty band. */
  --safe-top: calc(env(safe-area-inset-top, 0px) * 0.7);
  --header-total: calc(var(--header-h) + var(--safe-top));

  color-scheme: light;
}

/* ---------- Dark mode ----------
   Same layout, no white surfaces: deep navy page, slightly lighter navy
   cards, soft light text, and the logo's blue for anything selected. */
:root[data-theme="dark"] {
  color-scheme: dark;

  --bg: #0c111e;
  --tint: #0f1424;
  --paper: #161c2f;        /* cards and panels */
  --mist: #1d2439;         /* small fills inside cards */
  --ink: #e6e9f2;          /* main text */
  --ink-2: #a6adc1;
  --ink-3: #757d94;
  --line: #252d44;
  --line-2: #252d44;
  --line-strong: #3a435e;

  --fill: #2367c7;         /* logo blue, deepened so white text reads */
  --accent: #2367c7;
  --accent-hover: #2c74d9;
  --fill-hover: #2c74d9;
  --on-fill: #f4f6fb;
  --on-fill-2: rgba(244, 246, 251, .72);

  --placeholder: #5b637b;
  --text-off: #4b5369;
  --input-bg: #10162a;
  --btn-light: #2367c7;
  --btn-light-hover: #2c74d9;
  --btn-light-text: #f4f6fb;
  --pill-hover: rgba(255, 255, 255, .14);
  --pill-hover-text: var(--on-dark);
  --signin-bg: transparent;   /* outlined in dark mode */
  --signin-border: rgba(255, 255, 255, .5);
  --signin-text: var(--on-dark);
  --signin-hover: rgba(255, 255, 255, .14);
  --badge-bg: rgba(12, 17, 30, .82);
  --toast-bg: rgba(22, 28, 47, .96);
  --bar-bg: rgba(12, 17, 30, .94);
  --panel-ring: rgba(255, 255, 255, .07);
  --hero-end: var(--bg);
  --avatar-bg: var(--fill);
  --avatar-text: #f4f6fb;
  --tile-ring: rgba(255, 255, 255, .1);
  --tab-on: #2a3350;

  --error: #ff8a92;
  --error-bg: rgba(232, 52, 63, .14);
  --info-bg: rgba(27, 122, 225, .16);
  --info: #93c2f7;
  --ok-bg: rgba(31, 138, 76, .18);
  --ok-text: #8bdcaa;
  --star: #f2b84b;
  --viewer-btn: #1d2439;
  --viewer-btn-text: #e6e9f2;
}

/* Smooth color change when switching (added for a moment by main.js) */
.theme-switching,
.theme-switching *,
.theme-switching *::before,
.theme-switching *::after {
  transition: background-color .35s ease, border-color .35s ease, color .35s ease, fill .35s ease !important;
}

/* ---------- Base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-total) + 12px); }
/* The header handles the top safe area itself (see .site-header), so a page
   wrapper that pads the top for it would push everything down twice. The
   script at the top of each page also clears it, in case a wrapper sets it inline. */
html:root { padding-top: 0; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, h4 { margin: 0; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
[hidden] { display: none !important; }

.container {
  width: 100%;
  max-width: calc(var(--maxw) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--fill);
  color: var(--on-fill);
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

:focus-visible {
  outline: 2px solid var(--pole-blue);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- Type ---------- */
/* Small line above a heading: plain, semibold, no italics */
.eyebrow {
  font-size: clamp(1rem, 1.4vw, 1.125rem);
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink-2);
  letter-spacing: -0.01em;
}

h1 {
  font-size: clamp(3.4rem, 13.5vw, 6.5rem);
  font-weight: 600;
  line-height: 0.95;
  letter-spacing: -0.055em;
}

h2 {
  font-size: clamp(2rem, 4.4vw, 3.25rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

h3 {
  font-size: 1.375rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 26px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font: 500 0.9375rem/1 var(--font-sans);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
  -webkit-tap-highlight-color: transparent;
}

/* Outline pill, from the reference */
.btn--pill {
  border-color: var(--ink);
  background: transparent;
  color: var(--ink);
  font-size: 0.8125rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.btn--pill:hover { background: var(--fill); border-color: var(--fill); color: var(--on-fill); }
.btn--sm { min-height: 40px; padding: 0 18px; }

.btn__arrow { width: 18px; height: 18px; transition: transform .2s ease; }
.btn:hover .btn__arrow { transform: translateX(3px); }

.btn--dark { background: var(--fill); color: var(--on-fill); width: 100%; }
.btn--dark:hover { background: var(--fill-hover); }

.btn--light { background: var(--btn-light); color: var(--btn-light-text); }
.btn--light:hover { background: var(--btn-light-hover); }

.btn--ghost-light { border-color: rgba(255, 255, 255, .35); background: transparent; color: var(--on-dark); }
.btn--ghost-light:hover { border-color: var(--on-dark); }

.btn--outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--outline:hover { background: var(--fill); border-color: var(--fill); color: var(--on-fill); }

.btn--google {
  width: 100%;
  background: var(--paper);
  border-color: var(--line);
  color: var(--ink);
}
.btn--google:hover { background: var(--mist); border-color: var(--line-strong); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;                              /* always flush with the top of the screen */
  z-index: 50;
  padding-top: var(--safe-top);        /* its background fills the status bar area */
  background: transparent;
  color: var(--on-dark);
  border-bottom: 1px solid transparent;
  transition: background-color .25s ease, border-color .25s ease;
}
.site-header.is-scrolled {
  background: rgba(7, 10, 20, .78);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom-color: var(--on-dark-line);
}
.site-header.menu-open { background: var(--night); }

.site-header .btn--pill { border-color: rgba(255, 255, 255, .5); color: var(--on-dark); }
.site-header .btn--pill:hover { background: var(--pill-hover); border-color: var(--pill-hover); color: var(--pill-hover-text); }
.site-header a[data-signin] { background: var(--signin-bg); border-color: var(--signin-border); color: var(--signin-text); }
.site-header a[data-signin]:hover { background: var(--signin-hover); border-color: var(--signin-hover); color: var(--signin-text); }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.125rem;
  letter-spacing: -0.03em;
}
/* 6.1: the logo is just the pole now (see-through, no tile, no ring) */
.brand img { width: 40px; height: 40px; }
/* Computers: a bigger logo in the header */
@media (min-width: 900px) {
  :root { --header-h: 80px; }
  .site-header .brand { gap: 12px; font-size: 1.375rem; letter-spacing: -0.035em; }
  .site-header .brand img { width: 54px; height: 54px; }
}

.nav__start { display: flex; align-items: center; gap: 14px; min-width: 0; }

/* Day / dark toggle: sun in day mode, crescent moon in dark mode. Kept small
   so it sits quietly next to the logo; the tap area is bigger than it looks. */
.theme-toggle {
  position: relative;
  flex: none;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 50%;
  background: transparent;
  color: var(--on-dark-2);
  cursor: pointer;
  transition: border-color .2s ease, background-color .2s ease, color .2s ease;
}
.theme-toggle::after { content: ""; position: absolute; inset: -9px; border-radius: 50%; }
.theme-toggle:hover { border-color: rgba(255, 255, 255, .6); background: rgba(255, 255, 255, .06); color: var(--on-dark); }
.theme-toggle svg {
  position: absolute;
  width: 14px;
  height: 14px;
  transition: transform .5s cubic-bezier(.2, .8, .2, 1), opacity .3s ease;
}
.theme-toggle__moon { opacity: 0; transform: rotate(-90deg) scale(.4); }
:root[data-theme="dark"] .theme-toggle__sun { opacity: 0; transform: rotate(90deg) scale(.4); }
:root[data-theme="dark"] .theme-toggle__moon { opacity: 1; transform: none; }

.nav__links {
  display: flex;
  gap: 32px;
  font-size: 0.9375rem;
}
.nav__links a {
  text-decoration: none;
  color: var(--on-dark-2);
  transition: color .15s ease;
}
.nav__links a:hover,
.nav__links a[aria-current="page"] { color: var(--on-dark); }

/* On Demand tab (ondemand/): a tiny barber pole, and a red "coming soon"
   under it while it's locked. Owners and admins can click it; everyone else
   gets a little shake. js/main.js unlocks it; js/config.js onDemand.open
   opens it for everyone. */
.nav-od { position: relative; display: inline-flex; align-items: center; gap: 7px; }
.nav-od::before {
  content: ""; flex: none; width: 5px; height: 14px; border-radius: 3px;
  background: repeating-linear-gradient(-45deg, #ff3a45 0 3px, #fff 3px 5px, #4d7bff 5px 8px, #fff 8px 10px);
}
.nav-od__soon {
  position: absolute; left: 12px; top: 100%; margin-top: 1px;
  color: #ff4d57; font-size: 0.6875rem; font-weight: 600; line-height: 1; letter-spacing: 0; white-space: nowrap;
}
.nav-od.is-open .nav-od__soon { display: none; }
.nav-od.is-locked { cursor: default; }
.nav-od.is-locked:hover { color: var(--on-dark-2); }
.nav-od.is-nudge { animation: nav-od-nudge .45s cubic-bezier(.2, .7, .2, 1); }
@keyframes nav-od-nudge { 20% { transform: translateX(-4px); } 45% { transform: translateX(4px); } 70% { transform: translateX(-2px); } }
.mobile-menu .nav-od { display: flex; }
.mobile-menu .nav-od::before { width: 7px; height: 20px; border-radius: 4px; }
.mobile-menu .nav-od__soon { position: static; margin: 0 0 0 4px; font-size: 0.875rem; }
.mobile-menu .nav-od.is-locked { color: var(--on-dark-2); }
@media (prefers-reduced-motion: reduce) { .nav-od.is-nudge { animation: none; } }

.nav__actions { display: flex; align-items: center; gap: 8px; }

.nav__toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  position: relative;
}
.nav__toggle span {
  position: absolute;
  left: 13px;
  right: 13px;
  height: 1.7px;
  border-radius: 2px;
  background: var(--on-dark);
  transition: transform .25s ease, top .25s ease;
}
.nav__toggle span:first-child { top: 18px; }
.nav__toggle span:last-child { top: 25px; }
.nav__toggle[aria-expanded="true"] span:first-child { top: 21.5px; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { top: 21.5px; transform: rotate(-45deg); }

.mobile-menu {
  border-top: 1px solid var(--on-dark-line);
  background: var(--night);
}
.mobile-menu ul { display: grid; padding-block: 8px 20px; }
.mobile-menu a {
  display: block;
  padding: 14px 0;
  border-bottom: 1px solid var(--on-dark-line);
  color: var(--on-dark);
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: -0.02em;
  text-decoration: none;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  margin-top: calc(var(--header-total) * -1);
  padding-top: calc(var(--header-total) + clamp(64px, 10vw, 120px));
  background: var(--night);
  color: var(--on-dark);
  text-align: center;
}

.hero__glow {
  position: absolute;
  inset: 0;
  overflow: hidden;
  /* Even across the full width: darkest at the top, easing to a lighter navy */
  background: linear-gradient(180deg, var(--night) 0%, #0b0f1e 35%, #10152a 70%, var(--hero-end) 100%);
  pointer-events: none;
}
/* A soft blue light rising from where the hero meets the next section */
.hero__glow::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -18%;
  width: min(1100px, 140vw);
  height: 70%;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(27, 122, 225, .22), rgba(27, 122, 225, .06) 55%, transparent);
  filter: blur(8px);
}
/* Fine grain keeps the dark gradient smooth (no banding) */
.hero__glow::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .07;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%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");
}

.hero .eyebrow { color: var(--on-dark-2); }
.hero h1 {
  padding-bottom: .14em;   /* keeps the tail of the "y" inside the text gradient */
  margin-bottom: -.14em;
  color: var(--on-dark);
  /* Near white top to bottom, with just a hint of silver at the very bottom */
  background: linear-gradient(180deg, #ffffff 45%, #e4e8f1 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
/* Dark mode: the same near white, a touch softer so it isn't glaring */
:root[data-theme="dark"] .hero h1 {
  background: linear-gradient(180deg, #f4f6fa 45%, #d9dee8 100%);
  -webkit-background-clip: text;
  background-clip: text;
}

.hero__copy {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}

.hero .btn--pill {
  margin-top: 14px;
  border-color: rgba(255, 255, 255, .55);
  background: rgba(255, 255, 255, .04);
  color: var(--on-dark);
}
.hero .btn--pill:hover { background: var(--pill-hover); border-color: var(--pill-hover); color: var(--pill-hover-text); }

/* Phone stage, cropped at the bottom like the reference */
/* The stage starts 120px higher than it looks so the phone's glow isn't clipped */
.hero__stage {
  position: relative;
  height: 590px;
  margin-top: calc(clamp(40px, 6vw, 64px) - 120px);
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 86%, transparent);
  mask-image: linear-gradient(to bottom, #000 86%, transparent);
}

/* The logo's barber pole, soft and behind the words and the phone, with no
   barbed wire. It fades and tucks under the next section where the phone
   does. The stripes turn as the page scrolls (js/main.js moves them; only
   that one layer moves, so scrolling stays smooth). The soft look is drawn
   in (soft stripe edges and sides) rather than a live blur filter, which
   would be redrawn on every frame. */
.hero-pole {
  --pole-w: min(500px, 86vw);
  --tile: calc(var(--pole-w) * 1.13);   /* one red, white, blue, white turn */
  position: absolute;
  left: 50%;
  top: 92px;
  bottom: 0;
  width: var(--pole-w);
  transform: translateX(-50%);
  opacity: .5;
}
/* The tall pole (5.6): from just under the menu to the bottom of the hero.
   It fades in at the top, stays faint behind the words so they read
   crisply, comes up to full strength behind the phone, and fades out at the
   bottom just like the phone does. */
.hero-pole--tall { top: calc(var(--header-total) + 24px); }
.hero-pole__body {
  position: absolute;
  inset: 0;
  -webkit-mask-image: linear-gradient(to bottom, transparent, rgba(0, 0, 0, .42) 140px, rgba(0, 0, 0, .42) 420px, #000 600px, #000 calc(100% - 90px), transparent);
  mask-image: linear-gradient(to bottom, transparent, rgba(0, 0, 0, .42) 140px, rgba(0, 0, 0, .42) 420px, #000 600px, #000 calc(100% - 90px), transparent);
}
.hero-pole__col {
  position: absolute;
  inset: 0;
  overflow: hidden;
  /* soft sides, like it's slightly out of focus */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 9%, #000 91%, transparent);
}
.hero-pole__stripes {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: calc(100% + var(--tile));
  /* two turns per tile, so the tiles join seamlessly; each color fades
     into the next instead of a hard edge */
  background-image: linear-gradient(135deg,
    #ee959b 0%, var(--pole-red) 1.5%, var(--pole-red) 11%, #f4f5f8 14%, #f4f5f8 23.5%,
    var(--pole-blue) 26.5%, var(--pole-blue) 36%, #f4f5f8 39%, #f4f5f8 48.5%,
    #ee959b 50%, var(--pole-red) 51.5%, var(--pole-red) 61%, #f4f5f8 64%, #f4f5f8 73.5%,
    var(--pole-blue) 76.5%, var(--pole-blue) 86%, #f4f5f8 89%, #f4f5f8 98.5%, #ee959b 100%);
  background-size: var(--tile) var(--tile);
  will-change: transform;
}
/* rounded like a cylinder: darker at the sides, a soft shine left of center */
.hero-pole__col::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(7, 10, 20, .7) 0%, rgba(7, 10, 20, .18) 24%, rgba(255, 255, 255, .14) 40%,
    rgba(7, 10, 20, 0) 58%, rgba(7, 10, 20, .3) 80%, rgba(7, 10, 20, .72) 100%);
}

.phone {
  position: absolute;
  left: 50%;
  top: 144px;
  width: 290px;
  height: 600px;
  padding: 10px;
  border-radius: 48px;
  background: linear-gradient(145deg, #3a3f4f, #12141c 40%, #2a2e3a);
  box-shadow:
    0 0 0 1.5px #5a5f70 inset,
    0 0 0 1px rgba(255, 255, 255, .06),
    0 40px 90px -20px rgba(0, 0, 0, .75);
  transform: translateX(-50%) rotate(8deg);
  text-align: left;
}

.phone__screen {
  position: relative;
  height: 100%;
  overflow: hidden;
  border-radius: 39px;
  background: var(--navy);
  color: #f2f3f7;
}

.phone__island {
  position: absolute;
  top: 10px;
  left: 50%;
  width: 86px;
  height: 25px;
  border-radius: 999px;
  background: #000;
  transform: translateX(-50%);
  z-index: 2;
}

.app { padding: 14px 16px; display: grid; gap: 12px; font-size: 12px; line-height: 1.3; }

.app__status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 8px;
  font-weight: 600;
  font-size: 12px;
}
.app__signal { display: inline-flex; align-items: flex-end; gap: 2px; height: 10px; }
.app__signal i { display: block; width: 3px; border-radius: 1px; background: #f2f3f7; }
.app__signal i:nth-child(1) { height: 4px; }
.app__signal i:nth-child(2) { height: 7px; }
.app__signal i:nth-child(3) { height: 10px; }

.app__top { display: flex; align-items: center; gap: 9px; margin-top: 8px; }
.app__loc { display: grid; font-size: 10.5px; color: #9aa0b4; }
.app__loc b { color: #f2f3f7; font-size: 12px; font-weight: 600; }

.app__title { font-size: 21px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; }

.app__label { margin-bottom: -4px; color: #9aa0b4; font-size: 10.5px; font-weight: 500; }

.app__shop { position: relative; border-radius: 16px; overflow: hidden; background: #262b3c; }
.app__shop img { width: 100%; height: 118px; object-fit: cover; }
.app__open {
  position: absolute;
  top: 9px;
  left: 9px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .92);
  color: #0b0e1a;
  font-size: 10px;
  font-weight: 600;
}
.app__shopinfo { display: grid; gap: 1px; padding: 9px 11px 10px; }
.app__shopinfo b { font-size: 13px; font-weight: 600; }
.app__shopinfo span { color: #9aa0b4; font-size: 10.5px; }

.app__chips { display: flex; gap: 6px; }
.app__chips span {
  padding: 6px 9px;
  border-radius: 999px;
  border: 1px solid #333a50;
  color: #c7cbd8;
  font-size: 10.5px;
  white-space: nowrap;
}
.app__chips .is-on { background: #f2f3f7; border-color: #f2f3f7; color: #0b0e1a; font-weight: 600; }

.app__days { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.app__days span {
  display: grid;
  place-items: center;
  padding: 6px 0;
  border-radius: 12px;
  background: #1e2333;
  font-size: 14px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.app__days small { font-size: 9.5px; font-weight: 500; color: #9aa0b4; }
.app__days .is-on { background: var(--pole-blue); }
.app__days .is-on small { color: rgba(255, 255, 255, .8); }

.app__slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.app__slots span {
  padding: 8px 0;
  border-radius: 10px;
  border: 1px solid #333a50;
  text-align: center;
  font-size: 12px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.app__slots .is-on { background: var(--pole-red); border-color: var(--pole-red); font-weight: 600; }
.app__slots .is-taken { color: #5d6479; text-decoration: line-through; }

.app__book {
  display: flex;
  justify-content: space-between;
  padding: 12px 16px;
  border-radius: 999px;
  background: #f2f3f7;
  color: #0b0e1a;
  font-size: 13px;
  font-weight: 600;
}

/* Floating notifications */
.toast {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px 12px 12px;
  border-radius: 16px;
  background: var(--toast-bg);
  border: 1px solid var(--panel-ring);
  box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .6);
  text-align: left;
  font-size: 0.8125rem;
  line-height: 1.3;
  color: var(--ink-2);
  white-space: nowrap;
}
.toast b { display: block; color: var(--ink); font-weight: 600; font-size: 0.875rem; }
.toast__dot {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  position: relative;
}
.toast__dot::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  background: #ffffff;
}
.toast__dot--red { background: var(--pole-red); }
.toast__dot--blue { background: var(--pole-blue); }

.toast--a { top: 240px; right: calc(50% + 190px); }
.toast--b { top: 390px; left: calc(50% + 200px); }

/* Load sequence */
@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes phone-in {
  from { opacity: 0; transform: translateX(-50%) translateY(70px) rotate(14deg); }
  to   { opacity: 1; transform: translateX(-50%) rotate(8deg); }
}
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.96); } to { opacity: 1; transform: none; } }

.hero__copy > * { animation: rise .7s cubic-bezier(.2, .7, .2, 1) both; }
/* The headline is there from the first frame. Browsers time how fast the page
   loads by when this big text first shows, so fading it in made the page
   score slower. The line above it and the button still rise in. */
.hero__copy > h1 { animation: none; }
.hero__copy > :nth-child(2) { animation-delay: .08s; }
.hero__copy > :nth-child(3) { animation-delay: .16s; }
.hero__copy > :nth-child(4) { animation-delay: .24s; }
.phone { animation: phone-in 1s cubic-bezier(.2, .7, .2, 1) .2s both; }
.toast--a { animation: pop .5s ease .9s both; }
.toast--b { animation: pop .5s ease 1.1s both; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(72px, 10vw, 128px); }

/* The section after the hero rises over it like a sheet, so the phone
   tucks in behind it instead of stopping at a hard line */
.section--sheet {
  position: relative;
  z-index: 2;
  margin-top: -64px;
  border-radius: clamp(28px, 4vw, 48px) clamp(28px, 4vw, 48px) 0 0;
  background: var(--bg);
  box-shadow: 0 -30px 60px -36px rgba(3, 6, 14, .95);
}
.section--sheet::before {          /* a thin highlight along the top edge */
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: min(420px, 50%);
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(27, 122, 225, .45), transparent);
}
:root[data-theme="dark"] .section--sheet {
  background: var(--bg);
  box-shadow: 0 -1px 0 rgba(255, 255, 255, .07), 0 -30px 60px -36px rgba(0, 0, 0, .95);
}
.section--tint { background: var(--tint); }

.section-head {
  display: grid;
  gap: 14px;
  max-width: 640px;
  margin-bottom: clamp(36px, 5vw, 56px);
}
.section-head > p:last-child { color: var(--ink-2); max-width: 540px; }

.section-head--split {
  max-width: none;
  grid-template-columns: 1fr;
  align-items: end;
}
.section-head--split > div { display: grid; gap: 14px; }

/* Services */
.services {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(20px, 2.5vw, 32px);
}
.service { display: grid; gap: 12px; align-content: start; }
.service p { color: var(--ink-2); font-size: 1rem; }
.service h3 { margin-top: 10px; }
/* 7.7: each of the three is a link now (two open booking, the barber one opens Barbers) */
.service--link { color: inherit; text-decoration: none; }
.service--link:focus-visible { outline: 2px solid var(--pole-blue); outline-offset: 6px; border-radius: 24px; }

.service__img {
  position: relative;
  aspect-ratio: 4 / 5;
  max-width: 100%;
  overflow: hidden;
  border-radius: var(--radius-md);
  background: var(--mist);
}
.service__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.2, .7, .2, 1);
}
.service:hover .service__img img { transform: scale(1.04); }
.service__img figcaption {
  position: absolute;
  left: 14px;
  top: 14px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--badge-bg);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Barbers: one big picture that opens the Barbers page (index.html).
   Owners and admins swap the picture and words with "Edit this page". */
.section--intro { padding-top: 0; }
/* Since 5.6 the barbers picture comes first, on the sheet over the hero */
.section--sheet.section--intro { padding-top: clamp(40px, 6vw, 72px); }
.section--why { padding-top: 0; }
.barber-intro {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 8;
  min-height: 360px;
  max-height: 640px;
  width: 100%;
  border-radius: var(--radius-lg);
  background: var(--night-2);
  color: #fff;
  text-decoration: none;
  isolation: isolate;
  box-shadow: 0 0 0 1px var(--panel-ring);
}
.barber-intro__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 1.1s cubic-bezier(.2, .7, .2, 1);
}
.barber-intro:hover .barber-intro__img { transform: scale(1.035); }
.barber-intro__shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(7, 10, 20, 0) 35%, rgba(7, 10, 20, .58) 70%, rgba(7, 10, 20, .86) 100%);
}
.barber-intro__copy {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: grid; justify-items: start; gap: 14px;
  padding: clamp(22px, 4vw, 48px);
}
.barber-intro__eyebrow {
  font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(244, 245, 248, .78);
}
.barber-intro__title {
  max-width: 14ch;
  font-size: clamp(2.1rem, 5.2vw, 4rem); font-weight: 600; line-height: 1; letter-spacing: -0.045em;
  text-wrap: balance;
}
.barber-intro__btn { margin-top: 6px; }
.barber-intro:hover .btn__arrow { transform: translateX(3px); }
.barber-intro:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }

/* CTA */
.section--cta { padding-top: 0; }
.cta {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: clamp(56px, 8vw, 96px) clamp(20px, 5vw, 64px);
  border-radius: var(--radius-lg);
  background: var(--navy);
  border: 1px solid var(--panel-ring);
  color: var(--on-dark);
  text-align: center;
}
.cta__glow {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, var(--night) 0%, var(--night-2) 100%);
  pointer-events: none;
}
.cta > :not(.cta__glow) { position: relative; }
.cta__mark { width: 64px; height: 64px; }
.cta p { max-width: 460px; color: #b9bdcc; }
.cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 10px; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); }
.footer {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-block: 56px 40px;
}
.footer__brand { display: grid; gap: 12px; align-content: start; }
.footer__tag { font-size: 1rem; font-weight: 500; letter-spacing: -0.01em; color: var(--ink-2); }
.footer__col h4 {
  margin-bottom: 14px;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.footer__col ul { display: grid; gap: 10px; }
.footer__col a { text-decoration: none; color: var(--ink); font-size: 0.9375rem; }
.footer__col a:hover { text-decoration: underline; text-underline-offset: 3px; }

.footer__bottom {
  padding-block: 20px 32px;
  border-top: 1px solid var(--line);
  color: var(--ink-3);
  font-size: 0.875rem;
}

/* ---------- Shared form pieces ---------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.field { display: grid; gap: 6px; min-width: 0; }
.field--wide { grid-column: 1 / -1; }
.field label { font-size: 0.875rem; font-weight: 500; }
.opt { color: var(--ink-3); font-weight: 400; }

.field input,
.field textarea {
  width: 100%;
  min-width: 0;
  padding: 0 16px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: var(--input-bg);
  color: var(--ink);
  font: inherit;
  font-size: 1rem;
}
.field input { height: 48px; }
.field textarea { padding-block: 12px; min-height: 76px; resize: vertical; line-height: 1.45; }
.field input::placeholder,
.field textarea::placeholder { color: var(--placeholder); }
.field input:focus,
.field textarea:focus { outline: none; border-color: var(--pole-blue); box-shadow: 0 0 0 4px rgba(27, 122, 225, .15); }
.field [aria-invalid="true"] { border-color: var(--error); }

.check {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9375rem;
  cursor: pointer;
}
.check input { width: 18px; height: 18px; margin: 0; accent-color: var(--fill); }

.field__error { color: var(--error); font-size: 0.8125rem; font-weight: 500; }

/* ---------- Signed-in header menu ---------- */
.account { position: relative; }
.account__btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px 0 4px;
  border: 1.5px solid rgba(255, 255, 255, .3);
  border-radius: 999px;
  background: transparent;
  color: var(--on-dark);
  font: 500 0.875rem/1 var(--font-sans);
  cursor: pointer;
  transition: border-color .2s ease, background-color .2s ease;
}
.account__btn:hover,
.account__btn[aria-expanded="true"] { border-color: rgba(255, 255, 255, .7); background: rgba(255, 255, 255, .06); }
.account__avatar {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--avatar-bg);
  color: var(--avatar-text);
  font-size: 0.75rem;
  font-weight: 600;
}
.account__avatar.has-pic { overflow: hidden; }
.account__avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.account__menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 60;
  width: 248px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--paper);
  color: var(--ink);
  border-color: var(--line);
  box-shadow: 0 24px 60px -20px rgba(7, 10, 20, .45);
}
.account__who { display: grid; padding: 10px 12px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; line-height: 1.35; }
.account__who b { font-size: 0.9375rem; }
.account__who span { color: var(--ink-3); font-size: 0.8125rem; overflow-wrap: anywhere; }
.account__role {
  justify-self: start;
  margin-top: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--mist);
  color: var(--ink-2);
  font-size: 0.75rem;
  font-style: normal;
  font-weight: 500;
}
.account__menu a,
.account__menu button {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  font: 500 0.9375rem/1.2 var(--font-sans);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.account__menu a:hover,
.account__menu button:hover { background: var(--mist); }

/* ---------- Responsive ---------- */
@media (min-width: 900px) {
  .section-head--split { grid-template-columns: 1fr 1fr; gap: 40px; }
  .section-head--split > p { justify-self: end; max-width: 420px; }
}

@media (max-width: 899px) {
  .nav__links { display: none; }
  .nav__toggle { display: block; }

  .services { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .service__img { aspect-ratio: 4 / 3; }
  /* 7.1: the card is wide here, so say which part of each tall picture to
     keep. Tied to the file name: a picture swapped in from the Admin tab
     goes back to the middle. */
  .service__img img[src$="home-why-2.jpg"] { object-position: 50% 21%; }
  .service__img img[src$="home-why-3.jpg"] { object-position: 50% 30%; }

  .barber-intro { aspect-ratio: 4 / 5; max-height: 620px; }

  .footer { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  :root { --header-h: 58px; }
  /* less see-through on phones, so text scrolling under the header doesn't show */
  .site-header.is-scrolled { background: rgba(7, 10, 20, .92); }
  .brand span { font-size: 1.0625rem; }

  .hero__stage { height: 550px; }
  .phone { width: 250px; height: 520px; top: 154px; border-radius: 42px; padding: 9px; }
  .phone__screen { border-radius: 34px; }
  .app { gap: 10px; padding: 12px 13px; }
  .app__title { font-size: 18px; }
  .app__shop img { height: 96px; }
  .app__chips span:nth-child(4) { display: none; }

  .toast { padding: 9px 12px 9px 9px; font-size: 0.75rem; }
  .toast b { font-size: 0.8125rem; }
  .toast__dot { width: 24px; height: 24px; border-radius: 8px; }
  .toast__dot::after { inset: 8px; }
  .toast--a { top: 270px; right: auto; left: 12px; }
  .toast--b { top: 375px; left: auto; right: 12px; }

  .cta__actions { width: 100%; flex-direction: column; }
  .cta__actions .btn { width: 100%; }
}

@media (max-width: 440px) {
  .nav { gap: 12px; }
  .nav__start { gap: 10px; }
  .nav__actions .btn--sm .btn__arrow { display: none; }
  .nav__actions .btn--sm { padding: 0 16px; }
}

@media (max-width: 380px) {
  .nav__actions .btn--sm .btn__arrow { display: none; }
  .nav__actions .btn--sm { padding: 0 14px; }
  .account__name { display: none; }
  .account__btn { padding: 0 4px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0s !important;
    transition-duration: .01ms !important;
  }
}

/* the "link" look for small text buttons (used on every page) */
.link {
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  font: inherit;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

/* Can't reach the database (Supabase mode): a bar at the bottom with Try again */
.netbar {
  position: fixed;
  left: 50%;
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 14px;
  width: min(560px, calc(100% - 32px));
  padding: 12px 14px 12px 18px;
  border-radius: 16px;
  background: var(--error);
  color: #ffffff;
  font-size: 0.9375rem;
  line-height: 1.35;
  transform: translateX(-50%);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
}
.netbar span { flex: 1; }
.netbar button {
  flex: none;
  padding: 8px 14px;
  border: 1.5px solid rgba(255, 255, 255, .7);
  border-radius: 999px;
  background: transparent;
  color: #ffffff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}

/* ---------- "Add to calendar" choice: Apple or Google (js/main.js) ---------- */
.calpick {
  position: absolute;
  z-index: 120;
  display: grid;
  gap: 2px;
  width: min(280px, calc(100vw - 24px));
  padding: 6px;
  border: 1px solid var(--line-2);
  border-radius: 16px;
  background: var(--paper);
  box-shadow: 0 18px 40px -16px rgba(7, 10, 20, .35);
  animation: pop .16s ease both;
}
.calpick__item {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 11px;
  background: none;
  color: var(--ink);
  font: inherit;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}
.calpick__item:hover, .calpick__item:focus-visible { background: var(--mist); outline: none; }
.calpick__item svg { width: 20px; height: 20px; flex: none; color: var(--ink-2); }
.calpick__item span { display: grid; }
.calpick__item b { font-size: 0.9375rem; font-weight: 600; }
.calpick__item small { color: var(--ink-3); font-size: 0.8125rem; }

/* ---------- Photo viewer (booking page and Barbers page) ---------- */
.viewer {
  width: min(920px, calc(100vw - 24px));
  max-width: none;
  max-height: calc(100% - 24px);
  padding: 60px 64px 20px;
  border: 0;
  background: transparent;
  color: var(--on-dark);
  overflow: visible;
}
.viewer::backdrop { background: rgba(7, 10, 20, .88); }
.viewer[open] { animation: pop .2s ease both; }
.viewer__fig { margin: 0; display: grid; gap: 12px; justify-items: center; }
.viewer__fig img {
  max-width: 100%;
  max-height: calc(100vh - 160px);
  border-radius: 18px;
  object-fit: contain;
  background: #1a1f30;
}
.viewer__fig figcaption { color: var(--on-dark-2); font-size: 0.9375rem; text-align: center; }

.viewer__btn {
  position: absolute;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--viewer-btn);
  color: var(--viewer-btn-text);
  cursor: pointer;
}
.viewer__btn:hover { filter: brightness(1.08); }
.viewer__btn svg { width: 20px; height: 20px; }
.viewer__close { top: 4px; right: 8px; }
.viewer__prev { left: 6px; top: 50%; transform: translateY(-50%); }
.viewer__next { right: 6px; top: 50%; transform: translateY(-50%); }

@media (max-width: 640px) {
  .viewer { padding: 60px 8px 72px; }
  .viewer__prev, .viewer__next { top: auto; bottom: 8px; transform: none; }
  .viewer__prev { left: calc(50% - 52px); }
  .viewer__next { right: calc(50% - 52px); }
}

/* ---------- Barbed wire on the home page hero (js/wire.js) ----------
   Six looks; js/config.js (home.wire) picks one. Steel-colored, with a
   soft shadow and a thin highlight so it reads as metal on the navy. */
.hero__wire { position: absolute; inset: 0; pointer-events: none; }
.hero__wire .bw { position: absolute; left: 0; top: 0; overflow: visible; }
.bw__shadow { stroke: rgba(2, 4, 10, .6); transform: translate(0, 1.8px); }
.bw__steel { stroke: #9ea7ba; }
.bw__shine { stroke: rgba(255, 255, 255, .78); transform: translate(-0.3px, -0.6px); }
.bw__spikes { fill: #b9c0d0; stroke: rgba(2, 4, 10, .4); stroke-width: .6; stroke-linejoin: round; }
.bw__coil { stroke: #dde2ec; }
.hero--wire-1 .hero__wire { opacity: .6; }
.hero--wire-2 .hero__wire { opacity: .5; }
.hero--wire-3 .hero__wire { opacity: .95; }
.hero--wire-4 .hero__wire { opacity: .42; }
.hero--wire-5 .hero__wire { z-index: 1; filter: drop-shadow(0 10px 10px rgba(0, 0, 0, .55)); }
.hero--wire-6 .hero__wire { z-index: 1; opacity: .92; }

/* Drawn in once: the strands run out, then each barb snaps on */
.is-drawing .bw__piece path[pathLength] {
  stroke-dasharray: 1;
  animation: bw-draw 1.5s cubic-bezier(.55, .1, .3, 1) both;
  animation-delay: calc(var(--n) * .3s + .2s);
}
.is-drawing .bw__barb {
  transform-box: fill-box;
  transform-origin: center;
  animation: bw-barb .45s cubic-bezier(.2, .9, .3, 1.2) both;
  animation-delay: calc(var(--d) + var(--n, 0) * .3s + .3s);
}
@keyframes bw-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes bw-barb { from { opacity: 0; transform: scale(.3) rotate(-40deg); } to { opacity: 1; transform: none; } }

/* =========================================================
   Text and pictures owners and admins can change (js/content.js)
   ========================================================= */
/* Hidden for a moment on load, until the published version is in */
html.bw-wait [data-edit],
html.bw-wait [data-edit-img] { visibility: hidden; }

/* ---------- the Admin tab (owners and admins only) ---------- */
.bw-admintab {
  position: fixed; right: 0; top: 50%; z-index: 120;
  transform: translateY(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 14px 9px 16px 10px;
  border: 1px solid var(--line-2); border-right: 0; border-radius: 14px 0 0 14px;
  background: var(--paper); color: var(--ink);
  box-shadow: 0 12px 30px -14px rgba(11, 14, 26, .45);
  font: 600 0.6875rem/1 var(--font-sans); letter-spacing: 0.14em; text-transform: uppercase;
  cursor: pointer;
  transition: padding .25s cubic-bezier(.34, 1.56, .64, 1);
}
.bw-admintab:hover { padding-right: 13px; }
.bw-admintab__txt { writing-mode: vertical-rl; transform: rotate(180deg); }
.bw-admintab__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--pole-red); box-shadow: 0 0 0 3px var(--paper); }
.bw-admintab--practice {
  border-color: transparent; color: #fff;
  background: repeating-linear-gradient(-45deg, var(--pole-red) 0 9px, #c92a35 9px 18px);
}
.bw-admintab--practice::before {
  content: ""; width: 8px; height: 22px; border-radius: 4px;
  background: repeating-linear-gradient(-45deg, #fff 0 4px, var(--pole-blue) 4px 8px);
}

/* ---------- the drawer ---------- */
.bw-admin { position: fixed; inset: 0; z-index: 130; }
.bw-admin[hidden] { display: none; }
.bw-admin__scrim { position: absolute; inset: 0; background: rgba(7, 10, 20, .45); animation: bw-fade .2s both; }
.bw-admin__panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(400px, 92vw);
  display: flex; flex-direction: column;
  background: var(--bg); color: var(--ink);
  border-radius: 24px 0 0 24px;
  box-shadow: -20px 0 50px -20px rgba(7, 10, 20, .45);
  animation: bw-in .32s cubic-bezier(.2, .7, .2, 1) both;
}
.bw-admin__head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: calc(16px + env(safe-area-inset-top)) 16px 8px 22px;
}
.bw-admin__head b { font-size: 1.375rem; font-weight: 600; letter-spacing: -0.03em; }
.bw-x {
  width: 40px; height: 40px; display: grid; place-items: center;
  border: 1px solid var(--line-2); border-radius: 50%; background: var(--paper); color: var(--ink); cursor: pointer;
}
.bw-x svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.bw-admin__body {
  flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain;
  display: grid; align-content: start; gap: 26px;
  padding: 6px 22px calc(26px + env(safe-area-inset-bottom));
}
.bw-group { display: grid; gap: 12px; }
.bw-group h3 {
  margin: 0; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-3);
}
.bw-lede { margin: 0; color: var(--ink-2); font-size: 0.9375rem; }
.bw-note { margin: 0; color: var(--ink-2); font-size: 0.875rem; line-height: 1.45; }
.bw-note a { color: var(--ink); }
.bw-note--warn { color: var(--error); }
.bw-foot { margin: 0; color: var(--ink-3); font-size: 0.8125rem; }
.bw-wide { width: 100%; }
.bw-row { display: flex; flex-wrap: wrap; gap: 8px; }
.bw-row .btn { width: auto; }
.bw-row--end { padding-top: 18px; border-top: 1px solid var(--line-2); }
.bw-status {
  display: grid; gap: 4px; padding: 14px 16px; border-radius: 16px;
  background: var(--info-bg); color: var(--ink);
}
.bw-status span { color: var(--ink-2); font-size: 0.875rem; }
.bw-status .bw-row { margin-top: 8px; }
.btn.is-armed { background: var(--pole-red); border-color: var(--pole-red); color: #fff; }
.bw-people { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.bw-person {
  display: grid; gap: 2px; text-align: left; padding: 11px 13px;
  border: 1.5px solid var(--line-2); border-radius: 14px; background: var(--paper); color: var(--ink);
  font: inherit; cursor: pointer;
}
.bw-person b { font-size: 0.875rem; font-weight: 600; }
.bw-person span { color: var(--ink-3); font-size: 0.8125rem; }
.bw-person:hover { border-color: var(--line-strong); }
.bw-person[aria-checked="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.bw-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.bw-chip {
  display: inline-flex; align-items: center; min-height: 38px; padding: 0 15px;
  border: 1.5px solid var(--line-2); border-radius: 999px; background: var(--paper); color: var(--ink);
  font-size: 0.875rem; font-weight: 500; text-decoration: none;
}
.bw-chip:hover { border-color: var(--ink); }

/* ---------- edit mode ---------- */
.bw-editing [data-edit] {
  outline: 1.5px dashed color-mix(in srgb, var(--pole-blue) 70%, transparent);
  outline-offset: 4px; border-radius: 4px; cursor: text;
  transition: outline-color .15s, background-color .15s;
}
.bw-editing [data-edit]:hover { outline-color: var(--pole-blue); background-color: color-mix(in srgb, var(--pole-blue) 8%, transparent); }
.bw-editing [data-edit]:focus { outline: 2px solid var(--pole-blue); background-color: color-mix(in srgb, var(--pole-blue) 10%, transparent); }
.bw-editing .hero h1[data-edit] { caret-color: var(--on-dark); }
.bw-editing img[data-edit-img] { outline: 2px dashed color-mix(in srgb, var(--pole-blue) 80%, transparent); outline-offset: -2px; cursor: pointer; }
.bw-preview [data-edit], .bw-preview img[data-edit-img] { outline: none !important; background-color: transparent !important; cursor: auto; }
.bw-preview .bw-picbtn { display: none; }

.bw-picbtn {
  position: absolute; z-index: 90;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 9px 13px 9px 11px; border: 0; border-radius: 999px;
  background: var(--pole-blue); color: #fff;
  box-shadow: 0 8px 22px -8px rgba(7, 10, 20, .6);
  font: 600 0.8125rem/1 var(--font-sans); cursor: pointer;
}
.bw-picbtn[hidden] { display: none; }
.bw-picbtn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }

.bw-bar {
  position: fixed; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 125;
  transform: translateX(-50%);
  width: min(720px, calc(100vw - 24px));
  display: flex; align-items: center; gap: 14px;
  padding: 10px 10px 10px 20px; border-radius: 22px;
  background: var(--night); color: var(--on-dark);
  box-shadow: 0 18px 44px -14px rgba(7, 10, 20, .65), 0 0 0 1px rgba(255, 255, 255, .08);
  animation: bw-up .35s cubic-bezier(.2, .7, .2, 1) both;
}
.bw-bar__txt { flex: 1; min-width: 0; display: grid; gap: 2px; }
.bw-bar__txt b { font-size: 0.9375rem; font-weight: 600; }
.bw-bar__status { color: var(--on-dark-2); font-size: 0.8125rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bw-bar__acts { display: flex; gap: 6px; flex: none; }
.bw-bar__btn {
  min-height: 42px; padding: 0 15px; border: 1px solid rgba(255, 255, 255, .22); border-radius: 999px;
  background: transparent; color: var(--on-dark); font: 500 0.875rem/1 var(--font-sans); cursor: pointer; white-space: nowrap;
}
.bw-bar__btn:hover { border-color: rgba(255, 255, 255, .55); }
.bw-bar__btn--go { background: #fff; border-color: #fff; color: #0b0e1a; font-weight: 600; }
.bw-bar__btn--go:hover { background: #e9ebf2; }
.bw-bar__btn--go:disabled { background: transparent; color: var(--on-dark-2); border-color: rgba(255, 255, 255, .16); cursor: default; }
.bw-bar__btn.is-armed { background: var(--pole-red); border-color: var(--pole-red); color: #fff; }
.bw-bar__n {
  display: inline-grid; place-items: center; min-width: 22px; height: 22px; margin-left: 6px; padding: 0 6px;
  border-radius: 999px; background: var(--pole-red); color: #fff; font-size: 0.75rem;
}

/* ---------- swap a picture ---------- */
.bw-pic { position: fixed; inset: 0; z-index: 140; display: grid; place-items: center; padding: 16px; }
.bw-pic[hidden] { display: none; }
.bw-pic__scrim { position: absolute; inset: 0; background: rgba(7, 10, 20, .55); animation: bw-fade .2s both; }
.bw-pic__card {
  position: relative; width: min(460px, 100%); max-height: calc(100dvh - 32px); overflow: auto;
  border-radius: 24px; background: var(--bg); color: var(--ink);
  box-shadow: 0 30px 60px -20px rgba(7, 10, 20, .6);
  animation: bw-up .3s cubic-bezier(.2, .7, .2, 1) both;
}
.bw-pic__img { aspect-ratio: 16 / 10; background: var(--mist); }
.bw-pic__img img { width: 100%; height: 100%; object-fit: cover; }
.bw-pic__body { display: grid; gap: 14px; padding: 20px 22px 22px; }
.bw-pic__body > b { font-size: 1.25rem; font-weight: 600; letter-spacing: -0.03em; }
.bw-pic__up { position: relative; overflow: hidden; }
.bw-pic__up input { position: absolute; inset: 0; opacity: 0; cursor: pointer; font-size: 0; }
.bw-pic__up.is-busy { opacity: .6; pointer-events: none; }
.bw-field { display: grid; gap: 6px; }
.bw-field span { color: var(--ink-2); font-size: 0.8125rem; }
.bw-field input {
  min-height: 46px; padding: 0 14px; border: 1.5px solid var(--line-2); border-radius: 12px;
  background: var(--input-bg); color: var(--ink); font: 400 0.9375rem var(--font-sans);
}
.bw-field input:focus { outline: none; border-color: var(--accent); }

/* ---------- little notes ---------- */
.bw-toasts {
  position: fixed; left: 50%; top: calc(var(--header-h) + 12px + env(safe-area-inset-top)); z-index: 150;
  transform: translateX(-50%); width: min(440px, calc(100vw - 24px));
  display: grid; gap: 8px; pointer-events: none;
}
.bw-toast {
  padding: 13px 16px; border-radius: 16px;
  background: var(--night); color: var(--on-dark); font-size: 0.9375rem; font-weight: 500;
  box-shadow: 0 14px 34px -14px rgba(7, 10, 20, .6);
  animation: bw-drop .35s cubic-bezier(.34, 1.56, .64, 1) both;
}
.bw-toast--bad { background: var(--pole-red); color: #fff; }
.bw-toast.is-out { opacity: 0; transform: translateY(-6px); transition: .3s; }

@keyframes bw-fade { from { opacity: 0; } }
@keyframes bw-in { from { transform: translateX(100%); } }
@keyframes bw-up { from { transform: translate(var(--tx, 0), 20px); opacity: 0; } }
@keyframes bw-drop { from { transform: translateY(-12px) scale(.97); opacity: 0; } }
.bw-bar { --tx: -50%; }

@media (max-width: 640px) {
  .bw-bar { flex-wrap: wrap; gap: 10px; padding: 12px; border-radius: 20px; }
  .bw-bar__txt { flex-basis: 100%; padding: 0 4px; }
  .bw-bar__acts { width: 100%; }
  .bw-bar__btn { flex: 1; padding: 0 10px; }
  .bw-people { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .bw-admin__panel, .bw-admin__scrim, .bw-bar, .bw-pic__card, .bw-pic__scrim, .bw-toast { animation: none; }
}


/* ---------- Alerts bell in the header (5.8) ---------- */
.bell { position: relative; display: inline-flex; }
.bell__btn {
  position: relative;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  cursor: pointer;
}
.bell__btn:hover { background: rgba(127, 127, 127, .18); }
.bell__btn svg { width: 20px; height: 20px; }
.bell__badge {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: #d92d20;
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  line-height: 16px;
  text-align: center;
}
.bell__panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 60;
  width: min(340px, calc(100vw - 32px));
  max-height: min(70vh, 460px);
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 16px 40px rgba(7, 10, 20, .22);
  text-align: left;
}
.bell__head { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.bell__item { display: grid; gap: 3px; padding: 12px 16px; border-bottom: 1px solid var(--line); color: inherit; text-decoration: none; }
.bell__item:last-child { border-bottom: 0; }
.bell__item:hover { background: var(--mist); }
.bell__item b { font-size: .875rem; font-weight: 600; }
.bell__item span { color: var(--ink-2); font-size: .8125rem; line-height: 1.4; }
.bell__item small { color: var(--ink-2); font-size: .75rem; opacity: .8; }
.bell__item.is-new { box-shadow: inset 3px 0 0 #1669d2; }
.bell__empty { padding: 20px 16px; color: var(--ink-2); font-size: .875rem; }
.bell [hidden] { display: none; }

/* ---------- Change time box (5.8) ---------- */
.tmove { display: grid; gap: 12px; margin-top: 14px; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); }
.tmove__row { display: grid; gap: 6px; }
.tmove__row label { font-size: .875rem; font-weight: 500; }
.tmove__row select { width: 100%; padding: 11px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--paper); color: var(--ink); font: inherit; }
.tmove__fine { color: var(--ink-2); font-size: .875rem; }

@media (max-width: 640px) {
  .bell { position: static; }
  .bell__panel { top: 100%; left: 16px; right: 16px; width: auto; }
}

/* ========== 5.9: sale prices, the Launch Week promo, "my cut is done", reviews of Barbwired ========== */
/* A price: "$70" crossed out, "$35", "50% off". Quiet: ink and grey, no red. */
.ptag { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 0 7px; }
.ptag__was { color: var(--ink-3); font-weight: 400; text-decoration: line-through; text-decoration-thickness: 1px; }
.ptag__now { color: inherit; font-weight: 600; }
.ptag__off {
  display: inline-block;
  padding: 1px 8px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink-2);
  font-size: 0.6875rem;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Launch Week promo. Just information: nothing to click. Two looks (js/home.js). */
.promo[hidden] { display: none; }
.promo__eyebrow { font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.22em; text-transform: uppercase; }
.promo__was { text-decoration: line-through; text-decoration-thickness: 1px; }

/* A: a quiet line under the hero button, glass with a thin pole-colored rim */
.promo--hero {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-top: 28px;
  padding: 13px 26px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .05);
  color: var(--on-dark);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  font-size: 1.125rem;
  line-height: 1.3;
}
.promo--hero::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(232, 52, 63, .7), rgba(255, 255, 255, .35) 50%, rgba(27, 122, 225, .7));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
.promo--hero .promo__eyebrow { color: var(--silver); font-size: 0.75rem; }
.promo--hero .promo__rule { width: 1px; height: 20px; background: rgba(255, 255, 255, .22); }
.promo--hero b { font-weight: 600; }
.promo--hero .promo__was { color: rgba(236, 239, 247, .5); }
@media (max-width: 520px) {
  .promo--hero { flex-wrap: wrap; justify-content: center; gap: 4px 12px; padding: 10px 18px; border-radius: 22px; }
  .promo--hero .promo__rule { display: none; }
  .promo--hero .promo__eyebrow { flex-basis: 100%; text-align: center; }
}

/* B: a card at the top of the next section, one big number */
.promo--card {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px clamp(20px, 4vw, 44px);
  margin-bottom: 20px;
  padding: clamp(22px, 4vw, 34px) clamp(22px, 4vw, 40px);
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: radial-gradient(120% 140% at 0% 0%, #1a2240 0%, var(--night) 60%);
  color: var(--on-dark);
}
.promo--card::after {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 3px;
  background: repeating-linear-gradient(-45deg, var(--pole-red) 0 10px, #ffffff 10px 20px, var(--pole-blue) 20px 30px, #ffffff 30px 40px);
  opacity: .85;
}
.promo__big {
  font-size: clamp(3.5rem, 11vw, 6.5rem);
  font-weight: 600;
  line-height: .9;
  letter-spacing: -0.05em;
  background: linear-gradient(180deg, #ffffff 30%, var(--silver));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.promo__big small { font-size: .38em; letter-spacing: -0.01em; margin-left: 4px; }
.promo--card .promo__eyebrow { color: var(--silver); }
.promo__title { margin-top: 6px; font-size: clamp(1.25rem, 2.6vw, 1.625rem); font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
.promo__line { margin-top: 6px; color: var(--on-dark-2); font-size: 0.9375rem; line-height: 1.45; }
.promo__line b { color: var(--on-dark); font-weight: 600; }
@media (max-width: 520px) {
  .promo--card { grid-template-columns: 1fr; text-align: center; }
}
/* While a cut is live: a bar at the bottom of the home page */
.livecut {
  position: fixed;
  z-index: 60;
  left: max(16px, env(safe-area-inset-left, 0px));
  right: max(88px, calc(env(safe-area-inset-right, 0px) + 88px));
  bottom: max(16px, env(safe-area-inset-bottom, 0px));
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 520px;
  padding: 12px 12px 12px 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 16px 40px rgba(7, 10, 20, .22);
}
.livecut[hidden] { display: none; }
.livecut__dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px var(--ok-bg); }
.livecut__dot--blue { background: var(--accent); box-shadow: 0 0 0 4px var(--info-bg); }
.livecut__text { display: grid; flex: 1 1 auto; min-width: 0; font-size: 0.875rem; line-height: 1.35; color: var(--ink-2); }
.livecut__text b { color: var(--ink); font-size: 0.9375rem; }
.livecut__btn { flex: none; width: auto; min-height: 44px; padding: 0 18px; white-space: nowrap; }
@media (max-width: 420px) {
  .livecut { flex-wrap: wrap; right: max(16px, env(safe-area-inset-right, 0px)); bottom: calc(max(16px, env(safe-area-inset-bottom, 0px)) + 72px); }
  .livecut__btn { width: 100%; }
}

/* Reviews of Barbwired, at the bottom of the home page */
.section--reviews { padding-top: 0; }
.reviews__avg { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); }
.site-reviews { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.srev { display: grid; align-content: start; gap: 12px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--paper); }
.srev__stars { display: inline-flex; gap: 2px; }
.srev__stars svg { width: 18px; height: 18px; }
.srev__s { color: var(--line-strong); }
.srev__s.is-on { color: var(--star); }
.srev__text { color: var(--ink); font-size: 1rem; line-height: 1.55; overflow-wrap: anywhere; }
.srev__who { color: var(--ink-3); font-size: 0.875rem; }
.srev__who b { color: var(--ink-2); font-weight: 600; }

/* ========== 6.6: the barber cover card (js/cover.js) ==========
   A tall card: the barber's main photo edge to edge, fading into Barbwired
   navy, with their name, Instagram @, a Book button and three numbers. It
   leads each profile on the Barbers page and shows for each barber on the
   home page. Always dark, in day and dark mode, like the hero. */
.bcard {
  position: relative;
  display: grid;
  align-items: end;
  width: 100%;
  aspect-ratio: 4 / 5.5;
  overflow: hidden;
  border-radius: 30px;
  background: #0b1020;
  color: #ffffff;
  isolation: isolate;
}
.bcard__img,
.bcard__zoom,
.bcard__blank { position: absolute; inset: 0; z-index: -3; width: 100%; height: 100%; }
.bcard__img { object-fit: cover; object-position: 50% 20%; }
.bcard__zoom { padding: 0; border: 0; background: none; cursor: zoom-in; }
.bcard__zoom .bcard__img { z-index: auto; }
.bcard__zoom:focus-visible { outline: 3px solid #ffffff; outline-offset: -6px; border-radius: 30px; }
/* No photo yet: Barbwired navy with the pole's blue glowing from the top */
.bcard__blank {
  display: grid;
  place-items: center;
  padding-bottom: 46%;
  background:
    radial-gradient(85% 55% at 50% 0%, rgba(27, 122, 225, .55), transparent 72%),
    radial-gradient(60% 40% at 88% 30%, rgba(232, 52, 63, .16), transparent 70%),
    linear-gradient(180deg, #16203f 0%, #0b1020 58%, #070a14 100%);
}
.bcard__blank span {
  display: grid;
  place-items: center;
  width: clamp(84px, 30%, 128px);
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 50%;
  background: rgba(255, 255, 255, .06);
  color: rgba(255, 255, 255, .9);
  font-size: clamp(1.75rem, 1rem + 3vw, 2.75rem);
  font-weight: 600;
  letter-spacing: -0.03em;
}
/* The bottom of the photo blurs and sinks into navy, so the words read on any picture */
.bcard__blur {
  position: absolute;
  inset: 44% 0 0;
  z-index: -2;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, #000 42%);
  mask-image: linear-gradient(180deg, transparent 0%, #000 42%);
  pointer-events: none;
}
.bcard__shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(7, 10, 20, .18) 0%, rgba(7, 10, 20, 0) 22%, rgba(12, 22, 52, 0) 40%, rgba(12, 22, 52, .58) 60%, rgba(8, 12, 28, .92) 78%, #070a14 100%);
  pointer-events: none;
}
.bcard--blank .bcard__blur { display: none; }
.bcard__info {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 4px;
  min-width: 0;
  padding: 0 clamp(16px, 6%, 26px) clamp(18px, 6%, 26px);
  text-align: center;
  pointer-events: none;
}
.bcard__info a { pointer-events: auto; }
.bcard__name {
  max-width: 100%;
  color: #ffffff;
  font-size: clamp(1.875rem, 1.35rem + 2vw, 2.625rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.05;
  overflow-wrap: anywhere;
}
.bcard__link { color: inherit; text-decoration: none; }
/* Home page: the whole card opens the profile; the buttons sit above that */
.bcard__link::after { content: ""; position: absolute; inset: -1000px; z-index: 0; pointer-events: auto; }
.bcard__link:focus-visible { outline: none; }
.bcard--home:has(.bcard__link:focus-visible) { outline: 3px solid var(--accent); outline-offset: 3px; }
.bcard__ig {
  position: relative;
  z-index: 1;
  max-width: 100%;
  color: rgba(236, 239, 247, .72);
  font-size: 0.9375rem;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.bcard__ig:hover { color: #ffffff; }
.bcard__acts {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  width: 100%;
  margin-top: 12px;
}
.bcard__acts--one { grid-template-columns: minmax(0, 1fr); }
.bcard__book {
  display: grid;
  place-items: center;
  min-height: 50px;
  padding: 0 18px;
  border-radius: 999px;
  background: #ffffff;
  color: #0b0e1a;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color .15s ease;
}
.bcard__book:hover { background: #e9ebf2; }
.bcard__round {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border: 1px solid rgba(255, 255, 255, .26);
  border-radius: 50%;
  background: rgba(255, 255, 255, .1);
  color: #ffffff;
  transition: background-color .15s ease, border-color .15s ease;
}
.bcard__round:hover { background: rgba(255, 255, 255, .2); border-color: rgba(255, 255, 255, .6); }
.bcard__round svg { width: 22px; height: 22px; }
.bcard__book:focus-visible, .bcard__round:focus-visible, .bcard__ig:focus-visible { outline: 2px solid #ffffff; outline-offset: 3px; }
.bcard__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  width: 100%;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}
.bcard__stats li { display: grid; gap: 2px; min-width: 0; }
.bcard__stats b { font-size: clamp(1.25rem, 1rem + 1vw, 1.625rem); font-weight: 600; letter-spacing: -0.025em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.bcard__stats span { color: rgba(236, 239, 247, .64); font-size: 0.8125rem; line-height: 1.25; }

/* Home page: one cover card per barber, in the order the Owners set */
.home-barbers__head { margin-bottom: clamp(20px, 3vw, 32px); }
.home-barbers {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 22px);
}
.home-barbers[data-n="1"] { grid-template-columns: minmax(0, 420px); justify-content: center; }
.home-barbers[data-n="2"] { grid-template-columns: repeat(2, minmax(0, 420px)); justify-content: center; }
.home-barbers__more { display: flex; justify-content: center; margin-top: clamp(20px, 3vw, 32px); }
@media (max-width: 860px) {
  /* Phones: swipe sideways through the barbers, one card at a time */
  .home-barbers,
  .home-barbers[data-n="2"] {
    display: flex;
    gap: 12px;
    margin-inline: calc(var(--gutter) * -1);
    padding-inline: var(--gutter);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .home-barbers::-webkit-scrollbar { display: none; }
  .home-barbers > .bcard { flex: 0 0 min(78vw, 340px); scroll-snap-align: start; }
  .home-barbers[data-n="1"] { display: grid; grid-template-columns: minmax(0, 420px); margin-inline: 0; padding-inline: 0; overflow: visible; }
}


/* ========== 7.4: Black Friday advert on the home page ========== */
/* A band of words that slides across the page ABOVE the title ("Black Friday ·
   Buy One Cut Get One Free"), on the dark top of the home page (dark in day
   mode too). Kiyan picked it from three looks on Nov 27 and asked for it above
   "Get Faded Anywhere". Tapping it opens booking. js/home.js repeats the words
   and takes the band away when js/config.js says so. */
/* While the band shows, the top of the page is shorter, so the band sits just
   under the menu and the title follows it */
.hero--ad { padding-top: calc(var(--header-total) + clamp(14px, 2.6vw, 26px)); }
.bfband {
  position: relative;
  z-index: 1;
  display: block;
  margin: 0 0 clamp(40px, 7.5vw, 84px);
  padding: 15px 0 14px;
  overflow: hidden;
  background: rgba(7, 10, 20, .6);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--on-dark);
  font-size: clamp(0.9375rem, 2.7vw, 1.25rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.14em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  text-align: left;
}
.bfband:focus-visible { outline: 2px solid #fff; outline-offset: -4px; }
/* the pole's colors along the top and bottom edge */
.bfband::before,
.bfband::after {
  content: "";
  position: absolute;
  left: 0; right: 0;
  height: 3px;
  background: repeating-linear-gradient(-45deg, var(--pole-red) 0 10px, #ffffff 10px 20px, var(--pole-blue) 20px 30px, #ffffff 30px 40px);
  opacity: .9;
}
.bfband::before { top: 0; }
.bfband::after { bottom: 0; }
.bfband__track { display: inline-flex; animation: bf-run 36s linear infinite; will-change: transform; }
.bfband:hover .bfband__track { animation-play-state: paused; }
.bfband__set { display: inline-flex; align-items: center; gap: clamp(18px, 3vw, 30px); padding-right: clamp(18px, 3vw, 30px); }
.bfband__tag { color: var(--silver); }
.bfband__dot { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--pole-red); }
.bfband__dot--blue { background: var(--pole-blue); }
@keyframes bf-run { to { transform: translateX(-50%); } }
