/* Chelmsford Summer Series 2027 - full homepage (index-full.html, info.html).
   Loaded AFTER style.css, which still owns the sign-up form (.panel, .form__*,
   .btn, intl-tel-input). Everything new is prefixed cx- so it never collides
   with style.css's .page/.poster/.side/.signup/.foot layout rules. */

html { scroll-behavior: smooth; }
img { max-width: 100%; height: auto; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ---------- Nav (On The Beach pattern: floating pill, small tracked caps) ---------- */
.cx-nav {
  position: fixed; top: 14px; left: 50%; transform: translateX(-50%); z-index: 30;
  display: flex; align-items: center;
  padding: 7px 7px 7px 20px; border-radius: 100px;
  background: rgba(6, 4, 28, 0.62);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid rgba(247, 244, 238, 0.1);
  transition: background 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.cx-nav.is-scrolled { background: rgba(6, 4, 28, 0.92); box-shadow: 0 4px 30px rgba(0, 0, 0, 0.35); border-color: var(--line); }
.cx-nav a { text-decoration: none; }
.cx-nav__logo { display: block; height: 22px; width: auto; }
.cx-nav__links { display: flex; list-style: none; padding: 0; margin: 0 0 0 12px; }
.cx-nav__links a {
  display: block; padding: 10px 16px; border-radius: 100px; white-space: nowrap;
  font-size: 12px; font-weight: 500; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--cream-mute); transition: color 0.2s, background 0.2s;
}
.cx-nav__links a:hover, .cx-nav__links a[aria-current="page"] { color: var(--cream); }
.cx-nav__links a:hover { background: rgba(247, 244, 238, 0.07); }
.cx-nav__cta {
  margin-left: 4px; padding: 10px 22px; border-radius: 100px; white-space: nowrap;
  background: var(--orange); color: var(--ground);
  font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  transition: background 0.2s;
}
.cx-nav__cta:hover { background: var(--cream); }

/* ---------- Hero ---------- */
.cx-hero {
  position: relative; overflow: hidden;
  height: min(100svh, 940px); min-height: 600px;
  display: flex; flex-direction: column; justify-content: space-between; align-items: center;
  padding: 6.2rem 1.25rem 3.5rem; text-align: center;
}
.cx-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 55%; }
.cx-hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to bottom, rgba(6,4,28,.5) 0%, rgba(6,4,28,0) 30%, rgba(6,4,28,0) 58%, var(--ground) 100%);
}
.cx-hero__top, .cx-hero__base { position: relative; z-index: 1; width: min(860px, 100%); }
.cx-hero h1 { margin: 0; }
/* logo sits lower, nearer the visual centre of the hero (3 Nov) */
.cx-hero__top { margin-top: clamp(1.5rem, 11svh, 7.5rem); }
.cx-hero__lockup { display: block; width: 100%;
  /* legibility over the lit tubes (3 Nov): tight dark edge + wider soft halo, follows the letter shapes */
  filter: drop-shadow(0 1px 1px rgba(6,4,28,.9)) drop-shadow(0 0 10px rgba(6,4,28,.75)) drop-shadow(0 0 28px rgba(6,4,28,.55)); }
/* soft dark pool behind the logo only, dims the tubes where the words sit */
.cx-hero__top::before {
  content: ""; position: absolute; z-index: -1; left: 50%; top: 50%;
  width: 120%; height: 230%; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(6,4,28,.62), rgba(6,4,28,.35) 55%, rgba(6,4,28,0));
  pointer-events: none;
}
.cx-hero__when { margin: 0; font: italic 400 clamp(1.9rem, 4.4vw, 3.4rem)/1.05 var(--serif); text-wrap: balance; }
.cx-hero__where {
  display: inline-block; margin: 1.1rem 0 0; padding: .55rem 1.4rem;
  border: 2px solid var(--cream); border-radius: 99px;
  font-weight: 800; font-size: clamp(.95rem, 2vw, 1.35rem); letter-spacing: .02em; text-transform: uppercase;
}

/* ---------- The four days: one photo, four slices ---------- */
.cx-days { padding: 4.5rem 0 3rem; }
.cx-days__head {
  width: min(1240px, 100% - 2.5rem); margin: 0 auto 2.2rem;
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 1rem 3rem;
}
.cx-days__head h2 { margin: 0; font: italic 400 clamp(2.6rem, 6vw, 4.6rem)/.95 var(--serif); }
.cx-days__head p { margin: 0; max-width: 30rem; color: var(--cream-mute); }

.cx-strip { width: min(1240px, 100% - 2.5rem); margin: 0 auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.cx-day { position: relative; aspect-ratio: 3 / 4.2; overflow: hidden; border-radius: 4px; isolation: isolate; }
/* the whole card is the link (the pill inside is just a span) */
a.cx-day { display: block; color: inherit; text-decoration: none; cursor: pointer; }
a.cx-day:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
.cx-strip .cx-day:first-child { border-radius: 18px 4px 4px 18px; }
.cx-strip .cx-day:last-child  { border-radius: 4px 18px 18px 4px; }

.cx-day__slice {
  position: absolute; inset: 0;
  background: url("/assets/images/bg-desktop.webp?v=20260926-13") no-repeat;
  background-size: auto 112%; background-position-y: 60%;
  filter: saturate(.85) brightness(.7);
  transition: filter .6s var(--ease), transform .9s var(--ease);
}
/* the photo runs on across the unannounced days: Saturday takes the lit tree, Sunday the skyline to its right */
.cx-day:nth-child(2) .cx-day__slice { background-position-x: 48%; }
.cx-day:nth-child(3) .cx-day__slice { background-position-x: 86%; }
.cx-day:hover .cx-day__slice, .cx-day:focus-visible .cx-day__slice { filter: saturate(1) brightness(.9); transform: scale(1.03); }
.cx-day:not(.cx-day--live)::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to bottom, rgba(6,4,28,.55), rgba(6,4,28,0) 38%, rgba(6,4,28,0) 62%, rgba(6,4,28,.8));
}

.cx-day__date { position: absolute; left: 0; right: 0; top: 1.4rem; z-index: 2; margin: 0; text-align: center; }
.cx-day__dow { display: block; font-size: 12px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--cream); }
.cx-day__num {
  display: block; margin-top: .2rem;
  font: italic 400 clamp(5rem, 11vw, 9.5rem)/.85 var(--serif);
  color: var(--orange); text-shadow: 0 0 28px rgba(242, 144, 79, .45);
}
.cx-day__mon { display: block; font: italic 400 2rem/1 var(--serif); color: var(--cream); }
.cx-day__foot { position: absolute; left: 1rem; right: 1rem; bottom: 1.1rem; z-index: 2; text-align: center; }
.cx-day__soon { margin: 0; font: italic 400 1.35rem/1.15 var(--serif); color: var(--cream); }
.cx-day__go {
  display: block; margin-top: .7rem; padding: .65rem; border-radius: 99px;
  border: 1px solid rgba(247, 244, 238, .5); color: var(--cream);
  font-size: .85rem; font-weight: 600; text-decoration: none;
  opacity: 0; transform: translateY(6px);
  transition: opacity .3s var(--ease), transform .3s var(--ease), background .2s, color .2s;
}
.cx-day:hover .cx-day__go, .cx-day:focus-visible .cx-day__go { opacity: 1; transform: none; }
.cx-day:hover .cx-day__go, .cx-day:focus-visible .cx-day__go { background: var(--cream); color: var(--ground); }

/* the announced day */
.cx-day--live { background: url("/five/assets/images/bg-desktop-1600.webp") center / cover; }
.cx-day--live::before {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to bottom, rgba(6,4,28,0) 40%, rgba(6,4,28,.95) 86%);
}
/* The band hangs from just under the logo. Both are sized off the card WIDTH (cqw),
   so the logo can never cover their faces whatever the card's height:
   logo = 84% wide at 3.04:1 = ~28cqw tall + its 1.5rem offset. */
.cx-day--live { container-type: inline-size; }
.cx-day--live .cx-day__band { position: absolute; left: 50%; top: calc(31cqw + 1.5rem); bottom: auto; width: 86%; max-width: none; transform: translateX(-50%); z-index: 0; }
.cx-day--live .cx-day__date { top: 1rem; }
.cx-day__logo { display: block; width: 84%; margin: .5rem auto 0; }
.cx-day__when { margin: 0; font: italic 400 1.35rem/1.15 var(--serif); color: var(--cream); }
.cx-day__sale { margin: .35rem 0 .8rem; font-size: .82rem; color: var(--cream-mute); }
.cx-day__sale .short { display: none; }

/* pill button used outside the form (style.css .btn is the form's) */
.cx-btn {
  display: flex; justify-content: center; align-items: center;
  padding: .75rem 1.4rem; border-radius: 99px;
  background: linear-gradient(var(--orange-hot), var(--orange)); color: var(--ground);
  font: 700 .92rem var(--sans); text-decoration: none; transition: background .2s;
}
.cx-btn:hover, .cx-day:hover .cx-btn, .cx-day:focus-visible .cx-btn { background: var(--orange-hot); }
.cx-btn--inline { display: inline-flex; padding: .95rem 2rem; font-size: 1rem; }

/* ---------- Sign-up (form markup + JS unchanged, just re-framed) ---------- */
.cx-signup { padding: 4rem 1.25rem 6rem; scroll-margin-top: 4rem; }
.cx-signup .signup { max-width: 26rem; }
.cx-signup .panel__title { font-size: clamp(2.2rem, 5vw, 3.4rem); text-align: center; }
.cx-signup .panel__lede { text-align: center; }

/* ---------- Info row ---------- */
.cx-info {
  width: min(1240px, 100% - 2.5rem); margin: 0 auto 5rem;
  display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 2.5rem;
  border-top: 1px solid var(--line); padding-top: 2.5rem;
}
.cx-info h3 { margin: 0 0 .5rem; font: italic 400 1.7rem/1.1 var(--serif); }
.cx-info p { margin: 0; color: var(--cream-mute); font-size: .95rem; }
.cx-info a.cx-more { display: inline-block; margin-top: .9rem; font-weight: 600; color: var(--orange); }

/* ---------- Footer ---------- */
.cx-foot { text-align: center; padding: 2.5rem 1.25rem 3rem; border-top: 1px solid var(--line); font-size: .8rem; color: var(--cream-faint); }
.cx-foot__logos { display: block; width: 220px; margin: 0 auto 1.4rem; opacity: .85; }
.cx-foot__legal { display: flex; flex-wrap: wrap; justify-content: center; gap: .3rem 1.2rem; margin: 0 0 .8rem; }
.cx-foot__legal a { color: var(--cream-mute); text-underline-offset: 2px; }
.cx-foot__legal a:hover { color: var(--orange-hot); }
.cx-foot p { margin: 0 0 .8rem; }
.cx-foot .site-built { margin-top: 1rem; }

/* ---------- Info page ---------- */
.cx-pagehead {
  position: relative; overflow: hidden;
  height: min(52svh, 460px); min-height: 320px;
  display: flex; flex-direction: column; justify-content: flex-end; align-items: center;
  padding: 0 1.25rem 2.5rem; text-align: center;
}
.cx-pagehead__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 62%; filter: brightness(.75); }
.cx-pagehead::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to bottom, rgba(6,4,28,.5), rgba(6,4,28,0) 35%, var(--ground)); }
.cx-pagehead h1 { position: relative; z-index: 1; margin: 0; font: italic 400 clamp(3.4rem, 9vw, 6rem)/.9 var(--serif); }
.cx-soon { max-width: 40rem; margin: 0 auto; padding: 3.5rem 1.25rem 5rem; text-align: center; }
.cx-soon h2 { margin: 0; font: italic 400 clamp(2.2rem, 5vw, 3.2rem)/1.05 var(--serif); color: var(--orange); text-wrap: balance; }
.cx-soon p { margin: 1rem auto 2rem; color: var(--cream-mute); max-width: none; text-wrap: balance; }
.cx-ask { border-top: 1px solid var(--line); padding: 4rem 1.25rem; text-align: center; }
.cx-ask h2 { margin: 0; font: italic 400 2.2rem/1.1 var(--serif); }
.cx-ask p { color: var(--cream-mute); margin: .6rem 0 1.4rem; }
.cx-ask a {
  display: inline-block; padding: .75rem 1.5rem; border: 1px solid rgba(247,244,238,.4); border-radius: 99px;
  color: var(--cream); font-weight: 600; text-decoration: none;
}
.cx-ask a:hover { background: var(--cream); color: var(--ground); }

/* ---------- Small screens ---------- */
@media (max-width: 860px) {
  .cx-nav { left: 10px; right: 10px; transform: none; justify-content: space-between; padding: 6px 6px 6px 16px; }
  .cx-nav__links { display: none; }
  .cx-nav__cta { padding: 9px 16px; font-size: 11px; letter-spacing: 1px; }

  .cx-strip { grid-template-columns: 1fr 1fr; width: calc(100% - 1.5rem); gap: 5px; }
  .cx-day { aspect-ratio: 3 / 4.6; }
  /* Five takes the full first row, Saturday + Sunday share the second */
  .cx-strip .cx-day--live { grid-column: 1 / -1; aspect-ratio: 1 / 1.08; border-radius: 14px 14px 4px 4px; }
  .cx-strip .cx-day:nth-child(2) { border-radius: 4px 4px 4px 14px; }
  .cx-strip .cx-day:nth-child(3) { border-radius: 4px 4px 14px 4px; }
  .cx-day:nth-child(2) .cx-day__slice { background-position-x: 44%; }
  .cx-day:nth-child(3) .cx-day__slice { background-position-x: 88%; }
  .cx-day__date { top: .9rem; }
  .cx-day__dow { font-size: 10px; letter-spacing: 1px; }
  .cx-day__num { font-size: 5.2rem; }
  .cx-day__mon { font-size: 1.4rem; }
  .cx-day__foot { left: .6rem; right: .6rem; bottom: .7rem; }
  .cx-day__soon { font-size: 1rem; }
  .cx-day__go { opacity: 1; transform: none; padding: .5rem; font-size: .75rem; margin-top: .5rem; }
  .cx-day--live .cx-day__band { width: 72%; top: calc(21cqw + 1.5rem); bottom: auto; }
  .cx-day--live .cx-day__logo { width: 58%; }
  .cx-day:not(.cx-day--live) .cx-day__foot { left: .6rem; right: .6rem; }

  .cx-info { grid-template-columns: 1fr; gap: 1.8rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cx-day__slice, .cx-day__go { transition: none; }
}

/* ---------- Hero twinkle: a soft glow over each light tube in the photo ----------
   The tubes are baked into poster-*.webp; .cx-twinkle is sized by JS to match the
   image's object-fit:cover box exactly, so each glow (positioned in % of the 4:5
   art) sits on its tube at any viewport. Glows only ADD light (screen blend), so
   with JS off or reduced motion the hero is simply the still photo. */
.cx-twinkle { position: absolute; z-index: 0; pointer-events: none; }
.cx-twinkle i {
  position: absolute; display: block;
  width: 2.4%; transform: translate(-50%, -50%);
  border-radius: 99px;
  background: radial-gradient(closest-side, rgba(255, 236, 200, .95), rgba(255, 199, 122, .55) 45%, rgba(242, 144, 79, 0) 100%);
  mix-blend-mode: screen; filter: blur(2px);
  opacity: 0;
  animation: cx-twinkle var(--d, 5s) ease-in-out var(--dl, 0s) infinite;
}
@keyframes cx-twinkle {
  0%, 100% { opacity: 0; }
  12%      { opacity: var(--peak, .85); }
  22%      { opacity: .25; }
  30%      { opacity: var(--peak, .85); }
  55%      { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .cx-twinkle { display: none; }
}

/* ---------- Mobile menu (On The Beach pattern: burger -> full-screen list) ---------- */
.cx-ham {
  display: none; flex-direction: column; justify-content: space-between;
  width: 40px; height: 40px; padding: 12px 9px; margin-left: 6px;
  border: 0; border-radius: 99px; background: transparent; cursor: pointer;
}
.cx-ham span { display: block; height: 1.5px; background: var(--cream); border-radius: 2px; transition: transform .4s var(--ease), opacity .3s; transform-origin: center; }
.cx-ham[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.25px) rotate(45deg); }
.cx-ham[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.cx-ham[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.25px) rotate(-45deg); }
.cx-nav__right { display: flex; align-items: center; }

.cx-mob {
  position: fixed; inset: 0; z-index: 25;
  display: flex; flex-direction: column; justify-content: center; align-items: center; gap: .4rem;
  padding: 5rem 1.5rem 3rem; text-align: center;
  background: var(--ground);
  opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility 0s .35s;
}
.cx-mob.is-open { opacity: 1; visibility: visible; transition: opacity .35s var(--ease); }
.cx-mob a { padding: .25rem 1.25rem; font: italic 400 clamp(2.6rem, 11vw, 3.6rem)/1.1 var(--serif); color: var(--cream); text-decoration: none; }
.cx-mob a:hover, .cx-mob a:focus-visible { color: var(--orange); }
.cx-mob__sub { margin-top: 2rem; font-size: 12px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--cream-faint); }
body.cx-menu-open { overflow: hidden; }

@media (max-width: 860px) {
  .cx-ham { display: flex; }
}
@media (min-width: 861px) {
  .cx-mob { display: none; }
}
