/* JACL additions on top of Robin's design (assets/site.css is his stylesheet, unchanged apart from font paths).
   Everything here uses his palette (#08070b, #100d18, #f4f1ea, #fdcd00, white at low opacity), his Archivo type,
   his square edges and his uppercase tracked labels, so the additions look native. */

/* Skip link: invisible until a keyboard user tabs to it */
.jx-skip { position: absolute; left: -9999px; top: 12px; z-index: 100; background: #fdcd00; color: #08070b; padding: 10px 14px; font-size: .875rem; font-weight: 600; }
.jx-skip:focus { left: 12px; }

/* Opening section buttons (Jason's layout, 10 Nov): Sound, Lighting, Video, Clients & Venues, Check your date.
   Normal case, medium weight. Phones: three on the first row, two on the second. */
.jx-ctas { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; margin-top: calc(var(--spacing) * 6); }
.jx-hero-btns { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; width: 100%; max-width: 26rem; margin-top: calc(var(--spacing) * 6); }
.jx-hero-btns > :nth-child(-n+3) { grid-column: span 2; }
.jx-hero-btns > :nth-child(n+4) { grid-column: span 3; }
@media (min-width: 48rem) {
  .jx-hero-btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; width: auto; max-width: none; }
  .jx-hero-btns .jx-hbtn { min-width: 9rem; }
}
.jx-hbtn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 11px 18px; border: 1px solid #fff6; color: #fff;
  font-size: .9375rem; font-weight: 500; line-height: 1.25; text-align: center; transition: color .15s, border-color .15s, background-color .15s; }
.jx-hbtn:hover { border-color: #fdcd00; color: #fdcd00; }
.jx-hbtn-y { background: #fdcd00; border-color: #fdcd00; color: #08070b; }
.jx-hbtn-y:hover { background: transparent; color: #fdcd00; }
@media (max-width: 47.99rem) { .jx-hbtn { padding: 11px 8px; } }
.jx-cta { display: inline-flex; align-items: center; gap: calc(var(--spacing) * 2); border: 1px solid #fdcd00; background: #fdcd00; color: #08070b;
  padding: calc(var(--spacing) * 3) calc(var(--spacing) * 5); font-size: .9375rem; line-height: 1.25; font-weight: 500; transition: color .15s, background-color .15s; }
.jx-cta:hover { background: transparent; color: #fdcd00; }

/* Video cards: Jason's thumbnail design rebuilt as real text on his photos. Everything is measured from his graphics and
   sized in cqw (1cqw = 1% of the card's width), so it scales exactly like an image would. */
@font-face { font-family: "JACL Cards"; src: url(/assets/fonts/montserrat-latin-800-normal.woff2) format("woff2"); font-weight: 800; font-style: normal;
  font-display: swap; 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; }
.jx-title { position: absolute; left: 1%; right: 1%; top: 50.2%; transform: translateY(-50%); pointer-events: none;
  font-family: "JACL Cards", Montserrat, Archivo, Arial, sans-serif; font-weight: 800; font-size: 10.85cqw; line-height: 1; letter-spacing: 0;
  text-transform: uppercase; text-align: center; white-space: nowrap; color: #fff;
  text-shadow: 0 0 2.5cqw #000c, 0 0 5cqw #000b, 0 0 9cqw #0007; }   /* soft dark glow, matched to Jason's */
.jx-title-2 { top: 43.9%; font-size: 8.9cqw; line-height: 1.233; }
.jx-play { position: absolute; left: 50%; top: 77.2%; width: 13.7cqw; aspect-ratio: 1; transform: translate(-50%, -50%); color: #fff; pointer-events: none;
  filter: drop-shadow(0 0 1.2cqw #00000059); transition: color .15s; }
.jx-play svg { display: block; width: 100%; height: 100%; overflow: visible; }
#gallery .group:hover .jx-play, #gallery .group:focus-visible .jx-play { color: #fdcd00; }
#gallery .group:hover img { filter: brightness(1.08); }
#gallery figure button:focus-visible { outline: 3px solid #fdcd00; outline-offset: -3px; }
@media (prefers-reduced-motion: reduce) { .jx-play { transition: none; } }
/* Opening loop on desktop (Jason, 10 Nov): the section is a wide strip there (about 3.2:1 to 3.6:1), so only the middle half
   of the 16:9 loop shows and its subjects sat up behind the menu. Showing a little more of the top brings them down behind
   the logo. Phones show the loop's full height, so they're unaffected. */
@media (min-width: 48rem) {
  #about > video { object-position: 50% 35%; }
  #about > div[aria-hidden="true"] { background-position: 50% 35%; }
}

/* Gallery video placeholder while the clip starts */
.jx-loading::after { content: ""; position: absolute; inset: 0; margin: auto; width: 36px; height: 36px; border-radius: 50%; border: 2px solid #ffffff33; border-top-color: #fdcd00; animation: jx-spin .8s linear infinite; pointer-events: none; }
@keyframes jx-spin { to { transform: rotate(360deg); } }

/* Enquiry form */
.jx-form { max-width: 42rem; margin: calc(var(--spacing) * 10) auto 0; display: grid; gap: 18px 16px; grid-template-columns: minmax(0, 1fr); text-align: left; }
@media (min-width: 40rem) { .jx-form { grid-template-columns: repeat(2, minmax(0, 1fr)); } .jx-form .jx-full { grid-column: 1 / -1; } }
.jx-field { display: grid; gap: 8px; }
.jx-field > label, .jx-field > .jx-label { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .16em; color: #ffffffb3; }
.jx-field .jx-opt { text-transform: none; letter-spacing: .02em; color: #ffffff80; }
.jx-input { width: 100%; min-height: 48px; background: #100d18; border: 1px solid #ffffff26; color: #f4f1ea; padding: 12px 14px; font: inherit; font-size: 1rem; border-radius: 0; color-scheme: dark; }
.jx-input::placeholder { color: #ffffff59; }
.jx-input:hover { border-color: #ffffff4d; }
.jx-input:focus { border-color: #fdcd00; outline: none; box-shadow: 0 0 0 1px #fdcd00; }
textarea.jx-input { min-height: 112px; resize: vertical; }
select.jx-input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #fdcd00 50%), linear-gradient(135deg, #fdcd00 50%, transparent 50%);
  background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
.jx-check { display: inline-flex; align-items: center; gap: 10px; font-size: .9rem; color: #ffffffbf; cursor: pointer; }
.jx-check input { width: 18px; height: 18px; accent-color: #fdcd00; }
.jx-input[aria-invalid="true"] { border-color: #ff8a7a; }
.jx-err { font-size: .85rem; color: #ffb4a8; }
.jx-form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.jx-note { margin: 0; max-width: 26rem; font-size: .85rem; line-height: 1.5; color: #ffffff99; }
.jx-note a, .jx-status a { color: #f4f1ea; text-decoration: underline; text-underline-offset: 3px; }
.jx-note a:hover, .jx-status a:hover { color: #fdcd00; }
.jx-form button[type="submit"] { cursor: pointer; }
.jx-form button[disabled] { opacity: .6; cursor: progress; }
.jx-status { margin: 0; font-size: 1rem; line-height: 1.5; }
.jx-status:empty { display: none; }
.jx-status.jx-ok { border: 1px solid #fdcd0080; padding: 16px 18px; color: #f4f1ea; }
.jx-status.jx-bad { border: 1px solid #ff8a7a80; padding: 16px 18px; color: #ffd0c8; }
.jx-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Clients & Venues page */
.jx-page-top { padding: 150px 24px 40px; text-align: center; }
@media (min-width: 48rem) { .jx-page-top { padding-top: 160px; } }
.jx-names { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: calc(var(--spacing) * 8); }
.jx-names li { border: 1px solid #ffffff26; padding: 6px 12px; font-size: .9rem; line-height: 1.4; color: #ffffffbf; }

/* Footer legal row (Robin's footer type: tiny, uppercase, tracked) */
.jx-legal { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; }
.jx-legal a, .jx-legal button { color: inherit; font: inherit; letter-spacing: inherit; text-transform: inherit; background: none; border: 0; padding: 10px 0; cursor: pointer; }

/* Cookie banner */
.jx-consent { position: fixed; z-index: 70; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); margin-inline: auto; max-width: 640px;
  background: #08070bf2; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); border: 1px solid #ffffff26; padding: 20px 22px; color: #f4f1ea;
  font-family: var(--font-archivo), system-ui, sans-serif; box-shadow: 0 20px 60px #000a; }
.jx-eyebrow { margin: 0 0 8px; font-size: .75rem; text-transform: uppercase; letter-spacing: .25em; color: #fdcd00; }
.jx-eyebrow:focus { outline: none; }
.jx-consent-text { margin: 0; font-size: .95rem; line-height: 1.55; color: #ffffffbf; }
.jx-consent-text a { color: #f4f1ea; text-decoration: underline; text-underline-offset: 3px; }
.jx-consent-text a:hover { color: #fdcd00; }
.jx-prefs { display: grid; gap: 10px; margin-top: 14px; }
.jx-prefs label { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; line-height: 1.45; color: #ffffffbf; cursor: pointer; }
.jx-prefs b { color: #f4f1ea; font-weight: 600; margin-right: 4px; }
.jx-prefs input { width: 18px; height: 18px; margin-top: 2px; accent-color: #fdcd00; flex: 0 0 18px; }
.jx-consent-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 16px; }
.jx-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 20px; border: 1px solid #fff6; background: transparent; color: #fff;
  font: 600 .875rem var(--font-archivo), system-ui, sans-serif; cursor: pointer; transition: color .15s, border-color .15s; }
.jx-btn:hover { border-color: #fdcd00; color: #fdcd00; }
.jx-consent-actions .jx-btn { flex: 1 1 140px; }
.jx-link { background: none; border: 0; color: #ffffffbf; font: 600 .875rem var(--font-archivo), system-ui, sans-serif; text-decoration: underline; text-underline-offset: 4px; padding: 12px 6px; cursor: pointer; }
.jx-link:hover { color: #fdcd00; }

/* Privacy page, thank-you page and 404, set in Robin's type */
.jx-prose { max-width: 48rem; margin: 0 auto; padding: 150px 24px 80px; }
.jx-prose:focus { outline: none; }
.jx-prose h1 { font-size: clamp(2.15rem, 4vw, 3rem); font-weight: 600; letter-spacing: -.04em; line-height: 1.04; color: #fff; margin: 0; }
.jx-prose h2 { font-size: 1.5rem; font-weight: 600; letter-spacing: -.03em; color: #fff; margin: 48px 0 12px; }
.jx-prose .jx-lead { font-size: 1.125rem; margin-top: 20px; color: #ffffffbf; }
.jx-prose p, .jx-prose li { color: #ffffffbf; line-height: 1.65; }
.jx-prose p + p { margin-top: 12px; }
.jx-prose ul { list-style: disc; padding-left: 1.2em; display: grid; gap: 6px; }
.jx-prose a { color: #f4f1ea; text-decoration: underline; text-underline-offset: 3px; }
.jx-prose a:hover { color: #fdcd00; }
.jx-table { overflow-x: auto; margin-top: 12px; }
.jx-table table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.jx-table th, .jx-table td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid #ffffff26; }
.jx-table th { color: #fff; font-weight: 600; font-size: .75rem; text-transform: uppercase; letter-spacing: .12em; }
.jx-table td { color: #ffffffbf; }
.jx-prose .jx-btn { margin-top: 12px; }
.jx-404 { min-height: 70svh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 140px 24px 60px; }
.jx-404 h1 { font-size: clamp(2.15rem, 5vw, 3.6rem); font-weight: 600; letter-spacing: -.04em; line-height: 1.04; color: #fff; margin: 0; }
.jx-404 p.jx-lead { margin-top: 16px; font-size: 1.125rem; color: #ffffffbf; }

@media (prefers-reduced-motion: reduce) { .jx-loading::after { animation: none; } }

/* Smallest phones: keep "Clients & Venues" on one line */
@media (max-width: 22rem) { .jx-hero-btns .jx-hbtn { font-size: .875rem; padding-inline: 6px; } }
