/* ==========================================================================
   The Collective — /complaints/
   Colour tokens and shared header/nav/footer rules match the rest of the
   site exactly (same brand, same accessibility patterns).
   ========================================================================== */

:root {
  --teal: #6BB7B0;
  --teal-deep: #326762;
  --bg-warm: #F7F5F0;
  --pale-aqua: #E7F2F0;
  --mustard: #D9A441;
  --teal-near-black: #1B3733;
  --text-dark: #1E3A38;
  --text-muted: #5C7A78;
  --white: #FFFFFF;
  --error: #B3261E;

  --radius-lg: 20px;
  --radius-md: 12px;
  --shadow-soft: 0 4px 16px rgba(30, 58, 56, 0.08);
  --shadow-card: 0 6px 20px rgba(30, 58, 56, 0.10);
  --focus-ring: 3px solid var(--teal-deep);

  --content-width: 1080px;
  --transition-fast: 200ms ease;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 100%;
  scroll-behavior: smooth;
  /* Keeps scroll targets (skip link, in-page focus jumps) from landing
     underneath the sticky header. */
  scroll-padding-top: 88px;
}

body {
  margin: 0;
  background: var(--bg-warm);
  color: var(--text-dark);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1rem;
  line-height: 1.6;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--teal-deep);
}

a:focus-visible,
button:focus-visible {
  outline: var(--focus-ring);
  outline-offset: 3px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  top: -48px;
  left: 12px;
  background: var(--teal-deep);
  color: var(--white);
  padding: 12px 20px;
  border-radius: var(--radius-md);
  font-weight: 700;
  z-index: 100;
  transition: top 0.15s ease;
}

.skip-link:focus {
  top: 12px;
}

/* ==========================================================================
   Header / navigation (shared pattern with the rest of the site)
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.header-inner {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  transition: opacity var(--transition-fast), transform var(--transition-fast);
}

.brand-link:hover,
.brand-link:focus-visible {
  opacity: 0.85;
  transform: scale(1.02);
}

/* The approved logo files (The_Collective_Milton_Keynes_teal_gold.png / _white_gold.png) are
   shown whole, at their own 992:175 proportions, and are never cropped, stretched, recoloured or
   redrawn. The box takes its height from the image's aspect ratio, so there is no fixed height to
   clip it or to fight with the width. (Class names are new on purpose: no older cached stylesheet
   can apply its cropping rules to these elements.) The wording under the symbol is small, so the
   logo is kept comfortably large at every width. */
.brand-logo {
  display: block;
  width: min(236px, calc(100vw - 140px));
  aspect-ratio: 992 / 175;
  overflow: visible;
}

.brand-logo .brand-logo-img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: contain;
}

@media (min-width: 640px) {
  .brand-logo {
    width: 268px;
  }
}

/* Small laptops and large tablets: the full navigation sits beside the logo, so the logo steps down a little (same file, same proportions) rather than letting the links wrap */
@media (min-width: 901px) and (max-width: 980px) {
  .brand-logo {
    width: 224px;
  }
}

/* Phones: slimmer header edges so the Menu button stays beside a full-size logo */
@media (max-width: 639px) {
  .header-inner {
    padding-left: 14px;
    padding-right: 14px;
    gap: 12px;
  }
}

.nav-toggle {
  display: none;
  align-items: center;
  gap: 8px;
  background: none;
  border: 2px solid transparent;
  border-radius: var(--radius-md);
  padding: 10px 12px;
  min-height: 44px;
  min-width: 44px;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-dark);
}

.nav-toggle-icon {
  width: 20px;
  height: 2px;
  background: var(--text-dark);
  position: relative;
  display: inline-block;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: var(--text-dark);
}

.nav-toggle-icon::before {
  top: -6px;
}

.nav-toggle-icon::after {
  top: 6px;
}

.primary-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.primary-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  color: var(--text-dark);
  font-weight: 600;
  text-decoration: none;
}

.primary-nav a:hover {
  background: var(--pale-aqua);
}

.primary-nav a[aria-current="page"] {
  color: var(--teal-deep);
  background: var(--pale-aqua);
  font-weight: 700;
}

/* This page has five links (including Art Collective), so the Menu button takes over a little sooner than on the other pages: that way the nav never wraps beside the logo. */
@media (max-width: 900px) {
  .nav-toggle {
    display: inline-flex;
  }

  .primary-nav {
    display: none;
    flex-direction: column;
    width: 100%;
    padding: 8px 0 12px;
  }

  .primary-nav.is-open {
    display: flex;
  }

  .primary-nav a {
    width: 100%;
  }

  .header-inner {
    flex-wrap: wrap;
  }
}

/* ==========================================================================
   Footer (shared pattern with the rest of the site)
   ========================================================================== */

.site-footer {
  background: var(--teal-near-black);
  color: var(--pale-aqua);
  padding: 64px 24px 24px;
  border-top: 3px solid var(--mustard);
}

.footer-inner {
  max-width: var(--content-width, 1080px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 32px;
  text-align: left;
}

.footer-brand .footer-wordmark {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--white);
  margin: 0 0 8px;
}

.footer-brand .footer-tagline {
  margin: 0;
  color: var(--pale-aqua);
  font-size: 0.9375rem;
  max-width: 34ch;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}

.footer-col-heading {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--mustard);
  margin: 0 0 4px;
}

.footer-col a,
.footer-email a {
  color: var(--white);
  text-decoration: none;
  font-size: 0.9375rem;
  overflow-wrap: break-word;
  word-break: break-word;
}

.footer-col a:hover,
.footer-email a:hover {
  text-decoration: underline;
  color: var(--mustard);
}

.footer-email {
  margin: 0 0 16px;
}

.footer-social {
  list-style: none;
  display: flex;
  gap: 12px;
  margin: 0;
  padding: 0;
}

.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: var(--white);
}

.footer-social a:hover {
  background: var(--mustard);
  color: var(--teal-deep);
}

.footer-social svg {
  width: 18px;
  height: 18px;
}

.footer-bottom {
  max-width: var(--content-width, 1080px);
  margin: 40px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.8125rem;
  color: var(--pale-aqua);
}

.footer-bottom-links {
  display: flex;
  gap: 16px;
}

.footer-bottom-links a {
  color: var(--pale-aqua);
  text-decoration: none;
}

.footer-bottom-links a:hover {
  text-decoration: underline;
  color: var(--white);
}

.site-footer a:focus-visible,
.site-footer button:focus-visible {
  outline: 3px solid var(--white);
  outline-offset: 3px;
}

@media (max-width: 780px) {
  .footer-inner {
    grid-template-columns: 1fr 1fr;
  }

  .footer-brand {
    grid-column: 1 / -1;
    margin-bottom: 8px;
  }
}

@media (max-width: 480px) {
  .footer-inner {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   The Art Collective — page styles (Phase 1: hero + six-box studio)
   Palette sampled from the Art Collective prospectus.
   ========================================================================== */

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url("assets/montserrat-latin.woff2") format("woff2");
}

:root {
  --ac-font: "Montserrat", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --ac-title: #3F7673;
  --ac-gold: #D9A340;
  --ac-indigo: #6152BC;
  --ac-indigo-deep: #43358F;
  --ac-red: #F63C5C;
  --ac-green: #53B144;
  --ac-orange: #FF741F;
  --ac-violet: #CB6BE6;
  --ac-tint-yellow: #FFF0C7;
  --ac-tint-lilac: #ECE7FA;
  --ac-tint-pink: #FFE4EA;
  --ac-radius-xl: 28px;
}

.ac-page {
  font-family: var(--ac-font);
  background: var(--bg-warm);
}

.ac-page h1,
.ac-page h2,
.ac-page h3 {
  font-family: var(--ac-font);
  letter-spacing: -0.01em;
}

/* Development preview bar ------------------------------------------------ */

.ac-preview-bar {
  background: var(--teal-near-black);
  color: var(--white);
  padding: 10px 20px;
  font-size: 0.875rem;
  line-height: 1.45;
}

.ac-preview-bar p {
  max-width: var(--content-width);
  margin: 0 auto;
}

/* Hero ------------------------------------------------------------------- */

.ac-hero {
  position: relative;
  overflow: hidden;
  overflow: clip;
  padding: 28px 24px 84px;
  isolation: isolate;
}

.ac-hero-inner {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}

.ac-badge {
  display: inline-block;
  margin: 0 0 14px;
  padding: 8px 18px;
  border-radius: 999px;
  background: var(--ac-indigo-deep);
  color: var(--white);
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ac-title {
  margin: 0 0 12px;
  line-height: 0;
}

.ac-title img {
  width: min(100%, 470px);
  height: auto;
}

.ac-tagline {
  margin: 0 0 16px;
  font-size: clamp(1.5rem, 3.2vw, 2.125rem);
  font-weight: 800;
  line-height: 1.15;
  color: var(--teal-deep);
}

.ac-intro {
  margin: 0 0 20px;
  max-width: 34em;
  font-size: 1.1875rem;
  line-height: 1.6;
  color: var(--text-dark);
}

.ac-status-note {
  margin: 0 0 20px;
  max-width: 34em;
  padding: 12px 16px;
  border-left: 5px solid var(--ac-gold);
  background: rgba(255, 255, 255, 0.75);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  font-size: 0.9375rem;
  color: var(--text-dark);
}

.ac-hero-actions {
  margin: 0;
}

.ac-btn {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding: 14px 28px;
  border-radius: 999px;
  background: var(--teal-deep);
  color: var(--white);
  font-family: var(--ac-font);
  font-size: 1rem;
  font-weight: 700;
  text-decoration: none;
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-fast), background var(--transition-fast);
}

.ac-btn:hover {
  background: var(--teal-near-black);
  transform: translateY(-2px);
}

.ac-hero-art img {
  width: 100%;
  max-width: 410px;
  height: auto;
  margin: 0 auto;
}

/* Decorative paint (all aria-hidden, pointer-events off) */

.ac-deco {
  position: absolute;
  height: auto;
  pointer-events: none;
  user-select: none;
  max-width: none;
}

.ac-deco-brush {
  width: clamp(150px, 22vw, 300px);
  top: -36px;
  z-index: 0;
}

.ac-deco-brush-left {
  left: -48px;
}

.ac-deco-brush-right {
  right: -48px;
  transform: scaleX(-1);
}

.ac-deco-swatch {
  width: clamp(260px, 40vw, 500px);
  bottom: -150px;
  z-index: 0;
}

.ac-deco-swatch-left {
  left: -6%;
}

.ac-deco-swatch-right {
  right: -6%;
}

/* The studio ------------------------------------------------------------- */

.ac-studio {
  position: relative;
  padding: 4px 24px 96px;
  background:
    radial-gradient(circle at 8% 12%, rgba(246, 60, 92, 0.07), transparent 38%),
    radial-gradient(circle at 92% 30%, rgba(97, 82, 188, 0.08), transparent 40%),
    radial-gradient(circle at 20% 90%, rgba(217, 163, 64, 0.10), transparent 40%),
    var(--bg-warm);
}

.ac-studio-inner {
  max-width: 1120px;
  margin: 0 auto;
}

.ac-studio-head {
  text-align: center;
  margin: 0 auto 22px;
  max-width: 640px;
}

.ac-studio-head h2 {
  margin: 0 0 10px;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--ac-title);
}

.ac-studio-head p {
  margin: 0;
  font-size: 1.125rem;
  color: #44605E;
}

/* Bento grid ------------------------------------------------------------- */

.ac-bento {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}

.ac-card {
  position: relative;
  overflow: hidden;
  border-radius: var(--ac-radius-xl);
  padding: 32px;
  box-shadow: var(--shadow-card);
  color: var(--text-dark);
  min-width: 0;
}

.ac-card article > :not(h3) {
  position: relative;
  z-index: 1;
}

.ac-card h3 {
  margin: 0 0 12px;
  font-size: clamp(1.375rem, 2.4vw, 1.75rem);
  font-weight: 800;
  line-height: 1.15;
}

.ac-card p {
  margin: 0 0 14px;
  font-size: 1rem;
  line-height: 1.6;
}

.ac-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  margin: 0 0 14px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--white);
  color: var(--text-dark);
  font-size: 0.9375rem;
  font-weight: 800;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.12);
}

.ac-small {
  font-size: 0.875rem;
  opacity: 0.95;
}

/* Collage composition (desktop): one tall hero box, two stacked beside it,
   a wide pilot box, a tall narrow spotlight, and a wide register box.
   Each box has its own corner shape; three sit at a slight angle. */
.ac-card-1 { grid-column: 1 / span 7; grid-row: 1 / span 2; background: var(--teal-deep); color: var(--white); border-radius: 56px 20px 56px 20px; padding-top: 40px; }
.ac-card-2 { grid-column: 8 / span 5; grid-row: 1; background: var(--ac-tint-yellow); border-radius: 20px 48px 20px 48px; }
.ac-card-3 { grid-column: 8 / span 5; grid-row: 2; background: var(--ac-tint-lilac); border-radius: 48px 20px 48px 20px; }
.ac-card-4 { grid-column: 1 / -1; grid-row: 3; background: var(--ac-indigo-deep); color: var(--white); border-radius: 24px 24px 24px 64px; padding-top: 40px; }
.ac-card-5 { grid-column: 1 / span 5; grid-row: 4; background: var(--ac-tint-pink); border-radius: 56px 24px 24px 24px; }
.ac-card-6 { grid-column: 6 / span 7; grid-row: 4; background: var(--teal-near-black); color: var(--white); border: 4px solid var(--ac-gold); border-radius: 20px 56px 20px 56px; }

/* Decorative accents (no content, no pointer events) */
.ac-card-3::after {
  content: "";
  position: absolute;
  right: -46px;
  bottom: -46px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: var(--ac-violet);
  opacity: 0.32;
  pointer-events: none;
}
.ac-card-4::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 12px;
  background: linear-gradient(90deg, #5B8DB0 0 14%, #7AA99B 14% 28%, #E8C227 28% 42%, #F47B2A 42% 56%, #E85A3A 56% 70%, #F07BA0 70% 84%, #9B7BC0 84% 100%);
  pointer-events: none;
}
.ac-card-5::after {
  content: "";
  position: absolute;
  right: -36px;
  top: -36px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--ac-red);
  opacity: 0.22;
  pointer-events: none;
}

/* 01 */
.ac-card-1 article { max-width: 62%; }
.ac-pull {
  margin-top: 18px !important;
  font-size: 1.25rem !important;
  font-weight: 800;
  line-height: 1.3 !important;
  color: #FFD97A;
}
.ac-card-art-1 {
  position: absolute;
  right: -20px;
  bottom: -18px;
  width: 90%;
  height: auto;
  pointer-events: none;
}

/* 02 */
.ac-chips {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
}
.ac-chips li {
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--white);
  border: 2px solid var(--ac-gold);
  font-size: 0.875rem;
  font-weight: 700;
}
.ac-brushes {
  position: relative;
  height: 120px;
  margin: 8px -32px -32px;
  pointer-events: none;
}
.ac-brushes img {
  position: absolute;
  height: auto;
  width: 72%;
}
.ac-brushes img:nth-child(1) { right: -10%; top: 4px; transform: rotate(-4deg); }
.ac-brushes img:nth-child(2) { left: -12%; top: 36px; transform: rotate(3deg); }
.ac-brushes img:nth-child(3) { right: -6%; top: 70px; transform: rotate(-2deg); }

/* 03 */
.ac-points {
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}
.ac-points li {
  position: relative;
  margin: 0 0 12px;
  padding-left: 26px;
  line-height: 1.5;
}
.ac-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--ac-indigo);
}

/* 04 — stages */
.ac-stages {
  list-style: none;
  margin: 20px 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.ac-stage {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px 10px 10px;
  border-radius: 999px;
  background: var(--white);
  color: var(--text-dark);
  font-size: 0.9375rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.ac-stage-n {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: var(--text-dark);
  font-size: 0.875rem;
  font-weight: 800;
}
.ac-stage-1 .ac-stage-n { background: var(--ac-gold); }
.ac-stage-2 .ac-stage-n { background: #B7ADF0; }
.ac-stage-3 .ac-stage-n { background: #FF9AAE; }
.ac-stage-4 .ac-stage-n { background: #8FD983; }
.ac-stage-5 .ac-stage-n { background: #FFA46B; }
.ac-stage-6 .ac-stage-n { background: #E3A6F3; }

.ac-facts {
  display: grid;
  grid-template-columns: repeat(3, auto);
  justify-content: start;
  gap: 8px 32px;
  margin: 0 0 14px;
}
.ac-facts div { min-width: 0; }
.ac-facts dt {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #E9E4FF;
}
.ac-facts dd {
  margin: 2px 0 0;
  font-size: 1.0625rem;
  font-weight: 700;
}

/* 05 — Joel placeholder */


/* 06 — register (most prominent) */
.ac-card-6 article { max-width: 70%; }
.ac-card-6 h3 { font-size: clamp(1.625rem, 3vw, 2.125rem); }
.ac-card-6 p { font-size: 1.0625rem; }
.ac-coming {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px !important;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--ac-gold);
  color: var(--teal-near-black);
  font-weight: 800;
  font-size: 0.9375rem !important;
}
.ac-coming-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--teal-near-black);
}
.ac-card-art-6 {
  position: absolute;
  right: -16%;
  bottom: 6px;
  width: 44%;
  height: auto;
  transform: rotate(-8deg);
  pointer-events: none;
}

/* Responsive ------------------------------------------------------------- */

@media (max-width: 1000px) {
  .ac-hero-inner { grid-template-columns: 1fr; text-align: center; }
  .ac-hero-copy { display: flex; flex-direction: column; align-items: center; }
  .ac-title { display: flex; justify-content: center; }
  .ac-hero-art { order: -1; }
  .ac-hero-art img { max-width: 360px; }
  .ac-hero { padding-bottom: 128px; }
  .ac-status-note { text-align: left; }

  /* Tablet and below: simple stacked/paired boxes, no tilt. */
  .ac-card { grid-row: auto; }
  .ac-card-1 { grid-column: span 12; }
  .ac-card-2 { grid-column: span 6; }
  .ac-card-3 { grid-column: span 6; }
  .ac-card-4 { grid-column: span 12; }
  .ac-card-5 { grid-column: span 12; }
  .ac-card-6 { grid-column: span 12; }
}

@media (max-width: 640px) {
  .ac-hero { padding: 24px 20px 112px; }
  .ac-hero-inner { gap: 16px; }
  .ac-hero-art img { max-width: 190px; }
  .ac-intro { font-size: 1.0625rem; margin-bottom: 16px; }
  .ac-status-note { margin-bottom: 18px; }
  .ac-deco-swatch { bottom: -90px; }

  .ac-studio { padding: 16px 16px 72px; }
  .ac-bento { gap: 16px; }
  .ac-card { padding: 24px; }

  .ac-card-2,
  .ac-card-3 { grid-column: span 12; }

  .ac-card-1 article,
  .ac-card-6 article { max-width: none; }
  .ac-card-1 { min-height: 0; padding-bottom: 0; }
  .ac-card-art-1 {
    position: relative;
    right: auto;
    bottom: auto;
    display: block;
    width: 86%;
    margin: 8px -24px 0 auto;
  }
  .ac-card-art-6 { display: none; }
  .ac-brushes { margin-left: -24px; margin-right: -24px; margin-bottom: -24px; }

  .ac-stages { grid-template-columns: 1fr 1fr; }
  .ac-facts { grid-template-columns: 1fr; gap: 10px; }
}

@media (max-width: 400px) {
  .ac-stages { grid-template-columns: 1fr; }
}

/* Forced colours / high contrast OS mode: keep content readable. */
@media (forced-colors: active) {
  .ac-card { border: 2px solid CanvasText; }
  .ac-deco, .ac-brushes, .ac-card-art { display: none; }
}



/* ==========================================================================
   PHASE 2 — panels, paint trail, sketchbook, welcome animation,
   accessibility settings
   ========================================================================== */

/* Keeps the page from shifting sideways when a panel locks scrolling. */
html { scrollbar-gutter: stable; }
html.ac-locked { overflow: hidden; }

.ac-page [hidden],
.ac-drawer-root[hidden],
.ac-a11y[hidden],
.ac-welcome[hidden] { display: none !important; }

.ac-title:focus { outline: none; }

.ac-btn-text {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-left: 16px;
  padding: 8px 4px;
  border: 0;
  background: none;
  color: var(--teal-deep);
  font: 700 0.9375rem var(--ac-font);
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}
.ac-btn-text:focus-visible { outline: var(--focus-ring); outline-offset: 3px; border-radius: 6px; }
.ac-hero-actions { display: flex; flex-wrap: wrap; align-items: center; }
@media (max-width: 1000px) { .ac-hero-actions { justify-content: center; } .ac-btn-text { margin-left: 8px; } }

/* No-JavaScript fallback: panel content reads as ordinary sections. */
.ac-panels { background: var(--bg-warm); padding: 8px 24px 72px; }
.ac-panels-inner { max-width: 760px; margin: 0 auto; }
.ac-panels-heading { font-size: 1.75rem; font-weight: 800; color: var(--ac-title); margin: 0 0 24px; }
.ac-panels .ac-panel { background: #fff; border-radius: 24px; padding: 24px; margin-bottom: 24px; box-shadow: var(--shadow-card); }
.ac-panels.is-enhanced { display: none; }

/* ---------- Interactive boxes -------------------------------------------- */

.ac-card {
  transform: rotate(var(--tilt, 0deg));
  transition: transform 220ms ease, box-shadow 220ms ease;
}
@media (min-width: 1001px) {
  .ac-card-2 { --tilt: 1.1deg; }
  .ac-card-3 { --tilt: -1deg; }
  .ac-card-6 { --tilt: -0.6deg; }
}

.ac-card.is-interactive { cursor: pointer; }
.ac-card.is-interactive:hover {
  transform: translateY(-5px) rotate(var(--tilt, 0deg));
  box-shadow: 0 14px 30px rgba(30, 58, 56, 0.22);
}


.ac-open {
  display: inline;
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-align: left;
  cursor: pointer;
}
.ac-open::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
}
.ac-open:focus-visible { outline: none; }
.ac-open:focus-visible::after {
  box-shadow: inset 0 0 0 4px #fff, inset 0 0 0 8px var(--teal-near-black);
}

.ac-open-hint {
  position: absolute;
  top: 22px;
  right: 22px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 14px;
  border-radius: 999px;
  background: #fff;
  color: var(--text-dark);
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.15);
  transition: background 200ms, color 200ms;
}
.ac-open-hint::after { content: "\2192"; font-size: 1rem; line-height: 1; }
.ac-card.is-interactive:hover .ac-open-hint { background: var(--teal-near-black); color: #fff; }

/* Paint splash on activation */
.ac-splash { position: absolute; width: 0; height: 0; z-index: 4; pointer-events: none; }
.ac-splash-core {
  position: absolute;
  left: -60px; top: -60px; width: 120px; height: 120px;
  border-radius: 52% 48% 55% 45% / 48% 55% 45% 52%;
  background: var(--splash);
  opacity: 0.9;
  transform: scale(0.1);
  animation: ac-splash-core 720ms ease-out forwards;
}
.ac-splash-drop {
  position: absolute;
  left: calc(var(--s) / -2); top: calc(var(--s) / -2);
  width: var(--s); height: var(--s);
  border-radius: 50%;
  background: var(--splash);
  transform: rotate(var(--a)) translateX(0);
  animation: ac-splash-drop 720ms ease-out forwards;
}
@keyframes ac-splash-core { 45% { transform: scale(1.7); opacity: 0.85; } 100% { transform: scale(2.6); opacity: 0; } }
@keyframes ac-splash-drop { to { transform: rotate(var(--a)) translateX(calc(var(--d) * 2.6)); opacity: 0; } }

/* ---------- Slide-out panel ---------------------------------------------- */

.ac-drawer-root { position: fixed; inset: 0; z-index: 100; }
.ac-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(27, 55, 51, 0.5);
  opacity: 0;
  transition: opacity 320ms ease;
}
.ac-drawer-root.is-open .ac-backdrop { opacity: 1; }

.ac-drawer {
  --accent: var(--teal-deep);
  --accent-ink: #fff;
  --accent-soft: var(--pale-aqua);
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: min(580px, 100%);
  display: flex;
  flex-direction: column;
  background: var(--bg-warm);
  color: var(--text-dark);
  font-family: var(--ac-font);
  box-shadow: -14px 0 44px rgba(0, 0, 0, 0.3);
  transform: translateX(100%);
  transition: transform 420ms cubic-bezier(0.22, 0.8, 0.26, 1);
  outline: none;
}
.ac-drawer.is-wide { width: min(760px, 100%); }
.ac-drawer-root.is-open .ac-drawer { transform: none; }

.ac-drawer-p1 { --accent: #326762; --accent-ink: #fff; --accent-soft: #E7F2F0; }
.ac-drawer-p2 { --accent: #FFD97A; --accent-ink: #1B3733; --accent-soft: #FFF0C7; }
.ac-drawer-p3 { --accent: #B7ADF0; --accent-ink: #1B3733; --accent-soft: #ECE7FA; }
.ac-drawer-p4 { --accent: #43358F; --accent-ink: #fff; --accent-soft: #ECE7FA; }
.ac-drawer-p5 { --accent: #FF9AAE; --accent-ink: #1B3733; --accent-soft: #FFE4EA; }

.ac-drawer-bar {
  flex: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px 10px 24px;
  background: var(--accent);
  color: var(--accent-ink);
}
.ac-drawer-barlabel {
  margin: 0;
  font-size: 0.8125rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ac-close {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  min-width: 48px;
  padding: 0 18px 0 14px;
  border: 3px solid var(--teal-near-black);
  border-radius: 999px;
  background: #fff;
  color: var(--teal-near-black);
  font: 800 1rem var(--ac-font);
  cursor: pointer;
}
.ac-close:hover { background: var(--teal-near-black); color: #fff; }
.ac-close:focus-visible { outline: 3px solid #fff; outline-offset: 3px; box-shadow: 0 0 0 6px var(--teal-near-black); }
.ac-close-x { font-size: 1.5rem; line-height: 1; }
.ac-close-small { min-height: 44px; min-width: 44px; padding: 0; justify-content: center; }
.ac-close-small span { font-size: 1.5rem; line-height: 1; }

.ac-drawer-body {
  position: relative;
  flex: 1;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 28px 28px 72px;
}

.ac-drawer-cally {
  position: absolute;
  top: 10px;
  right: 16px;
  width: 104px;
  height: auto;
  pointer-events: none;
  opacity: 0;
  transform: translateY(24px) scale(0.8) rotate(4deg);
  transition: transform 520ms 260ms cubic-bezier(0.3, 1.5, 0.5, 1), opacity 260ms 260ms;
}
.ac-drawer-root.is-open .ac-drawer-cally { opacity: 1; transform: none; }

/* Panel content (shared design system, each panel gets its own accent) */
.ac-panel { color: var(--text-dark); }
.ac-panel-head { padding-right: 112px; margin-bottom: 18px; }
.ac-panel-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  height: 44px;
  margin: 0 0 10px;
  padding: 0 12px;
  border-radius: 58% 42% 52% 48% / 46% 54% 46% 54%;
  background: var(--accent, var(--ac-gold));
  color: var(--accent-ink, #1B3733);
  font-size: 0.9375rem;
  font-weight: 800;
}
.ac-panel-1 .ac-panel-kicker { background: #326762; color: #fff; }
.ac-panel-2 .ac-panel-kicker { background: #FFD97A; color: #1B3733; }
.ac-panel-3 .ac-panel-kicker { background: #B7ADF0; color: #1B3733; }
.ac-panel-4 .ac-panel-kicker { background: #43358F; color: #fff; }
.ac-panel-5 .ac-panel-kicker { background: #FF9AAE; color: #1B3733; }

.ac-panel h2 {
  margin: 0;
  font-size: clamp(1.75rem, 5vw, 2.375rem);
  font-weight: 800;
  line-height: 1.1;
  color: var(--teal-deep);
}
.ac-panel h2:focus { outline: none; }
.ac-panel-sub { margin: 6px 0 0; font-size: 1.0625rem; font-weight: 700; color: #44605E; }
.ac-panel h3 { margin: 28px 0 10px; font-size: 1.25rem; font-weight: 800; color: var(--teal-deep); }
.ac-panel p { margin: 0 0 14px; font-size: 1rem; line-height: 1.65; }
.ac-panel a { color: var(--teal-deep); font-weight: 700; }
.ac-lead { font-size: 1.1875rem !important; font-weight: 500; line-height: 1.6 !important; }
.ac-pull-panel {
  margin: 4px 0 18px !important;
  padding: 14px 18px;
  border-left: 6px solid var(--ac-gold);
  background: #fff;
  border-radius: 0 16px 16px 0;
  font-size: 1.25rem !important;
  font-weight: 800;
  line-height: 1.35 !important;
  color: var(--teal-deep);
}
.ac-panel-art { display: block; width: 100%; max-width: 420px; height: auto; margin: 4px auto 18px; }
.ac-panel .ac-points { margin: 0 0 18px; }
.ac-callout {
  padding: 14px 18px;
  border-radius: 16px;
  background: #fff;
  border: 2px solid var(--teal-deep);
}
.ac-callout-principle { border-color: var(--ac-red); background: #FFF4F6; }
.ac-panel-brushes { position: relative; height: 170px; margin: 0 -28px 16px; overflow: hidden; }
.ac-panel-brushes img { position: absolute; width: 62%; height: auto; }
.ac-panel-brushes img:nth-child(1) { left: -6%; top: 0; transform: rotate(-3deg); }
.ac-panel-brushes img:nth-child(2) { right: -8%; top: 36px; transform: rotate(2deg); }
.ac-panel-brushes img:nth-child(3) { left: -4%; top: 76px; transform: rotate(-2deg); }
.ac-panel-brushes img:nth-child(4) { right: -6%; top: 114px; transform: rotate(3deg); }

.ac-facts-panel { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 8px 28px; margin: 0 0 16px; }
.ac-facts-panel dt { color: #44605E; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.ac-facts-panel dd { margin: 2px 0 0; font-size: 1.0625rem; font-weight: 800; }

/* Expandable second layer */
.ac-more { margin: 10px 0; border-top: 2px solid rgba(30, 58, 56, 0.16); padding-top: 4px; }
.ac-more summary {
  display: flex;
  align-items: center;
  min-height: 52px;
  cursor: pointer;
  font-weight: 800;
  font-size: 1.0625rem;
  color: var(--teal-deep);
  list-style: none;
}
.ac-more summary::-webkit-details-marker { display: none; }
.ac-more summary::before {
  content: "+";
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px; height: 30px;
  margin-right: 12px;
  border-radius: 50%;
  background: var(--teal-deep);
  color: #fff;
  font-size: 1.25rem;
  line-height: 1;
}
.ac-more[open] > summary::before { content: "\2212"; }
.ac-more summary:focus-visible { outline: var(--focus-ring); outline-offset: 3px; border-radius: 8px; }
.ac-more-body { padding: 4px 0 8px 42px; }

/* ---------- Paint trail --------------------------------------------------- */

.ac-trail { list-style: none; margin: 26px 0 22px; padding: 0; }
.ac-stop { position: relative; padding-bottom: 30px; }
.ac-stop:last-child { padding-bottom: 0; }

.ac-stop-btn,
.ac-stop-detail { position: relative; z-index: 1; }

.ac-stop-btn {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  min-height: 76px;
  padding: 2px 0;
  border: 0;
  background: none;
  color: var(--text-dark);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.ac-stop:nth-child(even) .ac-stop-btn { flex-direction: row-reverse; text-align: right; }
.ac-stop-btn:focus-visible { outline: var(--focus-ring); outline-offset: 4px; border-radius: 40px; }

.ac-blob {
  position: relative;
  isolation: isolate;
  flex: none;
  display: grid;
  place-items: center;
  width: 72px; height: 72px;
  border-radius: 58% 42% 52% 48% / 46% 54% 46% 54%;
  background: var(--stop-soft);
  box-shadow: inset 0 0 0 5px var(--stop);
  color: #1B3733;
  font-size: 1.125rem;
  font-weight: 800;
  transition: transform 260ms cubic-bezier(0.3, 1.5, 0.5, 1);
}
.ac-blob::before {
  content: "";
  position: absolute;
  inset: -9px;
  z-index: -1;
  border-radius: 46% 54% 40% 60% / 58% 42% 56% 44%;
  background: var(--stop);
  opacity: 0.35;
  transform: rotate(16deg);
}
.ac-stop-btn:hover .ac-blob,
.ac-stop.is-open .ac-blob { transform: scale(1.12) rotate(-4deg); }

.ac-stop-name {
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: underline 5px transparent;
  text-underline-offset: 7px;
}
.ac-stop.is-open .ac-stop-name { text-decoration-color: var(--stop); }

.ac-stop-detail {
  margin: 4px 0 0 88px;
  padding: 14px 18px 6px;
  border-radius: 18px;
  border-left: 6px solid var(--stop);
  background: #fff;
  box-shadow: var(--shadow-soft);
  text-align: left;
}
.ac-stop:nth-child(even) .ac-stop-detail { margin: 4px 88px 0 0; border-left: 0; border-right: 6px solid var(--stop); }

.ac-connector {
  position: absolute;
  z-index: 0;
  left: 36px; right: 36px;
  top: 38px;
  width: calc(100% - 72px);
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.ac-connector path {
  fill: none;
  stroke: var(--stop);
  stroke-width: 11px;
  stroke-linecap: round;
  vector-effect: non-scaling-stroke;
  opacity: 0.9;
}

html:not(.ac-no-motion) .ac-panel-4.trail-drawn .ac-connector {
  animation: ac-draw 700ms ease-out both;
  animation-delay: calc(var(--n, 0) * 240ms);
}
html:not(.ac-no-motion) .ac-panel-4.trail-drawn .ac-blob {
  animation: ac-pop 460ms cubic-bezier(0.3, 1.5, 0.5, 1) both;
  animation-delay: calc(var(--n, 0) * 240ms);
}
.ac-stop-1 { --n: 0; } .ac-stop-2 { --n: 1; } .ac-stop-3 { --n: 2; }
.ac-stop-4 { --n: 3; } .ac-stop-5 { --n: 4; } .ac-stop-6 { --n: 5; }
@keyframes ac-draw { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(-20px -20px -20px -20px); } }
@keyframes ac-pop { from { transform: scale(0.2); opacity: 0; } to { transform: none; opacity: 1; } }

/* ---------- Joel: photo, biography, sketchbook, words --------------------- */

.ac-joel-photo,
.ac-words-slot {
  padding: 20px;
  border: 3px dashed #8A1236;
  border-radius: 18px;
  background: #fff;
}
.ac-joel-photo { display: flex; flex-direction: column; justify-content: center; aspect-ratio: 4 / 3; max-width: 360px; margin-bottom: 22px; }
.ac-joel-photo p:last-child,
.ac-words-slot p:last-child { margin-bottom: 0; }

.ac-panel .ac-placeholder-tag {
  display: inline-block;
  align-self: flex-start;
  margin: 0 0 10px;
  padding: 3px 10px;
  border-radius: 6px;
  background: var(--text-dark);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.ac-panel .ac-draft-tag {
  display: inline-block;
  margin: 4px 0 14px;
  padding: 4px 12px;
  border-radius: 6px;
  background: #8A1236;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.4;
}
.ac-bio-closing {
  padding: 14px 18px;
  border-left: 6px solid var(--ac-red);
  background: #fff;
  border-radius: 0 14px 14px 0;
  font-size: 1.0625rem !important;
}

.ac-words { margin-top: 8px; }

/* ---------- Welcome animation (Cally + paint bucket) ---------------------- */

.ac-welcome {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  background: #F7F5F0;
  overflow: hidden;
  --s: 0.66;
}
html[data-intro="short"] .ac-welcome { --s: 0.26; }
html.ac-intro-pending .ac-welcome { display: block; animation: ac-failsafe 0.01s 10s forwards; }
html.ac-intro-skipping .ac-welcome { opacity: 0; transition: opacity 240ms ease; }
@keyframes ac-failsafe { to { visibility: hidden; pointer-events: none; } }

.ac-intro-skip {
  position: absolute;
  top: 18px; right: 18px;
  z-index: 5;
  min-height: 52px;
  padding: 0 24px;
  border: 3px solid #fff;
  border-radius: 999px;
  background: var(--teal-near-black);
  color: #fff;
  font: 800 1rem var(--ac-font);
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}
.ac-intro-skip:focus-visible { outline: 4px solid var(--teal-near-black); outline-offset: 4px; }

.ac-intro-scene { position: absolute; inset: 0; }

.ac-intro-cally {
  position: absolute;
  left: 46%; top: 52%;
  height: min(74vh, 600px);
  aspect-ratio: 800 / 940;
  transform: translate(-50%, -50%);
  opacity: 0;
  z-index: 2;
}
.ac-intro-figure { width: 100%; height: 100%; transform-origin: 55% 100%; }
.ac-intro-figure img { display: block; width: 100%; height: 100%; }

/* The paint pours from the rim of the bucket Cally is holding once she leans. */
.ac-intro-pour {
  position: absolute;
  left: 110%; top: 62%;
  width: 6%; height: 150%;
  opacity: 0;
  overflow: visible;
}
.ac-intro-pour path { stroke-dasharray: 1; stroke-dashoffset: 1; }

.ac-flick {
  position: absolute;
  left: 11%; top: 15%;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--fc);
  opacity: 0;
}

.ac-intro-paint { position: absolute; inset: 0; z-index: 3; pointer-events: none; }
.ac-intro-paint span {
  position: absolute;
  left: var(--x); top: var(--y);
  width: 110vmax; height: 110vmax;
  margin: -55vmax 0 0 -55vmax;
  border-radius: 53% 47% 55% 45% / 48% 54% 46% 52%;
  background: var(--c);
  transform: scale(0);
}

html.ac-intro-playing .ac-intro-cally {
  animation: ac-cally-in calc(0.9s * var(--s)) ease-out both, ac-hide 0.01s both;
  animation-delay: 0s, calc(4.5s * var(--s));
}
html.ac-intro-playing .ac-intro-figure { animation: ac-lean calc(1.5s * var(--s)) ease-in-out both; animation-delay: calc(0.8s * var(--s)); }
html.ac-intro-playing .ac-flick { animation: ac-flick calc(0.9s * var(--s)) ease-out both; animation-delay: calc(1.6s * var(--s)); }
html.ac-intro-playing .ac-intro-pour { animation: ac-pour-show 0.01s both; animation-delay: calc(1.95s * var(--s)); }
html.ac-intro-playing .ac-intro-pour path { animation: ac-pour calc(1.1s * var(--s)) ease-in both; animation-delay: calc(2s * var(--s)); }
html.ac-intro-playing .ac-intro-paint span {
  animation: ac-blob calc(3.1s * var(--s)) ease-in-out both;
  animation-delay: calc((2.7s + var(--i) * 0.09s) * var(--s));
}
html.ac-intro-playing .ac-welcome { animation: ac-intro-bg 0.01s both, ac-failsafe 0.01s 10s forwards; animation-delay: calc(4.6s * var(--s)), 10s; }

@keyframes ac-cally-in {
  from { opacity: 0; transform: translate(calc(-50% - 60px), -50%); }
  to { opacity: 1; transform: translate(-50%, -50%); }
}
@keyframes ac-lean {
  0% { transform: rotate(0deg); }
  55% { transform: rotate(-3deg); }
  100% { transform: rotate(22deg); }
}
@keyframes ac-flick {
  0% { opacity: 0; transform: translate(0, 0) scale(0.4); }
  20% { opacity: 1; }
  100% { opacity: 0; transform: translate(var(--fx), var(--fy)) scale(1.1); }
}
@keyframes ac-pour-show { to { opacity: 1; } }
@keyframes ac-hide { to { opacity: 0; visibility: hidden; } }
@keyframes ac-pour { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes ac-blob {
  0% { transform: scale(0); }
  34% { transform: scale(1); }
  52% { transform: scale(1); }
  100% { transform: scale(0); }
}
@keyframes ac-intro-bg { from { background: #F7F5F0; } to { background: transparent; } }

/* Narrow screens: keep Cally, the bucket and the pour all on screen. */
@media (max-width: 640px) {
  .ac-intro-cally { left: 40%; height: min(68vh, 86vw); }
}

/* ---------- Accessibility settings ----------------------------------------- */

.ac-a11y { position: fixed; left: 16px; bottom: 16px; z-index: 90; font-family: var(--ac-font); }
.ac-a11y-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 52px;
  padding: 0 20px 0 14px;
  border: 3px solid #fff;
  border-radius: 999px;
  background: var(--teal-near-black);
  color: #fff;
  font: 700 0.9375rem var(--ac-font);
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}
.ac-a11y-btn:hover { background: var(--teal-deep); }
.ac-a11y-btn:focus-visible { outline: 3px solid var(--teal-near-black); outline-offset: 3px; }

.ac-a11y-panel {
  position: absolute;
  left: 0; bottom: 64px;
  width: min(350px, calc(100vw - 32px));
  padding: 18px;
  border: 3px solid var(--teal-near-black);
  border-radius: 22px;
  background: #fff;
  color: var(--text-dark);
  box-shadow: 0 14px 44px rgba(0, 0, 0, 0.3);
}
.ac-a11y-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.ac-a11y-head h2 { margin: 0; font-size: 1.25rem; font-weight: 800; color: var(--teal-deep); }
.ac-a11y-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 2px solid #E4EDEB; }
.ac-a11y-row-stack { flex-direction: column; align-items: stretch; }
.ac-a11y-label { display: block; font-weight: 800; font-size: 1rem; }
.ac-a11y-label small { display: block; margin-top: 2px; font-weight: 500; font-size: 0.8125rem; color: #44605E; }

.ac-switch {
  flex: none;
  min-width: 76px;
  min-height: 44px;
  padding: 0 14px;
  border: 3px solid var(--teal-deep);
  border-radius: 999px;
  background: #fff;
  color: var(--teal-deep);
  font: 800 0.9375rem var(--ac-font);
  cursor: pointer;
}
.ac-switch[aria-checked="true"] { background: var(--teal-deep); color: #fff; }
.ac-switch:focus-visible,
.ac-seg button:focus-visible,
.ac-a11y-reset:focus-visible,
.ac-close-small:focus-visible { outline: 3px solid var(--teal-near-black); outline-offset: 3px; }

.ac-seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 8px; }
.ac-seg button {
  min-height: 44px;
  padding: 0 6px;
  border: 3px solid var(--teal-deep);
  border-radius: 12px;
  background: #fff;
  color: var(--teal-deep);
  font: 800 0.875rem var(--ac-font);
  cursor: pointer;
}
.ac-seg button[aria-pressed="true"] { background: var(--teal-deep); color: #fff; }
.ac-a11y-note { margin: 4px 0 10px; font-size: 0.8125rem; color: #44605E; line-height: 1.5; }
.ac-a11y-reset {
  min-height: 44px;
  padding: 0 4px;
  border: 0;
  background: none;
  color: var(--teal-deep);
  font: 800 0.9375rem var(--ac-font);
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}

/* ---------- Text size ------------------------------------------------------ */
html.ac-text-lg { font-size: 118%; }
html.ac-text-xl { font-size: 138%; }

/* ---------- Animations off (visitor setting or device preference) ---------- */
html.ac-no-motion *,
html.ac-no-motion *::before,
html.ac-no-motion *::after {
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
}
html.ac-no-motion .ac-welcome { display: none !important; }
html.ac-no-motion .ac-drawer { transform: none; }
html.ac-no-motion .ac-drawer-cally { opacity: 1; transform: none; }
html.ac-no-motion .ac-splash { display: none; }

/* ---------- High contrast -------------------------------------------------- */
html.ac-contrast .ac-page,
html.ac-contrast .ac-studio,
html.ac-contrast .ac-hero,
html.ac-contrast .ac-panels { background: #fff; color: #000; }
html.ac-contrast .ac-deco,
html.ac-contrast .ac-brushes,
html.ac-contrast .ac-card-art,
html.ac-contrast .ac-panel-brushes,
html.ac-contrast .ac-drawer-cally,
html.ac-contrast .ac-card::before,
html.ac-contrast .ac-card::after { display: none !important; }
html.ac-contrast .ac-intro { color: #000; }
html.ac-contrast .ac-num { border: 3px solid #000; box-shadow: none; }
html.ac-contrast .ac-card-1 .ac-num,
html.ac-contrast .ac-card-4 .ac-num,
html.ac-contrast .ac-card-6 .ac-num { border-color: #fff; }
html.ac-contrast .ac-tagline,
html.ac-contrast .ac-studio-head h2,
html.ac-contrast .ac-studio-head p,
html.ac-contrast .ac-intro-skip { color: #000; }
html.ac-contrast .ac-studio-head p { color: #000; }
html.ac-contrast .ac-status-note { background: #fff; border: 3px solid #000; border-left-width: 8px; color: #000; }
html.ac-contrast .ac-card { border: 4px solid #000; box-shadow: none; background: #fff; color: #000; }
html.ac-contrast .ac-card-1,
html.ac-contrast .ac-card-4,
html.ac-contrast .ac-card-6 { background: #000; color: #fff; border-color: #000; }
html.ac-contrast .ac-pull { color: #fff; }
html.ac-contrast .ac-chips li,
html.ac-contrast .ac-stage { background: #fff; color: #000; border: 3px solid #000; }
html.ac-contrast .ac-card-4 .ac-stage { border-color: #fff; }
html.ac-contrast .ac-open-hint { background: #fff; color: #000; border: 3px solid #000; box-shadow: none; }
html.ac-contrast .ac-coming { background: #fff; color: #000; }
html.ac-contrast .ac-btn { background: #000; color: #fff; border: 3px solid #000; }
html.ac-contrast .ac-btn-text,
html.ac-contrast .ac-panel a { color: #000; }
html.ac-contrast .ac-badge { background: #000; color: #fff; }
html.ac-contrast .ac-drawer { background: #fff; color: #000; }
html.ac-contrast .ac-drawer-bar { background: #000; color: #fff; }
html.ac-contrast .ac-backdrop { background: rgba(0, 0, 0, 0.7); }
html.ac-contrast .ac-panel,
html.ac-contrast .ac-panel h2,
html.ac-contrast .ac-panel h3,
html.ac-contrast .ac-panel-sub,
html.ac-contrast .ac-more summary,
html.ac-contrast .ac-facts-panel dt,

html.ac-contrast .ac-panel-kicker { background: #000 !important; color: #fff !important; }
html.ac-contrast .ac-pull-panel,
html.ac-contrast .ac-callout,
html.ac-contrast .ac-bio-closing,
html.ac-contrast .ac-stop-detail,
html.ac-contrast .ac-joel-photo,
html.ac-contrast .ac-words-slot { background: #fff; border-color: #000; box-shadow: none; }
html.ac-contrast .ac-stop-detail { border-width: 3px; border-style: solid; }
html.ac-contrast .ac-blob { background: #fff; box-shadow: inset 0 0 0 5px #000; color: #000; }
html.ac-contrast .ac-blob::before { display: none; }
html.ac-contrast .ac-connector path { stroke: #000; }
html.ac-contrast .ac-more summary::before,


html.ac-contrast .ac-points li::before { background: #000; }
html.ac-contrast .ac-placeholder-tag,
html.ac-contrast .ac-draft-tag { background: #000 !important; color: #fff !important; }
html.ac-contrast :focus-visible { outline: 4px solid #000 !important; outline-offset: 3px; box-shadow: 0 0 0 7px #fff; }
html.ac-contrast .ac-card-1 :focus-visible,
html.ac-contrast .ac-card-4 :focus-visible,
html.ac-contrast .ac-card-6 :focus-visible { outline-color: #fff !important; box-shadow: 0 0 0 7px #000; }

/* ---------- Responsive adjustments for the new components ------------------ */
@media (max-width: 640px) {
  .ac-drawer-body { padding: 22px 20px 72px; }
  .ac-panel-brushes { margin: 0 -20px 16px; }
  .ac-panel-head { padding-right: 92px; }
  .ac-drawer-cally { width: 84px; }
  .ac-facts-panel { grid-template-columns: 1fr; }
  .ac-stop-detail { margin-left: 72px; }
  .ac-stop:nth-child(even) .ac-stop-detail { margin-right: 72px; }
  .ac-blob { width: 60px; height: 60px; }
  .ac-connector { left: 30px; right: 30px; width: calc(100% - 60px); top: 32px; }
  .ac-stop-name { font-size: 1.1875rem; }
  .ac-a11y-btn span { display: none; }
  .ac-a11y-btn { padding: 0 14px; }
  .ac-open-hint { top: 16px; right: 16px; }
}


/* ==========================================================================
   JOEL'S PORTFOLIO — full-screen exhibition. A contemporary gallery (clean
   walls, museum labels, frames) crossed with an artist's sketchbook (paper,
   tape, paint marks). All content is draft placeholder text/space.
   ========================================================================== */

.jp {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: flex;
  padding: clamp(8px, 2vh, 22px) clamp(8px, 2vw, 28px);
  background: rgba(27, 55, 51, 0.66);
  font-family: var(--ac-font);
  color: var(--text-dark);
  opacity: 0;
  transition: opacity 280ms ease;
}
.jp[hidden] { display: none !important; }
.jp.is-open { opacity: 1; }

.jp-shell {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border-radius: 28px;
  background-color: #F6F0E4;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='220' height='220'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 .35  0 0 0 0 .28  0 0 0 0 .2  0 0 0 .1 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.4);
  transform: translateY(30px) scale(0.985);
  transition: transform 380ms cubic-bezier(0.22, 0.8, 0.26, 1);
  outline: none;
}
.jp.is-open .jp-shell { transform: none; }

.jp-head, .jp-tabs, .jp-stage, .jp-foot { position: relative; z-index: 1; }

.jp-deco { position: absolute; z-index: 0; width: 260px; height: auto; opacity: 0.5; pointer-events: none; }
.jp-deco-a { top: -34px; right: 190px; transform: rotate(-9deg); }
.jp-deco-b { bottom: 24px; left: -90px; transform: rotate(7deg); }

/* Header */
.jp-head { display: flex; align-items: center; gap: 14px; padding: 14px 20px 8px 28px; }
.jp-titleblock { flex: 1; min-width: 0; }
.jp-kicker { margin: 0; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: #8A1236; }
.jp-head h2 { margin: 2px 0 0; font-size: clamp(1.6rem, 3.4vw, 2.4rem); font-weight: 800; line-height: 1.05; color: var(--teal-deep); }
.jp-head h2:focus { outline: none; }
.jp-role { margin: 4px 0 0; font-size: 0.9375rem; font-weight: 700; color: #44605E; }
.jp-cally { flex: none; width: 58px; height: auto; transform: rotate(4deg); opacity: 0; transition: opacity 300ms 300ms, transform 500ms 300ms cubic-bezier(0.3, 1.5, 0.5, 1); }
.jp.is-open .jp-cally { opacity: 1; transform: none; }

/* Tabs */
.jp-tabs { display: flex; gap: 6px; padding: 0 22px 0 24px; border-bottom: 3px solid rgba(30, 58, 56, 0.14); }
.jp-tab {
  position: relative;
  min-height: 52px;
  padding: 0 24px;
  border: 0;
  background: none;
  color: #44605E;
  font: 800 1.0625rem var(--ac-font);
  cursor: pointer;
  border-radius: 14px 14px 0 0;
}
.jp-tab:hover { background: rgba(107, 183, 176, 0.18); }
.jp-tab[aria-selected="true"] { color: var(--teal-near-black); }
.jp-tab::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: -3px;
  height: 9px;
  border-radius: 6px 16px 8px 18px;
  background: linear-gradient(90deg, #6BB7B0, #FF9AAE 60%, #FFD97A);
  transform: rotate(-1deg) scaleX(0);
  transform-origin: left center;
  transition: transform 320ms ease;
}
.jp-tab[aria-selected="true"]::after { transform: rotate(-1deg) scaleX(1); }
.jp-tab:focus-visible { outline: 3px solid var(--teal-near-black); outline-offset: -3px; }

/* Stage */
.jp-stage { flex: 1; min-height: 0; overflow: hidden; }
.jp-panel { position: absolute; inset: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; padding: 18px 26px 12px; outline: none; }
.jp-panel[hidden] { display: none; }
.jp-panel:focus-visible { outline: 3px solid var(--teal-near-black); outline-offset: -6px; border-radius: 10px; }

.jp h3 { margin: 0 0 8px; font-size: clamp(1.25rem, 2.2vw, 1.6rem); font-weight: 800; color: var(--teal-deep); }
.jp h4 { margin: 0 0 6px; font-size: 1.125rem; font-weight: 800; color: var(--teal-deep); }
.jp p { margin: 0 0 10px; line-height: 1.6; }
.jp-lead { font-size: 1.1875rem; font-weight: 600; }

.jp-draft {
  display: inline-block;
  margin: 0 0 10px;
  padding: 3px 10px;
  border-radius: 6px;
  background: #8A1236;
  color: #fff;
  font-size: 0.7rem !important;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.5 !important;
}
.jp-ph-tag {
  display: inline-block;
  margin: 0 0 8px !important;
  padding: 3px 10px;
  border-radius: 6px;
  background: var(--text-dark);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.jp-ph-text { margin: 0 !important; font-weight: 700; }

.jp-btn {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 0 24px;
  border: 3px solid var(--teal-deep);
  border-radius: 999px;
  background: var(--teal-deep);
  color: #fff;
  font: 800 1rem var(--ac-font);
  cursor: pointer;
}
.jp-btn:hover { background: var(--teal-near-black); border-color: var(--teal-near-black); }
.jp-btn-ghost { background: #fff; color: var(--teal-deep); }
.jp-btn-ghost:hover { background: var(--pale-aqua); color: var(--teal-near-black); border-color: var(--teal-near-black); }
.jp-btn:focus-visible {
  outline: 3px solid var(--teal-near-black);
  outline-offset: 3px;
}

/* ---- Tab 1: His Story ---- */
.jp-story { height: 100%; display: grid; grid-template-columns: minmax(200px, 290px) minmax(0, 1fr); gap: 34px; align-items: center; }
.jp-portrait { display: flex; flex-direction: column; align-items: center; }
.jp-photo {
  position: relative;
  width: 100%;
  max-height: 52vh;
  aspect-ratio: 4 / 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 18px;
  text-align: center;
  background: repeating-linear-gradient(135deg, #fff 0 14px, #FFF4F6 14px 28px);
  border: 10px solid #fff;
  box-shadow: 0 12px 30px rgba(30, 58, 56, 0.25), inset 0 0 0 3px #8A1236;
  transform: rotate(-2deg);
}
.jp-tape { position: absolute; top: -18px; width: 78px; height: 26px; background: rgba(255, 217, 122, 0.85); box-shadow: 0 2px 4px rgba(0, 0, 0, 0.15); }
.jp-tape-l { left: -22px; transform: rotate(-38deg); }
.jp-tape-r { right: -22px; transform: rotate(36deg); }
.jp-caption { margin: 14px 0 0 !important; font-size: 1rem; font-weight: 800; color: var(--teal-deep); }

.jp-story-copy { min-width: 0; }
.jp-story-copy .jp-lead { margin-bottom: 8px; }
.jp-labels { list-style: none; margin: 14px 0 16px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.jp-label { position: relative; padding: 14px 14px 6px; background: #fff; border-radius: 4px 16px 4px 16px; border-top: 6px solid var(--lc, #6BB7B0); box-shadow: 0 6px 16px rgba(30, 58, 56, 0.12); }
.jp-label p { font-size: 0.875rem; line-height: 1.5; margin-bottom: 8px; }
.jp-label .jp-label-title { font-size: 0.8125rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; color: var(--teal-deep); margin-bottom: 4px; }
.jp-label-1 { --lc: #6BB7B0; transform: rotate(-0.6deg); }
.jp-label-2 { --lc: #FF9AAE; transform: rotate(0.5deg); }
.jp-label-3 { --lc: #FFD97A; transform: rotate(-0.4deg); }
.jp-actions { margin: 0 !important; }

/* ---- Tab 2: His Art — a gallery wall (all works at once) ---- */
.jp-panel-art { background: linear-gradient(#F4F2EC, #E9E5DB); }
.jp-art { min-height: 100%; }
.jp-draft-inline { margin-bottom: 14px; }
.jp-wallgrid { display: flex; flex-direction: column; gap: 14px; width: 100%; padding: 0 8px 10px; box-sizing: border-box; }
.jp-row { display: flex; justify-content: center; align-items: flex-start; gap: 22px; }
.jp-tile { flex: none; min-width: 0; }
.jp-tile-btn { display: block; width: 100%; padding: 0; border: 0; background: none; text-align: left; font: inherit; color: inherit; cursor: pointer; border-radius: 4px; }
.jp-tile-frame {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: var(--r, 1);
  background: #fff;
  box-shadow: 0 0 0 5px #fff, 0 0 0 7px #2A2A2A, 0 12px 24px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  transition: transform 220ms ease, box-shadow 220ms ease;
}
.jp-tile-frame img { width: 100%; height: 100%; object-fit: contain; display: block; }
.jp-tile-btn:hover .jp-tile-frame { transform: translateY(-4px); box-shadow: 0 0 0 5px #fff, 0 0 0 7px #2A2A2A, 0 18px 30px rgba(0, 0, 0, 0.28); }
.jp-tile-btn:focus-visible { outline: none; }
.jp-tile-btn:focus-visible .jp-tile-frame { outline: 4px solid var(--teal-near-black); outline-offset: 12px; }
.jp-tile-frame.is-placeholder { background: repeating-linear-gradient(135deg, #fff 0 14px, #F3EFF9 14px 28px); box-shadow: 0 0 0 5px #fff, 0 0 0 7px #6152BC, 0 12px 24px rgba(0, 0, 0, 0.16); }
.jp-tile-frame.is-video { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; background: #1B3733; color: #fff; box-shadow: 0 0 0 5px #fff, 0 0 0 7px #FF9AAE, 0 14px 28px rgba(0, 0, 0, 0.3); }
.jp-ph-line { padding: 4px 8px; font-size: 0.8125rem; font-weight: 800; text-align: center; color: #43358F; }
.jp-tile-frame.is-video .jp-ph-line { color: #fff; font-size: 0.9375rem; }
.jp-play { position: relative; display: block; width: 58px; height: 58px; border-radius: 50%; background: #FF9AAE; }
.jp-play::after { content: ""; position: absolute; left: 23px; top: 17px; border-left: 19px solid #1B3733; border-top: 12px solid transparent; border-bottom: 12px solid transparent; }
.jp-tile-label { display: block; margin-top: 16px; }
.jp-tile-title { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font-size: 0.875rem; font-weight: 800; line-height: 1.3; color: var(--text-dark); }
.jp-tile-kind { display: block; font-size: 0.75rem; line-height: 1.3; color: #44605E; }
.jp-tile-video .jp-tile-title { font-size: 1rem; }

/* Full-size viewer */
.jp-lightbox { position: absolute; inset: 0; z-index: 7; display: flex; background: #1F2B29; color: #fff; opacity: 0; transition: opacity 260ms ease; }
.jp-lightbox[hidden] { display: none; }
.jp-lightbox.is-open { opacity: 1; }
.jp-lb-inner { flex: 1; min-width: 0; min-height: 0; display: flex; flex-direction: column; padding: 12px 20px 14px; }
.jp-lb-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.jp-lb-count { margin: 0 !important; font-weight: 800; color: #D8E6E3; }
.jp-lb-stage { flex: 1; min-height: 0; display: flex; align-items: center; gap: 12px; padding: 12px 0; }
.jp-lb-media { flex: 1; min-width: 0; height: 100%; display: flex; align-items: center; justify-content: center; }
.jp-lb-frame { display: grid; place-items: center; overflow: hidden; background: #fff; box-shadow: 0 0 0 6px #F4F2EC, 0 20px 50px rgba(0, 0, 0, 0.5); }
.jp-lb-frame img, .jp-lb-frame video { display: block; width: 100%; height: 100%; object-fit: contain; }
.jp-lb-frame.is-placeholder { background: repeating-linear-gradient(135deg, #fff 0 18px, #F3EFF9 18px 36px); box-shadow: 0 0 0 6px #F4F2EC, 0 0 0 9px #6152BC, 0 20px 50px rgba(0, 0, 0, 0.5); }
.jp-lb-frame p { margin: 0; padding: 14px; text-align: center; font-weight: 800; color: #43358F; }
.jp-lb-nav { flex: none; width: 56px; height: 56px; border: 3px solid #fff; border-radius: 50%; background: transparent; color: #fff; font: 800 1.5rem var(--ac-font); cursor: pointer; }
.jp-lb-nav:hover:not(:disabled) { background: #fff; color: #1F2B29; }
.jp-lb-nav:disabled { opacity: 0.35; cursor: not-allowed; }
.jp-lb-nav:focus-visible { outline: 3px solid #FFD97A; outline-offset: 3px; }
.jp-lb-info { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-top: 6px; }
.jp .jp-lb-text h3 { margin: 0; color: #fff; font-size: clamp(1.125rem, 2.4vw, 1.5rem); }
.jp-lb-text h3:focus { outline: none; }
.jp-lb-kind { margin: 2px 0 0 !important; color: #D8E6E3; }
.jp-lb-notes { margin-top: 10px; padding: 12px 16px 2px; border-radius: 14px; border: 3px solid #FF9AAE; background: #FFF9EC; color: var(--text-dark); }
.jp-lb-notes[hidden] { display: none; }
.jp-lightbox .jp-btn-ghost { border-color: #fff; }

/* ---- Tab 3: His Vision ---- */
.jp-vision { height: 100%; display: flex; flex-direction: column; gap: 12px; }
.jp-vision-head .jp-lead { margin-bottom: 0; }
.jp-cards { flex: 1; min-height: 0; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.jp-card { position: relative; overflow: hidden; padding: 16px 18px 8px 22px; background: #fff; border-radius: 6px 22px 6px 22px; box-shadow: 0 8px 20px rgba(30, 58, 56, 0.13); }
.jp-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 8px; background: var(--cc); }
.jp-card::after { content: ""; position: absolute; right: -28px; top: -28px; width: 84px; height: 84px; border-radius: 50%; background: var(--cc); opacity: 0.22; }
.jp-card p { font-size: 0.9375rem; margin-bottom: 8px; position: relative; z-index: 1; }
.jp-card-1 { --cc: #FFD97A; transform: rotate(-0.4deg); }
.jp-card-2 { --cc: #FF9AAE; transform: rotate(0.4deg); }
.jp-card-3 { --cc: #6BB7B0; transform: rotate(0.3deg); }
.jp-card-4 { --cc: #B7ADF0; transform: rotate(-0.3deg); }
.jp-belief { padding: 12px 20px; border-radius: 6px 22px 6px 22px; background: var(--teal-deep); color: #fff; border-bottom: 6px solid #FFD97A; }
.jp-belief-label { margin: 0 0 2px !important; font-size: 0.75rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: #FFE08A; }
.jp-belief-text { margin: 0 !important; font-size: 1.1875rem; font-weight: 800; line-height: 1.35 !important; }

/* Brush-stroke transition between tabs */
.jp-wipe {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  background: var(--wipe, #6BB7B0);
  border-radius: 0 140px 140px 0 / 0 50% 50% 0;
  box-shadow: -50px 0 0 rgba(255, 255, 255, 0.35);
  transform: translateX(-112%);
}
.jp-wipe.is-wiping { animation: jp-wipe 620ms cubic-bezier(0.6, 0, 0.4, 1) both; }
@keyframes jp-wipe {
  0% { transform: translateX(-112%); }
  45% { transform: translateX(0); }
  55% { transform: translateX(0); }
  100% { transform: translateX(112%); }
}

/* Full biography sheet */
.jp-sheet {
  position: absolute;
  inset: 0;
  z-index: 6;
  overflow-y: auto;
  overscroll-behavior: contain;
  background-color: #F6F0E4;
  transform: translateY(104%);
  transition: transform 340ms cubic-bezier(0.22, 0.8, 0.26, 1);
  border-top: 6px solid #FF9AAE;
}
.jp-sheet[hidden] { display: none; }
.jp-sheet.is-open { transform: none; }
.jp-sheet-inner { max-width: 980px; margin: 0 auto; padding: 18px 26px 28px; }
.jp-sheet-back { margin-bottom: 12px; }
.jp-sheet h3 { font-size: clamp(1.375rem, 2.6vw, 1.875rem); }
.jp-sheet h3:focus { outline: none; }
.jp-bio-full p { margin: 0 0 12px; font-size: 1rem; line-height: 1.65; break-inside: avoid; }
.jp-bio-full .ac-bio-closing { padding: 12px 16px; border-left: 6px solid var(--ac-red); background: #fff; border-radius: 0 14px 14px 0; font-size: 1.0625rem !important; }

.jp-foot-short { display: none; }
.jp-foot { margin: 0; padding: 6px 22px 10px; text-align: center; font-size: 0.75rem; line-height: 1.4; color: #44605E; }

@media (min-width: 1000px) {
  .jp-bio-full { column-count: 2; column-gap: 44px; }
}

/* Tablet and small laptops */
@media (max-width: 1000px) {
  .jp-story { grid-template-columns: minmax(150px, 200px) minmax(0, 1fr); gap: 22px; }
  .jp-photo { max-height: 40vh; }
  .jp-labels { grid-template-columns: 1fr; gap: 8px; margin: 10px 0 12px; }
  .jp-label { padding: 9px 12px 2px; }
  .jp-label p { margin-bottom: 6px; }
}

/* Phones */
@media (max-width: 640px) {
  .jp { padding: 0; }
  .jp-shell { border-radius: 0; }
  .jp-head { padding: 10px 12px 6px 16px; gap: 8px; }
  .jp-kicker { font-size: 0.6875rem; }
  .jp-role { font-size: 0.8125rem; }
  .jp-cally { width: 40px; }
  .jp-tabs { padding: 0 8px; gap: 2px; }
  .jp-tab { flex: 1; padding: 0 4px; font-size: 0.9375rem; min-height: 50px; }
  .jp-panel { padding: 14px 16px 10px; }
  .jp-story { display: block; height: auto; }
  .jp-portrait { flex-direction: row; gap: 14px; align-items: center; margin-bottom: 12px; }
  .jp-photo { width: 104px; flex: none; padding: 6px; border-width: 6px; max-height: none; }
  .jp-photo .jp-ph-text { display: none; }
  .jp-photo .jp-ph-tag { font-size: 0.55rem; padding: 2px 5px; margin: 0 !important; }
  .jp-tape { display: none; }
  .jp-caption { margin: 0 !important; font-size: 1.125rem; }
  .jp-cards { grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .jp-vision { height: auto; }
  .jp-card { padding: 12px 14px 4px 20px; }
  .jp-card p { font-size: 0.875rem; }
  .jp-foot { font-size: 0.6875rem; padding: 4px 12px 8px; }
  .jp-foot-long { display: none; }
  .jp-foot-short { display: inline; }
  .jp-kicker, .jp-cally { display: none; }
  .jp-head h2 { font-size: 1.5rem; }
  .jp-role { margin-top: 2px; }
  .jp-lead { font-size: 1rem; }
  .jp-story-copy h3, .jp-vision-head h3 { display: none; }
  .jp-story-copy > p:not(.jp-lead):not(.jp-draft):not(.jp-actions) { display: none; }
  .jp-row { gap: 18px; }
  .jp-tile-title { font-size: 0.8125rem; }
  .jp-lb-inner { padding: 10px 12px 12px; }
  .jp-lb-stage { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: minmax(0, 1fr) auto; gap: 10px; }
  .jp-lb-media { grid-column: 1 / -1; grid-row: 1; }
  .jp-lb-prev { grid-column: 1; grid-row: 2; justify-self: start; }
  .jp-lb-next { grid-column: 2; grid-row: 2; justify-self: end; }
  .jp-lb-info { flex-direction: column; align-items: stretch; gap: 8px; }
  .jp-vision { gap: 8px; }
  .jp-vision-head .jp-draft { margin-bottom: 6px; }
  .jp-card { padding: 10px 12px 2px 18px; }
  .jp-card h4 { font-size: 1rem; margin-bottom: 3px; }
  .jp-card p { font-size: 0.8125rem; line-height: 1.45; margin-bottom: 6px; }
  .jp-card::after { width: 56px; height: 56px; right: -20px; top: -20px; }
  .jp-belief { padding: 9px 14px; }
  .jp-belief-label { font-size: 0.6875rem; }
  .jp-belief-text { font-size: 1rem; }
  .jp-label p { font-size: 0.8125rem; }
  .jp-deco { display: none; }
  .jp-sheet-inner { padding: 14px 16px 24px; }
}

/* Short laptop screens: tighten so tabs still fit without scrolling */
@media (max-height: 760px) and (min-width: 1001px) {
  .jp-photo { max-height: 44vh; }
  .jp-label p { font-size: 0.8125rem; }
  .jp-card p { font-size: 0.875rem; }
  .jp-panel { padding-top: 12px; }
}

/* Animations off: no stroke, no page turn */
html.ac-no-motion .jp, html.ac-no-motion .jp-shell, html.ac-no-motion .jp-sheet { transition: none !important; }
html.ac-no-motion .jp-wipe { display: none; }
html.ac-no-motion .jp-lightbox { transition: none !important; }

/* High contrast */
html.ac-contrast .jp-shell, html.ac-contrast .jp-sheet { background: #fff; background-image: none; }
html.ac-contrast .jp-deco, html.ac-contrast .jp-cally, html.ac-contrast .jp-tape { display: none; }
html.ac-contrast .jp, html.ac-contrast .jp-head h2, html.ac-contrast .jp h3, html.ac-contrast .jp h4,
html.ac-contrast .jp-role, html.ac-contrast .jp-foot,
html.ac-contrast .jp-caption, html.ac-contrast .jp-label .jp-label-title { color: #000; }
html.ac-contrast .jp-kicker { color: #000; }
html.ac-contrast .jp-tab { color: #000; }
html.ac-contrast .jp-tab[aria-selected="true"]::after { background: #000; }
html.ac-contrast .jp-label, html.ac-contrast .jp-card,
html.ac-contrast .jp-photo { background: #fff; border: 3px solid #000; box-shadow: none; }
html.ac-contrast .jp-card::before, html.ac-contrast .jp-card::after { display: none; }
html.ac-contrast .jp-belief { background: #000; color: #fff; border-bottom-color: #fff; }
html.ac-contrast .jp-belief-label { color: #fff; }
html.ac-contrast .jp-btn { background: #000; border-color: #000; color: #fff; }
html.ac-contrast .jp-btn-ghost { background: #fff; border-color: #000; color: #000; }
html.ac-contrast .jp-draft, html.ac-contrast .jp-ph-tag { background: #000; color: #fff; }
html.ac-contrast .jp-panel-art { background: #fff; }
html.ac-contrast .jp-tile-frame, html.ac-contrast .jp-tile-frame.is-placeholder { background: #fff; box-shadow: 0 0 0 4px #000; }
html.ac-contrast .jp-tile-frame.is-video { background: #000; box-shadow: 0 0 0 4px #000; }
html.ac-contrast .jp-ph-line, html.ac-contrast .jp-tile-title, html.ac-contrast .jp-tile-kind { color: #000; }
html.ac-contrast .jp-tile-frame.is-video .jp-ph-line { color: #fff; }
html.ac-contrast .jp-lightbox { background: #000; }
html.ac-contrast .jp-lb-frame, html.ac-contrast .jp-lb-frame.is-placeholder { background: #fff; box-shadow: 0 0 0 4px #fff; }
html.ac-contrast .jp-lb-frame p { color: #000; }
html.ac-contrast .jp-lb-notes { background: #fff; color: #000; border-color: #fff; }
html.ac-contrast .jp :focus-visible { outline: 4px solid #000 !important; box-shadow: 0 0 0 7px #fff; }


/* ---------- Meet Joel — compact introduction card ---------- */
.ac-joel-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.ac-joel-top .ac-num { margin: 0; }
.ac-joel-avatar-wrap { display: flex; flex-direction: column; align-items: center; gap: 4px; margin-right: 4px; }
.ac-joel-avatar {
  width: 88px; height: 88px;
  display: grid; place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 4px #fff, 0 0 0 7px var(--ac-red), 0 6px 14px rgba(138, 18, 54, 0.25);
}
.ac-joel-avatar svg { width: 76%; height: 76%; fill: #E7B9C4; margin-top: 10px; }
.ac-joel-photo-note { font-size: 0.75rem; font-weight: 700; color: #6B2A3C; }
.ac-joel-sub { margin: 0 0 8px !important; font-size: 1rem !important; font-weight: 800; color: #8A1236; line-height: 1.35 !important; }
.ac-card-5 .ac-cta { display: none; }
html.js .ac-card-5 .ac-cta.ac-open {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  margin: 8px 0 0;
  padding: 0 26px;
  border: 3px solid var(--teal-deep);
  border-radius: 999px;
  background: var(--teal-deep);
  color: #fff;
  font: 800 1.0625rem var(--ac-font);
  cursor: pointer;
  box-shadow: 0 5px 0 rgba(27, 55, 51, 0.25);
  transition: background 200ms, transform 200ms;
}
html.js .ac-card-5.is-interactive:hover .ac-cta { background: var(--teal-near-black); border-color: var(--teal-near-black); }
.ac-card-art-5 { position: absolute; right: -16%; bottom: -14px; width: 66%; height: auto; opacity: 0.55; transform: rotate(-7deg); pointer-events: none; }
html.ac-contrast .ac-card-5 .ac-joel-sub, html.ac-contrast .ac-joel-photo-note { color: #000; }
html.ac-contrast .ac-joel-avatar { box-shadow: 0 0 0 4px #000; }
html.ac-contrast.js .ac-card-5 .ac-cta.ac-open { background: #000; border-color: #000; color: #fff; }

/* Pilot box is now a full-width band: show all six stages in one row. */
@media (min-width: 1001px) {
  .ac-card-4 .ac-stages { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .ac-card-4 .ac-stage { padding-right: 10px; font-size: 0.8125rem; letter-spacing: 0.01em; }
  .ac-card-4 article > p:not(.ac-num) { max-width: 62ch; }
}

/* Motion ------------------------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  * {
    transition: none !important;
    animation: none !important;
  }
}


/* ==========================================================================
   Joel's portfolio — real work (photo, exhibition film, gallery)
   ========================================================================== */

/* His Story: the supplied portrait, shown whole (3:4, never stretched) */
.jp-photo.has-photo {
  aspect-ratio: 3 / 4;
  max-height: 56vh;
  padding: 0;
  border: 8px solid #fff;
  background: #fff;
  transform: none;
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(30, 58, 56, 0.28), 14px 14px 0 #FFC4D0;
}
.jp-photo.has-photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ac-joel-avatar img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 28%; border-radius: 50%; }

/* His Art: a contemporary digital exhibition — a dark gallery, lit works, museum labels */
.jp-panel-art {
  background:
    radial-gradient(ellipse 60% 38% at 50% 0%, rgba(255, 244, 214, 0.20), transparent 70%),
    linear-gradient(#18221F, #222E2B);
  color: #E9F1EF;
}
.jp-panel-art .jp-draft { background: #FFD97A; color: #1B3733; }
.jp-art { padding: 4px 4px 24px; }
.jp-feature { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 30px; align-items: center; margin: 6px 0 34px; padding: 22px; border-radius: 26px; background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.14); }
.jp-feature-media { position: relative; border-radius: 10px; background: #000; box-shadow: 0 0 0 7px #F7F4EE, 0 24px 50px rgba(0, 0, 0, 0.55); overflow: hidden; }
.jp-feature-media video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #000; }
.jp-feature-media video:focus-visible { outline: 4px solid #FFD97A; outline-offset: 4px; }
.jp-feature-copy { min-width: 0; }
.jp-panel-art .jp-feature-kicker { margin: 0 0 6px !important; font-size: 0.8125rem; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: #FFD97A; }
.jp-panel-art .jp-feature-copy h3 { margin: 0 0 10px; font-size: clamp(1.375rem, 2.4vw, 2rem); line-height: 1.15; color: #fff; }
.jp-panel-art .jp-feature-note { margin: 0 0 12px !important; font-size: 0.9375rem; color: #D5E4E1; }
.jp-transcript { margin: 0 0 12px; border-radius: 12px; background: rgba(255, 255, 255, 0.08); }
.jp-transcript summary { min-height: 44px; display: flex; align-items: center; padding: 0 14px; font-weight: 800; color: #fff; cursor: pointer; }
.jp-transcript summary:focus-visible { outline: 3px solid #FFD97A; outline-offset: 2px; }
.jp-transcript p { margin: 0 !important; padding: 0 14px 12px; font-size: 0.9375rem; color: #D5E4E1; }
.jp-panel-art .jp-flag { margin: 0 !important; padding: 9px 12px; border-left: 6px solid #FF9AAE; border-radius: 0 10px 10px 0; background: rgba(255, 154, 174, 0.14); font-size: 0.875rem; line-height: 1.45; color: #FFE4EA; }
.jp-panel-art .jp-wall-title { margin: 0 0 18px; font-size: 0.875rem; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; color: #CFE0DC; }
.jp-wallgrid { gap: 44px; padding: 0 12px 10px; }
.jp-row { gap: 44px; }
.jp-tile-frame {
  background: #fff;
  box-shadow: 0 0 0 9px #F7F4EE, 0 22px 42px rgba(0, 0, 0, 0.6), 0 0 80px rgba(255, 236, 190, 0.07);
}
.jp-tile-btn:hover .jp-tile-frame { transform: translateY(-5px); box-shadow: 0 0 0 9px #F7F4EE, 0 30px 52px rgba(0, 0, 0, 0.65), 0 0 90px rgba(255, 236, 190, 0.14); }
.jp-tile-btn:focus-visible .jp-tile-frame { outline: 4px solid #FFD97A; outline-offset: 16px; }
.jp-tile-label { margin-top: 20px; }
.jp-tile-title { font-size: 0.8125rem; font-weight: 800; letter-spacing: 0.04em; color: #fff; }
.jp-tile-kind { font-size: 0.75rem; color: #BFD3CF; }

@media (max-width: 820px) {
  .jp-feature { grid-template-columns: 1fr; gap: 18px; padding: 14px; }
}
@media (max-width: 640px) {
  .jp-photo.has-photo { width: 120px; border-width: 5px; box-shadow: 0 8px 18px rgba(30, 58, 56, 0.28), 7px 7px 0 #FFC4D0; }
  .jp-wallgrid, .jp-row { gap: 30px; }
  .jp-feature { margin-bottom: 24px; }
}
html.ac-contrast .jp-panel-art { background: #000; color: #fff; }
html.ac-contrast .jp-feature { box-shadow: inset 0 0 0 3px #fff; background: #000; }

.jp-lb-info .jp-btn[hidden] { display: none; }

/* Footer logo (white + gold version, on the dark footer): natural proportions, never stretched. */
.footer-brand .footer-logo {
  display: block;
  width: min(260px, 100%);
  height: auto;
  aspect-ratio: 992 / 175;
  object-fit: contain;
  margin: 0 0 14px;
}

/* Keep the whole logo inside its link: nothing here clips it, and it has a little room around it. */
.brand-link {
  overflow: visible;
  padding: 2px 0;
}

/* ==========================================================================
   Footer refinements (launch pass): same dark-teal, four-column footer, with
   wider contact column (so email addresses never break mid-word), labelled
   email lines, roomier touch targets, and a painted edge joining it to the
   section above.
   ========================================================================== */
.site-footer { position: relative; margin-top: 0; padding: 72px 24px 28px; border-top: 0; }
.site-footer::before, .site-footer::after { content: ""; position: absolute; left: 0; right: 0; height: 40px; pointer-events: none; -webkit-mask: url(/assets/footer-edge.svg) 0 0 / 100% 100% no-repeat; mask: url(/assets/footer-edge.svg) 0 0 / 100% 100% no-repeat; }
.site-footer::after { top: -37px; background: var(--teal-near-black, #1B3733); }
.site-footer::before { top: -43px; background: var(--mustard, #D9A441); opacity: 0.85; transform: scaleX(-1); }
.footer-inner { grid-template-columns: 1.15fr 0.85fr 1.05fr 1.45fr; gap: 28px 36px; }
.footer-col a { display: inline-flex; align-items: center; min-height: 32px; overflow-wrap: normal; word-break: normal; }
.footer-col a:hover { text-decoration: underline; text-underline-offset: 3px; }
.footer-email-label { margin: 6px 0 0; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; color: var(--pale-aqua); opacity: 0.9; }
.footer-email { margin: 0 0 4px; }
.footer-email a { display: inline-block; max-width: 100%; padding: 4px 0; min-height: 32px; font-size: 0.9375rem; font-weight: 600; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, 0.35); text-underline-offset: 4px; overflow-wrap: normal; word-break: normal; }
.footer-email .ed { white-space: nowrap; }
.footer-social { margin-top: 10px; }
.footer-social a { width: 44px; height: 44px; min-height: 44px; }
.footer-social svg { width: 20px; height: 20px; }
.footer-copyright { margin: 0; }
.footer-bottom-links a { display: inline-flex; align-items: center; min-height: 32px; }
.site-footer a:focus-visible { outline: 3px solid var(--white); outline-offset: 3px; border-radius: 4px; }
@media (max-width: 980px) {
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; margin-bottom: 4px; }
  .footer-contact { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .site-footer { padding: 60px 20px 24px; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 24px 20px; }
  .footer-logo { width: min(240px, 100%); }
}
@media (max-width: 400px) {
  .footer-inner { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .footer-social a, .footer-col a { transition: none; } }

/* ---------- Art Collective navigation: hand-painted rainbow stroke + NEW! badge (launch refinement) ---------- */
.primary-nav a.nav-ac { position: relative; }
.nav-ac-text { position: relative; display: inline-block; }
.nav-ac-text::after {
  content: "";
  position: absolute;
  left: -3px;
  right: -3px;
  bottom: -6px;
  height: 8px;
  background: url("/assets/nav-rainbow.svg") center / 100% 100% no-repeat;
  pointer-events: none;
}
.nav-new {
  position: absolute;
  top: -8px;
  right: -9px;
  padding: 3px 6px 2px;
  border-radius: 999px;
  background: var(--mustard, #D9A441);
  color: #1B3733;
  font-family: inherit;
  font-size: 0.6875rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.05em;
  white-space: nowrap;
  transform: rotate(-4deg);
  box-shadow: 0 1px 0 rgba(27, 55, 51, 0.28);
  pointer-events: none;
}
@media (max-width: 900px) {
  .primary-nav a.nav-ac { gap: 10px; }
  .nav-new { position: static; transform: none; }
  .nav-ac-text::after { bottom: -4px; }
}
@media (forced-colors: active) {
  .nav-new { border: 1px solid CanvasText; }
  .nav-ac-text::after { display: none; }
}

/* ---------- Meet Joel: portrait first, his artwork layered behind (launch refinement) ---------- */
.ac-joel-stage { position: relative; z-index: 1; height: 276px; margin: 0 0 22px; }
.ac-joel-stage .ac-num { position: absolute; top: 0; left: 0; margin: 0; z-index: 4; }
.ac-joel-stage::before { content: ""; position: absolute; right: -4px; bottom: 10px; width: 92px; height: 92px; border-radius: 50%; background: var(--ac-gold, #D9A340); opacity: 0.42; z-index: 0; pointer-events: none; }
.ac-joel-art {
  position: absolute; top: 14px; right: 0; z-index: 1;
  width: 64%; height: auto; aspect-ratio: 480 / 340; object-fit: cover;
  border: 6px solid #fff; border-radius: 14px;
  transform: rotate(4deg);
  box-shadow: 0 10px 22px rgba(138, 18, 54, 0.22);
}
.ac-joel-portrait {
  position: absolute; left: 7%; bottom: 0; z-index: 3;
  width: 47%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 30%;
  border: 6px solid #fff; border-radius: 999px 999px 26px 26px;
  box-shadow: 0 14px 28px rgba(138, 18, 54, 0.3), 0 0 0 3px var(--ac-red, #F63C5C);
}
.ac-card-5 .ac-joel-sub { margin-top: 2px; }
@media (max-width: 640px) {
  .ac-joel-stage { height: 232px; }
}
@media (max-width: 380px) {
  .ac-joel-stage { height: 208px; }
}
html.ac-contrast .ac-joel-art, html.ac-contrast .ac-joel-portrait { border-color: #000; box-shadow: none; }
html.ac-contrast .ac-joel-stage::before { display: none; }
