/* =========================================================
   UCCR — Design system
   Tokens, typography, layout primitives, nav, footer.
   ========================================================= */

@font-face {
  font-family: 'Nidus Sans';
  src: local('Nidus Sans'), local('NidusSans'),
       url('nidsans-webfont.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Surfaces */
  --bg:        #ffffff;
  --bg-alt:    #f4f4f6;
  --bg-dark:   #0d0e11;
  --bg-dark-2: #16181c;

  /* Ink */
  --ink:    #101215;
  --ink-2:  #474b52;
  --ink-3:  #767b83;
  --on-dark:    #ffffff;
  --on-dark-2:  #b6bac1;

  /* Accent — sampled from the UCCR mark */
  --accent:       #b00720;
  --accent-hover: #8a0519;
  --accent-soft:  #fdf1f3;
  --accent-line:  #f2d3d8;

  /* Lines & shadows */
  --line:       #e4e5e9;
  --line-dark:  rgba(255, 255, 255, 0.14);
  --shadow-sm:  0 1px 2px rgba(16, 18, 21, .05), 0 6px 18px -10px rgba(16, 18, 21, .18);
  --shadow-md:  0 1px 3px rgba(16, 18, 21, .06), 0 18px 40px -22px rgba(16, 18, 21, .32);
  --shadow-lg:  0 2px 6px rgba(16, 18, 21, .07), 0 40px 80px -40px rgba(16, 18, 21, .42);

  /* Shape & rhythm */
  --r-sm: 10px;
  --r:    16px;
  --r-lg: 22px;
  --maxw: 1180px;
  --gutter: clamp(20px, 5vw, 56px);
  --section-y: clamp(64px, 9vw, 128px);

  /* Type */
  --font-display: 'Nidus Sans', 'Arial Narrow', system-ui, sans-serif;
  --font-body: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

a { color: var(--accent); }

button, input, select, textarea { font: inherit; }

::selection { background: var(--accent); color: #fff; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

/* ================= LAYOUT PRIMITIVES ================= */

.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container--wide { max-width: 1360px; }

.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(48px, 6vw, 84px); }
.section--alt { background: var(--bg-alt); }

.section--dark {
  background: var(--bg-dark);
  color: var(--on-dark);
}
.section--dark .section-title { color: #fff; }
.section--dark .lead,
.section--dark p { color: var(--on-dark-2); }
.section--dark .eyebrow { color: #ff5b6e; }
.section--dark .eyebrow::before { background: #ff5b6e; }

.stack > * + * { margin-top: 1rem; }

/* ================= TYPE ================= */

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.06;
  letter-spacing: -0.005em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.display {
  font-size: clamp(2.6rem, 6.4vw, 5rem);
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.section-title {
  font-size: clamp(1.9rem, 3.6vw, 3rem);
  text-transform: uppercase;
  letter-spacing: 0.015em;
  color: var(--ink);
}

.section-head {
  max-width: 62ch;
  margin-bottom: clamp(32px, 4vw, 56px);
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--accent);
  flex: none;
}

.eyebrow--center { justify-content: center; }

.lead {
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
  line-height: 1.7;
  color: var(--ink-2);
  margin-top: 18px;
  text-wrap: pretty;
}

.muted { color: var(--ink-3); }

/* ================= BUTTONS ================= */

.btn {
  --btn-bg: var(--accent);
  --btn-fg: #fff;
  --btn-bd: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 26px;
  border: 1.5px solid var(--btn-bd);
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 650;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: transform .18s ease, background-color .18s ease,
              color .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.btn:active { transform: translateY(0); }
.btn--primary:hover { --btn-bg: var(--accent-hover); --btn-bd: var(--accent-hover); }

.btn--ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  --btn-bd: var(--line);
}
.btn--ghost:hover { --btn-bd: var(--ink); }

.btn--light {
  --btn-bg: transparent;
  --btn-fg: #fff;
  --btn-bd: rgba(255, 255, 255, .38);
}
.btn--light:hover { --btn-bg: #fff; --btn-fg: var(--ink); --btn-bd: #fff; }

.btn--sm { padding: 10px 20px; font-size: 12.5px; }

.arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 650;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  text-decoration: none;
}
.arrow-link::after {
  content: "→";
  transition: transform .18s ease;
}
.arrow-link:hover::after { transform: translateX(4px); }

/* ================= CARDS & MEDIA ================= */

.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: clamp(22px, 2.6vw, 32px);
  box-shadow: var(--shadow-sm);
}

.card h3 {
  font-size: 1.3rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin-bottom: 10px;
}

.card p { color: var(--ink-2); font-size: .98rem; }

.media {
  position: relative;
  overflow: hidden;
  border-radius: var(--r);
  background: var(--bg-alt);
}

.media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.grid { display: grid; gap: clamp(18px, 2.4vw, 30px); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

@media (max-width: 900px) {
  .grid-3 { grid-template-columns: 1fr; }
  .grid-2 { grid-template-columns: 1fr; }
}

/* ================= HEADER / NAV ================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--line);
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
  flex: none;
}

.brand img { height: 34px; width: auto; }

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
  border-left: 1px solid var(--line);
  padding-left: 14px;
}

.brand-text b { color: var(--ink); font-weight: 700; }

.nav-menu {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  display: block;
  padding: 9px 14px;
  border-radius: 999px;
  color: var(--ink-2);
  font-size: 14.5px;
  font-weight: 550;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: color .18s ease, background-color .18s ease;
}

.nav-links a:hover { color: var(--ink); background: var(--bg-alt); }

.nav-links a.active,
.nav-links a[aria-current="page"] {
  color: var(--accent);
  background: var(--accent-soft);
}

.nav-cta { margin-left: 10px; }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
  align-items: center;
  justify-content: center;
}

.nav-toggle span {
  position: relative;
  display: block;
  width: 18px;
  height: 1.6px;
  background: var(--ink);
  transition: transform .22s ease, opacity .16s ease;
}

.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 1.6px;
  background: var(--ink);
  transition: transform .22s ease;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after  { top: 6px; }

.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after  { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 940px) {
  .nav-toggle { display: inline-flex; }

  .nav-menu {
    position: fixed;
    inset: 72px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 18px var(--gutter) 28px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-md);
    transform: translateY(-8px);
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, transform .2s ease, visibility .2s;
  }

  .nav-menu.is-open { opacity: 1; visibility: visible; transform: translateY(0); }

  .nav-links { flex-direction: column; align-items: stretch; gap: 2px; }

  .nav-links a {
    padding: 14px 16px;
    border-radius: 12px;
    font-size: 17px;
  }

  .nav-cta { margin: 10px 0 0; width: 100%; }
  .brand-text { display: none; }
}

@media (max-width: 380px) {
  .brand img { height: 28px; }
}

/* ================= FOOTER ================= */

.site-footer {
  background: var(--bg-dark);
  color: var(--on-dark-2);
  padding-block: clamp(48px, 6vw, 76px) 28px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: clamp(28px, 4vw, 60px);
  padding-bottom: 40px;
  border-bottom: 1px solid var(--line-dark);
}

.footer-brand img {
  height: 40px;
  width: auto;
  background: #fff;
  border-radius: 8px;
  padding: 6px 10px;
}

.footer-brand p {
  margin-top: 18px;
  max-width: 38ch;
  font-size: .95rem;
  color: var(--on-dark-2);
}

.footer-col h4 {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 16px;
}

.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li + li { margin-top: 10px; }

.footer-col a {
  color: var(--on-dark-2);
  text-decoration: none;
  font-size: .95rem;
  transition: color .18s ease;
}

.footer-col a:hover { color: #fff; }

.footer-socials {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.footer-socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line-dark);
  border-radius: 12px;
  color: #fff;
  font-size: 17px;
  text-decoration: none;
  transition: background-color .18s ease, border-color .18s ease, transform .18s ease;
}

.footer-socials a:hover {
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-2px);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 22px;
  font-size: .85rem;
  color: #7d828b;
}

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

/* Skip link */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 200;
  padding: 10px 18px;
  background: var(--accent);
  color: #fff;
  border-radius: 8px;
  text-decoration: none;
}
.skip-link:focus { left: 12px; }

/* ================= REVEAL ON SCROLL ================= */

[data-reveal] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .7s cubic-bezier(.22, .61, .36, 1),
              transform .7s cubic-bezier(.22, .61, .36, 1);
}

[data-reveal].is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; }
}

/* ================= SHARED: CONTACT ================= */

.people-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 28px;
}

.person {
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--bg);
}

.person-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  text-transform: uppercase;
  letter-spacing: .02em;
}

.person-role {
  margin-top: 4px;
  font-size: .85rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.contact-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(20px, 3vw, 40px);
  align-items: stretch;
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  background: var(--bg);
}

.contact-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  padding: 22px clamp(20px, 2.4vw, 28px);
  text-decoration: none;
  color: inherit;
  border-bottom: 1px solid var(--line);
  transition: background-color .18s ease;
}

.contact-row:last-child { border-bottom: 0; }
.contact-row:hover { background: var(--bg-alt); }

.contact-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 17px;
}

.contact-label {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.contact-value {
  display: block;
  margin-top: 2px;
  font-size: 1.02rem;
  font-weight: 550;
  color: var(--ink);
  word-break: break-word;
}

.contact-photo {
  border-radius: var(--r);
  overflow: hidden;
  min-height: 320px;
  background: var(--bg-alt);
}

.contact-photo img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 900px) {
  .people-grid { grid-template-columns: 1fr; }
  .contact-layout { grid-template-columns: 1fr; }
  .contact-photo { min-height: 240px; order: -1; }
}

/* ================= SHARED: PAGE HEADER ================= */

.page-head {
  padding-block: clamp(56px, 7vw, 96px) clamp(36px, 4vw, 56px);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(1100px 380px at 12% -10%, var(--accent-soft), transparent 70%),
    var(--bg);
}

.page-head .display { font-size: clamp(2.3rem, 5.2vw, 4rem); }
.page-head .lead { max-width: 62ch; }

/* ================= SHARED: SPONSOR LOGOS ================= */

.sponsor-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  gap: clamp(30px, 5vw, 70px);
  align-items: center;
}

.sponsor-logos {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.sponsor-tile {
  display: grid;
  place-items: center;
  padding: 26px 24px;
  min-height: 130px;
  border: 1px solid var(--line-dark);
  border-radius: var(--r);
  background: #000;
  transition: border-color .22s ease, transform .22s ease;
}

.sponsor-tile:hover { border-color: rgba(255, 255, 255, .34); transform: translateY(-3px); }

.sponsor-tile img {
  width: 100%;
  max-width: 190px;
  height: auto;
  max-height: 62px;
  object-fit: contain;
}

@media (max-width: 900px) {
  .sponsor-layout { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .sponsor-tile { min-height: 104px; padding: 18px 16px; }
  .sponsor-tile img { max-height: 46px; }
}

@media (max-width: 340px) {
  .sponsor-logos { grid-template-columns: 1fr; }
}
