body {
  margin: 0;
  color: #e7eef6;
  background-color: #070b10;
  background-image: linear-gradient(rgba(7, 11, 16, 0.86), rgba(7, 11, 16, 0.92)), url("bg.jpg");
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  font-family: Candara, Calibri, "Trebuchet MS", sans-serif;
  font-size: 20px;
  line-height: 1.55;
}

*,
*::before,
*::after { box-sizing: border-box; }

::selection { background: #3e5670; color: #fff; }

:focus-visible {
  outline: 3px solid #9eb6cc;
  outline-offset: 3px;
}

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

h1, h2, h3, h4, h5, h6, .iv-label {
  font-family: Bahnschrift, "Arial Narrow", "Franklin Gothic Medium", sans-serif;
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.05;
}

h1 { font-size: clamp(40px, 5.6vw, 64px); margin: 0 0 0.6rem; }
h2 { font-size: clamp(34px, 3.4vw, 48px); margin: 1.6rem 0 0.6rem; }
h3 { font-size: clamp(32px, 2.4vw, 38px); margin: 1.2rem 0 0.45rem; }
h4, h5, h6 { font-size: 32px; margin: 1rem 0 0.4rem; }
h5 { font-style: italic; }
h6 { text-transform: uppercase; letter-spacing: 0.04em; }

p, li, dd, dt, label, caption, address, button { font-size: 20px; }
p { margin: 0 0 0.9rem; }

a { color: #b9d4ee; }
a:hover { background: #d5e2ee; color: #101820; }

.iv-skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: #d5e2ee;
  color: #101820;
  padding: 10px 14px;
  z-index: 5;
}
.iv-skip:focus { left: 12px; top: 12px; }

.iv-shell {
  width: min(1220px, calc(100% - 28px));
  margin: 18px auto 36px;
  background: #101820;
  border: 3px solid #2a3848;
  box-shadow: 14px 14px 0 rgba(0, 0, 0, 0.45);
}

.iv-top {
  display: grid;
  grid-template-columns: 300px 1fr;
  background: #10243f;
  color: #f6fbff;
  border-bottom: 3px solid #141820;
}

.iv-brand {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 16px 18px;
  text-decoration: none;
  color: #f6fbff;
  background: transparent;
}
.iv-brand:hover { background: #24384c; color: #fff; }
.iv-brand img {
  width: 72px;
  height: 72px;
  border-radius: 18px 0 18px 0;
  object-fit: cover;
}
.iv-brand strong {
  display: block;
  font-family: Bahnschrift, "Arial Narrow", sans-serif;
  font-size: 34px;
  letter-spacing: -0.04em;
  line-height: 0.95;
}
.iv-brand span { display: block; font-size: 18px; color: #c5d5e4; }
.iv-brand:hover span { color: #fff; }

.iv-nav {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
}
.iv-nav a {
  display: flex;
  align-items: center;
  min-height: 62px;
  padding: 8px 16px;
  color: #f6fbff;
  text-decoration: none;
  border-left: 2px solid rgba(246, 251, 255, 0.18);
  font-family: Bahnschrift, "Arial Narrow", sans-serif;
  font-size: 22px;
}
.iv-nav a:hover,
.iv-nav a[aria-current="page"] {
  background: #d5e2ee;
  color: #101820;
}

.iv-hero {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  min-height: 540px;
}
.iv-hero__copy {
  background: #101820;
  padding: 28px 28px 26px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.iv-hero__copy p { max-width: 40rem; }
.iv-intro { background: #101820; padding: 8px 22px 0; }
.iv-intro h2 { margin-top: 14px; }
.iv-kicker {
  margin: 0 0 8px;
  font-family: Bahnschrift, "Arial Narrow", sans-serif;
  font-size: 18px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #9eb6cc;
}
.iv-hero__pic { position: relative; background: #0c1218; }
.iv-hero__pic img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}
.iv-stamp {
  position: absolute;
  left: -16px;
  bottom: 22px;
  margin: 0;
  background: #3e5670;
  color: #fff;
  font-family: Bahnschrift, "Arial Narrow", sans-serif;
  font-size: 32px;
  padding: 8px 14px;
}

.iv-lab {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #10243f;
  color: #f6fbff;
  border-top: 3px solid #141820;
}
.iv-lab h2 { margin: 0 0 8px; color: #c5d5e4; font-size: clamp(32px, 3vw, 42px); }
.iv-lab__main { padding: 18px 20px 20px; }
.iv-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 10px 0 16px;
}
.iv-lab label { display: grid; gap: 6px; color: #d5e4f5; font-size: 18px; }
.iv-lab input,
.iv-lab select,
.iv-pop button,
.iv-fold h3 button,
.iv-sieve button,
.iv-grid th button {
  font-family: Candara, Calibri, "Trebuchet MS", sans-serif;
  font-size: 20px;
}
.iv-lab input,
.iv-lab select {
  min-height: 54px;
  border: 0;
  border-radius: 999px;
  padding: 0 16px;
  background: #f6fbff;
  color: #141820;
}
.iv-lab__go {
  min-height: 54px;
  border: 0;
  border-radius: 999px;
  padding: 0 18px;
  background: #2c4258;
  color: #fff;
  cursor: pointer;
  font-weight: 700;
}
.iv-lab__go:hover { background: #c5d5e4; color: #141820; }
.iv-read {
  background: #15202c;
  color: #e7eef6;
  padding: 18px 18px 8px;
  max-height: 760px;
  overflow: auto;
}
.iv-read h3 { margin: 12px 0 8px; font-size: 32px; }
.iv-read p { margin: 0 0 8px; }
.iv-read strong { font-family: Bahnschrift, "Arial Narrow", sans-serif; font-size: 22px; }
.iv-dist { font-family: Consolas, "Courier New", monospace; font-size: 18px; line-height: 1.45; }

.iv-bento {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr;
  grid-template-areas:
    "lead a b"
    "lead c d";
  border-top: 3px solid #141820;
}
.iv-tile {
  border-right: 3px solid #141820;
  border-bottom: 3px solid #141820;
  background: #182230;
  display: flex;
  flex-direction: column;
}
.iv-tile--lead { grid-area: lead; background: #10243f; color: #f6fbff; }
.iv-tile--a { grid-area: a; }
.iv-tile--b { grid-area: b; background: #2c4258; color: #fff; }
.iv-tile--c { grid-area: c; background: #1a2836; }
.iv-tile--d { grid-area: d; }
.iv-tile img { width: 100%; height: 190px; object-fit: cover; }
.iv-tile--lead img { height: 280px; }
.iv-tile__body { padding: 14px 16px 18px; }
.iv-tile__title {
  font-family: Bahnschrift, "Arial Narrow", sans-serif;
  font-size: clamp(32px, 3vw, 42px);
  line-height: 1.02;
  color: inherit;
  text-decoration: none;
}
.iv-tile--lead .iv-tile__title { color: #c5d5e4; }
.iv-tile__title:hover { background: #3e5670; color: #fff; }
.iv-tile__meta { margin: 8px 0 0; font-size: 18px; }

.iv-band {
  display: grid;
  grid-template-columns: 250px 1fr;
  border-top: 3px solid #141820;
}
.iv-band__side {
  background: #2c4258;
  color: #fff;
  padding: 18px 16px;
}
.iv-band__side p { margin-top: 0; }
.iv-scroll { overflow-x: auto; background: #101820; }
.iv-grid {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}
.iv-grid caption {
  caption-side: bottom;
  text-align: left;
  padding: 10px 12px 12px;
  font-family: Bahnschrift, "Arial Narrow", sans-serif;
  font-size: 22px;
}
.iv-grid th,
.iv-grid td {
  text-align: left;
  vertical-align: top;
  padding: 12px;
  border-bottom: 2px solid #2a3848;
  color: #e7eef6;
  font-size: 20px;
}
.iv-grid thead th { background: #10243f; }
.iv-grid th button {
  width: 100%;
  min-height: 52px;
  text-align: left;
  background: transparent;
  color: #c5d5e4;
  border: 0;
  cursor: pointer;
  font-family: Bahnschrift, "Arial Narrow", sans-serif;
  font-size: 22px;
}
.iv-grid th button:hover { background: #c5d5e4; color: #141820; }
.iv-grid tbody tr:nth-child(even) { background: #1a2431; }
.iv-grid tfoot td { background: #1a2836; color: #e7eef6; }

.iv-desk {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 0;
  background: #141820;
  color: #f6fbff;
}
.iv-desk > div { padding: 22px 22px 26px; }
.iv-desk a { color: #c5d5e4; }
.iv-desk address { font-style: normal; display: grid; gap: 4px; }
.iv-hours {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 16px;
  margin: 0;
}
.iv-hours dt, .iv-hours dd { margin: 0; }
.iv-desk .iv-grid { min-width: 0; }
.iv-desk .iv-grid thead th { background: #24384c; color: #e7eef6; }
.iv-desk .iv-grid td, .iv-desk .iv-grid th { color: #e7eef6; background: #101820; }

.iv-page main,
.iv-prose {
  width: min(1100px, calc(100% - 28px));
  margin: 20px auto 28px;
  background: #141c27;
  border: 3px solid #141820;
  box-shadow: 10px 10px 0 #10243f;
  padding: 22px 22px 36px;
}
.iv-page .iv-banner + main { margin-top: 0; }
.iv-banner {
  width: min(1100px, calc(100% - 28px));
  margin: 20px auto 0;
  display: grid;
  grid-template-columns: 220px 1fr;
  background: #10243f;
  color: #f6fbff;
  border: 3px solid #141820;
  border-bottom: 0;
  box-shadow: 10px 0 0 #3e5670;
}
.iv-banner img { width: 220px; height: 180px; object-fit: cover; }
.iv-banner p {
  margin: 0;
  align-self: end;
  padding: 16px 18px 18px;
  font-family: Bahnschrift, "Arial Narrow", sans-serif;
  font-size: 34px;
}
.iv-prose h1 {
  display: table;
  background: transparent;
  padding: 0 0 8px;
  box-shadow: none;
  border-bottom: 2px solid #3e5670;
}
.iv-prose > p,
.iv-prose li,
.iv-prose dd { max-width: 68ch; }
.iv-formula {
  font-family: Consolas, "Courier New", monospace;
  font-size: 22px;
  background: #10243f;
  color: #c5d5e4;
  padding: 14px 16px;
  border-radius: 0 24px 0 24px;
  overflow-x: auto;
}
.iv-term {
  font: inherit;
  font-size: 20px;
  color: #e7eef6;
  background: #24384c;
  border: 0;
  border-radius: 999px;
  padding: 0 8px;
  cursor: pointer;
}
.iv-term:hover { background: #3e5670; color: #fff; }
.iv-fold { margin: 12px 0; }
.iv-fold h3 { margin: 0; }
.iv-fold h3 button {
  width: 100%;
  text-align: left;
  min-height: 68px;
  background: #10243f;
  color: #fff;
  border: 0;
  border-radius: 22px 0 0 0;
  padding: 12px 16px;
  cursor: pointer;
  font-family: Bahnschrift, "Arial Narrow", sans-serif;
  font-size: 32px;
  line-height: 1.15;
}
.iv-fold h3 button:hover { background: #3e5670; }
.iv-fold h3 button[aria-expanded="true"] { background: #2c4258; }
.iv-fold__panel {
  border: 3px solid #10243f;
  border-top: 0;
  border-radius: 0 0 22px 22px;
  padding: 8px 16px 14px;
  background: #101820;
}
.iv-lex { margin: 0; }
.iv-lex dt {
  font-family: Bahnschrift, "Arial Narrow", sans-serif;
  font-size: 32px;
  margin-top: 1.3rem;
  background: #10243f;
  color: #c5d5e4;
  display: inline-block;
  padding: 4px 10px;
}
.iv-lex dd { margin: 0.45rem 0 0; }
.iv-pair {
  display: grid;
  grid-template-columns: 0.72fr 1.28fr;
  gap: 14px;
  margin: 16px 0;
  padding: 16px;
  background: #182230;
  border: 3px solid #2a3848;
  box-shadow: 8px 8px 0 #0a1016;
}
.iv-pair:nth-of-type(even) { box-shadow: 8px 8px 0 #3e5670; margin-left: 28px; }
#iv-sieve { margin-bottom: 8px; }
.iv-sieve { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; }
.iv-sieve .iv-label { flex: 1 0 100%; margin: 10px 0 0; font-size: 32px; }
.iv-sieve button {
  min-height: 52px;
  padding: 0 14px;
  border-radius: 999px;
  border: 3px solid #141820;
  background: #101820;
  color: #e7eef6;
  cursor: pointer;
}
.iv-sieve button[aria-pressed="true"] { background: #3e5670; color: #fff; border-color: #3e5670; }
.iv-sieve button:hover { background: #c5d5e4; color: #141820; }
.iv-card {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 4px 12px;
  margin: 0 0 14px;
  background: #182230;
  border: 3px solid #2a3848;
  box-shadow: 6px 6px 0 #0a1016;
}
.iv-card:nth-of-type(even) { margin-left: 36px; box-shadow: 6px 6px 0 #2c4258; }
.iv-card img {
  width: 160px;
  height: 100%;
  min-height: 160px;
  object-fit: cover;
  grid-column: 1;
  grid-row: 1 / span 3;
}
.iv-card > :not(img) { grid-column: 2; }
.iv-card > div { padding: 8px 14px 12px 0; }
.iv-card__kicker { margin: 0; color: #3e5670; font-family: Bahnschrift, "Arial Narrow", sans-serif; }
.iv-card__link {
  font-family: Bahnschrift, "Arial Narrow", sans-serif;
  font-size: clamp(32px, 3vw, 40px);
  line-height: 1.05;
  color: #e7eef6;
  text-decoration: none;
}
.iv-card__link:hover { background: #10243f; color: #c5d5e4; }
.iv-card__meta { color: #b7c6d6; }

.iv-foot {
  width: min(1220px, calc(100% - 28px));
  margin: 0 auto 28px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr 0.9fr;
  gap: 18px;
  padding: 22px;
  background: #10243f;
  color: #f6fbff;
  border: 3px solid #141820;
  box-shadow: 10px 10px 0 #2c4258;
}
.iv-page .iv-foot { width: min(1100px, calc(100% - 28px)); }
.iv-home .iv-foot {
  width: auto;
  margin: 0;
  border: 0;
  border-top: 3px solid #141820;
  box-shadow: none;
}
.iv-foot a { color: #c5d5e4; text-decoration: none; }
.iv-foot a:hover { background: #c5d5e4; color: #141820; }
.iv-foot address { font-style: normal; display: grid; gap: 4px; }
.iv-foot nav { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.iv-foot nav a {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border: 2px solid #c5d5e4;
}
.iv-note {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 12px;
  border-top: 2px solid rgba(246, 251, 255, 0.25);
}

.iv-pop { border: 0; padding: 0; background: transparent; max-width: calc(100vw - 24px); }
.iv-pop::backdrop { background: rgba(16, 36, 63, 0.72); }
.iv-pop__card {
  width: min(40rem, 100%);
  background: #182230;
  color: #e7eef6;
  border: 3px solid #3e5670;
  box-shadow: 12px 12px 0 #070b10;
  border-radius: 28px 0 28px 0;
  padding: 18px 18px 16px;
}
.iv-pop__card h3 { margin-top: 0; }
.iv-pop button {
  min-height: 52px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: #10243f;
  color: #fff;
  cursor: pointer;
  font-weight: 700;
}
.iv-pop button:hover { background: #3e5670; }

@media (max-width: 980px) {
  .iv-top,
  .iv-hero,
  .iv-lab,
  .iv-bento,
  .iv-band,
  .iv-desk,
  .iv-foot,
  .iv-pair,
  .iv-banner,
  .iv-fields { grid-template-columns: 1fr; }
  .iv-bento { grid-template-areas: none; }
  .iv-tile--lead,
  .iv-tile--a,
  .iv-tile--b,
  .iv-tile--c,
  .iv-tile--d { grid-area: auto; }
  .iv-nav { grid-template-columns: 1fr 1fr; }
  .iv-card,
  .iv-card:nth-of-type(even),
  .iv-pair:nth-of-type(even) { margin-left: 0; grid-template-columns: 1fr; }
  .iv-card > :not(img),
  .iv-card img { grid-column: auto; grid-row: auto; }
  .iv-card > div { padding: 12px; }
  .iv-banner img, .iv-card img { width: 100%; height: 200px; }
}

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