/* Company, campus, product and project sections. Loaded after styles.css. */
.company-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin: 30px 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}
.company-facts > div { min-width: 0; }
.company-facts dt { color: #8a7768; font-size: 11px; line-height: 1.6; }
.company-facts dd { margin: 8px 0 0; font-size: 14px; font-weight: 600; line-height: 1.8; overflow-wrap: anywhere; }

.campus { background: #f8f7f5; border-block: 1px solid #eeebe6; }
.campus-grid {
  display: grid;
  grid-template-columns: 1.38fr 1fr;
  grid-template-rows: repeat(2, minmax(245px, auto));
  gap: 22px;
}
.media-card {
  display: block;
  min-width: 0;
  padding: 0;
  background: #fff;
  border: 1px solid #e7e1da;
  text-align: left;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.media-card figure { display: grid; grid-template-rows: minmax(0, 1fr) auto; height: 100%; min-height: 0; margin: 0; }
.media-card-featured { grid-row: 1 / span 2; }
.media-card:hover { border-color: #dba474; box-shadow: 0 10px 28px #6e42100a; }
.photo-surface {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-width: 0;
  min-height: 170px;
  margin: 0;
  padding: 28px;
  overflow: hidden;
  color: #b97b4c;
  background-color: #fcf5ed;
  background-image: linear-gradient(#bf926513 1px, transparent 1px), linear-gradient(90deg, #bf926513 1px, transparent 1px), linear-gradient(135deg, #f9eadb 0%, #fdfaf5 56%, #f3e6d9 100%);
  background-size: 32px 32px, 32px 32px, 100% 100%;
  border: 0;
}
.photo-surface::before {
  content: "";
  position: absolute;
  inset: 18px;
  z-index: -1;
  border: 1px solid #c491641a;
  pointer-events: none;
}
.photo-surface > svg, .photo-surface > span > svg { width: 64px; height: 64px; flex-shrink: 0; color: #bf865b; }
.photo-status { max-width: 100%; font-size: 10px; font-weight: 400; letter-spacing: 1px; line-height: 1.7; text-align: center; color: #957a65; }
.photo-surface img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.media-card .photo-surface { height: 100%; min-height: 155px; }
.media-card-featured .photo-surface { min-height: 370px; }
.media-card figcaption {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 5px 18px;
  padding: 20px 24px;
}
.media-card figcaption small { color: #ab815f; font-size: 9px; letter-spacing: 1.4px; }
.media-card figcaption h3 { grid-column: 1; font-size: 17px; font-weight: 600; line-height: 1.55; }
.media-card-featured figcaption { padding: 26px 28px; }
.media-card-featured figcaption h3 { font-size: 22px; }
.gallery-open { display: inline-flex; gap: 6px; justify-content: center; align-items: center; min-width: 34px; min-height: 34px; font-size: 12px; color: #ba601d; }
.campus-location { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 25px; padding-top: 19px; border-top: 1px solid #e5ded5; color: #8b7a6c; font-size: 11px; line-height: 1.8; }
.campus-location > span { display: flex; align-items: center; gap: 10px; }
.campus-location svg { width: 17px; height: 17px; flex: none; color: #c5783c; }

.products { background: #fff; }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.product-card { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--border); background: #fff; }
.product-photo { width: 100%; min-height: 190px; aspect-ratio: 4 / 3; transition: filter .2s ease; }
.product-photo:hover, .project-photo:hover { filter: brightness(.975); }
.product-copy { display: flex; flex-direction: column; flex: 1; align-items: flex-start; padding: 23px; }
.product-copy > small, .project-copy > small { display: block; margin-bottom: 12px; font-size: 9px; letter-spacing: 1.2px; line-height: 1.8; color: #ac7144; }
.product-copy h3 { margin-bottom: 12px; font-size: 18px; line-height: 1.55; }
.product-copy p { margin-bottom: 22px; color: #78716c; font-size: 12px; line-height: 1.85; }
.product-copy .text-link { margin-top: auto; font-size: 11px; gap: 18px; padding-block: 9px; }
.product-copy .text-link span:last-child { font-size: 17px; }

.projects { border-top: 1px solid var(--border); }
.projects .section-heading { margin-bottom: 30px; }
.project-filters { display: flex; flex-wrap: wrap; gap: 10px; }
.project-filters button { min-height: 42px; padding: 10px 21px; border: 1px solid #e3ddd6; border-radius: 24px; background: #fff; color: #7b726a; font-size: 12px; line-height: 1.5; transition: color .2s ease, background .2s ease, border-color .2s ease; }
.project-filters button:hover { border-color: #d6996a; color: #ae581a; }
.project-filters button[aria-pressed="true"] { border-color: #ef7418; background: #fff1e4; color: #b34d00; font-weight: 600; }
.project-count { margin: 17px 0 22px; color: #94867a; font-size: 11px; line-height: 1.7; }
.project-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 23px; }
.project-card { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--border); background: #fff; }
.project-photo { width: 100%; min-height: 200px; aspect-ratio: 16 / 10; transition: filter .2s ease; }
.project-copy { display: flex; flex-direction: column; flex: 1; align-items: flex-start; padding: 26px; }
.project-copy h3 { margin-bottom: 12px; font-size: 19px; line-height: 1.55; }
.project-copy p { margin-bottom: 20px; color: #78716c; font-size: 13px; line-height: 1.85; }
.project-copy .text-link { margin-top: auto; padding-block: 10px; font-size: 12px; }
.project-status { display: inline-flex; align-items: center; align-self: flex-start; gap: 6px; padding: 5px 9px; background: #f6efe7; color: #a97e59; font-size: 9px; font-weight: 400; line-height: 1.5; letter-spacing: .3px; }
.project-copy .project-status { margin-bottom: 15px; }
.project-photo .project-status { position: absolute; z-index: 1; top: 14px; left: 14px; background: #fffaf3ed; }

.modal-photo { margin: 20px 0 24px; }
.modal-photo .photo-surface { width: 100%; min-height: 260px; aspect-ratio: 16 / 10; }
.modal-photo .photo-surface > svg { width: 80px; height: 80px; }
.modal-photo figcaption { padding: 12px 0 0; color: #8d8075; font-size: 11px; line-height: 1.8; }
.gallery-controls { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; margin-top: 16px; }
.gallery-controls button { min-height: 40px; padding: 9px 15px; border: 1px solid #e3d6c9; color: #a86636; font-size: 11px; line-height: 1.6; }
.gallery-controls button:hover { background: #fff2e6; border-color: #d79e71; }
.gallery-controls button:disabled { opacity: .4; }
.gallery-controls > span { color: #8c7d70; font-size: 11px; line-height: 1.7; text-align: center; }
.gallery-dots { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px; margin-top: 10px; }
.gallery-dots button { display: grid; place-items: center; width: 28px; height: 30px; padding: 0; color: #cbb39b; }
.gallery-dots button::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.gallery-dots button[aria-current="true"], .gallery-dots button[aria-pressed="true"], .gallery-dots button.is-active { color: var(--brand-orange); }
.showcase-meta, dl.showcase-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 25px; margin: 24px 0; padding: 22px 0; border-block: 1px solid var(--border); }
.showcase-meta > div { min-width: 0; }
.showcase-meta dl { margin: 0; }
.showcase-meta dt { color: #99816c; font-size: 10px; line-height: 1.8; }
.showcase-meta dd { margin: 5px 0 0; color: var(--ink); font-size: 13px; line-height: 1.85; overflow-wrap: anywhere; }
.showcase-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0; padding: 0; list-style: none; }
.showcase-tags > * { display: inline-flex; padding: 6px 10px; background: #faf0e6; color: #aa744b; font-size: 10px; line-height: 1.7; }
.detail-dialog .showcase-tags { margin: 20px 0; border: 0; }
.detail-dialog .showcase-tags li { padding: 6px 10px; border: 0; font-size: 10px; }
.detail-dialog .showcase-tags li::before { content: none; }
.showcase-note, .detail-dialog .showcase-note { margin: 21px 0 0; padding: 14px 17px; border-left: 2px solid #e3ab7d; background: #fcf7f1; color: #968171; font-size: 11px; line-height: 1.85; }

/* Fit the six main navigation links and expose the mobile menu earlier. */
.desktop-nav, html[lang="en"] .desktop-nav { gap: clamp(17px, 1.65vw, 27px); }
.desktop-nav a { white-space: nowrap; }
html[lang="en"] .desktop-nav { font-size: 12px; }
.media-card:focus-visible, .photo-surface:focus-visible, .project-filters button:focus-visible, .gallery-controls button:focus-visible, .gallery-dots button:focus-visible { outline: 3px solid #d95b00; outline-offset: 4px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, [tabindex]:focus-visible { outline-color: #d95b00; }
[hidden] { display: none !important; }

@media (min-width: 1181px) and (max-width: 1330px) {
  .site-header { padding-inline: 28px; gap: 20px; }
  .site-header .brand-logo { width: 175px; }
  .header-actions { gap: 17px; }
  .header-contact { padding-inline: 16px; gap: 16px; }
  .desktop-nav, html[lang="en"] .desktop-nav { gap: 17px; }
  .desktop-nav { font-size: 12px; }
  html[lang="en"] .desktop-nav { font-size: 11px; }
}
@media (max-width: 1180px) {
  .desktop-nav, html[lang="en"] .desktop-nav { display: none; }
  .menu-toggle { display: block; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 23px; }
  .product-photo { min-height: 210px; aspect-ratio: 16 / 10; }
  .product-copy { padding: 25px; }
  .project-copy { padding: 22px; }
  .project-copy h3 { font-size: 17px; }
}
@media (min-width: 961px) and (max-width: 1180px) {
  .mobile-nav { top: 92px; max-height: calc(100vh - 92px); overflow-y: auto; }
}
@media (max-width: 960px) {
  .mobile-nav { top: 76px; max-height: calc(100vh - 76px); overflow-y: auto; }
  .company-facts { gap: 15px; }
  .company-facts dd { font-size: 13px; }
  .campus-grid { grid-template-columns: 1.2fr 1fr; gap: 18px; }
  .media-card figcaption { padding: 18px; }
  .media-card-featured figcaption { padding: 23px; }
  .media-card-featured figcaption h3 { font-size: 20px; }
  .media-card figcaption h3 { font-size: 16px; }
  .campus-location { align-items: flex-start; flex-direction: column; gap: 8px; }
  .project-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .project-photo { min-height: 200px; }
}
@media (max-width: 700px) {
  .company-facts { grid-template-columns: 1fr; gap: 0; margin-top: 25px; padding-top: 6px; }
  .company-facts > div { display: grid; grid-template-columns: 95px minmax(0, 1fr); align-items: baseline; gap: 14px; padding: 16px 0; border-bottom: 1px solid #ede7e0; }
  .company-facts dt { font-size: 11px; }
  .company-facts dd { margin: 0; font-size: 13px; }
  .campus-grid { grid-template-columns: 1fr; grid-template-rows: none; gap: 20px; }
  .media-card-featured { grid-row: auto; }
  .media-card .photo-surface, .media-card-featured .photo-surface { min-height: 210px; height: auto; aspect-ratio: 16 / 10; }
  .media-card figcaption, .media-card-featured figcaption { padding: 19px 21px; }
  .media-card figcaption h3, .media-card-featured figcaption h3 { font-size: 18px; }
  .campus-location { margin-top: 20px; padding-top: 17px; font-size: 10px; }
  .product-grid, .project-grid { grid-template-columns: 1fr; gap: 24px; }
  .product-photo, .project-photo { min-height: 210px; aspect-ratio: 16 / 10; }
  .product-copy, .project-copy { padding: 23px; }
  .product-copy h3, .project-copy h3 { font-size: 19px; }
  .product-copy p, .project-copy p { font-size: 13px; }
  .product-copy .text-link, .project-copy .text-link { min-height: 42px; font-size: 12px; }
  .projects .section-heading { margin-bottom: 26px; }
  .project-filters { gap: 8px; }
  .project-filters button { min-height: 41px; padding: 10px 15px; font-size: 11px; }
  .project-count { margin: 16px 0 20px; font-size: 10px; }
  .modal-photo { margin: 18px 0 20px; }
  .modal-photo .photo-surface { min-height: 200px; aspect-ratio: 4 / 3; padding: 20px; }
  .modal-photo .photo-surface > svg { width: 64px; height: 64px; }
  .gallery-controls { grid-template-columns: 1fr 1fr; gap: 10px; }
  .gallery-controls > span { grid-column: 1 / -1; grid-row: 1; margin-bottom: 2px; }
  .gallery-controls button { min-height: 44px; font-size: 11px; }
  .showcase-meta, dl.showcase-meta { grid-template-columns: 1fr; gap: 16px; margin-block: 20px; padding-block: 18px; }
  .showcase-meta > div { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 13px; align-items: baseline; }
  .showcase-meta dd { margin: 0; font-size: 12px; }
  .showcase-note, .detail-dialog .showcase-note { padding: 12px 14px; font-size: 10px; }
}
@media (max-width: 360px) {
  .company-facts > div { grid-template-columns: 78px minmax(0, 1fr); gap: 12px; }
  .photo-surface { padding: 20px; }
  .photo-status { font-size: 9px; letter-spacing: .4px; }
  .media-card .photo-surface, .media-card-featured .photo-surface, .product-photo, .project-photo { min-height: 185px; }
  .media-card figcaption, .media-card-featured figcaption, .product-copy, .project-copy { padding: 19px; }
  .project-filters button { padding-inline: 13px; }
  .modal-photo .photo-surface { min-height: 180px; }
}
@media (prefers-reduced-motion: reduce) {
  .media-card, .product-photo, .project-photo, .project-filters button, .gallery-controls button { transition: none; }
}
