/* Multi-page KONG/OS 96 shell and archive layouts. */

html {
  background: #0b1017;
  overscroll-behavior-y: none;
  scroll-padding-top: var(--navigator-height, 146px);
}

html.has-open-dialog,
body.has-open-dialog {
  overflow: hidden;
  overscroll-behavior: none;
}

.multi-page {
  min-height: 100vh;
  padding-bottom: 27px;
  background: #0b1017;
  overscroll-behavior-y: none;
}

/* Hide the retired system bar if a browser restores an older page snapshot. */
.multi-page > .os-bar {
  display: none !important;
}

.multi-page .desktop {
  min-height: calc(100vh - 27px);
  padding: 0;
  overflow: visible;
  background: #0b1017;
}

.multi-page .desktop__pattern,
.multi-page .desktop::before,
.multi-page .desktop::after {
  display: none;
}

.multi-page .site-window {
  width: 100%;
  min-height: calc(100vh - 27px);
  margin: 0;
  padding-top: var(--navigator-height, 146px);
  border-width: 0 0 2px;
  background: #0b1017;
  box-shadow: none;
}

.navigator-shell {
  position: fixed;
  z-index: 1000;
  inset: 0 0 auto;
  width: 100%;
  display: block;
  background: var(--chrome);
  border-bottom: 1px solid #20212a;
  box-shadow: 0 5px 14px rgba(0, 0, 0, 0.48);
}

.multi-page .menu-bar a {
  padding: 2px 8px;
  color: #181818;
  background: transparent;
  border: 1px solid transparent;
  text-decoration: none;
  font: 12px var(--ui);
}

.multi-page .menu-bar a:hover {
  background: #f1efe6;
  border-color: #fff #777 #777 #fff;
}

.site-nav {
  position: static;
  z-index: auto;
  top: auto;
  display: flex;
  gap: 6px;
  align-items: center;
  overflow-x: auto;
  padding: 5px 8px 6px;
  color: #222;
  background: var(--chrome);
  border-top: 1px solid white;
  border-bottom: 1px solid #64645f;
  scrollbar-width: thin;
}

.site-nav::before {
  content: "Go to";
  flex: 0 0 auto;
  margin-right: 2px;
  color: #222;
  font: 11px var(--ui);
}

.site-nav a {
  flex: 0 0 auto;
  min-height: 28px;
  padding: 5px 11px;
  color: #111;
  background: var(--chrome);
  border: 2px solid;
  border-color: white #4d4d4d #4d4d4d white;
  text-decoration: none;
  font: 700 11px var(--ui);
  letter-spacing: 0.015em;
}

.site-nav a:hover {
  color: #111;
  background: #dedbd0;
}

.site-nav a.is-active {
  color: white;
  background: #202878;
  border-color: #4d4d4d white white #4d4d4d;
  box-shadow: inset 1px 1px rgba(0, 0, 0, 0.3);
}

.site-page {
  min-height: 720px;
  color: #f0f3f8;
  background:
    radial-gradient(circle at 12% 0%, rgba(50, 210, 223, 0.055), transparent 32rem),
    radial-gradient(circle at 88% 8%, rgba(154, 112, 232, 0.045), transparent 30rem),
    repeating-linear-gradient(0deg, rgba(183, 205, 226, 0.018) 0, rgba(183, 205, 226, 0.018) 1px, transparent 1px, transparent 5px),
    #0c121a;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 24px clamp(18px, 4vw, 60px);
  color: #777f90;
  background: #07090d;
  border-top: 1px solid #242b36;
  font: 9px/1.5 var(--mono);
  letter-spacing: 0.05em;
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--cyan);
  text-decoration: none;
}

.multi-page .status-bar {
  position: fixed;
  z-index: 1200;
  inset: auto 0 0;
  width: 100%;
  border-top: 1px solid white;
  box-shadow: 0 -4px 14px rgba(0, 0, 0, 0.42);
}

/* Clippy / Windows 98-style site assistant */
.clippy-assistant {
  position: fixed;
  z-index: 1300;
  right: 14px;
  bottom: 35px;
  display: flex;
  gap: 4px;
  align-items: flex-end;
  pointer-events: none;
  filter: drop-shadow(5px 6px 0 rgba(0, 0, 0, 0.32));
}

.clippy-balloon {
  position: relative;
  width: min(330px, calc(100vw - 130px));
  margin-bottom: 34px;
  padding: 15px 16px 13px;
  color: #111;
  background: #fffbd5;
  border: 2px solid #111;
  border-radius: 14px;
  box-shadow: inset 1px 1px #fff;
  pointer-events: auto;
  font: 11px/1.45 var(--ui);
  animation: clippy-balloon-in 260ms steps(4, end) both;
}

.clippy-balloon::before,
.clippy-balloon::after {
  content: "";
  position: absolute;
  right: -20px;
  bottom: 18px;
  width: 0;
  height: 0;
  border-style: solid;
}

.clippy-balloon::before {
  border-width: 10px 0 10px 20px;
  border-color: transparent transparent transparent #111;
}

.clippy-balloon::after {
  right: -16px;
  bottom: 20px;
  border-width: 8px 0 8px 17px;
  border-color: transparent transparent transparent #fffbd5;
}

.clippy-balloon strong {
  display: block;
  padding-right: 18px;
  color: #151b72;
  font: 700 11px/1.2 var(--mono);
  letter-spacing: 0.04em;
}

.clippy-balloon p {
  min-height: 47px;
  margin: 7px 0 11px;
}

.clippy-balloon__close {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 20px;
  height: 19px;
  display: grid;
  place-items: center;
  padding: 0 0 2px;
  color: #111;
  background: var(--chrome);
  border: 2px solid;
  border-color: #fff #404040 #404040 #fff;
  font: 700 12px/1 var(--ui);
}

.clippy-balloon__close:active,
.clippy-balloon__actions button:active,
.clippy-balloon__actions a:active {
  border-color: #404040 #fff #fff #404040;
  transform: translate(1px, 1px);
}

.clippy-balloon__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.clippy-balloon__actions a,
.clippy-balloon__actions button {
  min-height: 27px;
  padding: 5px 9px;
  color: #111;
  background: var(--chrome);
  border: 2px solid;
  border-color: #fff #404040 #404040 #fff;
  text-decoration: none;
  font: 700 9px/1.2 var(--ui);
}

.clippy-balloon__actions a:focus-visible,
.clippy-balloon__actions button:focus-visible,
.clippy-balloon__close:focus-visible,
.clippy-character:focus-visible {
  outline: 2px dotted #111;
  outline-offset: 3px;
}

.clippy-character {
  position: relative;
  width: 116px;
  height: 142px;
  flex: 0 0 116px;
  padding: 0;
  overflow: visible;
  background: transparent;
  border: 0;
  pointer-events: auto;
  touch-action: none;
  user-select: none;
  cursor: grab !important;
}

.clippy-assistant.is-dragging,
.clippy-assistant.is-dragging * {
  cursor: grabbing !important;
}

.clippy-character img {
  width: 116px;
  height: 116px;
  display: block;
  object-fit: contain;
  pointer-events: none;
  -webkit-user-drag: none;
  transform-origin: 50% 100%;
  animation: clippy-idle 3.2s ease-in-out infinite;
}

@keyframes clippy-balloon-in {
  from { opacity: 0; transform: translate(10px, 8px) scale(0.96); }
  to { opacity: 1; transform: translate(0, 0) scale(1); }
}

@keyframes clippy-idle {
  0%, 74%, 100% { transform: rotate(0deg) translateY(0); }
  80% { transform: rotate(-3deg) translateY(-2px); }
  88% { transform: rotate(3deg) translateY(-3px); }
  94% { transform: rotate(-1deg) translateY(-1px); }
}

@media (max-width: 650px) {
  .clippy-assistant {
    right: 5px;
    bottom: 30px;
  }

  .clippy-character {
    width: 82px;
    height: 102px;
    flex-basis: 82px;
  }

  .clippy-character img {
    width: 82px;
    height: 82px;
  }

  .clippy-balloon {
    width: min(278px, calc(100vw - 94px));
    margin-bottom: 28px;
    padding: 13px 12px 11px;
  }

  .clippy-balloon p {
    min-height: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .clippy-balloon,
  .clippy-character img {
    animation: none;
  }
}

/* Home */

@media (min-width: 881px) {
  .multi-page {
    background:
      radial-gradient(circle at 83% 12%, rgba(154, 112, 232, 0.14), transparent 38rem),
      radial-gradient(circle at 12% 42%, rgba(50, 210, 223, 0.10), transparent 36rem),
      repeating-linear-gradient(0deg, rgba(183, 205, 226, 0.018) 0, rgba(183, 205, 226, 0.018) 1px, transparent 1px, transparent 5px),
      #0c121a;
    background-attachment: fixed;
    background-size: 100vw 100vh;
  }

  .multi-page .desktop,
  .multi-page .site-window,
  .multi-page .site-page,
  .multi-page .home-hero,
  .multi-page .home-metrics,
  .multi-page .home-grid,
  .multi-page .directory-section {
    background: transparent;
  }

  .home-page {
    min-height: calc(100vh - var(--navigator-height, 146px) - 27px);
    min-height: calc(100dvh - var(--navigator-height, 146px) - 27px);
  }

  .home-id-card__badges {
    grid-template-columns: repeat(2, 132px);
    justify-content: start;
  }

  .home-id-card__badges a {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 6px;
    padding: 6px;
  }

  .home-id-card__badges img {
    width: 34px;
    height: 34px;
  }

}

.home-hero {
  display: grid;
  grid-template-columns: minmax(320px, 0.78fr) minmax(480px, 1.25fr);
  gap: clamp(35px, 6vw, 96px);
  align-items: center;
  min-height: 560px;
  padding: clamp(50px, 7vw, 104px) clamp(25px, 6vw, 100px);
  border-bottom: 1px solid #26303d;
  background:
    radial-gradient(circle at 83% 18%, rgba(154, 112, 232, 0.11), transparent 30rem),
    radial-gradient(circle at 15% 85%, rgba(50, 210, 223, 0.075), transparent 25rem);
}

.home-id-card {
  background: #161c25;
  border: 1px solid #3c4858;
  box-shadow: 10px 12px 0 #05070a;
}

.home-id-card__top {
  display: flex;
  justify-content: space-between;
  padding: 7px 10px;
  color: #8d96a8;
  background: #10151d;
  border-bottom: 1px solid #35404f;
  font: 700 9px var(--mono);
  letter-spacing: 0.09em;
}

.home-id-card__top .status-dot {
  color: var(--green);
}

.home-id-card__body {
  display: grid;
  grid-template-columns: 116px 1fr;
  gap: 20px;
  align-items: center;
  padding: 24px;
}

.home-monogram {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  color: var(--cyan);
  background: #080c11;
  border: 1px solid #246975;
  box-shadow: inset 0 0 25px rgba(50, 210, 223, 0.08), 5px 5px 0 #07090c;
  font: 900 47px/1 var(--sans);
  letter-spacing: -0.12em;
}

.home-monogram img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.home-id-card__body p {
  margin: 0 0 5px;
  color: #6f788a;
  font: 700 9px var(--mono);
}

.home-id-card__body h2 {
  margin: 0 0 14px;
  font: 900 clamp(26px, 3.1vw, 45px)/0.88 var(--sans);
  letter-spacing: -0.06em;
}

.home-identity-title {
  display: flex;
  gap: 12px;
  align-items: center;
  width: 100%;
  min-width: 0;
}

.home-identity-title h2 {
  flex: 0 1 auto;
  margin-bottom: 0;
}

.home-identity-title + span {
  display: block;
  margin-top: 10px;
}

.home-id-card__body h2 em {
  color: var(--green);
  font-family: Georgia, serif;
  font-weight: 400;
}

.home-id-card__body div > span {
  color: #a4aab6;
  font: 9px var(--mono);
}

.home-id-card__badges {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding: 0 24px 24px;
}

.home-id-card__badges a {
  display: grid;
  grid-template-columns: 50px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-width: 0;
  padding: 8px 10px;
  color: #dfe5ed;
  background: #101720;
  border: 1px solid #344455;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
  transition: color 140ms ease, background-color 140ms ease, border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.home-id-card__badges a:hover,
.home-id-card__badges a:focus-visible {
  background: #18232e;
  border-color: currentColor;
  box-shadow: 0 0 0 1px currentColor, 0 8px 18px rgba(0, 0, 0, 0.28);
  transform: translateY(-2px);
}

.home-id-card__badges a:active {
  box-shadow: inset 2px 2px 0 rgba(0, 0, 0, 0.45);
  transform: translateY(1px);
}

.home-id-card__badges a.is-foundation {
  color: var(--green);
}

.home-id-card__badges a.is-network {
  color: var(--purple);
}

.home-id-card__badges img {
  width: 50px;
  height: 50px;
  display: block;
  object-fit: contain;
  filter: drop-shadow(0 0 5px currentColor);
  pointer-events: none;
  transition: filter 140ms ease, transform 140ms ease;
}

.home-id-card__badges a:hover img,
.home-id-card__badges a:focus-visible img {
  filter: drop-shadow(0 0 9px currentColor);
  transform: scale(1.08);
}

.home-id-card__badges span,
.home-id-card__badges b,
.home-id-card__badges small {
  display: block;
  min-width: 0;
}

.home-id-card__badges b {
  color: #eef2f7;
  font: 700 10px var(--mono);
}

.home-id-card__badges small {
  margin-top: 3px;
  color: currentColor;
  font: 8px var(--mono);
}

.home-kicker {
  display: inline-block;
  margin-bottom: 16px;
  padding: 5px 8px;
  color: #081014;
  background: var(--amber);
  font: 700 9px var(--mono);
  letter-spacing: 0.1em;
}

.home-intro h1 {
  max-width: 850px;
  margin: 0 0 22px;
  font: 900 clamp(54px, 6.8vw, 105px)/0.84 var(--sans);
  letter-spacing: -0.077em;
  text-wrap: balance;
}

.home-intro h1 em {
  color: var(--purple);
  font-family: Georgia, serif;
  font-weight: 400;
}

.home-intro > p {
  max-width: 760px;
  margin: 0;
  color: #a8afbd;
  font-size: clamp(16px, 1.6vw, 21px);
}

.home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.home-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid #2b3542;
  border-bottom: 1px solid #2b3542;
  background: #111720;
}

.home-metrics a {
  min-height: 152px;
  padding: 24px;
  border-right: 1px solid #2b3542;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.home-metrics a:last-child {
  border-right: 0;
}

.home-metrics a:hover,
.home-metrics a:focus-visible {
  background: #17202b;
  box-shadow: inset 0 -3px 0 var(--cyan);
  transform: translateY(-2px);
}

.home-metrics a:active {
  background: #0d131b;
  box-shadow: inset 2px 2px 0 #05070a;
  transform: translateY(1px);
}

.home-metrics span,
.home-metrics strong,
.home-metrics small {
  display: block;
}

.home-metrics span {
  color: #91a0b4;
  font: 700 9px var(--mono);
  letter-spacing: 0.09em;
}

.home-metrics strong {
  margin: 9px 0 2px;
  color: #f2f4f7;
  font: 900 36px var(--mono);
}

.home-metrics a:nth-child(1) strong { color: var(--cyan); }
.home-metrics a:nth-child(2) strong { color: var(--purple); }
.home-metrics a:nth-child(3) strong { color: var(--green); }
.home-metrics a:nth-child(4) strong { color: var(--amber); }

.home-metrics small {
  color: #5f6877;
  font: 9px var(--mono);
}

.home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.5fr);
  gap: 22px;
  padding: clamp(45px, 6vw, 80px) clamp(22px, 5vw, 76px);
}

.activity-panel,
.now-panel {
  background: #121821;
  border: 1px solid #303b49;
}

.activity-panel > header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 17px;
  border-bottom: 1px solid #303b49;
}

.activity-panel > header div {
  display: flex;
  gap: 9px;
  align-items: center;
}

.activity-panel > header i {
  width: 4px;
  height: 17px;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
}

.activity-panel h2 {
  margin: 0;
  font: 700 11px var(--mono);
  letter-spacing: 0.12em;
}

.activity-panel header > span {
  color: #687284;
  font: 9px var(--mono);
}

.activity-row {
  display: grid;
  grid-template-columns: 85px 1fr auto;
  gap: 14px;
  align-items: center;
  min-height: 74px;
  padding: 12px 16px;
  border-bottom: 1px solid #293340;
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.activity-row:hover,
.activity-row:focus-visible {
  background: #18212c;
  box-shadow: inset 3px 0 0 var(--cyan);
  transform: translateX(2px);
}

.activity-row:active {
  background: #0d131b;
  transform: translateX(0);
}

.activity-code {
  padding: 5px 7px;
  border: 1px solid currentColor;
  text-align: center;
  font: 700 9px var(--mono);
}

.cyan { color: var(--cyan) !important; }
.green { color: var(--green) !important; }
.amber { color: var(--amber) !important; }
.purple { color: var(--purple) !important; }
.red { color: var(--red) !important; }

.activity-row b,
.activity-row small {
  display: block;
}

.activity-row b {
  font-size: 14px;
}

.activity-row small,
.activity-row time {
  color: #788295;
  font: 9px var(--mono);
}

.now-panel__bar {
  padding: 11px 13px;
  color: var(--green);
  background: #0b0f15;
  border-bottom: 1px solid #303b49;
  font: 700 10px var(--mono);
}

.now-panel ul {
  margin: 0;
  padding: 8px 14px;
  list-style: none;
}

.now-panel li {
  padding: 12px 0;
  border-bottom: 1px dotted #37404b;
  font: 10px var(--mono);
}

.now-panel li span,
.now-panel li b {
  display: block;
}

.now-panel li b {
  margin-top: 3px;
  color: var(--green);
  font-size: 8px;
  letter-spacing: 0.1em;
}

.now-panel > p {
  margin: 10px 14px 15px;
  color: #6e7787;
  font: 9px/1.45 var(--mono);
}

.directory-section {
  padding: 0 clamp(22px, 5vw, 76px) clamp(55px, 7vw, 100px);
}

.directory-section__head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 20px;
  margin-bottom: 22px;
  padding-bottom: 12px;
  border-bottom: 1px solid #344151;
}

.directory-section__head > div {
  display: flex;
  gap: 10px;
  align-items: baseline;
}

.directory-section__head span {
  color: var(--cyan);
  font: 700 9px var(--mono);
}

.directory-section__head h2 {
  margin: 0;
  font: 900 28px var(--sans);
}

.directory-section__head p {
  margin: 0;
  color: #798395;
  font: 9px var(--mono);
}

.directory-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.directory-grid a {
  display: grid;
  grid-template-columns: 55px 1fr auto;
  gap: 16px;
  align-items: center;
  min-height: 86px;
  padding: 14px 18px;
  color: inherit;
  background: #141b24;
  border: 1px solid #323e4d;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
  transition: background-color 140ms ease, border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.directory-grid a:hover,
.directory-grid a:focus-visible {
  background: #1a2531;
  border-color: #53677d;
  box-shadow: 0 9px 20px rgba(0, 0, 0, 0.25);
  transform: translateY(-2px);
}

.directory-grid a:active {
  background: #0d131b;
  box-shadow: inset 2px 2px 0 #05070a;
  transform: translateY(1px);
}

.folder-icon {
  position: relative;
  width: 45px;
  height: 32px;
  display: block;
  background: currentColor;
  box-shadow: 4px 4px 0 #07090c;
}

.folder-icon::before {
  content: "";
  position: absolute;
  top: -8px;
  left: 0;
  width: 21px;
  height: 9px;
  background: currentColor;
}

.directory-grid b,
.directory-grid small {
  display: block;
}

.directory-grid b {
  font: 700 12px var(--mono);
}

.directory-grid small {
  margin-top: 3px;
  color: #778194;
  font-size: 11px;
}

.directory-grid em {
  color: #8d96a7;
  font: 700 9px var(--mono);
  font-style: normal;
}

.home-contact__icons {
  display: flex;
  gap: clamp(28px, 7vw, 72px);
  align-items: start;
  justify-content: center;
}

.home-contact__icons--identity {
  flex: 0 0 auto;
  justify-content: flex-start;
  gap: 10px;
  margin: 0 0 0 auto;
}

.home-contact__icons--identity a {
  width: 46px;
  padding: 0;
}

.home-contact__icons--identity .retro-contact-icon {
  width: 42px;
  height: 36px;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.42);
}

.home-contact__icons--identity .retro-contact-icon--mail::before,
.home-contact__icons--identity .retro-contact-icon--mail::after {
  top: 6px;
  width: 30px;
  height: 2px;
}

.home-contact__icons--identity .retro-contact-icon--mail i {
  inset: 6px 5px 5px;
  border-width: 2px;
}

.home-contact__icons--identity .retro-contact-icon--linkedin {
  font-size: 21px;
}

.home-contact__icons a {
  width: 88px;
  display: grid;
  gap: 7px;
  justify-items: center;
  padding: 8px 5px;
  color: #aeb8c6;
  border: 1px solid transparent;
  text-decoration: none;
}

.home-contact__icons a:hover,
.home-contact__icons a:focus-visible {
  color: #fff;
  background: rgba(50, 210, 223, 0.08);
  border-color: rgba(50, 210, 223, 0.5);
  box-shadow: 0 0 18px rgba(50, 210, 223, 0.12);
  outline: 2px dotted var(--cyan);
  outline-offset: 3px;
}

.home-contact__icons a:active {
  transform: translate(1px, 1px);
}

.retro-contact-icon {
  position: relative;
  width: 54px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 2px solid;
  border-color: #fff #363636 #363636 #fff;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.4);
}

.retro-contact-icon--mail {
  overflow: hidden;
  background: #f3f0e5;
}

.retro-contact-icon--mail::before,
.retro-contact-icon--mail::after {
  content: "";
  position: absolute;
  top: 8px;
  width: 35px;
  height: 3px;
  background: #2457d6;
  transform-origin: center;
}

.retro-contact-icon--mail::before { left: -3px; transform: rotate(35deg); }
.retro-contact-icon--mail::after { right: -3px; transform: rotate(-35deg); }

.retro-contact-icon--mail i {
  position: absolute;
  inset: 8px 7px 7px;
  border: 3px solid #2457d6;
}

.retro-contact-icon--linkedin {
  color: #fff;
  background: #2457d6;
  font: 900 25px Arial, sans-serif;
  letter-spacing: -0.08em;
}

/* Archive common */

.archive-page {
  padding: clamp(28px, 3.2vw, 48px) clamp(18px, 4vw, 58px) clamp(60px, 8vw, 110px);
}

.page-heading {
  display: flex;
  justify-content: space-between;
  gap: 32px;
  align-items: end;
  margin-bottom: 28px;
}

.page-heading p {
  margin: 0 0 8px;
  color: var(--cyan);
  font: 700 9px var(--mono);
  letter-spacing: 0.15em;
}

.page-heading h1 {
  margin: 0;
  font: 900 clamp(44px, 6vw, 86px)/0.86 var(--sans);
  letter-spacing: -0.07em;
}

.page-heading > div:first-child > span {
  display: block;
  margin-top: 15px;
  color: #8d97a8;
  font: 11px var(--mono);
}

.page-heading__meta {
  display: grid;
  grid-template-columns: auto auto;
  gap: 6px 14px;
  min-width: 220px;
  padding: 13px;
  color: #99a2b3;
  background: #101720;
  border: 1px solid #303c4b;
  font: 9px var(--mono);
}

.page-heading__meta b {
  color: #5f697a;
}

.page-heading__meta .online {
  color: var(--green);
}

.filter-console {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 26px;
  padding: 7px;
  background: #0e141c;
  border: 1px solid #293645;
}

.filter-console__group,
.filter-console__status {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
}

.filter-console__group > span,
.filter-console__status > span {
  padding: 8px 10px;
  color: #626e81;
  font: 700 8px var(--mono);
  letter-spacing: 0.12em;
}

.filter-console button,
.filter-console__status b,
.filter-console__status em {
  min-height: 35px;
  padding: 8px 12px;
  color: #8995a7;
  background: #151d27;
  border: 1px solid #293747;
  font: 700 9px var(--mono);
  font-style: normal;
  letter-spacing: 0.04em;
}

.filter-console button {
  cursor: pointer;
}

.filter-console button b {
  margin-left: 5px;
  color: #566477;
}

.filter-console button:hover,
.filter-console button.is-active {
  color: var(--cyan);
  background: #132631;
  border-color: #246d78;
}

.filter-console__status b {
  color: var(--cyan);
}

.filter-console__status em {
  color: var(--green);
}

.featured-record {
  --card-accent: var(--cyan);
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  min-height: 150px;
  margin-bottom: 35px;
  padding: 24px 28px;
  background: linear-gradient(110deg, #14222c, #111820 65%);
  border: 1px solid #266371;
  box-shadow: inset 4px 0 var(--card-accent);
}

.featured-record[data-category="foundation"] { --card-accent: var(--green); }
.featured-record[data-category="blue"] { --card-accent: var(--cyan); }
.featured-record[data-category="network"] { --card-accent: var(--purple); }
.featured-record[data-category="red"] { --card-accent: var(--red); }
.featured-record[data-category="cloud"] { --card-accent: var(--amber); }
.featured-record[data-category="system"] { --card-accent: var(--cyan); }
.featured-record[data-category="ai"] { --card-accent: var(--purple); }
.featured-record[data-category="ctf"] { --card-accent: var(--cyan); }
.featured-record[data-category="hackathon"] { --card-accent: var(--amber); }
.featured-record[data-category="pitching"] { --card-accent: var(--purple); }
.featured-record[data-category="industry"] { --card-accent: var(--amber); }
.featured-record[data-category="national"] { --card-accent: var(--green); }
.featured-record:has(.featured-record__image.cyan) { --card-accent: var(--cyan); }
.featured-record:has(.featured-record__image.green) { --card-accent: var(--green); }
.featured-record:has(.featured-record__image.amber) { --card-accent: var(--amber); }
.featured-record:has(.featured-record__image.purple) { --card-accent: var(--purple); }
.featured-record:has(.featured-record__image.red) { --card-accent: var(--red); }

.featured-record[hidden] {
  display: none;
}

.featured-record__image {
  width: 92px;
  height: 92px;
  padding: 7px;
  overflow: hidden;
  background: #162833;
  border: 1px solid #25808b;
  border-radius: 9px;
  cursor: pointer;
}

.featured-record > div.featured-record__image {
  cursor: default;
}

.featured-record__image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #f5f3eb;
  border-radius: 5px;
}

.featured-record__image--aegis {
  display: grid;
  place-items: center;
  color: var(--cyan);
  background:
    radial-gradient(circle, rgba(50, 210, 223, 0.18), transparent 62%),
    #081017;
  font: 900 16px var(--mono);
  letter-spacing: 0.08em;
}

.new-badge {
  display: inline-block;
  padding: 5px 12px;
  color: var(--cyan);
  background: #16313b;
  border: 1px solid #266978;
  border-radius: 999px;
  font: 700 9px var(--mono);
  letter-spacing: 0.12em;
}

.new-badge.purple { color: var(--purple); background: #251d35; border-color: #604b83; }
.new-badge.amber { color: var(--amber); background: #302617; border-color: #6c5429; }

.featured-record h2 {
  margin: 11px 0 7px;
  font: 800 clamp(20px, 2.2vw, 31px)/1.05 var(--sans);
}

.featured-record p {
  margin: 0;
  color: #98a3b4;
  font: 11px/1.6 var(--mono);
}

.featured-record p b {
  color: var(--cyan);
}

.featured-record p strong {
  padding: 2px 5px;
  color: var(--green);
  background: #153326;
  border: 1px solid #285b43;
}

.verify-button {
  padding: 11px 15px;
  color: var(--cyan);
  background: #112933;
  border: 1px solid #226777;
  font: 700 9px var(--mono);
  letter-spacing: 0.08em;
  cursor: pointer;
}

.archive-section:not([hidden]) ~ .archive-section:not([hidden]) {
  margin-top: 46px;
}

.year-heading {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-bottom: 18px;
}

.year-heading > div {
  display: flex;
  flex: 1;
  gap: 20px;
  align-items: center;
}

.year-heading h2 {
  margin: 0;
  font: 900 27px var(--mono);
  letter-spacing: -0.05em;
}

.year-heading i {
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, #4b6076, #1a232d);
}

.year-heading > span,
.year-heading > em {
  color: #768297;
  font: 700 9px var(--mono);
  font-style: normal;
  letter-spacing: 0.15em;
}

/* Keep every archive year and its count on the same columns. */
.year-group > .year-heading {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr) auto;
}

.year-group > .year-heading > div {
  display: contents;
}

.year-group > .year-heading h2 {
  grid-column: 1;
}

.year-group > .year-heading i {
  grid-column: 2;
  width: 100%;
}

.year-group > .year-heading > span {
  grid-column: 3;
}

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

.archive-card {
  --card-accent: var(--cyan);
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 15px;
  align-items: center;
  min-height: 125px;
  padding: 16px;
  background: #151c25;
  border: 1px solid #293543;
  border-left: 4px solid var(--card-accent);
}

.archive-card[data-category="foundation"] { --card-accent: var(--green); }
.archive-card[data-category="network"] { --card-accent: var(--purple); }
.archive-card[data-category="cloud"] { --card-accent: var(--amber); }
.archive-card[data-category="red"] { --card-accent: var(--red); }

.archive-card:hover {
  background: #19232e;
  border-color: #375064;
  border-left-color: var(--card-accent);
}

.archive-thumb {
  width: 70px;
  height: 70px;
  padding: 4px;
  overflow: hidden;
  background: color-mix(in srgb, currentColor 10%, #101923);
  border: 1px solid currentColor;
  border-radius: 8px;
  box-shadow: inset 0 0 18px color-mix(in srgb, currentColor 18%, transparent);
  cursor: pointer;
}

.archive-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: transparent;
  border-radius: 0;
  filter: drop-shadow(0 0 5px currentColor);
}

.multi-page[data-page="credentials"] .featured-record__image {
  color: var(--cyan);
  background: color-mix(in srgb, var(--cyan) 9%, #101923);
  box-shadow: inset 0 0 22px rgba(50, 210, 223, 0.14);
}

.multi-page[data-page="credentials"] .featured-record__image img {
  background: transparent;
  border-radius: 0;
  filter: drop-shadow(0 0 7px rgba(50, 210, 223, 0.78));
}

.archive-card h3 {
  margin: 0 0 7px;
  font: 800 15px/1.25 var(--sans);
}

.archive-card p {
  margin: 0;
  color: #718096;
  font: 9px/1.45 var(--mono);
}

.archive-card p b {
  color: var(--card-accent);
}

.multi-page[data-page="credentials"] .filter-console button[data-filter="foundation"]:hover,
.multi-page[data-page="credentials"] .filter-console button[data-filter="foundation"].is-active {
  color: var(--green);
  border-color: #28704d;
}

.multi-page[data-page="credentials"] .filter-console button[data-filter="network"]:hover,
.multi-page[data-page="credentials"] .filter-console button[data-filter="network"].is-active {
  color: var(--purple);
  border-color: #694ba2;
}

.multi-page[data-page="credentials"] .filter-console button[data-filter="cloud"]:hover,
.multi-page[data-page="credentials"] .filter-console button[data-filter="cloud"].is-active {
  color: var(--amber);
  border-color: #7d5e27;
}

.archive-card p span {
  color: var(--green);
}

.archive-card small {
  display: block;
  margin-top: 4px;
  color: #5d6879;
  font: 8px var(--mono);
}

/* About */

.about-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(290px, 0.55fr);
  gap: 28px;
  align-items: start;
}

.notepad-window {
  color: #14161c;
  background: #d0cdc3;
  border: 2px solid;
  border-color: white #3e3f48 #3e3f48 white;
  box-shadow: 8px 9px 0 #05070a;
}

.notepad-window__bar {
  padding: 6px 8px;
  color: white;
  background: linear-gradient(90deg, #171a80, #3157bf);
  font: 700 10px var(--ui);
}

.notepad-window__menu {
  padding: 5px 10px;
  border-bottom: 1px solid #777;
  font: 10px var(--ui);
}

.notepad-window__text {
  min-height: 430px;
  padding: clamp(24px, 4vw, 55px);
  background: repeating-linear-gradient(#fffef8 0 31px, #dbe9ef 31px 32px);
  font: 14px/2.25 var(--mono);
}

.notepad-window__text p {
  margin: 0 0 11px;
}

.notepad-window__text p span {
  display: inline-block;
  width: 32px;
  margin-right: 14px;
  color: #92949b;
}

.system-profile {
  position: relative;
  padding: 27px;
  color: #172019;
  background: #aebcaf;
  border: 2px solid;
  border-color: white #3e4540 #3e4540 white;
  box-shadow: 8px 9px 0 #05070a;
}

.system-profile__stamp {
  position: absolute;
  top: 18px;
  right: 16px;
  padding: 5px;
  color: #9c2e40;
  border: 3px double #9c2e40;
  font: 700 8px var(--mono);
  transform: rotate(7deg);
}

.system-profile h2 {
  margin: 0 0 22px;
  font: 900 24px var(--sans);
}

.system-profile dl {
  margin: 0;
}

.system-profile dl div {
  padding: 9px 0;
  border-top: 1px dotted #657067;
}

.system-profile dt {
  color: #58625a;
  font: 700 8px var(--mono);
}

.system-profile dd {
  margin: 2px 0 0;
  font-size: 13px;
  font-weight: 700;
}

.about-page .archive-section {
  margin-top: 65px;
}

.capability-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.capability-grid article {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 17px;
  min-height: 160px;
  padding: 21px;
  background: #151c25;
  border: 1px solid #2c3947;
}

.cap-icon {
  width: 55px;
  height: 55px;
  display: grid;
  place-items: center;
  background: #101821;
  border: 1px solid currentColor;
  font: 900 21px var(--mono);
}

.capability-grid h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.capability-grid p {
  margin: 0;
  color: #8993a4;
  font-size: 12px;
}

.capability-grid b {
  display: inline-block;
  margin-top: 12px;
  padding: 3px 5px;
  color: var(--green);
  background: #11261c;
  font: 700 8px var(--mono);
}

.learning-block {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 25px;
  margin-top: 35px;
  padding: 25px;
  background: #06090d;
  border: 1px solid #2a3643;
}

.learning-block > div > p {
  margin: 0 0 15px;
  color: var(--cyan);
  font: 10px var(--mono);
}

.learning-block ul {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.learning-block li {
  padding: 10px;
  background: #111821;
  border: 1px solid #293543;
  font: 9px var(--mono);
}

.learning-block li span,
.learning-block li b {
  display: block;
}

.learning-block li b {
  margin-top: 3px;
  color: var(--green);
}

.learning-block > p {
  align-self: center;
  margin: 0;
  color: #828c9e;
  font: 10px/1.7 var(--mono);
}

/* Projects */

.featured-record--project .featured-record__image {
  width: 120px;
}

.featured-record--project {
  grid-template-columns: 124px minmax(0, 1fr) auto;
}

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

.project-grid > :only-child {
  grid-column: 1 / -1;
}

.project-card {
  --card-accent: var(--cyan);
  overflow: hidden;
  background: #141b24;
  border: 1px solid #303d4b;
}

.project-card[data-category="system"] { --card-accent: var(--cyan); }
.project-card[data-category="ai"] { --card-accent: var(--purple); }

.project-card--link {
  color: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: transform 120ms ease, border-color 120ms ease, box-shadow 120ms ease, background-color 120ms ease;
}

.project-card--link:hover,
.project-card--link:focus-visible {
  color: inherit;
  background: #17222d;
  border-color: var(--card-accent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--card-accent) 30%, transparent), 6px 6px 0 rgba(0, 0, 0, 0.25);
  transform: translateY(-2px);
  outline: none;
}

.project-card--link:active {
  background: #0d131b;
  box-shadow: inset 2px 2px 0 #05070a;
  transform: translateY(1px);
}

.project-card__media {
  height: 220px;
  overflow: hidden;
  background: #070a0f;
  border-bottom: 1px solid #303d4b;
}

.project-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-card__media--aegis {
  position: relative;
  display: grid;
  place-items: center;
  background:
    linear-gradient(rgba(50,210,223,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(50,210,223,0.05) 1px, transparent 1px),
    #070a0e;
  background-size: 18px 18px;
}

.project-card__media--aegis span {
  position: relative;
  z-index: 2;
  color: var(--cyan);
  font: 900 clamp(44px, 6vw, 83px) var(--mono);
  letter-spacing: 0.12em;
  text-shadow: 5px 5px var(--purple);
}

.project-card__media--aegis i {
  position: absolute;
  width: 170px;
  height: 170px;
  border: 1px solid #245963;
  border-radius: 50%;
}

.project-card__media--aegis i:nth-of-type(2) { width: 115px; height: 115px; }
.project-card__media--aegis i:nth-of-type(3) { width: 55px; height: 55px; }

.project-card__media--mark {
  display: grid;
  place-items: center;
  position: relative;
}

.project-card__media--mark::before,
.project-card__media--mark::after {
  content: "";
  position: absolute;
  inset: 20px;
  border: 1px solid currentColor;
  opacity: 0.28;
}

.project-card__media--mark::after {
  inset: 34px;
  border-style: dashed;
}

.project-card__media--mark span {
  position: relative;
  z-index: 1;
  font: 900 clamp(34px, 5vw, 68px)/0.82 var(--mono);
  letter-spacing: 0.07em;
  text-align: center;
  text-shadow: 4px 4px #05070a;
}

.project-card__media--tharmya {
  color: #8ee7aa;
  background: radial-gradient(circle at 50% 42%, rgba(68, 220, 122, 0.2), transparent 44%), linear-gradient(135deg, #08150f, #101d17 60%, #0b1110);
}

.project-card__media--smart-soc {
  color: var(--cyan);
  background: radial-gradient(circle at 50% 42%, rgba(50, 210, 223, 0.2), transparent 44%), linear-gradient(135deg, #071319, #101b24 60%, #0b1018);
}

.project-card__body {
  padding: 26px;
}

.record-tags,
.stack-line {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.project-card__link-label {
  display: inline-block;
  margin-top: 18px;
  color: var(--cyan);
  font: 800 9px var(--mono);
  letter-spacing: 0.08em;
}

.record-tags span,
.stack-line span {
  padding: 3px 6px;
  color: var(--cyan);
  background: #10252d;
  border: 1px solid #255560;
  font: 700 8px var(--mono);
}

.project-card h3 {
  margin: 16px 0 9px;
  font: 900 25px/1 var(--sans);
}

.project-card__body > p {
  color: #949eaf;
  font-size: 13px;
}

.project-card dl {
  margin: 20px 0 0;
  border-top: 1px solid #303b48;
}

.project-card dl div {
  display: grid;
  grid-template-columns: 75px 1fr;
  gap: 10px;
  padding: 9px 0;
  border-bottom: 1px dotted #303b48;
  font: 9px/1.45 var(--mono);
}

.project-card dt {
  color: #667184;
}

.project-card dd {
  margin: 0;
  color: #a9b1bf;
}

.stack-line {
  margin-top: 18px;
}

.stack-line span {
  color: #939dac;
  background: #1b232e;
  border-color: #303d4c;
}

/* Competitions and events */

.competition-grid,
.event-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.competition-card,
.event-card {
  --card-accent: var(--cyan);
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr);
  gap: 15px;
  align-items: center;
  min-height: 125px;
  padding: 16px;
  background: #151c25;
  border: 1px solid #2d3948;
  border-left: 4px solid var(--card-accent);
}

.competition-card[data-category="ctf"] { --card-accent: var(--cyan); }
.competition-card[data-category="hackathon"] { --card-accent: var(--amber); }
.competition-card[data-category="ai"] { --card-accent: var(--purple); }
.event-card[data-category="pitching"] { --card-accent: var(--purple); }
.event-card[data-category="industry"] { --card-accent: var(--amber); }
.event-card[data-category="national"] { --card-accent: var(--green); }
.competition-card:has(.competition-card__image.cyan),
.event-card:has(.event-card__image.cyan) { --card-accent: var(--cyan); }
.competition-card:has(.competition-card__image.green),
.event-card:has(.event-card__image.green) { --card-accent: var(--green); }
.competition-card:has(.competition-card__image.amber),
.event-card:has(.event-card__image.amber) { --card-accent: var(--amber); }
.competition-card:has(.competition-card__image.purple),
.event-card:has(.event-card__image.purple) { --card-accent: var(--purple); }
.competition-card:has(.competition-card__image.red),
.event-card:has(.event-card__image.red) { --card-accent: var(--red); }

.competition-card > div,
.event-card > div:not(.event-card__image) {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
}

.competition-card__image,
.event-card__image {
  width: 70px;
  height: 70px;
  padding: 4px;
  overflow: hidden;
  background: color-mix(in srgb, currentColor 10%, #101923);
  border: 1px solid currentColor;
  border-radius: 8px;
  box-shadow: inset 0 0 18px color-mix(in srgb, currentColor 18%, transparent);
  cursor: pointer;
}

.event-card div.event-card__image {
  cursor: default;
}

.competition-card__image img,
.event-card__image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: transparent;
  border-radius: 0;
  filter: drop-shadow(0 0 5px currentColor);
}

.summary-event-thumb img,
.multi-page .featured-record__image.summary-event-thumb img {
  object-fit: cover;
  filter: none;
}

.multi-page[data-page="competitions"] .featured-record__image,
.multi-page[data-page="events"] .featured-record__image {
  background: color-mix(in srgb, currentColor 10%, #101923);
  border-color: currentColor;
  box-shadow: inset 0 0 22px color-mix(in srgb, currentColor 18%, transparent);
}

.multi-page[data-page="competitions"] .featured-record__image img,
.multi-page[data-page="events"] .featured-record__image img {
  background: transparent;
  border-radius: 0;
  filter: drop-shadow(0 0 7px currentColor);
}

.result-badge {
  display: inline-block;
  padding: 3px 6px;
  color: var(--purple);
  background: #271d37;
  border: 1px solid #604881;
  font: 700 8px var(--mono);
}

.result-badge.green { background: #10271b; border-color: #285d3e; }
.result-badge.gold { color: var(--amber); background: #2e2413; border-color: #6d5528; }

.competition-card h3,
.event-card h3 {
  order: 1;
  margin: 0 0 7px;
  font: 800 16px/1.15 var(--sans);
}

.competition-card p,
.event-card p {
  order: 2;
  margin: 0;
  color: #748197;
  font: 9px/1.45 var(--mono);
}

.competition-card p b,
.event-card p b {
  color: var(--cyan);
}

.competition-card small,
.event-card small {
  display: none;
}

.event-card > div > span {
  order: 3;
  margin-top: 6px;
  color: var(--amber);
  font: 700 8px var(--mono);
  letter-spacing: 0.08em;
}

.competition-card .result-badge {
  order: 3;
  margin-top: 6px;
}

.competition-card p b,
.event-card p b {
  color: var(--card-accent);
}

.competition-card.is-media-card:hover,
.event-card.is-media-card:hover {
  border-left-color: var(--card-accent);
}

.event-card__image.initials {
  display: grid;
  place-items: center;
  background: #1d1730;
  cursor: default;
}

.event-card__image.initials b {
  color: var(--purple);
  font: 900 30px var(--mono);
}

/* The complete evidence card opens its available proof image. */
.is-media-card,
.is-media-card * {
  cursor: var(--cursor-xp-hand) 5 0, pointer !important;
}

.is-media-card {
  transition: background-color 140ms ease, border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.is-media-card:hover,
.is-media-card:focus-visible,
.is-media-card:focus-within {
  background-color: #1a2531;
  border-color: var(--card-accent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--card-accent) 38%, transparent), 0 10px 24px rgba(0, 0, 0, 0.28);
  transform: translateY(-2px);
}

.is-media-card:active {
  background-color: #0d131b;
  box-shadow: inset 2px 2px 0 #05070a;
  transform: translateY(1px);
}

.is-media-card:focus-visible {
  outline: 2px dotted var(--card-accent);
  outline-offset: 4px;
}

/* Contact */

.contact-page {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.45fr);
  gap: 30px;
  align-items: start;
  padding: clamp(45px, 7vw, 105px) clamp(22px, 6vw, 100px);
}

.mail-window {
  color: #11131a;
  background: #cfccc2;
  border: 2px solid;
  border-color: white #37383f #37383f white;
  box-shadow: 10px 12px 0 #05070a;
}

.mail-window__bar {
  padding: 7px 9px;
  color: white;
  background: linear-gradient(90deg, #171a80, #5d2e96);
  font: 700 10px var(--ui);
}

.mail-window__tools {
  display: flex;
  gap: 7px;
  padding: 7px;
  border-bottom: 1px solid #777;
}

.mail-window__tools span {
  padding: 5px 8px;
  background: #d6d3ca;
  border: 2px solid;
  border-color: white #4b4b4b #4b4b4b white;
  font: 9px var(--ui);
}

.mail-window__fields {
  padding: 5px 10px;
  background: #e2dfd6;
  border-bottom: 1px solid #777;
}

.mail-window__fields div {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 8px;
  padding: 6px;
  border-bottom: 1px solid #b0ada4;
  font: 10px var(--mono);
}

.mail-window__fields b {
  color: #55565d;
}

.mail-window__body {
  min-height: 440px;
  padding: clamp(28px, 5vw, 65px);
  background: #fffdf5;
}

.mail-window__body h1 {
  margin: 20px 0 13px;
  font: 900 clamp(43px, 6vw, 79px)/0.9 var(--sans);
  letter-spacing: -0.07em;
}

.mail-window__body > p {
  max-width: 760px;
}

.contact-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 25px 0;
}

.mail-signature {
  color: #5d5e65;
  font: 10px/1.6 var(--mono);
}

.contact-sidebar {
  padding: 25px;
  color: #dce0e8;
  background: #141b24;
  border: 1px solid #354353;
  box-shadow: 8px 9px 0 #05070a;
}

.contact-sidebar__screen {
  position: relative;
  aspect-ratio: 1.35;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--cyan);
  background: #06090d;
  border: 2px inset #4d5661;
}

.contact-sidebar__screen img {
  width: auto;
  height: auto;
  max-width: 86%;
  max-height: 86%;
  min-width: 0;
  min-height: 0;
  display: block;
  object-fit: contain;
}

.contact-sidebar__screen span {
  font: 900 67px var(--sans);
  letter-spacing: -0.1em;
}

.contact-sidebar h2 {
  margin: 23px 0 14px;
  font: 800 19px var(--mono);
}

.contact-sidebar dl {
  margin: 0;
}

.contact-sidebar dl div {
  padding: 9px 0;
  border-top: 1px dotted #374352;
}

.contact-sidebar dt {
  color: #667285;
  font: 700 8px var(--mono);
}

.contact-sidebar dd {
  margin: 2px 0 0;
  font-size: 12px;
}

.contact-sidebar > p {
  margin: 20px 0 0;
  padding: 10px;
  color: #798496;
  background: #0c1118;
  font: 9px/1.5 var(--mono);
}

.media-dialog {
  width: min(920px, calc(100vw - 24px));
}

.summary-media-dialog.has-summary {
  width: min(1120px, calc(100vw - 24px));
  overscroll-behavior: contain;
}

.summary-dialog__content {
  max-height: calc(100vh - 128px);
  overflow: hidden;
  background: #20242c;
  border: 2px inset #888;
}

.summary-media-dialog.has-summary .summary-dialog__content {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.7fr);
  height: clamp(420px, 72vh, 650px);
  min-height: 0;
  max-height: calc(100dvh - 128px);
}

.summary-dialog__media {
  display: flex;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
  padding: 12px;
  overflow: hidden;
  background: #0b0f15;
}

.summary-media-dialog.has-summary .summary-dialog__media {
  border-right: 1px solid #4c5360;
}

.summary-dialog__stage {
  display: grid;
  min-height: 0;
  place-items: center;
  overflow: auto;
  background: #020305;
  border: 2px inset #555;
}

.summary-media-dialog.has-summary .summary-dialog__stage {
  flex: 1;
}

.summary-dialog__stage img {
  display: block;
  width: 100%;
  height: auto;
  max-height: calc(100vh - 165px);
  object-fit: contain;
  background: #020305;
}

.summary-media-dialog.has-summary .summary-dialog__stage img {
  height: 100%;
  max-height: calc(100vh - 265px);
}

.summary-dialog__gallery {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 8px;
  align-items: center;
  margin-top: 8px;
}

.summary-dialog__gallery button,
.summary-dialog__thumbs button {
  color: #101010;
  background: var(--chrome);
  border: 2px solid;
  border-color: white #404040 #404040 white;
  font: 700 9px var(--ui);
  cursor: pointer;
}

.summary-dialog__gallery button {
  min-height: 27px;
}

.summary-dialog__gallery span {
  min-width: 62px;
  color: var(--cyan);
  text-align: center;
  font: 700 9px var(--mono);
}

.summary-dialog__thumbs {
  display: flex;
  gap: 6px;
  margin-top: 8px;
  padding-bottom: 3px;
  overflow-x: auto;
}

.summary-dialog__thumbs button {
  flex: 0 0 60px;
  height: 43px;
  padding: 2px;
  overflow: hidden;
  background: #141a22;
}

.summary-dialog__thumbs button.is-active {
  border-color: var(--cyan);
  outline: 1px solid var(--cyan);
}

.summary-dialog__thumbs img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.summary-dialog__details {
  min-width: 0;
  min-height: 0;
  max-height: 100%;
  padding: clamp(22px, 3vw, 36px);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: var(--cyan) #0b1017;
  scrollbar-gutter: stable;
  color: #dce3ec;
  background: linear-gradient(145deg, #18202a, #10151c);
}

.summary-dialog__details > span {
  display: inline-block;
  padding: 4px 7px;
  color: var(--cyan);
  background: #0d2730;
  border: 1px solid #2b6472;
  font: 700 9px var(--mono);
  letter-spacing: 0.06em;
}

.summary-dialog__details h2 {
  margin: 16px 0 8px;
  color: white;
  font: 800 clamp(22px, 3vw, 32px)/1.08 var(--sans);
}

.summary-dialog__meta {
  margin: 0 0 20px;
  color: var(--amber);
  font: 700 9px/1.6 var(--mono);
}

.summary-dialog__summary {
  margin: 0 0 24px;
  color: #b8c3d1;
  font: 12px/1.7 var(--sans);
}

.summary-dialog__details dl,
.summary-dialog__details dd {
  margin: 0;
}

.summary-dialog__details dl div {
  padding: 13px 0;
  border-top: 1px dotted #46515f;
}

.summary-dialog__details dt {
  margin-bottom: 5px;
  color: var(--green);
  font: 700 8px var(--mono);
  letter-spacing: 0.08em;
}

.summary-dialog__details dd {
  color: #d0d8e3;
  font: 11px/1.55 var(--sans);
}

.summary-dialog__narrative {
  margin-top: 24px;
}

.summary-dialog__narrative section {
  padding: 18px 0 4px;
  border-top: 1px solid #46515f;
}

.summary-dialog__narrative h3 {
  margin: 0 0 11px;
  color: var(--cyan);
  font: 700 9px var(--mono);
  letter-spacing: 0.08em;
}

.summary-dialog__narrative p,
.summary-dialog__narrative li {
  color: #b8c3d1;
  font: 11px/1.7 var(--sans);
}

.summary-dialog__narrative p {
  margin: 0 0 12px;
}

.summary-dialog__narrative ul {
  margin: 0 0 12px;
  padding-left: 19px;
}

.summary-dialog__narrative li + li {
  margin-top: 5px;
}

.summary-dialog__narrative a {
  display: block;
  margin-top: 8px;
  padding: 8px 10px;
  color: var(--cyan);
  background: #0c141c;
  border: 1px solid #345260;
  font: 700 8px/1.4 var(--mono);
  overflow-wrap: anywhere;
}

[hidden] {
  display: none !important;
}

@media (max-width: 1180px) {
  .archive-grid,
  .competition-grid,
  .event-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-hero {
    grid-template-columns: minmax(280px, 0.75fr) minmax(390px, 1.25fr);
  }

  .home-metrics {
    grid-template-columns: repeat(2, 1fr);
  }

  .home-metrics a:nth-child(2) {
    border-right: 0;
  }

  .home-metrics a:nth-child(-n+2) {
    border-bottom: 1px solid #2b3542;
  }
}

@media (max-width: 760px) {
  .summary-media-dialog.has-summary .summary-dialog__content {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(230px, 44%) minmax(0, 56%);
    height: calc(100dvh - 120px);
    max-height: calc(100dvh - 120px);
    overflow: hidden;
  }

  .summary-media-dialog.has-summary .summary-dialog__media {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid #4c5360;
  }

  .summary-media-dialog.has-summary .summary-dialog__stage img {
    max-height: 300px;
  }

  .summary-dialog__details {
    min-height: 0;
    max-height: none;
    padding: 20px;
    overflow-y: auto;
  }
}

@media (max-width: 880px) {
  .multi-page .menu-bar {
    display: none;
  }

  .home-hero,
  .home-grid,
  .about-layout,
  .learning-block,
  .contact-page {
    grid-template-columns: 1fr;
  }

  .home-intro {
    grid-row: 1;
  }

  .page-heading {
    align-items: start;
  }

  .filter-console,
  .directory-section__head {
    display: block;
  }

  .filter-console__status {
    margin-top: 7px;
  }

  .featured-record {
    grid-template-columns: 90px 1fr;
  }

  .verify-button {
    grid-column: 1 / -1;
  }

  .project-grid,
  .capability-grid {
    grid-template-columns: 1fr;
  }

  .directory-grid {
    margin-top: 14px;
  }
}

@media (max-width: 650px) {
  .multi-page .desktop {
    padding: 0 0 27px;
  }

  .site-nav {
    top: auto;
  }

  .site-nav a {
    padding: 6px 9px;
    font-size: 9px;
  }

  .home-hero {
    padding: 42px 16px;
  }

  .home-id-card__body {
    grid-template-columns: 82px 1fr;
    gap: 13px;
    padding: 15px;
  }

  .home-id-card__badges {
    gap: 6px;
    padding: 0 15px 15px;
  }

  .home-id-card__badges a {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 7px;
    padding: 7px;
  }

  .home-id-card__badges img {
    width: 38px;
    height: 38px;
  }

  .home-id-card__badges b {
    font-size: 8px;
  }

  .home-id-card__badges small {
    font-size: 7px;
  }

  .home-monogram {
    font-size: 34px;
  }

  .home-intro h1 {
    font-size: clamp(48px, 16vw, 68px);
  }

  .home-metrics,
  .directory-grid,
  .archive-grid,
  .competition-grid,
  .event-grid,
  .learning-block ul {
    grid-template-columns: 1fr;
  }

  .home-metrics a {
    min-height: 120px;
    border-right: 0;
    border-bottom: 1px solid #2b3542;
  }

  .activity-row {
    grid-template-columns: 65px 1fr;
  }

  .activity-row time {
    display: none;
  }

  .page-heading {
    display: block;
  }

  .page-heading__meta {
    margin-top: 22px;
  }

  .featured-record,
  .featured-record--project {
    grid-template-columns: 74px 1fr;
    padding: 17px;
  }

  .featured-record__image,
  .featured-record--project .featured-record__image {
    width: 70px;
    height: 70px;
  }

  .featured-record h2 {
    font-size: 19px;
  }

  .featured-record p {
    font-size: 8px;
  }

  .archive-card,
  .competition-card,
  .event-card {
    grid-template-columns: 70px 1fr;
    gap: 11px;
  }

  .archive-thumb,
  .competition-card__image,
  .event-card__image {
    width: 64px;
    height: 64px;
  }

  .notepad-window__text {
    padding: 20px 13px;
    font-size: 11px;
  }

  .capability-grid article {
    grid-template-columns: 52px 1fr;
    padding: 16px;
  }

  .cap-icon {
    width: 48px;
    height: 48px;
  }

  .project-card__media {
    height: 170px;
  }

  .site-footer {
    display: grid;
  }
}

/* Readability pass: preserve the retro shell while making the content calm and clear. */
.site-page {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.site-page ::selection {
  color: #071015;
  background: #67e9f1;
}

.home-id-card,
.activity-panel,
.now-panel,
.directory-grid a,
.filter-console,
.featured-record,
.archive-card,
.capability-grid article,
.learning-block,
.project-card,
.competition-card,
.event-card,
.contact-sidebar {
  background-color: #131c26;
  border-color: #344455;
  box-shadow: 0 9px 22px rgba(0, 0, 0, 0.16);
}

.home-id-card__top {
  color: #b1bac8;
  font-size: 10px;
}

.home-id-card__body p {
  color: #9eabba;
  font-size: 10px;
}

.home-id-card__body div > span {
  color: #c5ccd6;
  font-size: 11px;
  line-height: 1.55;
}

.home-intro > p {
  color: #c1c9d4;
  line-height: 1.65;
}

.home-metrics span,
.home-kicker,
.activity-code,
.now-panel__bar,
.directory-section__head span {
  font-size: 10px;
}

.home-metrics small,
.activity-row small,
.activity-row time,
.now-panel li,
.now-panel > p,
.directory-section__head p,
.directory-grid small {
  color: #a4afbe;
  font-size: 11px;
  line-height: 1.55;
}

.activity-panel h2,
.directory-grid b {
  font-size: 13px;
}

.activity-panel header > span,
.directory-grid em {
  color: #98a5b6;
  font-size: 10px;
}

.page-heading h1 {
  color: #f3f5fa;
}

.page-heading p {
  font-size: 10px;
}

.page-heading > div:first-child > span {
  color: #b4becb;
  font-size: 13px;
  line-height: 1.6;
}

.page-heading__meta {
  color: #bbc4d0;
  font-size: 10px;
  line-height: 1.7;
}

.page-heading__meta b {
  color: #8592a4;
}

.filter-console {
  background: #0f161f;
}

.filter-console__group > span,
.filter-console__status > span {
  color: #8997aa;
  font-size: 9px;
}

.filter-console button,
.filter-console__status b,
.filter-console__status em {
  color: #aab5c4;
  font-size: 10px;
}

.filter-console button b {
  color: #7f8da0;
}

.featured-record p {
  color: #b5bfcc;
  font-size: 12px;
  line-height: 1.7;
}

.new-badge,
.verify-button {
  font-size: 10px;
}

.year-heading h2 {
  color: #f0f3f8;
  font-size: 29px;
}

.year-heading i {
  background: linear-gradient(90deg, #577087, #263442);
}

.year-heading > span,
.year-heading > em {
  color: #9aa8ba;
  font-size: 10px;
}

.archive-card h3 {
  color: #eef2f7;
  font-size: 16px;
}

.archive-card p {
  color: #a8b4c4;
  font-size: 11px;
  line-height: 1.55;
}

.archive-card small {
  color: #8f9cad;
  font-size: 10px;
  line-height: 1.5;
}

.capability-grid p,
.project-card__body > p {
  color: #b5bfcc;
  font-size: 13px;
  line-height: 1.6;
}

.capability-grid b,
.record-tags span,
.stack-line span,
.result-badge,
.event-card > div > span {
  font-size: 10px;
}

.learning-block li {
  color: #c2cad5;
  font-size: 11px;
  line-height: 1.5;
}

.learning-block > p {
  color: #adb8c6;
  font-size: 12px;
  line-height: 1.75;
}

.project-card dl div {
  font-size: 11px;
  line-height: 1.55;
}

.project-card dt {
  color: #909daf;
}

.project-card dd {
  color: #cbd2dc;
}

.competition-card p,
.event-card p {
  color: #aab6c6;
  font-size: 11px;
  line-height: 1.55;
}

.competition-card small,
.event-card small {
  color: #a1adbc;
  font-size: 11px;
  line-height: 1.55;
}

.contact-sidebar dt {
  color: #8f9daf;
  font-size: 10px;
}

.contact-sidebar dd {
  color: #eef2f7;
  font-size: 13px;
}

.contact-sidebar > p {
  color: #aab5c4;
  font-size: 11px;
  line-height: 1.6;
}

.site-footer {
  color: #9da8b8;
  font-size: 10px;
}

@media (max-width: 650px) {
  .featured-record p,
  .notepad-window__text {
    font-size: 12px;
  }

  .archive-card p,
  .competition-card p,
  .event-card p {
    font-size: 10.5px;
  }
}

/* Writeups */
.writeup-start {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 24px;
  align-items: stretch;
}

.writeup-terminal {
  overflow: hidden;
  background: #070b10;
  border: 2px solid;
  border-color: #4d5a68 #111820 #111820 #4d5a68;
  box-shadow: 9px 11px 0 rgba(0, 0, 0, 0.38);
}

.writeup-terminal__bar {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 7px 9px;
  color: white;
  background: linear-gradient(90deg, #171a80, #3157bf 60%, #5d2e96);
  font: 700 11px var(--ui);
}

.writeup-terminal__screen {
  min-height: 275px;
  padding: clamp(24px, 4vw, 48px);
  color: #bec9d6;
  background:
    repeating-linear-gradient(0deg, rgba(87, 222, 232, 0.025) 0, rgba(87, 222, 232, 0.025) 1px, transparent 1px, transparent 4px),
    #070c11;
  font: 12px/1.75 var(--mono);
}

.writeup-terminal__screen p {
  margin: 0 0 18px;
}

.writeup-terminal__screen b {
  color: var(--cyan);
}

.writeup-terminal__empty {
  padding: 13px 15px;
  color: var(--amber);
  background: #17130b;
  border: 1px dashed #65522b;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.writeup-terminal__screen i {
  display: inline-block;
  width: 8px;
  height: 14px;
  background: var(--green);
  animation: blink 1s step-end infinite;
}

.writeup-policy {
  padding: clamp(22px, 3vw, 34px);
  background: #141d27;
  border: 1px solid #3a4a5c;
  box-shadow: 9px 11px 0 rgba(0, 0, 0, 0.3);
}

.writeup-policy > span {
  color: var(--green);
  font: 700 10px var(--mono);
  letter-spacing: 0.11em;
}

.writeup-policy h2 {
  margin: 12px 0 20px;
  color: #f1f4f8;
  font: 900 27px/1.05 var(--sans);
}

.writeup-policy ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.writeup-policy li {
  position: relative;
  padding: 11px 0 11px 20px;
  color: #b7c1ce;
  border-top: 1px dotted #3a4654;
  font-size: 12px;
  line-height: 1.5;
}

.writeup-policy li::before {
  content: "■";
  position: absolute;
  left: 0;
  color: var(--cyan);
  font-size: 8px;
}

.writeup-format {
  margin-top: 54px;
}

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

.writeup-format__grid article {
  min-height: 165px;
  padding: 21px;
  background: #131c26;
  border: 1px solid #344455;
}

.writeup-format__grid article > b {
  color: var(--cyan);
  font: 900 22px var(--mono);
}

.writeup-format__grid h3 {
  margin: 16px 0 8px;
  color: #eef2f7;
  font-size: 16px;
}

.writeup-format__grid p {
  margin: 0;
  color: #aab6c5;
  font-size: 12px;
  line-height: 1.55;
}

@media (max-width: 980px) {
  .writeup-start {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 650px) {
  .writeup-format__grid {
    grid-template-columns: 1fr;
  }

  .writeup-terminal__screen {
    font-size: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .writeup-terminal__screen i {
    animation: none;
  }
}

/* Contact stays inside one desktop viewport. */
.multi-page[data-page="contact"] {
  width: 100%;
  height: 100vh;
  height: 100dvh;
  min-height: 0;
  padding-bottom: 0;
  overflow: hidden;
}

.multi-page[data-page="contact"] .desktop,
.multi-page[data-page="contact"] .site-window {
  height: calc(100vh - 27px);
  height: calc(100dvh - 27px);
  min-height: 0;
  overflow: hidden;
}

.multi-page[data-page="contact"] .contact-page {
  height: calc(100vh - var(--navigator-height, 146px) - 27px);
  height: calc(100dvh - var(--navigator-height, 146px) - 27px);
  min-height: 0;
  align-items: center;
  overflow: hidden;
  padding: clamp(16px, 3.3vh, 40px) clamp(18px, 5vw, 76px);
}

.multi-page[data-page="contact"] .mail-window__body {
  min-height: 0;
  padding: clamp(20px, 3.8vh, 44px) clamp(22px, 4vw, 56px);
}

.multi-page[data-page="contact"] .mail-window__body h1 {
  margin: clamp(8px, 1.4vh, 16px) 0 clamp(8px, 1.4vh, 13px);
  font-size: clamp(38px, 5vw, 70px);
}

.multi-page[data-page="contact"] .contact-buttons {
  margin: clamp(14px, 2.3vh, 23px) 0;
}

.multi-page[data-page="contact"] .contact-sidebar {
  max-height: 100%;
  overflow: hidden;
  padding: clamp(16px, 2.5vh, 25px);
}

.multi-page[data-page="contact"] .contact-sidebar__screen {
  height: clamp(125px, 23vh, 235px);
  aspect-ratio: auto;
}

@media (max-height: 760px) {
  .multi-page[data-page="contact"] .contact-page {
    gap: 20px;
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .multi-page[data-page="contact"] .mail-window__tools {
    display: none;
  }

  .multi-page[data-page="contact"] .mail-window__fields div {
    padding: 4px 6px;
  }

  .multi-page[data-page="contact"] .mail-window__body > p {
    margin: 8px 0;
    font-size: 13px;
    line-height: 1.45;
  }

  .multi-page[data-page="contact"] .mail-window__body h1 {
    font-size: clamp(34px, 4.8vw, 58px);
  }

  .multi-page[data-page="contact"] .contact-sidebar__screen {
    height: clamp(100px, 18vh, 150px);
  }

  .multi-page[data-page="contact"] .contact-sidebar h2 {
    margin: 12px 0 8px;
  }

  .multi-page[data-page="contact"] .contact-sidebar dl div {
    padding: 5px 0;
  }

  .multi-page[data-page="contact"] .contact-sidebar > p {
    display: none;
  }
}

@media (max-width: 880px) {
  .multi-page[data-page="contact"] .contact-page {
    grid-template-columns: minmax(0, 760px);
    justify-content: center;
  }

  .multi-page[data-page="contact"] .contact-sidebar {
    display: none;
  }
}

@media (max-width: 650px) {
  .multi-page[data-page="contact"] .desktop {
    padding-bottom: 0;
  }

  .multi-page[data-page="contact"] .contact-page {
    padding: 10px;
  }

  .multi-page[data-page="contact"] .mail-window__tools {
    display: none;
  }

  .multi-page[data-page="contact"] .mail-window__fields div {
    grid-template-columns: 52px minmax(0, 1fr);
    gap: 4px;
    padding: 4px;
    font-size: 9px;
  }

  .multi-page[data-page="contact"] .mail-window__body {
    padding: 14px 16px;
  }

  .multi-page[data-page="contact"] .mail-window__body h1 {
    margin: 6px 0 8px;
    font-size: clamp(31px, 10vw, 42px);
  }

  .multi-page[data-page="contact"] .mail-window__body > p {
    margin: 6px 0;
    font-size: 12px;
    line-height: 1.4;
  }

  .multi-page[data-page="contact"] .contact-buttons {
    gap: 6px;
    margin: 12px 0;
  }
}
