/* ============================================
   BASCO - VIII Bienal de Arte Sacro Contemporáneo
   "El Bautismo"
   https://basco.com.mx/
   ============================================ */

/* --- Reset & Base --- */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Colors — mint from the event identity (#a8d6c9) */
  --mint: #a8d6c9;
  --mint-light: #c4e3dd;
  --mint-dark: #7bbcb0;
  --green-dark: #2D7A4B;
  --gold: #D4A017;
  --gold-light: #e8bf4a;
  --black: #1A1A1A;
  --black-soft: #2a2a2a;
  --white: #FFFFFF;
  --cream: #FAF8F5;
  --gray: #4b5563;
  --gray-light: #e5e7eb;

  /* Typography */
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-main: 'DM Sans', system-ui, sans-serif;
  --fw-light: 300;
  --fw-regular: 400;
  --fw-medium: 500;
  --fw-semibold: 600;
  --fw-bold: 700;
  --fw-extrabold: 700;

  /* Spacing */
  --section-padding: 6rem 2rem;
  --container-max: 1200px;

  /* Easing curves */
  --ease-quint: cubic-bezier(0.22, 1, 0.36, 1);
  /* Contemplative, museum-quality deceleration */
  --ease-expo: cubic-bezier(0.16, 1, 0.3, 1);
  /* Decisive, confident — for quick feedback */
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-main);
  font-weight: var(--fw-regular);
  color: var(--black);
  background-color: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  list-style: none;
}

/* Allow long words to break rather than overflow */
p,
h1,
h2,
h3,
h4,
h5,
h6,
li,
blockquote {
  overflow-wrap: break-word;
}

/* Prevent flex/grid items from overflowing their container */
.discipline-card,
.prize-card,
.bases__item,
.timeline__item {
  min-width: 0;
}

/* Skip to content link (keyboard navigation) */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 9999;
  padding: 0.75rem 1.5rem;
  background-color: var(--black);
  color: var(--white);
  font-weight: var(--fw-semibold);
  font-size: 0.9rem;
  border-radius: 0 0 8px 8px;
  transition: top 0.2s;
  text-decoration: none;
}

.skip-link:focus {
  top: 0;
}

/* Focus styles for keyboard navigation */
:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
  border-radius: 2px;
}

/* Brighter focus ring on dark backgrounds */
.header :focus-visible,
.nav :focus-visible,
.prizes :focus-visible,
.theme :focus-visible,
.footer :focus-visible {
  outline-color: var(--mint-light);
}

/* Scroll offset for fixed header on anchor navigation */
section[id] {
  scroll-margin-top: 90px;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* --- Header / Nav --- */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  padding: 1rem 0;
  transition: background-color 0.5s var(--ease-quint), box-shadow 0.5s var(--ease-quint), padding 0.5s var(--ease-quint);
}

.header.scrolled {
  background-color: rgba(26, 26, 26, 0.97);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.15);
  padding: 0.5rem 0;
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header__logo img {
  height: 50px;
  width: auto;
  transition: height 0.5s var(--ease-quint);
}

.header.scrolled .header__logo img {
  height: 40px;
}

.nav__list {
  display: flex;
  gap: 2rem;
}

.nav__link {
  font-size: 0.85rem;
  font-weight: var(--fw-medium);
  color: var(--white);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  position: relative;
  padding: 0.25rem 0;
  transition: color 0.35s var(--ease-quint), letter-spacing 0.4s var(--ease-quint);
}

.nav__link:hover {
  color: var(--gold);
  letter-spacing: 0.10em;
}

.nav__link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--gold);
  transition: width 0.4s var(--ease-quint);
}

.nav__link:hover::after,
.nav__link.active::after {
  width: 100%;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 0.5rem;
}

.hamburger__line {
  width: 28px;
  height: 2px;
  background-color: var(--white);
  transition: transform 0.25s var(--ease-expo), opacity 0.25s var(--ease-expo);
}

.hamburger.active .hamburger__line:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.hamburger.active .hamburger__line:nth-child(2) {
  opacity: 0;
}

.hamburger.active .hamburger__line:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

/* --- Hero --- */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-color: var(--black);
  position: relative;
  overflow: hidden;
  /* Top padding clears the fixed header (~80px); bottom padding gives space for scroll indicator */
  padding: 6rem 2rem 8rem;
}

.hero::before {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 60%;
  height: 60%;
  pointer-events: none;
}

.hero__logo {
  width: min(350px, 60vw);
  margin-bottom: 2rem;
  animation: fadeInUp 1.1s var(--ease-quint) both;
}

.hero__edition {
  font-size: clamp(0.85rem, 2vw, 1.1rem);
  font-weight: var(--fw-medium);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 0.5rem;
  animation: fadeInUp 1s var(--ease-quint) 0.25s both;
}

.hero__title {
  font-size: clamp(1rem, 2.5vw, 1.3rem);
  font-weight: var(--fw-light);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 0.25rem;
  animation: fadeInUp 1s var(--ease-quint) 0.4s both;
}

.hero__theme {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 6rem);
  font-weight: var(--fw-bold);
  color: var(--white);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin-bottom: 2.5rem;
  animation: fadeInUp 1.2s var(--ease-quint) 0.55s both;
}

.hero__cta {
  margin-bottom: 1.5rem;
  animation: fadeInUp 1s var(--ease-quint) 0.85s both;
}

.hero__scroll {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  animation: float 3.5s ease-in-out 1.2s infinite;
  color: var(--white);
  opacity: 0.6;
}

.hero__scroll svg {
  width: 30px;
  height: 30px;
}

/* --- Buttons --- */
.btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  border-radius: 50px;
  font-family: var(--font-main);
  font-size: 0.95rem;
  font-weight: var(--fw-semibold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  cursor: pointer;
  border: 2px solid transparent;
  transform: translateY(0);
  transition:
    background-color 0.35s var(--ease-quint),
    border-color 0.35s var(--ease-quint),
    color 0.35s var(--ease-quint),
    transform 0.2s var(--ease-expo),
    box-shadow 0.35s var(--ease-quint);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.btn:active {
  transform: translateY(1px);
  box-shadow: none;
  transition-duration: 0.1s;
}

.btn--primary {
  background-color: var(--mint);
  color: var(--black);
  border-color: var(--mint);
}

.btn--primary:hover {
  background-color: var(--mint-light);
  border-color: var(--mint-light);
  color: var(--black);
}

.btn--secondary {
  background-color: transparent;
  color: var(--black);
  border-color: var(--black);
}

.btn--secondary:hover {
  background-color: var(--black);
  color: var(--white);
}

.btn--rect {
  border-radius: 8px;
}

.btn--large {
  padding: 1.2rem 3rem;
  font-size: 1.05rem;
}

/* --- Section titles --- */
.section-label {
  font-size: 0.8rem;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--green-dark);
  margin-bottom: 0.75rem;
}

/* Gold label for dark-background sections (contrast ~6.6:1 on --black) */
.theme .section-label,
.prizes .section-label {
  color: var(--gold);
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: var(--fw-bold);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin-bottom: 1.5rem;
}

.section-subtitle {
  font-size: 1.1rem;
  font-weight: var(--fw-light);
  color: var(--gray);
  max-width: 700px;
  line-height: 1.7;
}

/* Section title color overrides for dark backgrounds */
.theme .section-title,
.prizes .section-title {
  color: var(--white);
}

/* Disciplines subtitle centering */
.disciplines .section-subtitle {
  margin: 0 auto;
}

/* About second paragraph spacing */
.about__text .section-subtitle+.section-subtitle {
  margin-top: 1rem;
}

/* Bases docs note */
.bases__docs-note {
  font-size: 0.9rem;
  color: var(--gray);
  margin-bottom: 1.5rem;
  line-height: 1.6;
}

/* --- About --- */
.about {
  padding: var(--section-padding);
  background-color: var(--cream);
}

.about .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

.about__image {
  display: flex;
  justify-content: center;
}

.about__image img {
  width: 280px;
  border-radius: 50%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.08);
}

.about__bottom {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-top: 2rem;
}

.about__quote {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--green-dark);
  border-left: 3px solid var(--gold);
  padding-left: 1.5rem;
  margin-top: 0;
  line-height: 1.8;
}

.about__catalog {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border: 1px solid rgba(0,0,0,0.1);
  border-radius: 8px;
  background: var(--white);
  text-decoration: none;
  transition: box-shadow 0.2s, transform 0.2s;
  width: 100%;
}

.about__catalog:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

.about__catalog-text {
  display: flex;
  flex-direction: column;
}

.about__catalog-label {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: var(--fw-semibold);
  color: var(--green-dark);
  line-height: 1.3;
}

.about__catalog-desc {
  font-size: 0.875rem;
  color: var(--gray);
  line-height: 1.3;
}

.about__catalog-icon {
  width: 44px;
  height: 50px;
  flex-shrink: 0;
}

.about__quote p {
  margin: 0;
}

.about__quote footer {
  margin-top: 0.6rem;
  font-style: normal;
  font-size: 0.9rem;
  color: var(--gray);
}

.about__quote footer cite {
  font-style: normal;
  font-weight: var(--fw-semibold);
}

/* --- Theme --- */
.theme {
  padding: var(--section-padding);
  background-color: var(--black);
  color: var(--white);
  text-align: center;
}


.theme__content {
  max-width: 800px;
  margin: 0 auto;
}

.theme__text {
  font-size: 1.05rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 1.5rem;
}

/* --- Disciplines --- */
.disciplines {
  padding: var(--section-padding);
  background-color: var(--white);
  text-align: center;
}

.disciplines__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
}

.discipline-card {
  padding: 2.5rem 1.5rem;
  border-radius: 16px;
  background-color: var(--cream);
  transition: transform 0.5s var(--ease-quint), box-shadow 0.5s var(--ease-quint);
}

.discipline-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.1);
  transition-delay: 0ms;
}

.discipline-card__icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 1.25rem;
  color: var(--green-dark);
  transition: transform 0.5s var(--ease-quint);
}

.discipline-card:hover .discipline-card__icon {
  transform: scale(1.1);
}

.discipline-card__icon svg {
  width: 100%;
  height: 100%;
}

/* Stagger entrance for discipline cards (reveal only, not hover) */
.disciplines__grid .discipline-card:nth-child(1) {
  --reveal-delay: 0ms;
}

.disciplines__grid .discipline-card:nth-child(2) {
  --reveal-delay: 70ms;
}

.disciplines__grid .discipline-card:nth-child(3) {
  --reveal-delay: 140ms;
}

.disciplines__grid .discipline-card:nth-child(4) {
  --reveal-delay: 210ms;
}

.disciplines__grid .discipline-card:nth-child(5) {
  --reveal-delay: 280ms;
}

.disciplines__grid .discipline-card:nth-child(6) {
  --reveal-delay: 350ms;
}

.disciplines__grid .fade-in.visible {
  transition-delay: var(--reveal-delay, 0ms);
}

/* Reset delay on hover so interaction is immediate */
.disciplines__grid .discipline-card:hover {
  transition-delay: 0ms;
}

.discipline-card__title {
  font-size: 1.1rem;
  font-weight: var(--fw-semibold);
  margin-bottom: 0.5rem;
}

.discipline-card__desc {
  font-size: 0.9rem;
  color: var(--gray);
  line-height: 1.5;
}

/* --- Bases --- */
.bases {
  padding: var(--section-padding);
  background-color: var(--cream);
}

.bases .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}

.bases__list {
  margin-top: 2rem;
}

.bases__item {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  align-items: flex-start;
}

.bases__item-number {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  background-color: var(--mint);
  color: var(--black);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: var(--fw-bold);
  font-size: 0.85rem;
}

.bases__item-text {
  font-size: 1rem;
  line-height: 1.6;
  padding-top: 0.35rem;
}

.bases__docs {
  padding: 2.5rem;
  background-color: var(--white);
  border-radius: 16px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.06);
}

.bases__docs h3 {
  font-size: 1.2rem;
  font-weight: var(--fw-semibold);
  margin-bottom: 1.25rem;
}

.bases__docs-list {
  margin-bottom: 2rem;
}

.bases__docs-list li {
  position: relative;
  padding-left: 1.5rem;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--gray);
}

.bases__docs-list li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--green-dark);
  font-weight: var(--fw-bold);
}

/* --- Prizes --- */
.prizes {
  padding: var(--section-padding);
  background-color: var(--black);
  color: var(--white);
  text-align: center;
}

.prizes__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
  margin-top: 3rem;
  margin-bottom: 3rem;
}

.prize-card {
  padding: 3rem 2rem;
  border-radius: 16px;
  background-color: var(--black-soft);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.5s var(--ease-quint), box-shadow 0.5s var(--ease-quint), border-color 0.5s var(--ease-quint);
}

.prize-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
}

.prize-card--first:hover {
  box-shadow: 0 24px 50px rgba(212, 160, 23, 0.18);
}


.prize-card--first {
  border-color: var(--gold);
  position: relative;
}

.prize-card--first::before {
  content: '★';
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--gold);
  color: var(--black);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

.prize-card__place {
  font-size: 0.8rem;
  font-weight: var(--fw-semibold);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.prize-card__amount {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: var(--fw-extrabold);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.prize-card__currency {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
}

.prizes__mentions {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.7);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}

/* --- Timeline --- */
.timeline {
  padding: var(--section-padding);
  background-color: var(--white);
  text-align: center;
}

.timeline__track {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin-top: 4rem;
  padding: 0 1rem;
}

.timeline__track::before {
  content: '';
  position: absolute;
  top: 20px;
  left: 5%;
  right: 5%;
  height: 3px;
  background-color: var(--gray-light);
}

.timeline__item {
  flex: 1;
  position: relative;
  text-align: center;
  padding-top: 3rem;
}

.timeline__dot {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 24px;
  background-color: var(--mint);
  border: 3px solid var(--white);
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--mint);
}

.timeline__item--active .timeline__dot {
  background-color: var(--gold);
  box-shadow: 0 0 0 3px var(--gold);
}

.timeline__date {
  font-size: 0.85rem;
  font-weight: var(--fw-bold);
  color: var(--green-dark);
  margin-bottom: 0.5rem;
}

.timeline__desc {
  font-size: 0.85rem;
  color: var(--gray);
  line-height: 1.4;
  padding: 0 0.5rem;
}

/* --- CTA / Registration --- */
.registration {
  padding: var(--section-padding);
  background: linear-gradient(135deg, var(--mint) 0%, var(--mint-dark) 100%);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.registration::before {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -10%;
  width: 50%;
  height: 50%;
  pointer-events: none;
}

.registration__content {
  position: relative;
  max-width: 700px;
  margin: 0 auto;
}

.registration__title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: var(--fw-bold);
  color: var(--black);
  margin-bottom: 1.5rem;
}

.registration__text {
  font-size: 1.1rem;
  color: var(--black-soft);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.registration__text strong {
  font-weight: var(--fw-bold);
}

.registration__gmail-note {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background-color: rgba(0, 0, 0, 0.12);
  border-radius: 50px;
  padding: 0.75rem 1.5rem;
  font-size: 0.9rem;
  color: var(--black-soft);
  margin-top: 1.5rem;
}

.registration__gmail-note svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

/* --- Footer --- */
.footer {
  padding: 3rem 2rem;
  background-color: var(--black);
  color: var(--white);
}

.footer .container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  text-align: center;
}

.footer__logo img {
  height: 60px;
  opacity: 0.9;
}

.footer__contact {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer__email {
  color: var(--gold);
  font-weight: var(--fw-medium);
  transition: color 0.35s var(--ease-quint);
}

.footer__email:hover {
  color: var(--gold-light);
}

.footer__copyright {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.6);
}

/* --- Animations --- */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Gentle float — replaces mechanical bounce */
@keyframes float {

  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }

  50% {
    transform: translateX(-50%) translateY(-8px);
  }
}

/* Fade-in on scroll — contemplative 800ms with refined easing */
.fade-in {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.8s var(--ease-quint), transform 0.8s var(--ease-quint);
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
  .about .container {
    grid-template-columns: 1fr;
    gap: 3rem;
    text-align: center;
  }

  .about__image {
    order: -1;
  }

  /* Blockquote: switch from border-left to border-top when layout is centered */
  .about__quote {
    border-left: none;
    border-top: 3px solid var(--gold);
    padding-left: 0;
    padding-top: 1.25rem;
    text-align: left;
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
  }

  .bases .container {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .timeline__track {
    flex-direction: column;
    gap: 2rem;
    padding-left: 3rem;
  }

  .timeline__track::before {
    top: 0;
    bottom: 0;
    left: 12px;
    right: auto;
    width: 3px;
    height: 100%;
  }

  .timeline__item {
    text-align: left;
    padding-top: 0;
    padding-left: 1.5rem;
  }

  .timeline__dot {
    top: 4px;
    left: -2.25rem;
    transform: none;
  }
}

@media (max-width: 768px) {
  :root {
    --section-padding: 4rem 1.5rem;
  }

  /* Mobile nav */
  .nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 80%;
    max-width: 320px;
    height: 100vh;
    background-color: var(--black);
    padding: 5rem 2rem 2rem;
    transition: right 0.4s var(--ease-quint);
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.3);
    overflow-y: auto;
  }

  .nav.open {
    right: 0;
  }

  .nav__list {
    flex-direction: column;
    gap: 0;
  }

  .nav__link {
    display: block;
    padding: 1rem 0;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  .hamburger {
    display: flex;
    z-index: 1001;
  }

  /* Grid adjustments */
  .disciplines__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  .prizes__grid {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
  }

  .hero__logo {
    width: min(280px, 70vw);
  }

  /* Prevent about image from overflowing on narrow screens */
  .about__image img {
    width: min(280px, 100%);
  }

  .discipline-card {
    padding: 2rem 1.25rem;
  }
}

@media (max-width: 480px) {
  :root {
    --section-padding: 3rem 1.25rem;
  }

  .disciplines__grid {
    grid-template-columns: 1fr;
  }

  /* On single-column mobile, each card reveals individually via scroll.
     Disable stagger — the natural scroll timing provides enough rhythm. */
  .disciplines__grid .fade-in.visible {
    transition-delay: 0ms;
  }

  .btn {
    padding: 0.9rem 2rem;
    font-size: 0.85rem;
  }

  .btn--large {
    padding: 1rem 2.5rem;
    font-size: 0.95rem;
  }

  /* Keep gmail note readable on small screens */
  .registration__gmail-note {
    display: flex;
    text-align: left;
    padding: 0.75rem 1.25rem;
    font-size: 0.85rem;
  }

  /* Reduce hero logo on very small viewports */
  .hero__logo {
    width: min(240px, 72vw);
    margin-bottom: 1.5rem;
  }
}


/* --- Motion preferences --- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  /* Show fade-in elements immediately */
  .fade-in {
    opacity: 1;
    transform: none;
    transition: none;
  }

  /* Remove stagger delays */
  .disciplines__grid .fade-in.visible {
    transition-delay: 0ms !important;
  }

  /* Disable float */
  .hero__scroll {
    animation: none;
  }
}