/* Visual polish v2 — lower-page composition */

.events {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 92% 12%, rgba(255,95,70,.12), transparent 28%),
    #ebe4d8;
}

.events.section {
  padding-top: clamp(3.5rem, 6vw, 6rem);
  padding-bottom: clamp(3.5rem, 6vw, 6rem);
}

.events::before {
  content: "PROGRAM";
  position: absolute;
  right: -1.5rem;
  top: 1rem;
  color: rgba(23,24,32,.045);
  font-size: clamp(5rem, 14vw, 13rem);
  font-weight: 950;
  letter-spacing: -.08em;
  pointer-events: none;
}

.event-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}

.event-grid article {
  position: relative;
  grid-column: span 5;
  display: flex;
  min-height: 220px;
  overflow: hidden;
  flex-direction: column;
  padding: clamp(1.5rem, 3vw, 2.5rem);
  border: 1px solid rgba(23,24,32,.13);
  border-radius: var(--radius-card);
  background: rgba(249,245,237,.9);
  box-shadow: 0 18px 48px rgba(64,48,31,.1);
  transition: transform var(--motion-ui) var(--motion-ease), box-shadow var(--motion-ui) ease;
}

.event-grid article:first-child {
  grid-column: span 7;
  grid-row: span 2;
  min-height: 430px;
  padding: clamp(2rem, 4vw, 3.5rem);
  background:
    radial-gradient(circle at 85% 12%, rgba(255,209,102,.15), transparent 28%),
    linear-gradient(145deg, #151b2b, #0d1322);
  color: var(--text);
  box-shadow: 0 30px 80px rgba(22,19,25,.28);
}

.event-grid article:hover,
.event-grid article:focus-within {
  transform: translateY(-4px);
  box-shadow: 0 28px 70px rgba(64,48,31,.18);
}

.event-grid article:first-child:hover,
.event-grid article:first-child:focus-within {
  box-shadow: 0 38px 96px rgba(22,19,25,.36);
}

.event-grid article::after {
  content: "↗";
  position: absolute;
  right: 1.25rem;
  top: 1.15rem;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid currentColor;
  border-radius: 50%;
  opacity: .28;
}

.event-grid article:first-child::after {
  color: var(--accent-2);
  opacity: .72;
}

.event-grid span {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  min-height: 30px;
  padding: 0 .72rem;
  border: 1px solid rgba(165,56,40,.2);
  border-radius: 999px;
  background: rgba(165,56,40,.07);
  color: #9b3325;
  font-size: .72rem;
  letter-spacing: .08em;
}

.event-grid article:first-child span {
  border-color: rgba(255,209,102,.22);
  background: rgba(255,209,102,.08);
  color: var(--accent-2);
}

.event-grid h3 {
  max-width: 14ch;
  margin: clamp(2rem, 5vw, 4.5rem) 0 .8rem;
  font-size: clamp(2rem, 3.4vw, 4.2rem);
  line-height: .98;
  text-wrap: balance;
}

.event-grid article:not(:first-child) h3 {
  margin-top: 2.6rem;
  font-size: clamp(1.8rem, 2.5vw, 2.75rem);
}

.event-grid p {
  margin-bottom: 1.35rem;
  line-height: 1.55;
}

.event-grid article:first-child p {
  max-width: 50ch;
  color: #b8c0cf;
}

.event-grid button {
  margin-top: auto;
  align-self: flex-start;
}

.about {
  width: min(92vw, 1640px);
  margin: clamp(4rem, 8vw, 8rem) auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-feature);
  background: var(--panel);
  box-shadow: 0 34px 96px rgba(0,0,0,.3);
}

.about__image {
  position: relative;
  overflow: hidden;
}

.about__image::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent 58%, rgba(9,13,24,.3)),
    linear-gradient(0deg, rgba(9,13,24,.18), transparent 46%);
}

.about__image img {
  min-height: 620px;
  filter: saturate(.82) contrast(1.02);
  transform: scale(1.015);
}

.about__copy {
  position: relative;
  background:
    radial-gradient(circle at 100% 0%, rgba(255,95,70,.11), transparent 32%),
    linear-gradient(145deg, #151c2e, #0f1626);
  color: var(--text);
}

.about__copy::before {
  content: "";
  position: absolute;
  left: 0;
  top: 12%;
  bottom: 12%;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(var(--accent-2), var(--accent));
}

.about__copy .eyebrow {
  color: var(--accent-2);
}

.about p:not(.eyebrow) {
  max-width: 48ch;
  color: #c0c8d6;
}

.about button {
  color: var(--text);
}

.footer {
  grid-template-columns: auto minmax(220px,1fr) auto;
  gap: clamp(1.5rem, 4vw, 4rem);
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
  background: rgba(7,10,18,.86);
}

.footer p {
  max-width: 68ch;
  justify-self: center;
  font-size: .78rem;
  line-height: 1.55;
}

.footer-controls {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem .9rem;
  grid-column: 1 / -1;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(255,255,255,.08);
  color: #7f8ba1;
  font-size: .68rem;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.footer-meta span:not(:last-child)::after {
  content: "·";
  margin-left: .9rem;
  color: var(--accent);
}

.back-to-top {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  min-height: 42px;
  padding: 0 .85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.025);
  color: var(--text);
  cursor: pointer;
  font-size: .74rem;
  font-weight: 800;
  transition: border-color var(--motion-fast) ease, background var(--motion-fast) ease, transform var(--motion-fast) ease;
}

.back-to-top::after {
  content: "↑";
  color: var(--accent-2);
  font-size: 1rem;
}

.back-to-top:hover,
.back-to-top:focus-visible {
  border-color: rgba(255,209,102,.42);
  background: var(--surface-control-hover);
  transform: translateY(-1px);
  outline: none;
}

.back-to-top:active {
  transform: translateY(0) scale(.97);
}

@media (max-width: 980px) {
  .event-grid article,
  .event-grid article:first-child {
    grid-column: 1 / -1;
    grid-row: auto;
    min-height: 220px;
  }

  .event-grid article:first-child {
    min-height: 300px;
  }

  .footer {
    grid-template-columns: 1fr;
  }

  .footer p {
    justify-self: start;
    text-align: left;
  }

  .footer-controls {
    justify-content: flex-start;
  }
}

@media (max-width: 700px) {
  .events.section {
    padding: 2.75rem 1rem;
  }

  .events::before {
    display: none;
  }

  .events .section-heading {
    margin-bottom: 1.35rem;
  }

  .event-grid {
    grid-template-columns: 1fr;
    gap: .75rem;
  }

  .event-grid article,
  .event-grid article:first-child {
    grid-column: 1;
    min-height: 0;
    padding: 1.1rem;
  }

  .event-grid article:first-child {
    min-height: 230px;
  }

  .event-grid article::after {
    right: .85rem;
    top: .85rem;
    width: 34px;
    height: 34px;
  }

  .event-grid h3,
  .event-grid article:not(:first-child) h3 {
    max-width: calc(100% - 42px);
    margin-top: 1.55rem;
    font-size: clamp(1.65rem, 8vw, 2.35rem);
    line-height: 1.02;
  }

  .event-grid article:first-child h3 {
    margin-top: 2rem;
  }

  .event-grid p,
  .event-grid article:first-child p {
    max-width: none;
    margin-top: 0;
    margin-bottom: 1rem;
    font-size: .94rem;
    line-height: 1.45;
  }

  .about {
    width: calc(100vw - 2rem);
    margin: 3.5rem auto;
    border-radius: 18px;
  }

  .about__image img {
    min-height: 360px;
  }

  .about__copy::before {
    left: 10%;
    right: 10%;
    top: 0;
    bottom: auto;
    width: auto;
    height: 4px;
  }

  .footer-meta {
    flex-direction: column;
    gap: .5rem;
  }

  .footer-meta span::after {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .event-grid article,
  .back-to-top {
    transition: none !important;
  }
}
