/* Beacon round-6 kit: the parts every page shares (paint cursor, magnets, the painted close, the colour-drip footer).
   Layer after /assets/beacon.css and /assets/v3.css. */

/* =====================================================================================
   Round 5 · the wet-paint footer
   ===================================================================================== */
.fd { position: relative; background: #0f1013; color: #fff; padding-top: 300px; overflow: hidden; isolation: isolate; }
.fd a { color: inherit; text-decoration: none; }
.fd__paint { position: absolute; left: 0; right: 0; top: 0; height: 360px; z-index: 1; pointer-events: none; }
.fd__svg { display: block; width: 100%; height: 100%; overflow: visible; }
/* a faint pool of light on the black so the red reads as glossy */
.fd::before { content: ""; position: absolute; left: 50%; top: 160px; width: 1400px; height: 700px; margin-left: -700px; background: radial-gradient(closest-side, rgba(159, 16, 44, .22), transparent); z-index: 0; pointer-events: none; }
.fd__main { position: relative; z-index: 2; display: grid; grid-template-columns: 1.1fr 1fr; gap: 70px; align-items: center; }
.fd__sign { display: inline-flex; align-items: center; gap: 12px; margin: 0 0 30px; padding: 10px 18px 10px 10px; border-radius: 6px; background: #f6f4ef; color: #111316; font: 800 14px/1 var(--display); letter-spacing: .14em; text-transform: uppercase; transform: rotate(-3deg); box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .6); }
.fd__sign span { padding: 6px 9px; border-radius: 4px; background: var(--crimson); color: #fff; font-size: 11px; }
.fd__h { margin: 0; font: 700 clamp(56px, 7.6vw, 132px)/.9 var(--display); font-variation-settings: "wdth" 86; letter-spacing: -.035em; }
.fd__h em { font-family: var(--serif); font-weight: 400; font-style: italic; color: #ff8fa5; letter-spacing: -.02em; }
.fd__tel { position: relative; display: inline-block; margin-top: 34px; font: 800 clamp(40px, 4.4vw, 72px)/1 var(--display); font-variation-settings: "wdth" 84; letter-spacing: -.03em; }
/* the number fills with paint from the bottom when you point at it */
.fd__tel span { background: linear-gradient(0deg, #ff4d6d 0 50%, #fff 50% 100%) 0 0 / 100% 200% no-repeat; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; background-position: 0 0; transition: background-position .7s var(--ease); }
.fd__tel:hover span { background-position: 0 100%; }
.fd__btns { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 26px; margin-top: 30px; }
.fd .btn--light { color: var(--ink); }
.fd__mail { font-size: 17px; border-bottom: 1px solid rgba(255, 255, 255, .35); padding-bottom: 2px; }
.fd__open { display: flex; align-items: center; gap: 10px; margin: 28px 0 0; font-size: 14px; color: rgba(255, 255, 255, .72); }
.fd__open i { width: 10px; height: 10px; border-radius: 50%; background: #4ade80; animation: f1-ping 2s infinite; }
.fd__open.is-closed i { background: #f87171; animation: none; }
.fd__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; padding-bottom: 8px; }
.fd__cols h3 { margin: 0 0 16px; font: 600 12px/1 var(--sans); letter-spacing: .16em; text-transform: uppercase; color: #ff8fa5; }
.fd__cols a, .fd__cols span { position: relative; display: block; width: fit-content; padding: 7px 0; font-size: 16px; color: rgba(255, 255, 255, .84); transition: color .3s; }
/* hover: a little bead of paint runs off the underline */
.fd__cols a::before { content: ""; position: absolute; left: 0; right: 0; bottom: 4px; height: 2px; border-radius: 2px; background: var(--crimson); transform: scaleX(0); transform-origin: left; transition: transform .45s var(--ease); }
.fd__cols a::after { content: ""; position: absolute; left: 70%; top: calc(100% - 4px); width: 5px; height: 5px; border-radius: 0 0 3px 3px; background: var(--crimson); transform: scaleY(0); transform-origin: top; transition: transform .6s cubic-bezier(.6, 0, .4, 1) .25s, height .6s .25s; }
.fd__cols a:hover { color: #fff; }
.fd__cols a:hover::before { transform: scaleX(1); }
.fd__cols a:hover::after { transform: scaleY(1); height: 12px; }

.fd__towns { position: relative; z-index: 2; margin-top: 90px; padding: 20px 0; border-block: 1px solid rgba(255, 255, 255, .1); overflow: hidden; }
.fd__towns-track { display: flex; gap: 38px; width: max-content; animation: r4-mq 70s linear infinite; font: 600 15px/1 var(--sans); color: rgba(255, 255, 255, .62); white-space: nowrap; }
.fd__towns-track b { color: var(--crimson); margin-right: 10px; }
.fd__towns:hover .fd__towns-track { animation-play-state: paused; }

.fd__word { position: relative; z-index: 2; margin: 40px auto 0; width: min(1500px, 100%); padding: 0 var(--pad); }
.fd__word svg { display: block; width: 100%; height: auto; overflow: visible; }
.fd__word text { font: 800 400px/1 var(--display); font-variation-settings: "wdth" 80; }
.fd__ghost { fill: none; stroke: rgba(255, 255, 255, .14); stroke-width: 1.5; }
.fd__roll { transform: scaleX(0); transform-origin: 0 0; transform-box: fill-box; }

.fd__base { position: relative; z-index: 2; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; padding: 22px 0 28px; font-size: 13px; color: rgba(255, 255, 255, .5); }
.fd__up { display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 8px 0 18px; border-radius: 99px; border: 1px solid rgba(255, 255, 255, .25); background: none; color: #fff; font: 600 13px/1 var(--sans); }
.fd__up i { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--crimson); font-style: normal; transition: transform .4s var(--ease); }
.fd__up:hover i { transform: translateY(-4px); }

@media (max-width: 900px) {
  .fd { padding-top: 230px; }
  .fd__paint { height: 280px; }
  .fd__main { grid-template-columns: 1fr; gap: 50px; }
  .fd__cols { grid-template-columns: 1fr 1fr; }
  .fd__word text { letter-spacing: -6px; }
}

/* ---------- round 6 · footer: three treatments ---------- */
.fd__art { position: absolute; left: 0; right: 0; top: 0; height: 330px; z-index: 1; display: none; }
.fd[data-fv="1"] .fd__art1, .fd[data-fv="2"] .fd__art2, .fd[data-fv="3"] .fd__art3 { display: block; }
.fd__art svg { display: block; width: 100%; height: 100%; overflow: visible; }
.fd__art1 { pointer-events: none; }
.fd__art2 { height: 250px; }
.fd__art3 { height: 260px; pointer-events: none; }
.fd__roller { position: absolute; left: 0; top: 0; width: 0; height: 0; opacity: 0; pointer-events: none; }
.fd__roller i { position: absolute; left: -16px; top: -26px; width: 32px; height: 52px; border-radius: 14px; background: repeating-linear-gradient(0deg, rgba(255, 255, 255, .08) 0 2px, transparent 2px 6px), linear-gradient(90deg, #e9e6df, #c9c4b8); box-shadow: 0 10px 20px -8px rgba(0, 0, 0, .5); }
.fd__roller b { position: absolute; left: 14px; top: -6px; width: 70px; height: 12px; border-radius: 6px; background: linear-gradient(180deg, #c9ccd1, #8d9096); transform: rotate(18deg); transform-origin: left center; }
.fd__roller b::after { content: ""; position: absolute; right: -60px; top: -3px; width: 66px; height: 18px; border-radius: 9px; background: #1b1d22; }

/* colour schemes per treatment */
.fd { --fd-bg: #0f1013; --fd-ink: #fff; --fd-soft: rgba(255, 255, 255, .84); --fd-muted: rgba(255, 255, 255, .5); --fd-line: rgba(255, 255, 255, .1); --fd-acc: #ff8fa5; background: var(--fd-bg); color: var(--fd-ink); }
.fd[data-fv="1"] { --fd-bg: #f4efe6; --fd-ink: #111316; --fd-soft: #2a2d33; --fd-muted: #6b6f76; --fd-line: rgba(17, 19, 22, .12); --fd-acc: #9f102c; }
.fd[data-fv="2"] { --fd-bg: #18233a; --fd-acc: #f6c96b; }
.fd[data-fv="3"] { --fd-bg: #161f33; --fd-acc: #f6c96b; }
.fd[data-fv="2"] { padding-top: 330px; }
.fd[data-fv="3"] { padding-top: 260px; }
.fd::before { display: none; }
.fd__h em, .fd__cols h3, .fd__towns-track b { color: var(--fd-acc); }
.fd__cols a, .fd__cols span { color: var(--fd-soft); }
.fd__cols a:hover { color: var(--fd-ink); }
.fd__cols a::before, .fd__cols a::after { background: var(--fd-acc); }
.fd__mail { border-color: var(--fd-line); }
.fd__open { color: var(--fd-muted); }
.fd__towns { border-color: var(--fd-line); }
.fd__towns-track { color: var(--fd-muted); }
.fd__base { color: var(--fd-muted); }
.fd__up { border-color: var(--fd-line); color: var(--fd-ink); }
.fd__ghost { stroke: var(--fd-line); }
.fd[data-fv="1"] .btn--light { --bg: var(--ink); --fg: #fff; color: #fff; }
.fd[data-fv="1"] .fd__tel span { background-image: linear-gradient(0deg, #9f102c 0 50%, #111316 50% 100%); }
.fd[data-fv="1"] .fd__sign { background: #fff; }
.fd[data-fv="2"] .fd__tel span, .fd[data-fv="3"] .fd__tel span { background-image: linear-gradient(0deg, #f6c96b 0 50%, #fff 50% 100%); }
.fd[data-fv="2"] .fd__up i, .fd[data-fv="3"] .fd__up i { background: #f6c96b; color: #18233a; }
@media (max-width: 900px) { .fd__art { height: 250px; } .fd[data-fv="1"] { padding-top: 250px; } .fd[data-fv="2"] { padding-top: 260px; } .fd__art2 { height: 200px; } .fd[data-fv="3"] { padding-top: 210px; } .fd__art3 { height: 200px; } }

/* the brush is the real cursor now: links and buttons keep it too, text fields keep the text cursor */
.r6-brush { display: none !important; }
@media (hover: hover) and (pointer: fine) {
  .r5 { cursor: url(/assets/cursor/brush-crimson.png) 5 5, auto; }
  .r5 a, .r5 button, .r5 label, .r5 [data-town], .r5 .r6-card, .r5 video, .r5 img { cursor: inherit; }
  .r5 input, .r5 textarea { cursor: text; }
}
.cb-ed__img.r6-kb { aspect-ratio: 1 / 1.02; }

.r6-t2 { grid-template-columns: 1fr; }
.r6-t2__track { scroll-behavior: smooth; }
.r6-t2__nav { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.r6-t2__nav button { width: 56px; height: 56px; border-radius: 50%; border: 1.5px solid var(--ink); background: none; font-size: 20px; transition: .3s; }
.r6-t2__nav button:hover { background: var(--ink); color: #fff; }
/* ---------- round 6 · the close: brush strokes in the footer's colours on the same cream ---------- */
.r6-cta { position: relative; padding: 150px 0 120px; background: #f4efe6; overflow: hidden; }
.r6-cta__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.r6-cta .tag { margin-bottom: 22px; }
.r6-cta .d-xl em { color: var(--crimson); }
.r6-cta .lede { margin: 26px 0 36px; }
.r6-cta__btns { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; }
.r6-cta__tel { font: 700 clamp(24px, 2.4vw, 34px)/1 var(--display); font-variation-settings: "wdth" 86; color: var(--ink); text-decoration: none; }
.r6-cta__wall svg { display: block; width: 100%; height: auto; overflow: visible; }
.r6-stroke { stroke-dasharray: 900; stroke-dashoffset: 900; }
.r6-cta__names text { opacity: 0; transition: opacity .6s; }
.r6-cta__names.is-on text { opacity: 1; }
/* the cream runs straight on into the footer's poured colours */
.r6-cta + .fd, .r6-cta ~ .fd { margin-top: 0; }
@media (max-width: 900px) { .r6-cta { padding: 100px 0 60px; } .r6-cta__grid { grid-template-columns: 1fr; } }
/* the drips sit over the headline so caught paint shows on top of the letters */
.fd__art1 { z-index: 3; }
.fd__ch { display: inline-block; }
.fd[data-fv="1"] .btn--light { --streak: var(--crimson); }

/* the brush is the real cursor: links and buttons keep it too, text fields keep the text cursor */
@media (hover: hover) and (pointer: fine) {
  body.r6k { cursor: url(/assets/cursor/brush-crimson.png) 5 5, auto; }
  .r6k a, .r6k button, .r6k label, .r6k video, .r6k img, .r6k [role="button"] { cursor: inherit; }
  .r6k input, .r6k textarea, .r6k select { cursor: text; }
}
/* magnetic things ease back into place */
[data-magnet] { transition: transform .5s var(--ease); will-change: transform; }
@keyframes r4-mq { to { transform: translateX(-50%); } }
@keyframes f1-ping { 70% { box-shadow: 0 0 0 10px rgba(74, 222, 128, 0); } }

.fd__open i { display: none; }
.fd__towns-track a { color: inherit; text-decoration: none; transition: color .3s; }
.fd__towns-track a:hover { color: #fff; }

/* ---------- calm footer for inner pages (the colour-drip footer is the homepage's) ---------- */
.pf { position: relative; margin-top: -38px; padding: clamp(90px, 9vw, 130px) 0 34px; background: #1b2236; color: rgba(255, 253, 248, .82);
  -webkit-mask: url(/assets/edge-brush.svg) top / 100% 40px no-repeat, linear-gradient(#000 0 0) 0 39px / 100% calc(100% - 39px) no-repeat;
  mask: url(/assets/edge-brush.svg) top / 100% 40px no-repeat, linear-gradient(#000 0 0) 0 39px / 100% calc(100% - 39px) no-repeat; }
.pf a:not(.btn) { color: inherit; text-decoration: none; }
.pf__top { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 2.1fr); gap: clamp(40px, 6vw, 90px); }
.pf__word { display: inline-flex; flex-direction: column; color: #fff !important; }
.pf__word b { font: 400 34px/1 "Marcellus", serif; letter-spacing: .14em; }
.pf__word small { margin-top: 4px; font: 400 italic 19px/1 var(--serif); letter-spacing: .04em; color: #f6c96b; }
.pf__brand p { margin: 22px 0 28px; max-width: 22em; font-size: 16px; line-height: 1.6; }
.pf__btns { display: flex; flex-wrap: wrap; gap: 10px; }
.pf__btns .btn--ghost { color: #fff; }
.pf__cols { display: grid; grid-template-columns: 1fr 1.5fr 1fr 1.1fr; gap: 30px; }
.pf__cols h3 { margin: 0 0 16px; font: 600 12.5px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: #f6c96b; }
.pf__cols > div { display: flex; flex-direction: column; gap: 9px; font-size: 15px; }
.pf__towns > div { display: grid; grid-template-columns: 1fr 1fr; gap: 9px 18px; }
.pf__cols a { width: fit-content; background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat; transition: color .25s, background-size .35s var(--ease); }
.pf__cols a:hover { color: #fff; background-size: 100% 1px; }
.pf__base { display: flex; justify-content: space-between; gap: 20px; margin-top: clamp(50px, 6vw, 80px); padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 13.5px; color: rgba(255, 253, 248, .6); }
.pf__up { border: 0; background: none; color: inherit; font: inherit; cursor: pointer; }
.pf__up:hover { color: #fff; }
@media (max-width: 1000px) { .pf__top { grid-template-columns: 1fr; } .pf__cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .pf__cols { grid-template-columns: 1fr; } .pf__btns .btn { flex: 1 1 100%; justify-content: center; } .pf__base { flex-direction: column; } }
