/* Beacon Painting Co. — shared styles: brand tokens, type, the red-band header with the lit lighthouse, buttons, reveals, footer.
   Each homepage option (review/home/a|b|c) layers its own look on top of this. */

:root {
  --crimson: #9f102c;
  --crimson-deep: #760b20;
  --crimson-ink: #4a0614;
  --ink: #15171c;
  --night: #0c1522;
  --night-2: #13213a;
  --paper: #f6f1e7;
  --paper-2: #ece4d4;
  --stone: #969799;
  --stone-2: #c9c7c1;
  --lamp: #ffe3a3;
  --lamp-hot: #fff4d6;
  --white: #fffdf8;
  --serif: "Cormorant Garamond", "Iowan Old Style", Georgia, serif;
  --roman: "Marcellus", "Cormorant Garamond", Georgia, serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-io: cubic-bezier(.7, 0, .2, 1);
  --pad: clamp(20px, 5vw, 72px);
  --max: 1320px;
  --band-h: 58px;
  --head-h: 92px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; overflow-x: clip; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 17px/1.6 var(--sans); font-variant-numeric: lining-nums; -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--lamp); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: min(var(--max), 100% - var(--pad) * 2); margin-inline: auto; }

/* ---------- type ---------- */
.eyebrow { font: 600 12px/1.2 var(--sans); letter-spacing: .22em; text-transform: uppercase; color: var(--crimson); display: inline-flex; align-items: center; gap: .8em; }
.eyebrow::before { content: none; }
.display { font: 500 clamp(44px, 7.4vw, 112px)/.95 var(--serif); letter-spacing: -.02em; margin: 0; }
.h-1 { font: 500 clamp(38px, 5.4vw, 80px)/1 var(--serif); letter-spacing: -.015em; margin: 0; }
.h-2 { font: 500 clamp(30px, 3.8vw, 54px)/1.05 var(--serif); letter-spacing: -.01em; margin: 0; }
.h-3 { font: 600 clamp(22px, 2vw, 28px)/1.15 var(--serif); margin: 0; }
.lede { font-size: clamp(17px, 1.35vw, 20px); line-height: 1.6; max-width: 34em; }
em, .it { font-style: italic; }
.red { color: var(--crimson); }

/* ---------- buttons ---------- */
.btn { --bg: var(--crimson); --fg: var(--white); display: inline-flex; align-items: center; gap: .7em; min-height: 52px; padding: 0 26px; border: 0; border-radius: 2px; background: var(--bg); color: var(--fg); font: 600 15px/1 var(--sans); letter-spacing: .04em; text-decoration: none; position: relative; overflow: hidden; isolation: isolate; transition: transform .4s var(--ease); }
.btn::after { content: ""; position: absolute; inset: 0; background: var(--crimson-deep); transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); z-index: -1; }
.btn:hover::after { transform: scaleX(1); transform-origin: left; }
.btn .ic { width: 18px; height: 18px; transition: transform .4s var(--ease); }
.btn:hover .ic { transform: translateX(4px); }
.btn--ghost { --bg: transparent; --fg: currentColor; box-shadow: inset 0 0 0 1.5px currentColor; }
.btn--ghost::after { background: currentColor; opacity: .08; }
.btn--light { --bg: var(--white); --fg: var(--ink); }
.btn--light::after { background: var(--lamp); }
.link { font-weight: 600; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 100% 1.5px no-repeat; padding-bottom: 3px; transition: background-size .4s var(--ease); }
.link:hover { background-size: 0 1.5px; background-position: 100% 100%; }

/* ---------- header: lighthouse + red band ---------- */
.bp-head { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--head-h); pointer-events: none; }
.bp-head > * { pointer-events: auto; }
.bp-band { position: absolute; left: 0; right: 0; top: 17px; height: var(--band-h); background: var(--crimson); display: flex; align-items: center; padding-left: calc(var(--pad) + 74px); padding-right: var(--pad); gap: 28px; transform-origin: left center; box-shadow: 0 10px 30px -18px rgba(40, 0, 10, .6); transition: transform .5s var(--ease), box-shadow .4s; }
.bp-band::before { /* fine double rule, like an engraved sign */ content: ""; position: absolute; inset: 5px 0; border-block: 1px solid rgba(255, 255, 255, .16); pointer-events: none; }
.bp-glint { position: absolute; inset: 0; overflow: hidden; pointer-events: none; mix-blend-mode: screen; }
.bp-glint::before { content: ""; position: absolute; top: 0; bottom: 0; left: -30%; width: 30%; background: linear-gradient(90deg, transparent, rgba(255, 227, 163, .55) 50%, transparent); animation: bp-glint 7s linear infinite; animation-delay: 1.8s; opacity: 0; }
@keyframes bp-glint { 0% { transform: translateX(0); opacity: 0; } 4% { opacity: 1; } 38% { transform: translateX(480%); opacity: 1; } 42%, 100% { transform: translateX(480%); opacity: 0; } }

.bp-word { position: relative; text-decoration: none; color: var(--white); display: flex; align-items: baseline; gap: 10px; white-space: nowrap; }
.bp-word b { font: 400 27px/1 var(--roman); letter-spacing: .2em; text-shadow: 0 0 0 transparent; }
.bp-word small { font: italic 500 16px/1 var(--serif); letter-spacing: .14em; color: rgba(255, 253, 248, .78); }

.bp-nav { position: relative; display: flex; align-items: stretch; height: 100%; margin-left: auto; }
.bp-nav > a, .bp-nav > .bp-dd > a { position: relative; display: flex; align-items: center; height: 100%; padding: 0 15px; color: var(--white); text-decoration: none; font: 600 12.5px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; opacity: .86; transition: opacity .3s; }
.bp-nav a:hover, .bp-nav a[aria-current] { opacity: 1; }
.bp-nav .bp-dd { position: relative; }
.bp-nav .bp-dd > a::after { content: ""; width: 5px; height: 5px; margin-left: 8px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: translateY(-2px) rotate(45deg); }
.bp-dd__menu { position: absolute; top: 100%; left: 0; min-width: 250px; padding: 12px 0; background: var(--white); color: var(--ink); box-shadow: 0 24px 50px -20px rgba(20, 10, 10, .45); opacity: 0; visibility: hidden; transform: translateY(8px); transition: .3s var(--ease); border-top: 3px solid var(--lamp); }
.bp-dd__menu--cols { columns: 2; min-width: 380px; }
.bp-dd:hover .bp-dd__menu, .bp-dd:focus-within .bp-dd__menu { opacity: 1; visibility: visible; transform: none; }
.bp-dd__menu a { display: block; padding: 8px 22px; text-decoration: none; font: 500 15px/1.3 var(--sans); break-inside: avoid; }
.bp-dd__menu a:hover { color: var(--crimson); background: var(--paper); }
/* the light-bar that slides under whichever menu item you point at */
.bp-ind { position: absolute; bottom: 7px; height: 2px; left: 0; width: 0; background: var(--lamp); box-shadow: 0 0 12px 2px rgba(255, 227, 163, .7); transition: transform .45s var(--ease), width .45s var(--ease), opacity .3s; pointer-events: none; }

.bp-call { display: inline-flex; align-items: center; gap: 9px; height: 40px; padding: 0 16px; border-radius: 2px; background: var(--white); color: var(--crimson-deep); text-decoration: none; font: 700 14px/1 var(--sans); letter-spacing: .03em; white-space: nowrap; }
.bp-call svg { width: 15px; height: 15px; }
.bp-menu { display: none; width: 44px; height: 44px; margin-right: -8px; border: 0; background: none; color: var(--white); }
.bp-menu span { display: block; width: 24px; height: 2px; margin: 6px auto; background: currentColor; transition: transform .4s var(--ease); }

/* the lighthouse stands in front of the band, its lamp lit, sweeping a beam across */
.bp-mark { position: absolute; left: var(--pad); top: 0; width: 46px; height: var(--head-h); z-index: 2; }
.bp-mark .bp-lh { width: 46px; height: auto; position: absolute; top: 0; left: 0; filter: drop-shadow(0 8px 10px rgba(40, 0, 10, .25)); }
.bp-lamp { position: absolute; left: 23px; top: 13px; width: 0; height: 0; }
.bp-lamp::before { /* glow halo */ content: ""; position: absolute; left: -28px; top: -28px; width: 56px; height: 56px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 244, 214, .95) 0 12%, rgba(255, 227, 163, .45) 34%, transparent 68%); animation: bp-flash 7s ease-in-out infinite; }
.bp-beam { position: absolute; left: 0; top: -60px; width: min(78vw, 1100px); height: 120px; transform-origin: 0 50%; clip-path: polygon(0 47%, 100% 0, 100% 100%, 0 53%); background: linear-gradient(90deg, rgba(255, 244, 214, .95), rgba(255, 227, 163, .45) 30%, rgba(255, 227, 163, 0) 92%); mix-blend-mode: screen; pointer-events: none; opacity: 0; animation: bp-sweep 7s ease-in-out infinite; }
.bp-beam--l { transform: scaleX(-1); animation-name: bp-sweep-l; }
@keyframes bp-sweep { 0% { transform: scaleX(.02) scaleY(.4); opacity: 0; } 8% { opacity: 1; } 30% { transform: scaleX(1) scaleY(1); opacity: .9; } 46% { transform: scaleX(.02) scaleY(.4); opacity: 0; } 100% { transform: scaleX(.02); opacity: 0; } }
@keyframes bp-sweep-l { 0%, 50% { transform: scaleX(-.02) scaleY(.4); opacity: 0; } 58% { opacity: .7; } 78% { transform: scaleX(-.35) scaleY(1); opacity: .5; } 96%, 100% { transform: scaleX(-.02) scaleY(.4); opacity: 0; } }
@keyframes bp-flash { 0%, 100% { transform: scale(1.6); opacity: 1; } 12% { transform: scale(1); opacity: .75; } 44% { transform: scale(.8); opacity: .55; } 50% { transform: scale(1.5); opacity: 1; } 62% { transform: scale(.9); opacity: .6; } }

/* entrance: band stretches out of the lighthouse, then the words arrive */
.bp-head.is-pre .bp-band { transform: scaleX(0); }
.bp-head.is-pre .bp-band > * { opacity: 0; }
.bp-head.is-pre .bp-mark { opacity: 0; transform: translateY(14px); }
.bp-head.is-pre .bp-beam, .bp-head.is-pre .bp-lamp::before { animation-play-state: paused; opacity: 0; }
.bp-band > * { transition: opacity .6s var(--ease) .55s; }
.bp-mark { transition: opacity .6s var(--ease), transform .7s var(--ease); }
.bp-head.is-in .bp-band { transition: transform 1s var(--ease-io) .25s; }

/* compact after scrolling */
.bp-head.is-scrolled .bp-band { box-shadow: 0 14px 34px -14px rgba(40, 0, 10, .55); }

/* mobile menu */
.bp-sheet { position: fixed; inset: 0; z-index: 49; background: var(--crimson); color: var(--white); padding: calc(var(--head-h) + 20px) var(--pad) 40px; display: flex; flex-direction: column; gap: 6px; overflow-y: auto; clip-path: inset(0 0 100% 0); transition: clip-path .7s var(--ease-io); }
.bp-sheet a { color: inherit; text-decoration: none; font: 500 38px/1.25 var(--serif); }
.bp-sheet small { display: block; margin-top: 18px; font: 600 12px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; opacity: .7; }
.bp-sheet .bp-sheet__call { margin-top: auto; font: 700 22px/1 var(--sans); padding: 20px 0; border-top: 1px solid rgba(255, 255, 255, .25); }
body.menu-open .bp-sheet { clip-path: inset(0 0 0 0); }
body.menu-open .bp-menu span:first-child { transform: translateY(4px) rotate(45deg); }
body.menu-open .bp-menu span:last-child { transform: translateY(-4px) rotate(-45deg); }

@media (max-width: 1180px) { .bp-nav > a, .bp-nav > .bp-dd > a { padding: 0 10px; letter-spacing: .12em; } .bp-word small { display: none; } }
@media (max-width: 980px) {
  :root { --band-h: 54px; --head-h: 84px; }
  .bp-nav, .bp-call span { display: none; }
  .bp-band { padding-left: calc(var(--pad) + 58px); gap: 10px; }
  .bp-word b { font-size: 23px; letter-spacing: .17em; }
  .bp-call { margin-left: auto; width: 42px; padding: 0; justify-content: center; }
  .bp-menu { display: block; }
  .bp-mark, .bp-mark .bp-lh { width: 40px; }
  .bp-lamp { left: 20px; top: 11px; }
}

/* ---------- reveal on view (auto-plays once, never scroll-scrubbed) ---------- */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform 1s var(--ease); transition-delay: var(--d, 0s); }
[data-reveal].is-in { opacity: 1; transform: none; }
.split-w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .08em; margin-bottom: -.08em; }
.split-w > span { display: inline-block; transform: translateY(105%); transition: transform 1.1s var(--ease); transition-delay: calc(var(--i) * 55ms + var(--d, 0s)); }
[data-split].is-in .split-w > span { transform: none; }

/* ---------- not-built-yet toast ---------- */
.bp-toast { position: fixed; left: 50%; bottom: 24px; z-index: 80; transform: translate(-50%, 200%); opacity: 0; background: var(--ink); color: var(--white); padding: 14px 20px; border-radius: 3px; font: 500 15px/1.35 var(--sans); box-shadow: 0 20px 40px -18px rgba(0, 0, 0, .6); transition: transform .5s var(--ease), opacity .3s; max-width: calc(100% - 32px); }
.bp-toast.is-on { transform: translate(-50%, 0); opacity: 1; }

/* ---------- footer ---------- */
.bp-foot { background: var(--ink); color: rgba(255, 253, 248, .74); padding: 84px 0 34px; font-size: 15px; position: relative; overflow: hidden; }
.bp-foot a { text-decoration: none; }
.bp-foot a:hover { color: var(--white); }
.bp-foot__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.6fr; gap: 48px; }
.bp-foot h4 { margin: 0 0 16px; font: 600 12px/1 var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--lamp); }
.bp-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.bp-foot__towns { columns: 2; display: block !important; }
.bp-foot__towns li { margin-bottom: 6px; }
.bp-foot__brand { display: flex; gap: 16px; align-items: flex-start; }
.bp-foot__brand img { width: 34px; }
.bp-foot__brand b { display: block; font: 400 26px/1 var(--roman); letter-spacing: .2em; color: var(--white); }
.bp-foot__brand i { display: block; margin-top: 8px; font: italic 500 17px/1.2 var(--serif); }
.bp-foot__big { display: block; margin-top: 22px; font: 600 24px/1.1 var(--sans); color: var(--white); }
.bp-foot__base { margin-top: 64px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .12); display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; font-size: 13px; }
@media (max-width: 900px) { .bp-foot__grid { grid-template-columns: 1fr 1fr; } .bp-foot__grid > :first-child, .bp-foot__grid > :last-child { grid-column: 1 / -1; } }

/* ---------- review-only pill to hop between options ---------- */
.rv-pill { position: fixed; left: 16px; bottom: 16px; z-index: 70; display: flex; align-items: center; gap: 4px; padding: 5px; border-radius: 99px; background: rgba(21, 23, 28, .9); color: #fff; font: 600 13px/1 var(--sans); backdrop-filter: blur(8px); box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .5); }
.rv-pill span { padding: 0 8px 0 10px; opacity: .7; }
.rv-pill a { display: grid; place-items: center; min-width: 34px; height: 34px; border-radius: 99px; text-decoration: none; }
.rv-pill a[aria-current] { background: var(--crimson); }
.rv-pill a:hover:not([aria-current]) { background: rgba(255, 255, 255, .14); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  [data-reveal], .split-w > span { opacity: 1 !important; transform: none !important; }
}
