/* Expressive geometric type at its natural, compact proportions, with
   precise rules and softly feathered photography around the constellation. */
@font-face {
  font-family: "Syne";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/Syne-600.woff2") format("woff2");
}
@font-face {
  font-family: "Syne";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("fonts/Syne-700.woff2") format("woff2");
}

:root {
  --uww-display: "Syne", "Space Grotesk", sans-serif;
  --uww-reading: "Space Grotesk", "Poppins", sans-serif;
  --type-display: var(--uww-display);
  --type-body: var(--uww-reading);
  --uww-rule: rgba(255, 253, 247, 0.24);
  --uww-rule-soft: rgba(255, 253, 247, 0.14);
}

html body { font-family: var(--uww-reading); }

/* One heading system; Events keeps the compact size requested earlier. */
html body #projects .projects-index-hero h1,
html body #anthology .anthology-shop-hero h1,
html body #about .about-story-hero h1,
html body #blog .blog-header h1 {
  max-width: 100% !important;
  margin: 0 0 1.15rem !important;
  color: var(--award-paper) !important;
  font-family: var(--uww-display) !important;
  font-size: clamp(3.25rem, 7.5vw, 7rem) !important;
  font-weight: 600 !important;
  font-style: normal !important;
  line-height: 0.98 !important;
  letter-spacing: -0.055em !important;
  text-wrap: balance;
  text-shadow: none !important;
}
html body #events .events-header h1 {
  font-family: var(--uww-display) !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  letter-spacing: -0.045em !important;
  text-shadow: none !important;
}
html body #events .events-header {
  margin-bottom: clamp(2rem, 4.5vw, 4rem) !important;
  padding-bottom: 0 !important;
  border-bottom: 0 !important;
}

html body #projects .project-chapter-header h2,
html body #about .about-block-heading h2,
html body #about .about-who-heading h2,
html body #about .foundation-guideline-header h2,
html body #anthology .anthology-product-copy h2 {
  max-width: 22ch !important;
  font-family: var(--uww-display) !important;
  font-size: clamp(1.9rem, 4vw, 3.75rem) !important;
  font-weight: 600 !important;
  font-style: normal !important;
  line-height: 1.06 !important;
  letter-spacing: -0.04em !important;
  text-wrap: balance;
}
html body #about .about-motto-chapter .about-block-heading h2 {
  font-family: var(--uww-display) !important;
  font-size: clamp(2rem, 4.6vw, 4.25rem) !important;
  font-weight: 600 !important;
  font-style: normal !important;
  line-height: 1.05 !important;
  letter-spacing: -0.045em !important;
}
html body #events .event-copy h2,
html body #blog .news-card h2 {
  font-family: var(--uww-display) !important;
  font-size: clamp(1.65rem, 2.8vw, 3rem) !important;
  font-weight: 600 !important;
  line-height: 1.1 !important;
  letter-spacing: -0.04em !important;
  text-wrap: balance;
  transform: none !important;
}
html body .about-intro,
html body .about-prose p,
html body .about-who-copy p,
html body .project-chapter-body p,
html body .project-summary,
html body .event-description,
html body .blog-intro,
html body .news-card p,
html body .anthology-product-description,
html body .anthology-shop-intro {
  font-family: var(--uww-reading) !important;
  line-height: 1.65 !important;
}

/* A shared left edge for editorial text; photographs sit on the central axis. */
html body #projects.projects-section { padding-top: 0 !important; }
html body #projects > .projects-content {
  padding-top: calc(var(--header-height) + 0.25rem) !important;
}
html body #projects .projects-index-hero {
  width: 100%;
  max-width: none !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding-top: 0 !important;
  padding-bottom: clamp(1.5rem, 3vw, 2.5rem) !important;
  text-align: left;
}
html body #projects .projects-index-hero > p { margin-inline: 0 !important; }
html body #projects .project-chapter-header {
  width: 100% !important;
  grid-template-columns: minmax(0, 1fr) !important;
  margin-inline: 0 !important;
  text-align: left;
}
html body #projects .project-chapter-header h2 {
  margin-inline: 0 !important;
}
html body #projects .project-summary {
  max-width: 60ch !important;
  margin-inline: 0 !important;
}
html body #projects .project-chapter-body,
html body #projects .project-primary-actions {
  box-sizing: border-box;
  width: 100% !important;
  max-width: none !important;
  margin-right: 0 !important;
  margin-left: 0 !important;
}
html body #projects .project-chapter-body > p,
html body #projects .project-subsection > p {
  max-width: 70ch;
  margin-right: auto !important;
  margin-left: 0 !important;
  text-align: left;
}
html body #projects .project-subsection h3 { text-align: left; }
html body #projects .project-image-slot {
  width: min(86%, 900px) !important;
  margin-right: auto !important;
  margin-left: auto !important;
}
html body #projects .project-image-slot img { object-position: center !important; }
html body #projects .project-primary-actions { justify-content: flex-start; }
html body #projects .project-primary-action { max-width: 30rem; }
html body #projects .project-section-link {
  display: flex !important;
  width: fit-content !important;
  max-width: 100%;
  margin-left: 0 !important;
  margin-right: auto !important;
}

/* Aligned navigation rows, with just the project title and arrow. */
html body #projects .projects-index {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 0 !important;
  border-top: 1px solid var(--uww-rule) !important;
  border-bottom: 1px solid var(--uww-rule) !important;
  margin-bottom: clamp(3rem, 7vw, 6rem) !important;
}
html body #projects .projects-index a {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-rows: minmax(2.5rem, 1fr) auto;
  align-items: start !important;
  gap: 1rem !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 8rem !important;
  padding: 1.25rem !important;
  border: 0 !important;
  border-right: 1px solid var(--uww-rule-soft) !important;
  border-radius: 0 !important;
  background: transparent;
  transform: none !important;
  transition: background-color 220ms ease;
}
html body #projects .projects-index a:last-child { border-right: 0 !important; }
html body #projects .projects-index a:hover { background: rgba(255, 255, 255, 0.04); }
html body #projects .projects-index strong {
  align-self: center;
  margin: 0 !important;
  font-family: var(--uww-display) !important;
  font-size: clamp(1.05rem, 1.7vw, 1.5rem) !important;
  font-weight: 600 !important;
  line-height: 1.18 !important;
  letter-spacing: -0.025em;
  overflow-wrap: normal !important;
  text-align: center;
}
html body #projects .projects-index i { justify-self: end; align-self: end; }

/* Raw, consistent controls; colour is reserved for the scene and artwork. */
html body #projects .project-primary-action,
html body #projects .project-section-link,
html body .open-mic-tickets,
html body #anthology .anthology-buy-button {
  box-sizing: border-box;
  min-height: 48px !important;
  border: 1px solid rgba(255, 253, 247, 0.65) !important;
  border-radius: 0 !important;
  padding: 0.85rem 1.1rem !important;
  background: transparent !important;
  color: var(--award-paper) !important;
  font-family: var(--uww-reading) !important;
  font-size: 0.78rem !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
  letter-spacing: 0.07em !important;
  text-transform: uppercase;
  box-shadow: none !important;
  animation: none !important;
  transform: none !important;
  transition: color 220ms ease, background-color 220ms ease, box-shadow 220ms ease !important;
}
html body #projects .project-primary-action:hover,
html body #projects .project-primary-action:focus-visible,
html body #projects .project-section-link:hover,
html body #projects .project-section-link:focus-visible,
html body .open-mic-tickets:hover,
html body .open-mic-tickets:focus-visible,
html body #anthology .anthology-buy-button:hover,
html body #anthology .anthology-buy-button:focus-visible {
  border-color: var(--award-paper) !important;
  background: var(--award-paper) !important;
  color: var(--award-ink) !important;
  box-shadow: 0 0 22px rgba(255, 255, 255, 0.12) !important;
  animation: none !important;
  transform: none !important;
}
html body #anthology .anthology-buy-primary {
  background: var(--award-paper) !important;
  color: var(--award-ink) !important;
}
html body #anthology .anthology-buy-primary::before,
html body #anthology .anthology-buy-primary::after {
  content: none !important;
  display: none !important;
}
html body .open-mic-tickets span { color: inherit !important; }
html body #projects .project-primary-action:hover span,
html body #projects .project-section-link:hover span {
  transform: translateX(0.2rem) !important;
}

/* Registration reads as a precise programme, without extra labels or counts. */
html body .open-mic-registration { margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }
html body .open-mic-registration h2 {
  font-family: var(--uww-display);
  font-size: clamp(2rem, 4.6vw, 4rem);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.045em;
}
html body .open-mic-registration h2 em {
  font-family: inherit;
  font-weight: inherit;
  font-style: normal;
}
html body .registration-city {
  font-family: var(--uww-display);
  font-size: clamp(1.25rem, 1.8vw, 1.75rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.03em;
}
html body .registration-date {
  font-family: var(--uww-reading);
  font-size: 0.82rem;
  font-variant-numeric: tabular-nums;
}
html body .open-mic-links .open-mic-cta { font-family: var(--uww-reading); }
html body .open-mic-links a:hover strong { color: var(--award-paper); }

/* Open editorial news rows, with the existing image assets untouched. */
html body #blog .news-card {
  padding: 1.25rem 0 !important;
  border: 0 !important;
  border-top: 1px solid var(--uww-rule) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}
html body #blog .news-card.has-image .news-card-body { padding: 1.1rem 0 0 !important; }
html body #blog .news-card-image { border-radius: 0 !important; }
html body #blog .news-filter {
  min-height: 44px;
  border-radius: 0 !important;
  font-family: var(--uww-reading);
  font-weight: 500;
}
html body #blog .news-filter.is-active {
  border-color: var(--award-paper) !important;
  background: var(--award-paper) !important;
  color: var(--award-ink) !important;
}

/* Render photographs directly, without an external mask dependency. */
html body #about .about-feature-image.about-story-image,
html body #about .about-story-gallery figure,
html body :is(#about, #projects) .project-image-slot.has-image {
  --uww-photo-radius: clamp(28px, 4vw, 60px);
  position: relative;
  isolation: isolate;
  overflow: visible !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: var(--uww-photo-radius) !important;
  background: transparent !important;
  box-shadow: none !important;
}
html body #about .about-feature-image.about-story-image img,
html body #about .about-story-gallery figure img,
html body :is(#about, #projects) .project-image-slot.has-image img {
  display: block;
  border-radius: inherit !important;
  /* Failed mask loads make an image fully transparent. Native corners keep
     every photo visible in local previews and on static hosts. */
  -webkit-mask: none !important;
  mask: none !important;
  opacity: 1 !important;
  visibility: visible !important;
}
html body #about .about-feature-image.about-story-image::before,
html body #about .about-story-gallery figure::before,
html body :is(#about, #projects) .project-image-slot.has-image::before {
  content: "" !important;
  display: block !important;
  position: absolute;
  inset: -0.4rem;
  z-index: -1;
  border: 0 !important;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0.7;
  background:
    radial-gradient(ellipse at 16% 34%, rgba(138, 185, 255, 0.2), transparent 58%),
    radial-gradient(ellipse at 84% 65%, rgba(218, 156, 255, 0.18), transparent 58%),
    radial-gradient(ellipse at 50% 50%, rgba(255, 253, 247, 0.1), transparent 72%);
  filter: blur(clamp(0.75rem, 2vw, 1.5rem));
}
html body #anthology .anthology-product-visual {
  border-radius: 0 !important;
  box-shadow: none !important;
}

/* The menu and hover previews use the same expressive geometric language. */
.experience-index__hero,
.experience-index__hero em {
  font-family: var(--uww-display) !important;
  font-size: clamp(2.15rem, 4.5vw, 4.2rem);
  font-style: normal !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  letter-spacing: -0.05em !important;
}
.experience-index__nav strong { font-family: var(--uww-display); font-weight: 600; }
.voice-constellation__line {
  max-width: 18ch;
  font-family: var(--uww-display);
  font-size: clamp(1.15rem, 1.75vw, 1.75rem);
  font-style: normal;
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: -0.025em;
}

/* A balanced page ending, with the approved white hover glow retained. */
.site-footer-columns { width: min(100%, 52rem); }
.site-footer-column h2 { font-family: var(--uww-reading); font-weight: 600; }
.site-footer-column a,
.site-footer-column button { min-height: 44px; font-family: var(--uww-reading); }
.site-footer-tooltip__line {
  font-family: var(--uww-display);
  font-size: 1.25rem;
  font-style: normal;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.025em;
}
html body #events .footer-newsletter h2 {
  max-width: 100% !important;
  font-family: var(--uww-display) !important;
  font-size: clamp(2rem, 4vw, 4rem) !important;
  font-weight: 600 !important;
  line-height: 1.06 !important;
  letter-spacing: -0.045em !important;
}
html body #events .footer-newsletter h2 em {
  font-family: inherit;
  font-style: normal;
  font-weight: inherit;
  letter-spacing: inherit;
  transform: none;
}
html body #events .footer-newsletter-fields input { font-family: var(--uww-reading); }
html body #events .footer-newsletter-submit {
  border-radius: 0 !important;
  font-family: var(--uww-reading);
  font-weight: 600;
}
html body #events .footer-newsletter-submit:hover,
html body #events .footer-newsletter-submit:focus-visible {
  border-color: var(--award-paper) !important;
  background: var(--award-paper) !important;
  color: var(--award-ink) !important;
  box-shadow: 0 0 22px rgba(255, 255, 255, 0.15) !important;
}
html body #events .footer-newsletter-submit span:last-child { border: 0 !important; }

/* Focus remains visible independently of the custom cursor and mouse hover. */
html body #projects .projects-index a:focus-visible,
html body #projects .project-primary-action:focus-visible,
html body #projects .project-section-link:focus-visible,
html body .open-mic-tickets:focus-visible,
html body .open-mic-links a:focus-visible,
html body #anthology .anthology-buy-button:focus-visible,
html body #blog .news-filter:focus-visible {
  outline: 2px solid var(--award-paper) !important;
  outline-offset: 4px !important;
}

@media (max-width: 900px) {
  html body #projects .project-image-slot { width: 100% !important; }
  html body #projects .projects-index-hero h1,
  html body #anthology .anthology-shop-hero h1,
  html body #about .about-story-hero h1,
  html body #blog .blog-header h1 {
    font-size: clamp(2.25rem, 7.8vw, 4.5rem) !important;
    font-weight: 600 !important;
    line-height: 1.03 !important;
    letter-spacing: -0.04em !important;
  }
  html body #events .event-copy h2,
  html body #blog .news-card h2 {
    font-size: clamp(1.45rem, 5.8vw, 2.4rem) !important;
  }
  html body #projects .projects-index { grid-template-columns: minmax(0, 1fr) !important; }
  html body #projects .projects-index a {
    grid-template-columns: minmax(0, 1fr) 1.5rem !important;
    grid-template-rows: auto;
    align-items: center !important;
    min-height: 4.5rem !important;
    gap: 0.75rem !important;
    padding: 0.95rem 0 !important;
    border-right: 0 !important;
    border-bottom: 1px solid var(--uww-rule-soft) !important;
  }
  html body #projects .projects-index a:last-child { border-bottom: 0 !important; }
  html body #projects .projects-index strong { font-size: clamp(1.05rem, 3.2vw, 1.4rem) !important; }
  html body #projects .projects-index i { align-self: center; }
  html body #projects .project-chapter-header h2,
  html body #about .about-block-heading h2,
  html body #about .about-who-heading h2,
  html body #about .foundation-guideline-header h2,
  html body #anthology .anthology-product-copy h2 {
    font-size: clamp(1.65rem, 5.5vw, 2.5rem) !important;
    line-height: 1.12 !important;
  }
  html body #about .about-motto-chapter .about-block-heading h2 {
    font-size: clamp(1.8rem, 6vw, 3rem) !important;
    line-height: 1.1 !important;
  }
  html body .open-mic-registration h2 { font-size: clamp(1.8rem, 6.4vw, 3rem); }
  html body .registration-city { font-size: clamp(1.1rem, 3.6vw, 1.6rem); }
}

@media (max-width: 560px) {
  html body #projects .project-primary-actions { gap: 0.65rem; }
  html body #projects .project-primary-action,
  html body #projects .project-section-link {
    width: 100% !important;
    max-width: none !important;
    justify-content: space-between;
  }
  html body .registration-city { font-size: clamp(1rem, 4.3vw, 1.35rem); }
}

@media (max-height: 600px) and (orientation: landscape) {
  .experience-index__hero,
  .experience-index__hero em { font-size: clamp(1.75rem, 7vh, 2.5rem); }
}

@media (prefers-reduced-motion: reduce) {
  html body #projects .projects-index a,
  html body #projects .project-primary-action,
  html body #projects .project-section-link,
  html body #projects .project-primary-action span,
  html body #projects .project-section-link span,
  html body .open-mic-tickets,
  html body #anthology .anthology-buy-button {
    transition: none !important;
    animation: none !important;
  }
}


/* Final navigation and mobile reading fixes. */
/* Keep the descriptive hover panel; hide only its repeated title/action row. */
html body #home .voice-constellation__route {
  display: none !important;
}

@media (max-width: 900px), (max-width: 1024px) and (max-height: 600px) {
  /* The wrapper reserves the header once; the Anthology hero adds no second gap. */
  html body #anthology > .anthology-content {
    padding-top: max(7rem, calc(var(--mobile-header-height) - 0.75rem)) !important;
  }
  html body #anthology .anthology-shop-hero {
    min-height: 0 !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
    justify-content: flex-start !important;
  }

  /* The fixed page is the sole scroll container. Its content stays in flow. */
  html body #projects.projects-section:not([hidden]) {
    height: 100dvh !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior-y: contain !important;
    -webkit-overflow-scrolling: touch !important;
    touch-action: pan-y pinch-zoom !important;
    scroll-snap-type: none !important;
  }
  html body #projects > .projects-content {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
    transform: none !important;
  }
  /* Use real chapter heights while swiping, rather than changing estimates. */
  html body #projects .project-chapter {
    content-visibility: visible !important;
    contain-intrinsic-size: none !important;
  }
}


/* The canvas owns the atmosphere; use the Events base colour before it paints. */
html body #home.scene-section {
  background: #07070c !important;
}

html body #home.infinite-constellation #organic-canvas {
  filter: none !important;
}

/* The broad desktop vignette was dimming the white particle cores. */
@media (min-width: 901px) and (min-height: 601px) {
  html body #home.scene-section > .vignette {
    opacity: 0.42 !important;
  }
}


/* Match the mobile scene's last pixels to Events. Fade only the painted
   layers, keeping the Events link and all navigation controls fully visible. */
@media (max-width: 900px), (max-width: 1024px) and (max-height: 600px) {
  html body #home.scene-section {
    --uww-scene-fade: clamp(3rem, 12svh, 8rem);
    --uww-scene-fade-half: clamp(1.5rem, 6svh, 4rem);
    margin-bottom: 0 !important;
    border-bottom: 0 !important;
    box-shadow: none !important;
  }

  html body #home #organic-canvas,
  html body #home > .vignette,
  html body #home > .orb-focus-vignette {
    -webkit-mask-image: linear-gradient(
      to bottom,
      #000 0,
      #000 calc(100% - var(--uww-scene-fade)),
      rgba(0, 0, 0, 0.75) calc(100% - var(--uww-scene-fade-half)),
      transparent 100%
    ) !important;
    mask-image: linear-gradient(
      to bottom,
      #000 0,
      #000 calc(100% - var(--uww-scene-fade)),
      rgba(0, 0, 0, 0.75) calc(100% - var(--uww-scene-fade-half)),
      transparent 100%
    ) !important;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
  }

  html body #home.scene-section::before,
  html body #home.scene-section::after {
    content: none !important;
    display: none !important;
  }

  html body #events.events-section {
    border-top: 0 !important;
    box-shadow: none !important;
  }
}
