/* ============================================================
   Data Sonification Awards
   Design tokens
   ============================================================ */
:root {
  --ink: #111114;
  --ink-soft: #3a3a42;
  --muted: #6c6c77;
  --paper: #ffffff;
  --bg-soft: #f4f4f8;
  --bg-dark: #000000;
  --line: #e6e6ee;

  --accent: #605ffc;
  --accent-ink: #4a48e8;

  /* Category colours: arts = pink, communication = blue, analysis = green */
  --arts: #ec5a93;
  --comm: #4f8ff5;
  --analysis: #2ec27e;

  --maxw: 1140px;
  --radius: 0;
  --space: clamp(3.5rem, 8vw, 7rem);

  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* ============================================================
   Reset & base
   ============================================================ */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}

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

a {
  color: var(--accent-ink);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--ink);
}

h1,
h2,
h3 {
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0 0 0.6em;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 5vw, 2.5rem);
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ink);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 200;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  padding: 0.85rem 1.6rem;
  border-radius: 0;
  text-decoration: none;
  transition: background 0.15s ease;
}
.btn:hover {
  background: var(--accent-ink);
  color: #fff;
}
.btn-outline {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink);
}
.btn-outline:hover {
  background: var(--ink);
  color: #fff;
}

/* ============================================================
   Brand wordmark
   ============================================================ */
.brand,
.footer-brand {
  display: inline-flex;
  flex-direction: column;
  font-weight: 300;
  letter-spacing: 0.06em;
  line-height: 1.05;
  text-decoration: none;
  text-transform: uppercase;
}
.brand {
  color: #fff;
  font-size: 1rem;
}
.brand:hover {
  color: #fff;
  opacity: 0.85;
}
.brand-line {
  display: block;
}

/* ============================================================
   Header / navigation
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-dark);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}
.site-header.is-scrolled {
  border-bottom-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.35);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 72px;
}

/* Direct child only, so this does NOT also match the .sub dropdown lists. */
.primary-nav > ul {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  padding: 0;
}
.primary-nav a,
.sub-trigger {
  display: inline-block;
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0.5rem 0.85rem;
  border-radius: 0;
  text-decoration: none;
  white-space: nowrap;
}
.primary-nav a:hover,
.primary-nav a:focus-visible,
.sub-trigger:hover,
.has-sub:focus-within > .sub-trigger {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.has-sub {
  position: relative;
}
/* Invisible bridge across the gap to the dropdown, so the menu stays open while
   the mouse travels from the trigger down to it. */
.has-sub::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 12px;
}
.has-sub > .sub-trigger::after {
  content: "▾";
  display: inline-block;
  font-size: 1.05em;
  line-height: 1;
  margin-left: 0.3em;
  opacity: 0.7;
}

.sub {
  list-style: none;
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 0;
  width: max-content;
  margin: 0;
  background: rgba(18, 18, 26, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  padding: 0.4rem;
  display: none;
  flex-direction: column;
}
.has-sub:hover .sub,
.has-sub:focus-within .sub {
  display: flex;
}
.sub li {
  width: 100%;
}
.sub a {
  display: block;
  width: 100%;
  text-align: left;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.85);
}
.sub a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: 0;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  width: 24px;
  background: #fff;
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

/* ============================================================
   Hero
   ============================================================ */
.hero {
  position: relative;
  color: #fff;
  background: var(--bg-dark);
  padding-block: clamp(4rem, 11vw, 8rem);
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: 2rem;
}
.hero-title {
  /* Fluid so the longest word ("Sonification") fills but never overflows narrow
     phones, scaling up to the 5rem desktop size. */
  font-size: clamp(2.5rem, 12.5vw, 5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 0.98;
  margin: 0 0 1.5rem;
  /* Keeps the title legible where it overlaps the sculpture on mobile; invisible on the
     pure-black desktop background. */
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.55);
}
.hero-lede {
  max-width: 46ch;
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}
.hero-art {
  display: flex;
  justify-content: center;
}
.hero-sculpture {
  width: 100%;
  max-width: 460px;
  height: auto;
}
.hero-video {
  /* The video carries the full duotone sculpture on a pure-black background that
     simply blends into the (also pure-black) hero — no blend mode or alpha needed. */
  animation: hero-float 7s ease-in-out infinite;
}
.hero-static {
  display: none;
}
@keyframes hero-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}

/* No autoplay video for reduced-motion users — show the still blob instead. */
@media (prefers-reduced-motion: reduce) {
  .hero-video { display: none; }
  .hero-static { display: block; }
}

/* Latest-news line at the foot of the hero. */
.hero-news {
  margin: 2.25rem 0 0;
  max-width: 52ch;
  font-size: 0.95rem;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.6);
}
.hero-news-label {
  color: var(--accent);
  font-weight: 600;
}
.hero-news a {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
  white-space: nowrap;
}
.hero-news a:hover {
  color: var(--accent);
}

/* ============================================================
   Generic section rhythm
   ============================================================ */
section {
  padding-block: var(--space);
}
.hero {
  padding-block: clamp(4.5rem, 12vw, 9rem);
}

.section-title {
  font-size: clamp(1.6rem, 3vw, 2.35rem);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-weight: 800;
  line-height: 1.08;
  color: var(--ink);
  margin-bottom: 1.25rem;
}
.section-lede {
  max-width: 60ch;
  font-size: 1.2rem;
  color: var(--ink-soft);
}
.section-note {
  color: var(--muted);
  margin-top: 1.5rem;
}


/* ============================================================
   Category cards
   ============================================================ */
.categories {
  background: var(--bg-soft);
}
.category-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin: 2.5rem 0;
}
/* Category colour assignment, shared by cards and category-page heroes. */
.cat-arts { --cat-color: var(--arts); }
.cat-comm { --cat-color: var(--comm); }
.cat-analysis { --cat-color: var(--analysis); }

/* Flat, hairline-bordered cells — no fill, no shadow, no lift. */
.category-card {
  display: flex;
  flex-direction: column;
  padding: 1.75rem;
  text-decoration: none;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--line);
  transition: border-color 0.2s ease;
}
.category-card:hover {
  border-color: var(--cat-color);
  color: var(--ink);
}
.category-card h3 {
  font-size: 1.6rem;
  font-weight: 800;
  margin: 0 0 0.6rem;
  color: var(--cat-color);
}
.category-card:hover h3 {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.category-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1rem;
}

/* ============================================================
   Criteria / process / rewards
   ============================================================ */
.process-steps {
  display: grid;
  gap: 1.25rem;
  counter-reset: step;
  max-width: 70ch;
}
.process-steps p {
  position: relative;
  margin: 0;
  padding-left: 2.35rem;
  color: var(--ink-soft);
}
/* Larger indigo number marker, no box, top-aligned with the first line of text. */
.process-steps p::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 0;
  top: -0.05rem;
  color: var(--accent);
  font-weight: 700;
  font-size: 1.6rem;
  line-height: 1;
}
.rewards {
  background: var(--bg-soft);
}

/* ============================================================
   Why grid
   ============================================================ */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.75rem;
  margin-top: 1rem;
}
.why-item {
  padding: 1.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
.why-item h3 {
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--accent-ink);
}
.why-item p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1rem;
}

/* ============================================================
   Team
   ============================================================ */
.team {
  background: var(--bg-soft);
}

/* ============================================================
   Category criteria pages
   ============================================================ */
.category-hero {
  position: relative;
  color: #fff;
  background: var(--bg-dark);
  padding-block: clamp(4rem, 10vw, 7rem);
}
.category-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: var(--cat-color, var(--accent));
}
.category-hero h1 {
  font-size: clamp(2.5rem, 7vw, 4.5rem);
  font-weight: 800;
  text-transform: uppercase;
  margin: 0 0 1rem;
}
.category-hero h1::after {
  content: "";
  display: block;
  width: 72px;
  height: 4px;
  margin-top: 1.1rem;
  border-radius: 2px;
  background: var(--cat-color, var(--accent));
}
.category-lede {
  max-width: 54ch;
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
}
.category-body {
  padding-block: var(--space);
}

.prose {
  max-width: 760px;
}
.prose h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  /* Tinted to the category colour on criteria pages (cat-* class on .category-body). */
  color: var(--cat-color, var(--accent-ink));
  margin-top: 2.75rem;
  padding-top: 2.75rem;
  border-top: 1px solid var(--line);
}
.prose h2:first-of-type {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}
.prose h3 {
  font-size: 1.3rem;
  margin-top: 2rem;
}
.prose ul {
  padding-left: 1.25rem;
}
.prose li {
  margin-bottom: 0.5rem;
}
.prose li::marker {
  color: var(--accent);
}

/* ============================================================
   CTA band
   ============================================================ */
.cta-band {
  background: var(--ink);
  color: #fff;
}
.cta-band .container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}
.cta-band p {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
}

/* ============================================================
   Winners
   ============================================================ */
.winners-hero {
  background: var(--bg-dark);
  color: #fff;
  background-image:
    linear-gradient(120deg, rgba(10, 10, 16, 0.82), rgba(10, 10, 16, 0.55)),
    url("/assets/images/wave-blue.webp");
  background-size: cover;
  background-position: center;
  padding-block: clamp(3.5rem, 9vw, 6rem);
}
.winners-hero h1 {
  font-size: clamp(2.4rem, 7vw, 4rem);
  font-weight: 800;
  text-transform: uppercase;
  margin: 0 0 0.75rem;
}
.winners-intro {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
}
.winners-category {
  margin-bottom: 3.5rem;
}
.winners-category h2 {
  font-size: 1.6rem;
  font-weight: 800;
  padding-bottom: 0.75rem;
  margin-bottom: 1.75rem;
  border-bottom: 2px solid var(--accent);
  display: inline-block;
}
.winners-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}
.winner {
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.winner:hover {
  border-color: var(--accent);
  box-shadow: 0 10px 30px rgba(96, 95, 252, 0.1);
}
.winner h3 {
  font-size: 1.1rem;
  margin: 0 0 0.4rem;
}
.winner-authors {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* ============================================================
   Footer
   ============================================================ */
.site-footer {
  background: var(--bg-dark);
  color: rgba(255, 255, 255, 0.78);
  padding-block: clamp(3rem, 7vw, 5rem) 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.4fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.footer-brand {
  color: #fff;
  font-size: 1.15rem;
}
.site-footer h3 {
  color: #fff;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  margin-bottom: 1rem;
}
.footer-contact a {
  color: #fff;
  font-weight: 600;
}
.newsletter-form {
  margin-top: 1.75rem;
}
.newsletter-form label {
  display: block;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.72);
  margin-bottom: 0.6rem;
}
.newsletter-row {
  display: flex;
  gap: 0.5rem;
  max-width: 360px;
}
.newsletter-row input {
  flex: 1;
  min-width: 0;
  padding: 0.7rem 0.95rem;
  border-radius: 0;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font: inherit;
  font-size: 0.95rem;
}
.newsletter-row input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}
.newsletter-row button {
  flex-shrink: 0;
  padding: 0.7rem 1.3rem;
  border-radius: 0;
  border: 0;
  background: var(--accent);
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease;
}
.newsletter-row button:hover {
  background: var(--accent-ink);
}
.footer-partners ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1.75rem;
}
.footer-partners img {
  height: 52px;
  width: auto;
  opacity: 0.9;
}
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 2rem;
  padding-top: 1.75rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}
.footer-bottom p {
  margin: 0;
}
.footer-links {
  display: flex;
  gap: 1.25rem;
}
.footer-links a,
.footer-bottom a {
  color: rgba(255, 255, 255, 0.78);
}
.footer-credit {
  margin-left: auto;
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 900px) {
  .category-cards {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  .footer-credit {
    margin-left: 0;
  }
}

@media (max-width: 860px) {
  .hero {
    padding-block: 1.5rem 3.5rem;
  }
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: left;
    gap: 0;
    position: relative;
  }
  /* Sculpture sits behind the title, offset to the top-right; the title overlays it. */
  .hero-art {
    position: absolute;
    top: -0.5rem;
    right: -1rem;
    width: 82%;
    margin: 0;
    z-index: 0;
    justify-content: flex-end;
    pointer-events: none;
  }
  .hero-text {
    order: 2;
    position: relative;
    z-index: 1;
    padding-top: 6.5rem;
  }
  .hero-lede {
    margin-inline: 0;
  }
  .hero-sculpture {
    max-width: 320px;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: flex;
  }
  .primary-nav {
    position: fixed;
    inset: 72px 0 auto 0;
    background: rgba(12, 12, 18, 0.98);
    backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
    max-height: calc(100vh - 72px);
    overflow-y: auto;
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: transform 0.2s ease, opacity 0.2s ease;
  }
  .primary-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .primary-nav ul {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 0.5rem;
  }
  .primary-nav > ul > li > a,
  .sub-trigger {
    width: 100%;
    text-align: left;
    padding: 0.85rem 1rem;
  }
  .has-sub > .sub-trigger {
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  .sub {
    position: static;
    transform: none;
    display: none;
    background: transparent;
    box-shadow: none;
    border: 0;
    min-width: 0;
    padding: 0 0 0.5rem 0.75rem;
  }
  .sub a {
    text-align: left;
  }
  .has-sub.is-open .sub {
    display: flex;
  }
  .has-sub:hover .sub {
    display: none;
  }
  .has-sub.is-open:hover .sub {
    display: flex;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}
