:root {
  --ink: #151313;
  --paper: #fff6e8;
  --paper-strong: #fff0d2;
  --muted: #5b564f;
  --line: rgba(21, 19, 19, 0.14);
  --red: #ee3724;
  --yellow: #ffc928;
  --cyan: #22c7df;
  --green: #52bd75;
  --blue: #1e3a8a;
  --violet: #6d2fd8;
  --panel: #f6ead8;
  --charcoal: #191718;
  --card: #fffaf1;
  --radius: 8px;
  --shadow-hard: 5px 5px 0 var(--ink);
  --shadow-window: 0 18px 0 -10px rgba(21, 19, 19, 0.14), 0 32px 90px rgba(21, 19, 19, 0.18);
  --shadow-soft: 0 24px 80px rgba(21, 19, 19, 0.16);
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  overflow-x: hidden;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--paper);
  color: var(--ink);
  letter-spacing: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.05;
  background-image:
    linear-gradient(rgba(21, 19, 19, 0.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(21, 19, 19, 0.5) 1px, transparent 1px),
    radial-gradient(circle at 18% 16%, rgba(34, 199, 223, 0.55), transparent 24%),
    radial-gradient(circle at 82% 10%, rgba(255, 201, 40, 0.45), transparent 22%);
  background-size: 34px 34px, 34px 34px, 100vw 100vh, 100vw 100vh;
  z-index: -1;
}

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

a {
  color: inherit;
  text-decoration: none;
}

p,
li {
  text-align: justify;
  text-wrap: pretty;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 24px;
  min-height: 74px;
  padding: 10px clamp(18px, 4vw, 52px);
  border-bottom: 2px solid rgba(21, 19, 19, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 250, 241, 0.96), rgba(255, 240, 210, 0.92)),
    var(--paper);
  backdrop-filter: blur(16px);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--line);
  box-shadow: 0 8px 28px rgba(21, 19, 19, 0.08);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 10px;
  font-weight: 950;
}

.brand-logo {
  width: 62px;
  height: 62px;
  object-fit: contain;
  padding: 4px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(255, 201, 40, 0.2)),
    #fff;
  box-shadow: 4px 4px 0 var(--ink);
}

.brand-name {
  font-size: 1rem;
  white-space: nowrap;
}

.nav {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
  font-size: 0.91rem;
  font-weight: 780;
}

.nav::-webkit-scrollbar {
  display: none;
}

.nav a,
.site-footer a {
  position: relative;
  flex: 0 0 auto;
  white-space: nowrap;
}

.nav a {
  padding: 9px 12px;
  border: 2px solid transparent;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
}

.nav a:hover {
  border-color: var(--ink);
  background: #fff;
  box-shadow: 3px 3px 0 var(--ink);
}

.nav a::after,
.site-footer a::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -5px;
  left: 0;
  height: 2px;
  transform: scaleX(0);
  transform-origin: right;
  background: var(--red);
  transition: transform 160ms ease;
}

.nav a:hover::after,
.site-footer a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 2px solid var(--ink);
  border-radius: 6px;
  font-weight: 950;
  line-height: 1;
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform 160ms ease, box-shadow 160ms ease;
  text-align: center;
}

.button.primary {
  background: var(--red);
  color: #fff;
}

.button.secondary {
  background: #fff;
}

.button:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--ink);
}

.button:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.hero {
  position: relative;
  min-height: calc(100svh - 74px);
  display: grid;
  align-items: end;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(circle at 68% 42%, rgba(34, 199, 223, 0.24), transparent 30%),
    var(--ink);
}

.hero-media {
  position: absolute;
  inset: 0;
  z-index: -3;
}

.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
  filter: saturate(1.22) contrast(1.08) brightness(0.95);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(21, 19, 19, 0.94) 0%, rgba(21, 19, 19, 0.78) 44%, rgba(21, 19, 19, 0.25) 100%),
    linear-gradient(0deg, rgba(21, 19, 19, 0.9), transparent 62%);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 7px);
  pointer-events: none;
}

.hero-content {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(310px, 410px);
  align-items: end;
  gap: clamp(20px, 3.5vw, 46px);
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 92px 0 52px;
  color: #fff;
}

.hero-logo {
  width: clamp(180px, 22vw, 300px);
  margin: 0 0 18px;
  padding: clamp(8px, 1.2vw, 14px);
  border: 2px solid rgba(255, 255, 255, 0.32);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(255, 201, 40, 0.18)),
    rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 52px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(10px);
}

.hero-card {
  padding: clamp(22px, 3vw, 34px);
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(255, 201, 40, 0.22), transparent 38%),
    rgba(255, 249, 239, 0.94);
  color: var(--ink);
  box-shadow: 7px 7px 0 var(--ink), var(--shadow-soft);
}

.hero-card p {
  color: var(--muted);
}

.hero-source {
  position: absolute;
  right: clamp(18px, 4vw, 52px);
  bottom: 12px;
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.74rem;
  text-align: right;
}

.eyebrow,
.tag {
  margin: 0 0 12px;
  color: var(--red);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--yellow);
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 16px;
  max-width: 820px;
  font-size: clamp(2.8rem, 5.6vw, 5.35rem);
  line-height: 0.9;
  font-weight: 950;
  text-transform: uppercase;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(1.85rem, 3.9vw, 3.85rem);
  line-height: 1;
  font-weight: 950;
}

.hero-card h2 {
  margin-bottom: 14px;
  font-size: clamp(1.42rem, 2vw, 1.95rem);
}

h3 {
  margin-bottom: 10px;
  font-size: clamp(1.08rem, 1.55vw, 1.35rem);
  line-height: 1.05;
}

p {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.65;
}

.hero-lede {
  max-width: 710px;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1.04rem, 1.55vw, 1.22rem);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 22px 0 0;
}

.section {
  position: relative;
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: clamp(34px, 4.8vw, 68px) 0;
}

.section::before {
  content: "";
  position: absolute;
  inset: clamp(16px, 2.5vw, 30px) -18px;
  z-index: -1;
  border: 1px solid rgba(21, 19, 19, 0.08);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.56), rgba(255, 240, 210, 0.3)),
    rgba(255, 255, 255, 0.22);
  box-shadow: var(--shadow-window);
}

.section-heading {
  max-width: 900px;
  margin-bottom: 22px;
  padding-left: 18px;
  border-left: 8px solid var(--red);
}

.section-heading.compact {
  max-width: 760px;
}

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

.subject-list {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.subject-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 40px;
  padding: 8px 12px;
  border: 2px solid rgba(21, 19, 19, 0.82);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.84);
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 900;
  line-height: 1.1;
  text-align: center;
  box-shadow: 3px 3px 0 var(--ink);
}

a.subject-pill {
  transition: transform 160ms ease, box-shadow 160ms ease;
}

a.subject-pill:hover {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--ink);
}

.subject-pill.logo-pill {
  width: 172px;
  min-height: 96px;
  padding: 10px 12px 9px;
  flex-direction: column;
}

.subject-pill img {
  max-width: 100%;
  max-height: 50px;
  object-fit: contain;
}

.subject-pill.logo-pill span {
  display: block;
  font-size: 0.72rem;
  line-height: 1.1;
}

.subject-pill img[alt="Xzone"] {
  max-height: 58px;
}

.subject-pill img[alt="Gameevent"],
.subject-pill img[alt="Retro Games Brno"],
.subject-pill img[alt="Terra PC"],
.subject-pill img[alt="Retrohráče"] {
  max-width: 145px;
}

.subject-pill img[alt="ArcadeHry"],
.subject-pill img[alt="Gamebaze"],
.subject-pill img[alt="Herní planeta"],
.subject-pill img[alt="Herní historie"] {
  max-height: 46px;
}

.intro-grid article,
.people-grid article,
.event-card,
.quote,
.contact-form,
.contact-copy {
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-hard);
}

.intro-grid article,
.people-grid article {
  position: relative;
  overflow: hidden;
  min-height: 245px;
  padding: clamp(22px, 3vw, 34px);
}

.intro-grid article::after,
.people-grid article::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  opacity: 0.29;
  background:
    linear-gradient(90deg, rgba(255, 250, 241, 0.97) 0%, rgba(255, 250, 241, 0.82) 45%, rgba(255, 250, 241, 0.48) 100%),
    var(--section-photo, none) center / cover no-repeat;
  transform: none;
  border: 0;
}

.intro-grid article > *,
.people-grid article > * {
  position: relative;
  z-index: 1;
}

.intro-grid article:nth-child(1) { --section-photo: url("assets/photos/657054426_10233631061891545_5592221869514544821_n.jpg"); }
.intro-grid article:nth-child(2) { --section-photo: url("assets/photos/657316043_10233631057611438_4331859422348208996_n.jpg"); }
.intro-grid article:nth-child(3) { --section-photo: url("assets/photos/657428817_10233631057651439_1139954736664534036_n.jpg"); }
.people-grid article:nth-child(1) { --section-photo: url("assets/photos/657316043_10233631057611438_4331859422348208996_n.jpg"); }
.people-grid article:nth-child(2) { --section-photo: url("assets/photos/657054426_10233631061891545_5592221869514544821_n.jpg"); }
.people-grid article:nth-child(3) { --section-photo: url("assets/external/high-voltage-reportaz-retrogamecon.jpg"); }

.intro-grid article:nth-child(2),
.people-grid article:nth-child(2) {
  background: var(--paper-strong);
}

.intro-grid article:nth-child(3),
.people-grid article:nth-child(3) {
  background: #edf9fb;
}

.icon-box {
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  margin-bottom: 18px;
  padding: 9px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(255, 240, 210, 0.72)),
    #fff;
  box-shadow: 4px 4px 0 var(--ink);
}

.icon-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
  gap: clamp(20px, 3.6vw, 44px);
  align-items: start;
}

.rich-text {
  padding-top: 14px;
}

.events {
  width: min(1180px, calc(100% - 36px));
  max-width: 1180px;
  padding-inline: 0;
  background:
    linear-gradient(135deg, rgba(238, 55, 36, 0.08), transparent 34%),
    linear-gradient(225deg, rgba(34, 199, 223, 0.12), transparent 34%);
  color: var(--ink);
}

.events .section-heading {
  width: auto;
  margin-inline: 0;
}

.events p {
  color: var(--muted);
}

.events .eyebrow {
  color: var(--red);
}

.event-list {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 18px;
  width: min(1180px, 100%);
  margin: 0 auto;
}

.event-card {
  display: flex;
  min-height: 285px;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(22px, 3vw, 34px);
  color: var(--ink);
  overflow: hidden;
}

.event-card.featured {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.68), rgba(255, 240, 210, 0.72)),
    radial-gradient(circle at 92% 14%, rgba(238, 55, 36, 0.18), transparent 28%),
    linear-gradient(0deg, rgba(255, 201, 40, 0.28), rgba(255, 201, 40, 0.28)),
    var(--card);
}

.event-card:not(.featured) {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.68), rgba(237, 249, 251, 0.78)),
    radial-gradient(circle at 88% 18%, rgba(34, 199, 223, 0.2), transparent 30%),
    var(--card);
}

.event-card p {
  max-width: 620px;
  color: rgba(21, 19, 19, 0.72);
}

.event-card .tag {
  color: var(--blue);
}

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

.media-card {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  min-height: 100%;
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-hard);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.media-card:hover {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--ink);
}

.media-card img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-bottom: 2px solid var(--ink);
  filter: saturate(1.08) contrast(1.03);
}

.media-card span,
.media-card strong,
.media-card em {
  margin-inline: 16px;
}

.media-card span {
  margin-top: 16px;
  color: var(--red);
  font-size: 0.76rem;
  font-weight: 950;
  text-transform: uppercase;
}

.media-card strong {
  margin-top: 8px;
  margin-bottom: 18px;
  overflow-wrap: anywhere;
  font-size: clamp(1.08rem, 1.7vw, 1.32rem);
  line-height: 1.12;
}

.media-card em {
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 0.82rem;
  font-style: normal;
}

.quote {
  width: 100%;
  max-width: none;
  margin: 22px 0 0;
  padding: clamp(22px, 3vw, 34px);
  background: var(--panel);
}

.quote p {
  margin-bottom: 16px;
  color: var(--ink);
  font-size: clamp(1.15rem, 2.3vw, 1.62rem);
  line-height: 1.25;
  font-weight: 850;
  text-align: left;
}

.quote cite {
  color: var(--muted);
  font-style: normal;
  font-weight: 800;
}

.quote cite .fb-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-left: 4px;
  color: #1877f2;
  font-weight: 950;
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.quote cite .fb-link span {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  background: #1877f2;
  color: #fff;
  font-family: Arial, sans-serif;
  font-size: 0.9rem;
  font-weight: 950;
  line-height: 1;
}

.gallery {
  padding-top: 18px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-auto-rows: 200px;
  gap: 18px;
}

.recap-gallery {
  margin-top: clamp(22px, 3.2vw, 34px);
}

.gallery-card {
  position: relative;
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-hard);
}

.gallery-card.wide {
  grid-column: span 3;
  grid-row: span 2;
}

.gallery-card:not(.wide) {
  grid-column: span 2;
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(1.08) contrast(1.04);
}

.gallery-card figcaption {
  position: absolute;
  right: 10px;
  bottom: 10px;
  left: 10px;
  padding: 8px 10px;
  border: 2px solid var(--ink);
  border-radius: 6px;
  background: rgba(255, 249, 239, 0.94);
  color: var(--ink);
  font-size: 0.76rem;
  font-weight: 850;
}

.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(330px, 1fr);
  gap: 18px;
  align-items: start;
}

.contact-section,
.contact-form {
  scroll-margin-top: 110px;
}

.contact-copy,
.contact-form {
  padding: clamp(24px, 4vw, 42px);
}

.contact-form {
  display: grid;
  gap: 16px;
  background:
    linear-gradient(135deg, rgba(255, 201, 40, 0.22), transparent 42%),
    var(--paper-strong);
}

.contact-form label {
  display: grid;
  gap: 7px;
  font-weight: 850;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  border: 2px solid var(--ink);
  border-radius: 6px;
  padding: 12px 13px;
  background: #fff;
  color: var(--ink);
  font: inherit;
}

.contact-form textarea {
  resize: vertical;
}

.form-status {
  display: none;
  margin: 0;
  padding: 12px 14px;
  border: 2px solid var(--ink);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font-weight: 850;
  text-align: left;
}

.form-status.is-visible {
  display: block;
}

.form-status.is-error {
  background: #ffe7e2;
}

.form-status.is-success {
  background: #e6f8ee;
}

.contact-form button {
  width: fit-content;
  cursor: pointer;
}

.site-footer {
  border-top: 2px solid var(--ink);
  background: #171515;
  color: rgba(255, 247, 232, 0.82);
}

.footer-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(388px, auto) minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  padding: 32px clamp(18px, 5vw, 76px);
}

.footer-company {
  display: grid;
  gap: 5px;
  font-size: 0.82rem;
  line-height: 1.35;
}

.footer-company strong {
  color: #fff7e8;
  font-size: 1rem;
  font-weight: 950;
}

.site-footer a {
  color: inherit;
}

.footer-logos {
  display: grid;
  align-items: center;
  justify-self: center;
}

.footer-logo-group {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 16px 28px;
  align-items: center;
}

.footer-logos span {
  grid-column: 1 / -1;
  min-width: 0;
  color: rgba(255, 247, 232, 0.62);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
  text-align: left;
}

.footer-logos a {
  display: grid;
  place-items: center;
  width: 100%;
  height: 96px;
  padding: 0;
  border-radius: 0;
  background: transparent;
}

.footer-logos a::after {
  display: none;
}

.footer-logos img {
  width: 100%;
  height: 100%;
  max-width: 264px;
  max-height: 84px;
  object-fit: contain;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.4));
}

.footer-logos img[alt="GameEvent"] {
  max-height: 68px;
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.footer-social a {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 247, 232, 0.22);
  border-radius: 999px;
  background: rgba(255, 247, 232, 0.08);
  color: #fff7e8;
  transition: transform 160ms ease, background 160ms ease;
}

.footer-social a:hover {
  transform: translateY(-2px);
  background: rgba(255, 43, 29, 0.92);
}

.footer-social svg {
  width: 21px;
  height: 21px;
  fill: currentColor;
}

.footer-social a::after {
  display: none;
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  justify-content: center;
  align-items: center;
  padding: 10px 18px;
  background: #050505;
  color: #fff7e8;
  font-size: 0.78rem;
  font-weight: 780;
}

.footer-bottom a {
  color: #fff7e8;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-bottom a::after {
  display: none;
}

@media (min-width: 981px) {
  .hero {
    height: clamp(560px, calc(100svh - 74px), 700px);
    min-height: 0;
  }

  .hero-content {
    align-items: center;
    padding: 34px 0 30px;
  }

  .hero-logo {
    width: clamp(150px, 16vw, 240px);
  }

  .hero-card {
    align-self: center;
    transform: translateY(-24px);
  }

  [data-device="desktop"] .hero-media img {
    object-position: center 42%;
  }
}

@media (max-width: 1180px) {
  .site-header {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .nav {
    justify-content: flex-start;
    padding-bottom: 4px;
  }

  .media-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-main {
    grid-template-columns: 1fr;
    align-items: start;
  }

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

@media (max-width: 980px) {
  .hero-content,
  .split,
  .event-list,
  .contact-layout {
    grid-template-columns: 1fr;
  }

  .hero-card {
    max-width: 620px;
  }

  .intro-grid,
  .people-grid {
    grid-template-columns: 1fr 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: auto;
  }

  .gallery-card,
  .gallery-card.wide,
  .gallery-card:not(.wide) {
    grid-column: auto;
    grid-row: auto;
    aspect-ratio: 4 / 3;
  }
}

@media (max-width: 700px) {
  .site-header {
    min-height: 66px;
    padding: 8px 10px;
  }

  .brand-logo {
    width: 50px;
    height: 50px;
  }

  .brand-name {
    display: none;
  }

  .nav {
    width: 100%;
    justify-content: space-between;
    gap: 3px;
    overflow-x: visible;
    padding-bottom: 0;
    font-size: 0;
  }

  .nav a {
    min-width: 0;
    padding: 7px 5px;
    text-align: center;
    white-space: nowrap;
  }

  .nav a::before {
    content: attr(data-short);
    font-size: clamp(0.56rem, 2.65vw, 0.75rem);
    font-weight: 900;
  }

  .hero {
    min-height: calc(100svh - 66px);
  }

  .hero-media img {
    object-position: 55% 44%;
  }

  .hero::before {
    background:
      linear-gradient(0deg, rgba(21, 19, 19, 0.94), rgba(21, 19, 19, 0.44)),
      linear-gradient(90deg, rgba(21, 19, 19, 0.82), transparent);
  }

  .hero-content {
    width: min(100% - 28px, 1180px);
    padding: 28px 0 34px;
  }

  .hero-logo {
    width: min(210px, 66vw);
  }

  h1 {
    font-size: clamp(2.2rem, 10.5vw, 3.35rem);
  }

  h2 {
    font-size: clamp(1.55rem, 7.2vw, 2.55rem);
  }

  .section {
    padding-block: clamp(30px, 9vw, 46px);
  }

  .hero-actions {
    display: grid;
  }

  .intro-grid,
  .people-grid,
  .media-grid,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .subject-list {
    gap: 7px;
  }

  .gallery-card,
  .gallery-card.wide,
  .gallery-card:not(.wide) {
    aspect-ratio: 4 / 3;
  }

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

  .footer-logo-group {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 420px) {
  .section {
    width: min(100% - 28px, 1180px);
  }

  .button,
  .contact-form button {
    width: 100%;
  }

  p,
  li,
  .contact-copy p,
  .people-grid p,
  .intro-grid p {
    text-align: justify;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
