:root {
  --blue: #5e6fbf;
  --deep-blue: #1e276a;
  --ink: #111;
  --muted: #666;
  --paper: #fff;
  --page: #e9e9e9;
  --stripe: #d2d2d2;
  --content-width: 890px;
  --sidebar-width: 201px;
  --shadow: 0 12px 25px rgba(0, 0, 0, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--page) url("images/main-bg.jpg") center top / 2560px 771px no-repeat;
  color: var(--ink);
  font-family: Helvetica, "Trebuchet MS", Arial, sans-serif;
  font-size: 13px;
  line-height: 1.9;
}

body.menu-open {
  overflow: hidden;
}

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

a {
  color: #5d5d5d;
  text-decoration: underline;
  text-underline-offset: 2px;
}

a:hover,
a:focus-visible {
  color: #252525;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 8px;
  left: 8px;
  transform: translateY(-150%);
  padding: 8px 12px;
  border-radius: 2px;
  background: #fff;
  color: #111;
}

.skip-link:focus {
  transform: translateY(0);
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

.site-header,
.site-frame,
.footer-inner {
  width: min(100% - 28px, var(--content-width));
  margin-inline: auto;
}

.site-header {
  height: 150px;
  position: relative;
}

.brand {
  position: absolute;
  inset: 0 auto auto 0;
  display: block;
  width: 660px;
  height: 145px;
  max-width: 78vw;
  text-decoration: none;
}

.brand img {
  width: 660px;
  height: 145px;
  object-fit: contain;
  object-position: left top;
}

.navigation-shell {
  position: relative;
  z-index: 20;
  min-height: 43px;
  background: #202a74 url("images/menu-bg.jpg") center top / 890px 87px repeat-x;
}

.nav-inner {
  width: min(100% - 28px, var(--content-width));
  min-height: 43px;
  margin-inline: auto;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding-right: 15px;
}

.menu-toggle {
  display: none;
  align-items: center;
  gap: 9px;
  border: 0;
  padding: 9px 0;
  background: transparent;
  color: #fff;
  font-weight: 700;
  text-transform: uppercase;
  cursor: pointer;
}

.menu-toggle-lines,
.menu-toggle-lines::before,
.menu-toggle-lines::after {
  width: 23px;
  height: 2px;
  background: currentColor;
  content: "";
  display: block;
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-toggle-lines {
  position: relative;
}

.menu-toggle-lines::before {
  position: absolute;
  top: -7px;
}

.menu-toggle-lines::after {
  position: absolute;
  top: 7px;
}

.menu-open .menu-toggle-lines {
  background: transparent;
}

.menu-open .menu-toggle-lines::before {
  transform: translateY(7px) rotate(45deg);
}

.menu-open .menu-toggle-lines::after {
  transform: translateY(-7px) rotate(-45deg);
}

.primary-nav {
  flex: 1 1 auto;
}

.primary-nav ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.primary-nav > ul {
  min-height: 43px;
  display: flex;
  align-items: flex-start;
}

.primary-nav li {
  position: relative;
}

.primary-nav a,
.primary-nav button {
  display: block;
  border: 0;
  padding: 9px 10px 8px;
  background: transparent;
  color: #fff;
  font-size: 12px;
  line-height: 26px;
  font-weight: 700;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
}

.primary-nav a:hover,
.primary-nav a:focus-visible,
.primary-nav button:hover,
.primary-nav button:focus-visible,
.primary-nav .active > a,
.primary-nav .active > button {
  color: #b3bbdf;
}

.primary-nav .submenu {
  position: absolute;
  z-index: 30;
  top: 41px;
  left: 0;
  width: 230px;
  padding: 5px 0;
  background: rgba(30, 39, 106, 0.96);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity 150ms ease, transform 150ms ease, visibility 150ms ease;
}

.primary-nav .submenu a {
  padding: 6px 14px;
  font-size: 11px;
  line-height: 1.45;
  text-transform: none;
  white-space: normal;
}

.has-submenu:hover > .submenu,
.has-submenu:focus-within > .submenu,
.has-submenu.submenu-open > .submenu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.site-search {
  flex: 0 0 174px;
  margin-top: 10px;
}

.site-search label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
}

.site-search input {
  width: 100%;
  height: 24px;
  margin: 0;
  border: 1px solid #c9c5c4;
  border-radius: 0;
  padding: 3px 6px;
  background: #fff;
  color: #333;
  line-height: 18px;
}

.site-search input:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.hero {
  position: relative;
  height: 200px;
  overflow: hidden;
  background: #fff url("images/hero-shadow.jpg") center bottom / 1000px 26px no-repeat;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.hero img {
  position: absolute;
  inset: 0 0 auto;
  width: 100%;
  height: 200px;
  object-fit: cover;
  opacity: 0;
  transition: opacity 900ms ease;
}

.hero img.is-active {
  opacity: 1;
}

.content-shell {
  min-height: 890px;
  background: #fff;
  box-shadow: var(--shadow);
}

.main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--sidebar-width);
  gap: 16px;
  padding: 28px 16px 70px 20px;
}

.main-content {
  min-width: 0;
}

.main-content h1,
.main-content h2 {
  margin: 3px 0 20px;
  color: var(--blue);
  font-size: 22px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}

.main-content h2 {
  margin-top: 32px;
}

.main-content h3 {
  margin: 24px 0 8px;
  color: #444;
  font-size: 16px;
  line-height: 1.35;
}

.main-content p {
  margin: 0 0 14px;
}

.main-content ul {
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.main-content li {
  position: relative;
  min-height: 22px;
  padding: 2px 0 2px 14px;
}

.main-content li::before {
  position: absolute;
  top: 12px;
  left: 1px;
  width: 4px;
  height: 4px;
  background: var(--blue);
  content: "";
}

.lede {
  font-size: 14px;
}

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

.article-image {
  box-shadow: 0 8px 17px rgba(0, 0, 0, 0.12);
}

.article-image--right {
  float: right;
  width: 266px;
  margin: 0 0 18px 22px;
}

.striped-list {
  margin-top: 48px !important;
}

.striped-list li {
  padding: 15px 6px;
}

.striped-list li::before {
  display: none;
}

.striped-list li:nth-child(odd) {
  background: var(--stripe);
}

.data-table {
  width: 100%;
  margin-top: 48px;
  border-collapse: collapse;
  border-spacing: 0;
  line-height: 1.6;
}

.data-table td,
.data-table th {
  padding: 15px 5px;
  text-align: left;
  vertical-align: middle;
}

.data-table tbody tr:nth-child(odd) {
  background: var(--stripe);
}

.data-table .place {
  width: 20%;
}

.data-table .year {
  width: 7%;
  white-space: nowrap;
}

.data-table a {
  color: #5e6fbf;
  text-decoration: none;
}

.detail-table {
  width: 100%;
  border-collapse: collapse;
}

.detail-table th,
.detail-table td {
  padding: 14px 6px;
  text-align: left;
  vertical-align: top;
}

.detail-table th {
  width: 31%;
  font-weight: 400;
}

.detail-table tr:nth-child(odd) {
  background: var(--stripe);
}

.contact-section + .contact-section {
  margin-top: 38px;
}

.map-frame {
  width: 100%;
  height: 340px;
  border: 1px solid #d7d7d7;
  background: #eee;
}

.map-link {
  display: inline-block;
  margin-top: 8px;
}

.staff-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: #fff;
}

.staff-card {
  padding: 14px;
  background: var(--stripe);
}

.staff-card:nth-child(2),
.staff-card:nth-child(3) {
  background: #f8f8f8;
}

.staff-card strong,
.staff-card span,
.staff-card a {
  display: block;
}

.staff-card strong {
  color: #333;
  font-size: 15px;
}

.certificate-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin: 38px 18px 0;
}

.certificate-card {
  color: #111;
  text-align: center;
  text-decoration: none;
}

.certificate-card img {
  width: 100%;
  max-width: 213px;
  margin-inline: auto;
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.18);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.certificate-card:hover img,
.certificate-card:focus-visible img {
  transform: translateY(-3px);
  box-shadow: 0 9px 17px rgba(0, 0, 0, 0.22);
}

.certificate-card span {
  display: block;
  margin-top: 14px;
}

.project-intro {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  gap: 28px;
  align-items: start;
}

.project-intro img {
  width: 200px;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border: 5px solid #f0f0f0;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 36px;
}

.gallery-item {
  display: block;
  width: 100%;
  border: 6px solid #f3f3f3;
  padding: 0;
  background: #eee;
  box-shadow: 0 4px 11px rgba(0, 0, 0, 0.1);
  cursor: zoom-in;
}

.gallery-item img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

.lightbox {
  width: min(94vw, 1000px);
  border: 0;
  padding: 42px 12px 12px;
  background: rgba(15, 18, 29, 0.97);
  color: #fff;
}

.lightbox::backdrop {
  background: rgba(0, 0, 0, 0.8);
}

.lightbox img {
  max-height: 82vh;
  margin-inline: auto;
}

.lightbox-close {
  position: absolute;
  top: 5px;
  right: 8px;
  border: 0;
  padding: 3px 10px;
  background: transparent;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
}

.side-column {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.side-card {
  width: 201px;
  min-height: 246px;
  border: 1px solid #d5d7da;
  padding: 31px 10px 23px;
  background: linear-gradient(90deg, #edf4f7 0%, #fff 50%, #edf4f7 100%);
  box-shadow: 0 9px 16px rgba(0, 0, 0, 0.12);
  text-align: center;
}

.side-card img {
  margin: 0 auto 10px;
}

.side-card p {
  margin: 0 0 8px;
}

.side-card a {
  color: #5e6fbf;
  text-decoration: none;
}

.contact-card {
  min-height: 294px;
}

.contact-card address {
  font-style: normal;
}

.contact-card address span,
.contact-card address a {
  display: block;
}

.cert-side-link {
  width: 201px;
  text-decoration: none;
  box-shadow: 0 9px 16px rgba(0, 0, 0, 0.1);
}

.search-summary {
  margin-bottom: 22px;
  color: #555;
}

.search-result-list {
  display: grid;
  gap: 1px;
  border-top: 1px solid #ddd;
}

.search-result {
  display: block;
  padding: 16px 12px;
  background: #f7f7f7;
  text-decoration: none;
}

.search-result:nth-child(odd) {
  background: var(--stripe);
}

.search-result strong,
.search-result span {
  display: block;
}

.search-result strong {
  color: var(--blue);
  font-size: 16px;
  letter-spacing: 0.4px;
}

.search-empty {
  padding: 18px;
  background: #f5f5f5;
}

.site-footer {
  min-height: 99px;
  background: #f3f3f3 url("images/footer-bg.jpg") center top / 2560px 99px no-repeat;
  color: #4a4542;
  text-align: center;
}

.footer-inner {
  padding-top: 22px;
}

.footer-inner p {
  margin: 0;
  line-height: 1.9;
}

.footer-title {
  font-weight: 700;
}

.studio-credit {
  padding: 5px 0 3px;
  background: rgba(255, 255, 255, 0.55);
  font-size: 8px;
  line-height: 1.4;
  text-align: center;
}

.studio-credit a {
  color: #4a4542;
  text-decoration: none;
}

@media (max-width: 900px) {
  body {
    background-size: auto 680px;
  }

  .site-header,
  .site-frame,
  .footer-inner,
  .nav-inner {
    width: min(100% - 20px, var(--content-width));
  }

  .primary-nav a,
  .primary-nav button {
    padding-inline: 7px;
    font-size: 11px;
  }

  .site-search {
    flex-basis: 158px;
  }
}

@media (max-width: 760px) {
  body {
    background-image: linear-gradient(#e9e9e9 0 112px, #202a74 112px 390px, #e9e9e9 390px);
    background-size: 100% 680px;
  }

  .site-header {
    height: 112px;
  }

  .brand {
    width: 520px;
    height: 108px;
    max-width: 94vw;
  }

  .brand img {
    width: 520px;
    height: 108px;
  }

  .navigation-shell {
    min-height: 45px;
  }

  .nav-inner {
    min-height: 45px;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    padding-right: 0;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .site-search {
    flex: 0 1 210px;
    margin: 0;
  }

  .primary-nav {
    position: fixed;
    z-index: 100;
    inset: 157px 0 0;
    overflow-y: auto;
    background: rgba(30, 39, 106, 0.985);
    opacity: 0;
    visibility: hidden;
    transform: translateX(-100%);
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
  }

  .menu-open .primary-nav {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
  }

  .primary-nav > ul {
    display: block;
    min-height: 0;
    padding: 14px 16px 40px;
  }

  .primary-nav a,
  .primary-nav button {
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.16);
    padding: 11px 8px;
    font-size: 14px;
    line-height: 1.5;
    text-align: left;
  }

  .primary-nav .submenu {
    position: static;
    width: auto;
    max-height: 0;
    overflow: hidden;
    padding: 0 0 0 14px;
    background: rgba(255, 255, 255, 0.06);
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: max-height 180ms ease;
  }

  .has-submenu.submenu-open > .submenu,
  .has-submenu:focus-within > .submenu {
    max-height: 300px;
  }

  .primary-nav .submenu a {
    font-size: 13px;
  }

  .hero {
    height: 148px;
    background-size: 700px 18px;
  }

  .hero img {
    height: 148px;
  }

  .content-shell {
    min-height: 0;
  }

  .main-grid {
    grid-template-columns: 1fr;
    padding: 25px 18px 45px;
  }

  .side-column {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 25px;
  }

  .side-card,
  .cert-side-link {
    width: 100%;
  }

  .side-card {
    min-height: 0;
    padding: 22px 10px;
  }

  .about-layout {
    grid-template-columns: 1fr 220px;
  }

  .article-image--right {
    width: 220px;
  }
}

@media (max-width: 620px) {
  .site-search {
    flex-basis: 170px;
  }

  .main-content h1,
  .main-content h2 {
    font-size: 20px;
  }

  .about-layout,
  .project-intro,
  .staff-grid {
    grid-template-columns: 1fr;
  }

  .about-layout .article-image {
    width: min(100%, 266px);
    margin-inline: auto;
    grid-row: 2;
  }

  .article-image--right {
    float: none;
    width: min(100%, 266px);
    margin: 0 auto 22px;
  }

  .project-intro img {
    width: min(100%, 320px);
  }

  .certificate-grid {
    grid-template-columns: 1fr;
    margin-inline: 0;
  }

  .certificate-card img {
    width: 190px;
  }

  .data-table,
  .data-table tbody {
    display: block;
  }

  .data-table tr {
    display: grid;
    grid-template-columns: 1fr auto;
    padding: 12px 10px;
  }

  .data-table td {
    display: block;
    width: auto !important;
    padding: 2px 0;
  }

  .data-table .place {
    color: #3f4f9f;
    font-weight: 700;
  }

  .data-table .work {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .data-table .year {
    grid-column: 2;
    grid-row: 1;
    padding-left: 10px;
  }

  .detail-table,
  .detail-table tbody,
  .detail-table tr,
  .detail-table th,
  .detail-table td {
    display: block;
    width: 100%;
  }

  .detail-table tr {
    padding: 10px;
  }

  .detail-table th,
  .detail-table td {
    padding: 2px 0;
  }

  .detail-table th {
    color: #4f5da4;
    font-weight: 700;
  }

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

  .side-column {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .side-card,
  .cert-side-link {
    width: min(100%, 320px);
  }

  .cert-side-link img {
    width: 100%;
  }
}

@media (max-width: 430px) {
  .site-header,
  .site-frame,
  .footer-inner,
  .nav-inner {
    width: min(100% - 16px, var(--content-width));
  }

  .site-header {
    height: 96px;
  }

  .brand {
    height: 94px;
  }

  .brand img {
    height: 94px;
  }

  body {
    background-image: linear-gradient(#e9e9e9 0 96px, #202a74 96px 350px, #e9e9e9 350px);
  }

  .primary-nav {
    inset: 141px 0 0;
  }

  .site-search {
    flex-basis: 145px;
  }

  .site-search input {
    font-size: 12px;
  }

  .hero {
    height: 130px;
  }

  .hero img {
    height: 130px;
  }

  .main-grid {
    padding-inline: 14px;
  }

  .main-content h1,
  .main-content h2 {
    letter-spacing: 1.2px;
  }
}

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

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
