/* ==========================================================================
   Equilibrium. Loaded after home.css and pages.css.
   ========================================================================== */
.eq h2 { font: clamp(34px, 3.8vw, 52px)/1.1 var(--serif); color: var(--navy); }
.eq h3 { font: 24px/1.2 var(--serif); color: var(--navy); }

/* Hero: the first night, full width */
.eq-hero { position: relative; min-height: min(86vh, 760px); display: grid; align-items: end; overflow: hidden; color: #fff; background: var(--navy); }
.eq-hero__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.eq-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(10 18 34 / .15) 0%, rgb(10 18 34 / .35) 45%, rgb(10 18 34 / .88) 100%); }
.eq-hero__in { position: relative; z-index: 1; padding-block: clamp(48px, 7vw, 96px); }
.eq .eq-hero h1 { font: clamp(64px, 10vw, 150px)/.92 var(--serif); letter-spacing: -2px; color: #fff; }
.eq-hero h1 span { color: #ff6b7d; }
.eq .eq-hero p { margin-top: 22px; max-width: 34em; font-size: 18px; line-height: 1.65; color: #e4e9f0; }
.eq-hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; margin-top: 8px; }
.eq-hero__link { margin-top: 25px; color: #fff; font-size: 16px; border-bottom: 1px solid #ffffff80; padding-bottom: 6px; }
.eq-hero__link span { display: inline-block; margin-left: 10px; }
@media (prefers-reduced-motion: no-preference) {
  .eq-hero__img { animation: eq-zoom 14s ease-out both; }
  .eq-hero h1, .eq-hero p, .eq-hero__actions { animation: eq-up 900ms cubic-bezier(.16, 1, .3, 1) both; }
  .eq-hero p { animation-delay: 150ms; }
  .eq-hero__actions { animation-delay: 280ms; }
  .eq-hero__link:hover span { transform: translateY(3px); transition: transform 250ms; }
}
@keyframes eq-zoom { from { transform: scale(1.08); } to { transform: none; } }
@keyframes eq-up { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* Equilibrium 4.0 in figures: the one bold blue band */
.eq-band { background: var(--bold-blue, #2F4FA8); color: #fff; padding-block: clamp(56px, 7vw, 96px); }
.eq .eq-band h2 { color: #fff; }
.eq .eq-band__lede { margin-top: 12px; font-size: 18px; color: #dbe3f6; }
.eq-figures { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 36px 0 0; }
.eq-fact { padding: 24px; background: rgb(255 255 255 / .1); }
.eq-fact dt { font-size: 14px; color: #dbe3f6; }
.eq-fact dd { margin: 10px 0 0; font: clamp(40px, 4.4vw, 64px)/1 var(--serif); color: #fff; }
.eq-fact dd.eq-fact__text { font-size: clamp(22px, 2vw, 28px); line-height: 1.2; }
.eq-band .bold-figure { color: #fff !important; }
.eq-figures--light .eq-fact { background: var(--cream); }
.eq-figures--light .eq-fact dt { color: var(--muted); }
.eq-figures--light .eq-fact dd { color: var(--navy); }

/* Photographs */
.eq-photo { margin: 0; overflow: hidden; background: var(--cream); }
.eq-photo img { width: 100%; height: 100%; object-fit: cover; }
.eq-mosaic { display: grid; grid-template-columns: 1.3fr 1fr 1fr; grid-template-rows: 260px 260px; gap: 12px; margin-top: 12px; }
.eq-photo--tall { grid-row: span 2; }
.eq-photo--wide { grid-column: span 2; }

/* Competitions */
.eq-head { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 36px; }
.eq-head p { font-size: 16px; max-width: 26em; }
.eq-comps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 20px; }
.eq-comp { display: grid; align-content: start; gap: 16px; }
.eq-comp figure { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; background: var(--cream); }
.eq-comp img { width: 100%; height: 100%; object-fit: cover; }
.eq-comp p { margin-top: 8px; font-size: 15px; line-height: 1.6; }
.eq .eq-comp .eq-meta { margin-top: 10px; font-size: 14px; font-weight: 600; color: var(--navy); }
.eq-more { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.eq-more li { padding: 22px; background: var(--cream); transition: transform 300ms cubic-bezier(.16, 1, .3, 1), background-color 250ms; }
.eq-more li:hover { transform: translateY(-3px); background: #ece7da; }
.eq-more h3 { font-size: 21px; }
.eq-more p { margin-top: 8px; font-size: 14px; line-height: 1.55; }

/* Seminar and first night */
.eq-split { display: grid; grid-template-columns: 1fr 1fr; grid-auto-rows: auto; }
.eq-split .eq-photo { aspect-ratio: 16 / 10; }
.eq-split__text { display: grid; align-content: center; gap: 14px; padding: clamp(32px, 5vw, 72px); background: var(--navy); }
.eq-split__text:nth-of-type(2) { background: var(--cream); }
.eq .eq-split__text h2 { color: #fff; }
.eq .eq-split__text p { font-size: 17px; line-height: 1.65; color: #d3dae3; max-width: 28em; }
.eq .eq-split__text:nth-of-type(2) h2 { color: var(--navy); }
.eq .eq-split__text:nth-of-type(2) p { color: var(--muted); }
.eq-split > :nth-child(3) { order: 4; }
.eq-split > :nth-child(4) { order: 3; }

/* Equilibrium 3.0 */
.eq-past { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 60px); align-items: center; }
.eq-past .eq-photo { aspect-ratio: 4 / 5; }
.eq-past > div > p { margin-top: 12px; font-size: 17px; }
.eq-past .eq-figures { grid-template-columns: repeat(2, minmax(0, 1fr)); }

/* Sponsors */
.eq-sponsors { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.eq-sponsors li { display: grid; gap: 10px; align-content: start; padding: 22px; border: 1px solid var(--line); transition: border-color 250ms, transform 300ms cubic-bezier(.16, 1, .3, 1); }
.eq-sponsors li:hover { border-color: var(--navy); transform: translateY(-3px); }
.eq-sponsors span { font-size: 13px; color: var(--muted); }
.eq-sponsors b { font: 22px/1.2 var(--serif); font-weight: 400; color: var(--navy); }
.eq-sponsors li:first-child { background: var(--navy); border-color: var(--navy); }
.eq-sponsors li:first-child span { color: #c9d1dc; }
.eq-sponsors li:first-child b { color: #fff; font-size: 30px; }

/* Call to sponsor */
.eq-cta { background: var(--cream); padding-block: clamp(56px, 7vw, 96px); text-align: center; }
.eq .eq-cta p { margin: 14px auto 0; font-size: 17px; max-width: 30em; }

@media (max-width: 1000px) {
  .eq-figures { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .eq-comps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .eq-more { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .eq-sponsors { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .eq-past { grid-template-columns: 1fr; }
  .eq-past .eq-photo { aspect-ratio: 16 / 10; }
}
@media (max-width: 700px) {
  .eq-mosaic { grid-template-columns: 1fr 1fr; grid-template-rows: 200px 160px 160px; }
  .eq-photo--tall { grid-row: auto; grid-column: span 2; }
  .eq-split { grid-template-columns: 1fr; }
  .eq-split > * { order: 0 !important; }
  .eq-comps, .eq-more, .eq-sponsors { grid-template-columns: 1fr; }
  .eq-head { display: block; }
  .eq-head p { margin-top: 12px; }
}
/* Posters show their titles; the prize fits on one line. */
.eq-comp img[src^="eq-"] { object-position: 50% 6%; }
.eq-band .eq-fact dd.bold-figure { font-size: clamp(34px, 3.4vw, 52px); white-space: nowrap; }

/* Approved competitions presentation. */
.eq-comps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 20px; }
.eq-comp { display: grid; align-content: start; gap: 16px; }
.eq-comp figure { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; background: var(--cream); }
.eq-comp img { width: 100%; height: 100%; object-fit: cover; }
.eq-comp p { margin-top: 8px; font-size: 15px; line-height: 1.6; }
.eq .eq-comp .eq-meta { margin-top: 10px; font-size: 14px; font-weight: 600; color: var(--navy); }
.eq-more { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.eq-more li { padding: 22px; background: var(--cream); transition: transform 300ms cubic-bezier(.16, 1, .3, 1), background-color 250ms; }
.eq-more li:hover { transform: translateY(-3px); background: #ece7da; }
.eq-more h3 { font-size: 21px; }
.eq-more p { margin-top: 8px; font-size: 14px; line-height: 1.55; }
.eq-comp img[src^="eq-"] { object-position: 50% 6%; }
@media(max-width:900px){.eq-comps,.eq-more{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.eq-comps,.eq-more{grid-template-columns:1fr}}
