:root { --line: 1px solid #000; }
* { box-sizing: border-box; }
html, body { margin: 0; width: 100%; height: 100%; overflow: hidden; }
body { background: #fff; color: #000; font-family: Arial, Helvetica, sans-serif; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.home-grid {
  width: 100vw;
  height: 100dvh;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: 56% 44%;
}
.brand-panel {
  grid-column: 1 / -1;
  display: grid;
  place-items: center;
  border-bottom: var(--line);
  padding: clamp(24px, 5vw, 72px);
}
.brand-panel img { width: min(50vw, 650px); }
.portal {
  min-width: 0;
  display: grid;
  place-items: center;
  padding: clamp(16px, 2.5vw, 38px);
  border-right: var(--line);
  position: relative;
}
.portal:last-child { border-right: 0; }
.portal img { width: min(100%, 430px); max-height: 78%; object-fit: contain; }
.portal:hover { background: #000; color: #fff; }
.portal:hover img { filter: invert(1); }
.portal-about {
  place-items: stretch;
  align-content: space-between;
  gap: clamp(12px, 1.5vw, 22px);
  padding: clamp(18px, 2.5vw, 38px);
}
.about-heading h1 {
  margin: 0;
  font-size: clamp(38px, 5.8vw, 88px);
  line-height: .8;
  letter-spacing: -.06em;
}
.about-heading p {
  margin: 15px 0 0;
  font-size: 11px;
  text-transform: uppercase;
}
.about-links {
  display: grid;
  gap: 5px;
  align-self: end;
}
.about-links a {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 8px;
  align-items: baseline;
  font-size: 10px;
  line-height: 1.2;
  text-transform: uppercase;
}
.about-links span { font-weight: 400; }
.about-links strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 400;
}
.about-links a:hover strong { text-decoration: underline; }
.copyright {
  display: block;
  align-self: end;
  font-size: 7px;
  line-height: 1;
  letter-spacing: .04em;
}
.portal-about:hover { background: #fff; color: #000; }


.archive-shell { height: 100dvh; display: grid; grid-template-rows: 38% 62%; }
.archive-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: clamp(18px, 3vw, 42px);
  border-bottom: var(--line);
}
.archive-header img { width: min(44vw, 520px); max-height: 70%; object-fit: contain; object-position: left center; }
.close-link { align-self: flex-start; font-size: 12px; text-transform: uppercase; }
.archive-list { display: grid; grid-template-rows: repeat(3, 1fr); min-height: 0; }
.archive-item {
  display: grid;
  grid-template-columns: 64px 1fr auto;
  align-items: center;
  gap: 18px;
  padding: 12px clamp(16px, 2.5vw, 34px);
  border-bottom: var(--line);
  text-transform: uppercase;
  min-height: 0;
}
.archive-item:last-child { border-bottom: 0; }
.archive-item span, .archive-item small { font-size: 11px; }
.archive-item strong { font-size: clamp(32px, 5.7vw, 84px); line-height: .8; letter-spacing: -.055em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.archive-item:hover { background: #000; color: #fff; }

@media (max-width: 700px) {
  .home-grid {
    grid-template-columns: 1fr;
    grid-template-rows: 31% 20% 20% 29%;
  }
  .brand-panel { grid-column: 1; padding: 24px; }
  .brand-panel img { width: min(78vw, 430px); }
  .portal { border-right: 0; border-bottom: var(--line); padding: 14px 24px; }
  .portal:last-child { border-bottom: 0; }
  .portal img { width: min(72vw, 390px); max-height: 78%; }
  .portal-about {
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
    grid-template-rows: 1fr auto;
    align-items: start;
    gap: 10px 18px;
    padding: 15px 18px 12px;
  }
  .about-heading h1 { font-size: clamp(32px, 10vw, 52px); }
  .about-heading p { margin-top: 7px; font-size: 8px; }
  .about-links { align-self: start; gap: 4px; }
  .about-links a { grid-template-columns: 58px minmax(0, 1fr); font-size: 8px; gap: 5px; }
  .copyright { grid-column: 1 / -1; font-size: 6px; }

  .archive-shell { grid-template-rows: 30% 70%; }
  .archive-header { padding: 16px; align-items: center; }
  .archive-header img { width: min(72vw, 420px); max-height: 72%; }
  .archive-item { grid-template-columns: 36px 1fr; gap: 8px; padding: 10px 14px; }
  .archive-item strong { font-size: clamp(28px, 10vw, 48px); }
  .archive-item small { grid-column: 2; font-size: 9px; }
}

@media (max-height: 620px) and (max-width: 700px) {
  .home-grid { grid-template-rows: 28% 19% 19% 34%; }
  .about-heading p { display: none; }
  .about-links { gap: 2px; }
  .archive-shell { grid-template-rows: 25% 75%; }
}
