
@media (max-width: 1060px) {
  .site-header {
    backdrop-filter: none;
  }

  .menu-trigger {
    display: inline-grid;
  }

  .main-nav {
    position: fixed;
    inset: calc(38px + var(--header-height)) 0 0 auto;
    width: min(390px, 92vw);
    display: none;
    overflow-y: auto;
    padding: 24px;
    background: white;
    border-left: 1px solid var(--border);
    box-shadow: -20px 0 45px rgba(0,0,0,0.14);
  }

  body.menu-open .main-nav {
    display: block;
  }

  .nav-list {
    display: grid;
    align-items: stretch;
  }

  .nav-link,
  .nav-button {
    width: 100%;
    justify-content: space-between;
    padding: 14px 12px;
  }

  .dropdown {
    position: static;
    width: 100%;
    margin-top: 6px;
    box-shadow: none;
  }

  .nav-item:hover .dropdown {
    display: none;
  }

  .nav-item.dropdown-open .dropdown {
    display: block;
  }

  .header-inner {
    gap: 12px;
    flex-wrap: wrap;
  }

  .brand {
    width: 100%;
  }

  .search-trigger {
    margin-left: auto;
  }

  .hero__inner {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .hero-visual {
    max-width: 700px;
  }

  .split,
  .contact-panel {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 860px) {
  .section {
    padding: 70px 0;
  }

  .section-heading-row {
    align-items: start;
    flex-direction: column;
  }

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

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

  .stat:nth-child(3) {
    border-left: 0;
    border-top: 1px solid var(--border);
  }

  .stat:nth-child(4) {
    border-top: 1px solid var(--border);
  }

  .dean-card {
    grid-template-columns: 1fr;
  }

  .dean-card__image {
    min-height: 320px;
  }

  .quick-links {
    grid-template-columns: 1fr;
  }

  .contact-panel__details,
  .contact-panel__form {
    padding: 38px;
  }
}

@media (max-width: 640px) {
  :root {
    --header-height: 70px;
  }

  .container {
    width: min(calc(100% - 22px), var(--max-width));
  }

  .topbar__inner {
    justify-content: center;
  }

  .topbar__links {
    display: none;
  }

  .brand {
    flex: 1 1 auto;
    min-width: 0;
    gap: 10px;
    flex-wrap: nowrap;
  }

  .header-inner {
    flex-wrap: nowrap;
  }

  .brand {
    width: auto;
  }

  .brand__seal,
  .brand__logo {
    width: 42px;
    height: 42px;
    padding: 5px;
  }

  .brand__mark {
    width: 42px;
    height: 42px;
  }

  .brand__faculty {
    max-width: none;
    font-size: 0.83rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .search-trigger,
  .menu-trigger {
    flex: 0 0 44px;
  }

  .brand__university {
    font-size: 0.64rem;
  }

  .department-logo-slot {
    width: min(100%, 180px);
    height: auto;
    aspect-ratio: 1;
    padding: 14px;
  }

  .department-branding .placeholder-image {
    width: 100%;
  }

  .hero__inner {
    gap: 36px;
    padding: 70px 0;
  }

  .hero__title {
    font-size: clamp(2.6rem, 15vw, 4.2rem);
  }

  .hero__actions,
  .button-row {
    flex-direction: column;
    align-items: stretch;
  }

  .button {
    width: 100%;
  }

  .hero-card {
    min-height: 330px;
  }

  .grid--2,
  .grid--3,
  .grid--4,
  .news-grid,
  .form-grid,
  .stats {
    grid-template-columns: 1fr;
  }

  .stat + .stat,
  .stat:nth-child(3),
  .stat:nth-child(4) {
    border-left: 0;
    border-top: 1px solid var(--border);
  }

  .section-title {
    font-size: 2.2rem;
  }

  .page-hero__inner {
    min-height: 300px;
  }

  .page-title {
    font-size: clamp(2.5rem, 15vw, 4rem);
  }

  .dean-card__body,
  .card--padded {
    padding: 22px;
  }

  .contact-panel {
    border-radius: 22px;
  }

  .contact-panel__details,
  .contact-panel__form {
    padding: 28px 22px;
  }

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

  .footer-bottom {
    flex-direction: column;
  }

  .search-overlay {
    padding: 10px;
  }

  .search-panel {
    margin-top: 0;
    padding: 20px;
    border-radius: 16px;
  }

  .news-controls {
    width: 100%;
    justify-content: end;
  }
}
