/* AegisSecure — White Rose exhibition system */
:root {
  --ink: #07111b;
  --ink-soft: #0a1520;
  --slate: #0d1926;
  --slate-raised: #111f2d;
  --ivory: #f7f3ed;
  --petal-grey: #b9c0c8;
  --muted: #82909c;
  --crimson: #c6284d;
  --pink: #e79bad;
  --leaf: #5c9a6a;
  --steel: #263746;
  --technical: #6cafd1;
  --hairline: rgba(185, 192, 200, 0.15);
  --shell: min(1280px, calc(100% - 64px));
  --header-height: 76px;
  --radius-sm: 4px;
  --radius-md: 10px;
  --radius-lg: 18px;
  --display: "Arial Narrow", "Roboto Condensed", "Helvetica Neue", Arial, sans-serif;
  --body: Inter, Aptos, "Segoe UI", Arial, sans-serif;
  --mono: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 28px);
  background: var(--ink);
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--ivory);
  background:
    radial-gradient(circle at 15% 6%, rgba(198, 40, 77, 0.055), transparent 30rem),
    radial-gradient(circle at 90% 58%, rgba(92, 154, 106, 0.045), transparent 34rem),
    var(--ink);
  font-family: var(--body);
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.modal-open {
  overflow: hidden;
}

::selection {
  color: var(--ivory);
  background: var(--crimson);
}

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

button {
  font: inherit;
}

:focus-visible {
  outline: 2px solid var(--pink);
  outline-offset: 4px;
}

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(100%);
  white-space: nowrap;
  color: var(--ink);
  background: var(--ivory);
  border-radius: var(--radius-sm);
  font-weight: 700;
}

.skip-link:focus-visible {
  width: auto;
  height: auto;
  padding: 10px 14px;
  clip-path: none;
}

.scroll-progress {
  position: fixed;
  z-index: 120;
  top: 0;
  right: 0;
  left: 0;
  height: 2px;
  background: transparent;
}

.scroll-progress span {
  display: block;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, var(--crimson), var(--pink));
  transform: scaleX(0);
  transform-origin: left;
}

.section-shell {
  width: var(--shell);
  margin-inline: auto;
}

.site-header {
  position: fixed;
  z-index: 100;
  top: 0;
  right: 0;
  left: 0;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  min-height: var(--header-height);
  padding: 0 max(32px, calc((100vw - 1280px) / 2));
  border-bottom: 1px solid transparent;
  transition: background-color 240ms ease, border-color 240ms ease, backdrop-filter 240ms ease;
}

.site-header.is-scrolled {
  background: rgba(7, 17, 27, 0.86);
  border-bottom-color: var(--hairline);
  backdrop-filter: blur(18px) saturate(125%);
}

.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  width: max-content;
  color: var(--ivory);
  text-decoration: none;
}

.wordmark-mark {
  display: grid;
  width: 34px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(247, 243, 237, 0.42);
  border-bottom-color: var(--crimson);
  clip-path: polygon(50% 0, 100% 18%, 91% 77%, 50% 100%, 9% 77%, 0 18%);
  font-family: var(--display);
  font-size: 17px;
  font-weight: 900;
}

.wordmark > span:last-child {
  display: flex;
  gap: 2px;
  font-family: var(--display);
  font-size: 13px;
  letter-spacing: 0.12em;
  line-height: 1;
}

.wordmark strong {
  font-weight: 900;
}

.wordmark em {
  color: var(--pink);
  font-style: normal;
  font-weight: 400;
}

.site-nav {
  display: flex;
  justify-content: center;
  gap: clamp(18px, 3vw, 42px);
}

.site-nav a {
  position: relative;
  padding: 10px 0;
  color: var(--petal-grey);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 180ms ease;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: 3px;
  left: 0;
  height: 1px;
  background: var(--crimson);
  content: "";
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 200ms ease;
}

.site-nav a:hover,
.site-nav a.is-active {
  color: var(--ivory);
}

.site-nav a:hover::after,
.site-nav a.is-active::after {
  transform: scaleX(1);
  transform-origin: left;
}

.print-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  color: var(--petal-grey);
  background: transparent;
  border: 1px solid var(--steel);
  border-radius: var(--radius-sm);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}

.print-button:hover {
  color: var(--ivory);
  background: rgba(247, 243, 237, 0.04);
  border-color: rgba(247, 243, 237, 0.4);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(330px, 0.58fr);
  grid-template-rows: 1fr auto;
  gap: 60px clamp(40px, 6vw, 96px);
  min-height: 100svh;
  padding-top: clamp(132px, 16vh, 180px);
  padding-bottom: 34px;
  isolation: isolate;
}

.hero::before {
  position: absolute;
  z-index: -2;
  top: 0;
  bottom: 0;
  left: 57%;
  width: 1px;
  background: linear-gradient(180deg, transparent, var(--hairline) 16%, var(--hairline) 84%, transparent);
  content: "";
}

.hero-grid {
  position: absolute;
  z-index: -3;
  inset: 0 calc(50% - 50vw);
  opacity: 0.4;
  background-image:
    linear-gradient(rgba(108, 175, 209, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(108, 175, 209, 0.035) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, black 0%, black 70%, transparent 100%);
}

.network-atmosphere {
  position: absolute;
  z-index: -1;
  inset: 0 calc(50% - 50vw);
  overflow: hidden;
  pointer-events: none;
}

.network-atmosphere::before,
.network-atmosphere::after {
  position: absolute;
  width: 380px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(108, 175, 209, 0.18), transparent);
  content: "";
  transform: rotate(-24deg);
}

.network-atmosphere::before {
  top: 28%;
  right: -60px;
}

.network-atmosphere::after {
  right: 9%;
  bottom: 23%;
  transform: rotate(32deg);
}

.network-atmosphere i {
  position: absolute;
  width: 5px;
  height: 5px;
  background: var(--technical);
  border-radius: 50%;
  opacity: 0.35;
}

.network-atmosphere i:nth-child(1) { top: 22%; right: 15%; }
.network-atmosphere i:nth-child(2) { top: 38%; right: 7%; }
.network-atmosphere i:nth-child(3) { right: 26%; bottom: 26%; background: var(--leaf); }
.network-atmosphere i:nth-child(4) { top: 19%; left: 42%; background: var(--crimson); }
.network-atmosphere i:nth-child(5) { right: 41%; bottom: 14%; }
.network-atmosphere i:nth-child(6) { top: 55%; left: 7%; background: var(--crimson); }

.hero-copy {
  align-self: center;
  min-width: 0;
  max-width: 810px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--petal-grey);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  line-height: 1.4;
  text-transform: uppercase;
}

.hero .eyebrow {
  display: flex;
  align-items: center;
  gap: 16px;
}

.hero .eyebrow span:first-child::before {
  display: inline-block;
  width: 18px;
  height: 1px;
  margin-right: 10px;
  vertical-align: middle;
  background: var(--crimson);
  content: "";
}

.hero .eyebrow span + span {
  padding-left: 16px;
  border-left: 1px solid var(--steel);
  color: var(--pink);
}

h1,
h2,
h3,
p {
  overflow-wrap: break-word;
}

h1 {
  margin: 0;
  font-family: var(--display);
  font-weight: 900;
  line-height: 0.91;
  text-transform: uppercase;
}

.title-kicker {
  display: block;
  margin-bottom: 4px;
  color: var(--petal-grey);
  font-size: clamp(16px, 2vw, 25px);
  font-weight: 500;
  letter-spacing: 0.42em;
  line-height: 1.2;
}

.title-name {
  display: block;
  color: var(--ivory);
  font-size: clamp(66px, 7.7vw, 110px);
  letter-spacing: -0.065em;
  white-space: nowrap;
}

.title-name > span {
  color: var(--crimson);
}

.title-detail {
  display: block;
  max-width: 780px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--steel);
  color: var(--ivory);
  font-size: clamp(22px, 3.25vw, 43px);
  letter-spacing: -0.025em;
  line-height: 1.02;
}

.hero-summary {
  max-width: 680px;
  margin: 25px 0 0;
  color: var(--petal-grey);
  font-size: clamp(15px, 1.4vw, 18px);
  line-height: 1.72;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-top: 34px;
}

.primary-action {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
  min-width: 198px;
  padding: 14px 17px;
  color: var(--ivory);
  background: var(--crimson);
  border: 1px solid var(--crimson);
  border-radius: var(--radius-sm);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}

.primary-action:hover {
  color: var(--crimson);
  background: var(--ivory);
  transform: translateY(-2px);
}

.hero-actions > p {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-actions > p span {
  width: 6px;
  height: 6px;
  background: var(--leaf);
  border-radius: 50%;
}

.hero-panel {
  position: relative;
  align-self: center;
  min-width: 0;
  padding: 22px;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(17, 31, 45, 0.9), rgba(10, 21, 32, 0.92));
  border: 1px solid var(--steel);
  border-radius: var(--radius-lg);
}

.hero-panel::before {
  position: absolute;
  top: 0;
  left: 24px;
  width: 72px;
  height: 2px;
  background: var(--crimson);
  content: "";
}

.hero-panel::after {
  position: absolute;
  right: -56px;
  bottom: -56px;
  width: 170px;
  height: 170px;
  border: 1px solid rgba(92, 154, 106, 0.13);
  border-radius: 50%;
  content: "";
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 15px;
  color: var(--muted);
  border-bottom: 1px solid var(--hairline);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.1em;
}

.shield-mark {
  display: grid;
  width: 118px;
  height: 132px;
  margin: 34px auto 36px;
  place-items: center;
  background: rgba(198, 40, 77, 0.06);
  border: 1px solid rgba(231, 155, 173, 0.5);
  clip-path: polygon(50% 0, 100% 17%, 92% 77%, 50% 100%, 8% 77%, 0 17%);
}

.shield-mark::before {
  position: absolute;
  width: 76px;
  height: 85px;
  border: 1px solid rgba(247, 243, 237, 0.22);
  clip-path: inherit;
  content: "";
}

.shield-mark span {
  color: var(--ivory);
  font-family: var(--display);
  font-size: 29px;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.signal-list {
  margin: 0;
}

.signal-list > div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  padding: 11px 0;
  border-top: 1px solid var(--hairline);
  font-size: 12px;
}

.signal-list dt {
  color: var(--muted);
}

.signal-list dd {
  margin: 0;
  color: var(--ivory);
  font-weight: 600;
  text-align: right;
}

.panel-caption {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 13px;
  padding: 13px 14px;
  background: rgba(92, 154, 106, 0.07);
  border: 1px solid rgba(92, 154, 106, 0.2);
  border-radius: var(--radius-sm);
}

.panel-caption p {
  margin: 0;
  color: var(--petal-grey);
  font-size: 10px;
  line-height: 1.4;
}

.status-dot {
  flex: 0 0 auto;
  width: 7px;
  height: 7px;
  background: var(--leaf);
  border: 2px solid rgba(92, 154, 106, 0.18);
  border-radius: 50%;
  box-sizing: content-box;
}

.institution-line {
  grid-column: 1 / -1;
  min-width: 0;
  display: grid;
  grid-template-columns: 110px 1fr auto;
  align-items: center;
  gap: 24px;
  padding-top: 24px;
  color: var(--muted);
  border-top: 1px solid var(--hairline);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.institution-line p {
  margin: 0;
  color: var(--petal-grey);
}

.institution-index {
  color: var(--pink);
}

.content-section {
  position: relative;
  padding-top: clamp(110px, 13vw, 180px);
  padding-bottom: clamp(90px, 10vw, 150px);
}

.content-section::before {
  position: absolute;
  right: calc(50% - 50vw);
  bottom: 0;
  left: calc(50% - 50vw);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--hairline) 10%, var(--hairline) 90%, transparent);
  content: "";
}

.section-heading {
  display: grid;
  grid-template-columns: 80px minmax(0, 1.2fr) minmax(280px, 0.66fr);
  gap: 28px;
  align-items: end;
  margin-bottom: clamp(48px, 7vw, 86px);
}

.section-number {
  margin: 0 0 10px;
  color: var(--crimson);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.15em;
}

.section-heading .eyebrow {
  margin-bottom: 10px;
  color: var(--muted);
}

.section-heading h2,
.status-heading h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(45px, 6.4vw, 88px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 0.95;
  text-transform: uppercase;
}

.section-heading h2 em,
.status-heading h2 em {
  color: var(--pink);
  font-style: normal;
  font-weight: 300;
}

.section-intro {
  margin: 0 0 6px;
  color: var(--petal-grey);
  font-size: 14px;
  line-height: 1.75;
}

.compact-heading {
  grid-template-columns: 80px 1fr;
}

.problem-list {
  border-top: 1px solid var(--steel);
}

.problem-card {
  position: relative;
  display: grid;
  grid-template-columns: 150px minmax(0, 850px) auto;
  gap: 38px;
  align-items: start;
  padding: 42px 22px 42px 0;
  border-bottom: 1px solid var(--steel);
  transition: background 220ms ease, padding 220ms ease;
}

.problem-card::before {
  position: absolute;
  top: -1px;
  bottom: -1px;
  left: calc(50% - 50vw);
  width: calc(50vw - 50%);
  background: transparent;
  content: "";
  transition: background 220ms ease;
}

.problem-card:hover {
  padding-right: 28px;
  padding-left: 14px;
  background: rgba(247, 243, 237, 0.018);
}

.problem-index {
  display: flex;
  align-items: center;
  gap: 18px;
  color: var(--ivory);
  font-family: var(--display);
  font-size: 37px;
  font-weight: 800;
  line-height: 1;
}

.problem-index i {
  display: block;
  width: 44px;
  height: 1px;
  background: var(--crimson);
}

.card-label {
  margin: 0 0 10px;
  color: var(--leaf);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.problem-copy h3 {
  max-width: 760px;
  margin: 0 0 15px;
  font-family: var(--display);
  font-size: clamp(24px, 2.55vw, 37px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.14;
}

.problem-copy > p:last-child {
  max-width: 790px;
  margin: 0;
  color: var(--petal-grey);
  font-size: 14px;
  line-height: 1.78;
}

.problem-code,
.person-code {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  white-space: nowrap;
}

.objectives-section {
  isolation: isolate;
}

.objectives-section::after {
  position: absolute;
  z-index: -1;
  top: 30%;
  right: calc(50% - 50vw);
  bottom: 14%;
  left: calc(50% - 50vw);
  background: rgba(13, 25, 38, 0.42);
  content: "";
}

.objective-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.objective-card {
  position: relative;
  display: flex;
  min-height: 355px;
  padding: 26px;
  flex-direction: column;
  overflow: hidden;
  background: rgba(7, 17, 27, 0.74);
  border: 1px solid var(--steel);
  border-radius: var(--radius-md);
  transition: border-color 220ms ease, transform 220ms ease;
}

.objective-card::after {
  position: absolute;
  right: -70px;
  bottom: -78px;
  width: 170px;
  height: 170px;
  border: 1px solid rgba(198, 40, 77, 0.16);
  border-radius: 50%;
  content: "";
}

.objective-card:nth-child(2)::after {
  border-color: rgba(231, 155, 173, 0.14);
}

.objective-card:nth-child(3)::after {
  border-color: rgba(92, 154, 106, 0.18);
}

.objective-card:hover {
  border-color: rgba(231, 155, 173, 0.38);
  transform: translateY(-5px);
}

.objective-number {
  align-self: flex-end;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
}

.objective-icon {
  display: grid;
  width: 58px;
  height: 58px;
  margin: 16px 0 31px;
  place-items: center;
  color: var(--ivory);
  background: rgba(198, 40, 77, 0.1);
  border: 1px solid rgba(198, 40, 77, 0.34);
  border-radius: 50%;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.objective-card:nth-child(3) .objective-icon {
  background: rgba(92, 154, 106, 0.08);
  border-color: rgba(92, 154, 106, 0.35);
}

.objective-card p {
  margin: 0;
  color: var(--ivory);
  font-size: clamp(16px, 1.55vw, 20px);
  font-weight: 600;
  line-height: 1.55;
}

.objective-tag {
  margin-top: auto;
  padding-top: 32px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.mapping-table {
  border-top: 1px solid var(--steel);
}

.mapping-header,
.mapping-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 130px minmax(0, 1fr);
  gap: 24px;
}

.mapping-header {
  padding: 11px 20px;
  color: var(--muted);
  border-bottom: 1px solid var(--steel);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.mapping-row {
  align-items: center;
  min-height: 150px;
  padding: 24px 20px;
  border-bottom: 1px solid var(--steel);
}

.mapping-row > div:first-child,
.mapping-row > div:last-child {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 15px;
  align-items: start;
}

.mapping-row > div:first-child > span {
  color: var(--crimson);
  font-family: var(--mono);
  font-size: 10px;
}

.mapping-row strong {
  font-family: var(--display);
  font-size: 20px;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.mapping-row > div:last-child strong,
.mapping-row > div:last-child p {
  grid-column: 2;
}

.mapping-row > div:last-child::before {
  grid-row: 1 / 3;
  width: 7px;
  height: 7px;
  margin-top: 8px;
  background: var(--leaf);
  border-radius: 50%;
  content: "";
}

.mapping-row p {
  margin: 5px 0 0;
  color: var(--petal-grey);
  font-size: 12px;
  line-height: 1.65;
}

.mapping-arrow {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mapping-arrow i {
  position: relative;
  display: block;
  width: 62px;
  height: 1px;
  background: var(--steel);
}

.mapping-arrow i::after {
  position: absolute;
  top: -3px;
  right: 0;
  width: 6px;
  height: 6px;
  border-top: 1px solid var(--technical);
  border-right: 1px solid var(--technical);
  content: "";
  transform: rotate(45deg);
}

.mapping-arrow span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.architecture-section {
  width: 100%;
  max-width: 100%;
  padding-right: max(32px, calc((100vw - 1280px) / 2));
  padding-left: max(32px, calc((100vw - 1280px) / 2));
  background: rgba(13, 25, 38, 0.36);
}

.architecture-section .section-heading {
  width: min(1280px, 100%);
  margin-right: auto;
  margin-left: auto;
}

.diagram-trigger {
  display: block;
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 0;
  overflow: hidden;
  color: inherit;
  background: var(--ink-soft);
  border: 1px solid var(--steel);
  border-radius: var(--radius-md);
  text-align: left;
  cursor: zoom-in;
  transition: border-color 220ms ease, transform 220ms ease;
}

.diagram-trigger:hover {
  border-color: rgba(231, 155, 173, 0.45);
  transform: translateY(-3px);
}

.diagram-toolbar,
.diagram-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 13px 17px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.diagram-toolbar {
  border-bottom: 1px solid var(--steel);
}

.diagram-toolbar > span:first-child {
  display: flex;
  align-items: center;
  gap: 9px;
}

.diagram-toolbar i {
  width: 6px;
  height: 6px;
  background: var(--leaf);
  border-radius: 50%;
}

.diagram-toolbar b {
  color: var(--pink);
  font-size: 13px;
}

.diagram-caption {
  border-top: 1px solid var(--steel);
}

.diagram-caption span:first-child {
  color: var(--petal-grey);
}

.image-shell {
  position: relative;
  overflow: hidden;
  background: var(--slate);
}

.diagram-media {
  display: block;
  aspect-ratio: 16 / 9;
}

.diagram-media img,
.dialog-image img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.asset-placeholder {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  color: var(--petal-grey);
  background:
    linear-gradient(135deg, rgba(198, 40, 77, 0.05), transparent 44%),
    repeating-linear-gradient(0deg, transparent, transparent 38px, rgba(108, 175, 209, 0.035) 39px),
    var(--slate);
  text-align: center;
}

.asset-placeholder span {
  display: grid;
  width: 74px;
  height: 74px;
  place-items: center;
  color: var(--ivory);
  border: 1px solid rgba(231, 155, 173, 0.38);
  border-radius: 50%;
  font-family: var(--display);
  font-size: 27px;
  font-weight: 800;
}

.asset-placeholder small {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.diagram-asset-placeholder strong {
  font-family: var(--display);
  font-size: clamp(30px, 5vw, 68px);
  letter-spacing: -0.03em;
}

.image-shell.is-missing img {
  display: none;
}

.flow-board {
  position: relative;
  padding: clamp(28px, 4vw, 52px);
  background: rgba(13, 25, 38, 0.62);
  border: 1px solid var(--steel);
  border-radius: var(--radius-md);
}

.flow-label {
  margin: 0 0 18px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.access-flow {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.access-flow li {
  position: relative;
  display: flex;
  min-width: 0;
  padding: 17px;
  flex-direction: column;
  background: var(--ink-soft);
  border: 1px solid var(--steel);
  border-radius: var(--radius-sm);
}

.access-flow li:not(:last-child)::after {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: calc(100% + 10px);
  width: 13px;
  height: 7px;
  border-top: 1px solid var(--technical);
  border-right: 1px solid var(--technical);
  content: "";
  transform: translateY(-50%) rotate(45deg);
}

.flow-index {
  align-self: flex-end;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
}

.flow-glyph {
  display: grid;
  width: 42px;
  height: 42px;
  margin: 12px 0 23px;
  place-items: center;
  color: var(--technical);
  background: rgba(108, 175, 209, 0.06);
  border: 1px solid rgba(108, 175, 209, 0.3);
  border-radius: 50%;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
}

.flow-glyph.rose {
  color: var(--pink);
  background: rgba(198, 40, 77, 0.08);
  border-color: rgba(231, 155, 173, 0.4);
}

.flow-glyph.green {
  color: #8fc99d;
  background: rgba(92, 154, 106, 0.08);
  border-color: rgba(92, 154, 106, 0.4);
}

.access-flow strong,
.monitor-flow strong {
  color: var(--ivory);
  font-family: var(--display);
  font-size: 16px;
  line-height: 1.25;
}

.access-flow small,
.monitor-flow small {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

.monitor-branch {
  position: relative;
  margin-top: 68px;
  padding-top: 30px;
  border-top: 1px dashed rgba(92, 154, 106, 0.35);
}

.branch-line {
  position: absolute;
  top: -69px;
  right: 9.5%;
  width: 1px;
  height: 68px;
  border-left: 1px dashed rgba(92, 154, 106, 0.42);
}

.branch-line::after {
  position: absolute;
  bottom: -3px;
  left: -3px;
  width: 6px;
  height: 6px;
  background: var(--leaf);
  border-radius: 50%;
  content: "";
}

.monitor-flow {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 26px;
}

.monitor-flow > div {
  display: flex;
  align-items: center;
  gap: 14px;
  width: min(330px, 37%);
  padding: 16px;
  background: var(--ink-soft);
  border: 1px solid var(--steel);
  border-radius: var(--radius-sm);
}

.monitor-flow .flow-glyph {
  flex: 0 0 auto;
  margin: 0;
}

.monitor-flow p {
  margin: 0;
}

.monitor-arrow {
  color: var(--leaf);
}

.technology-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--steel);
  border-left: 1px solid var(--steel);
  list-style: none;
}

.tech-card {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 125px;
  padding: 21px;
  border-right: 1px solid var(--steel);
  border-bottom: 1px solid var(--steel);
  transition: background 180ms ease;
}

.tech-card:hover {
  background: rgba(247, 243, 237, 0.025);
}

.tech-card > span {
  display: grid;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--pink);
  border: 1px solid rgba(231, 155, 173, 0.3);
  border-radius: 50%;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
}

.tech-card:nth-child(3n) > span {
  color: var(--technical);
  border-color: rgba(108, 175, 209, 0.3);
}

.tech-card:nth-child(4n) > span {
  color: #8fc99d;
  border-color: rgba(92, 154, 106, 0.34);
}

.tech-card div {
  min-width: 0;
}

.tech-card strong {
  display: block;
  color: var(--ivory);
  font-family: var(--display);
  font-size: 17px;
  line-height: 1.25;
}

.tech-card small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.35;
}

.supervisor-card {
  position: relative;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr) auto;
  gap: 34px;
  align-items: center;
  margin-bottom: 16px;
  padding: 20px;
  background: linear-gradient(110deg, var(--slate), rgba(13, 25, 38, 0.45));
  border: 1px solid var(--steel);
  border-radius: var(--radius-md);
}

.supervisor-card .portrait-media {
  aspect-ratio: 16 / 9;
}

.portrait-media {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius-sm);
}

.portrait-media::after {
  position: absolute;
  z-index: 3;
  inset: 0;
  border: 1px solid rgba(247, 243, 237, 0.08);
  border-radius: inherit;
  content: "";
  pointer-events: none;
}

.portrait-media img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
}

.person-copy h3 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(24px, 2.8vw, 40px);
  letter-spacing: -0.025em;
  line-height: 1.08;
}

.person-copy > p:last-child {
  margin: 10px 0 0;
  color: var(--petal-grey);
  font-size: 12px;
}

.supervisor-card > .person-code {
  align-self: start;
  margin: 5px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.person-card {
  position: relative;
  padding: 14px 14px 24px;
  background: rgba(13, 25, 38, 0.56);
  border: 1px solid var(--steel);
  border-radius: var(--radius-md);
  transition: border-color 220ms ease, transform 220ms ease;
}

.person-card:hover {
  border-color: rgba(231, 155, 173, 0.36);
  transform: translateY(-4px);
}

.person-card .person-copy {
  padding: 22px 7px 0;
}

.person-card .person-copy h3 {
  max-width: 90%;
  font-size: clamp(21px, 2.2vw, 31px);
}

.person-card .person-code {
  position: absolute;
  right: 21px;
  bottom: 26px;
  writing-mode: vertical-rl;
}

.status-section {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(540px, 1.15fr);
  gap: clamp(40px, 7vw, 100px);
  align-items: end;
  padding-top: clamp(95px, 12vw, 150px);
  padding-bottom: clamp(95px, 12vw, 150px);
}

.status-heading h2 {
  max-width: 550px;
  font-size: clamp(43px, 5.8vw, 77px);
}

.status-heading > p:last-child {
  max-width: 540px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.component-status {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  margin: 0;
  padding: 0;
  border-top: 1px solid var(--steel);
  border-left: 1px solid var(--steel);
  list-style: none;
}

.component-status li {
  display: flex;
  align-items: center;
  gap: 15px;
  min-height: 96px;
  padding: 21px;
  border-right: 1px solid var(--steel);
  border-bottom: 1px solid var(--steel);
}

.component-status strong,
.component-status small {
  display: block;
}

.component-status strong {
  font-family: var(--display);
  font-size: 17px;
}

.component-status small {
  margin-top: 2px;
  color: var(--leaf);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 32px;
  align-items: center;
  padding-top: 32px;
  padding-bottom: 32px;
  color: var(--muted);
  border-top: 1px solid var(--steel);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.footer-mark {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-mark > span {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  color: var(--ivory);
  border: 1px solid var(--steel);
  font-family: var(--display);
  font-size: 17px;
  font-weight: 800;
}

.footer-mark p,
.site-footer > p {
  margin: 0;
}

.footer-mark strong,
.footer-mark small {
  display: block;
}

.footer-mark strong {
  color: var(--ivory);
  font-size: 10px;
}

.footer-mark small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 7px;
}

.diagram-dialog {
  width: min(94vw, 1500px);
  max-width: none;
  max-height: 94vh;
  padding: 0;
  overflow: visible;
  color: var(--ivory);
  background: var(--ink);
  border: 1px solid var(--steel);
  border-radius: var(--radius-md);
}

.diagram-dialog::backdrop {
  background: rgba(2, 7, 11, 0.88);
  backdrop-filter: blur(8px);
}

.dialog-frame {
  max-height: 94vh;
  padding: 18px;
  overflow: auto;
}

.dialog-frame > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 4px 2px 16px;
}

.dialog-frame .eyebrow {
  margin-bottom: 4px;
}

.dialog-frame h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 30px;
  text-transform: uppercase;
}

.dialog-close {
  display: grid;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  place-items: center;
  color: var(--ivory);
  background: transparent;
  border: 1px solid var(--steel);
  border-radius: 50%;
  font-size: 23px;
  cursor: pointer;
}

.dialog-close:hover {
  color: var(--pink);
  border-color: var(--pink);
}

.dialog-image {
  aspect-ratio: 16 / 9;
  border: 1px solid var(--steel);
}

.dialog-frame > p {
  margin: 10px 0 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 8px;
  text-align: right;
  text-transform: uppercase;
}

kbd {
  padding: 2px 5px;
  color: var(--petal-grey);
  background: var(--slate);
  border: 1px solid var(--steel);
  border-radius: 3px;
  font-family: inherit;
}

.js .reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 650ms cubic-bezier(0.22, 1, 0.36, 1), transform 650ms cubic-bezier(0.22, 1, 0.36, 1);
}

.js .reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.problem-card:nth-child(2),
.objective-card:nth-child(2),
.tech-card:nth-child(2),
.person-card:nth-child(2) {
  transition-delay: 70ms;
}

.problem-card:nth-child(3),
.objective-card:nth-child(3),
.tech-card:nth-child(3),
.person-card:nth-child(3) {
  transition-delay: 140ms;
}

@media (max-width: 1120px) {
  :root {
    --shell: min(100% - 48px, 1040px);
  }

  .site-header {
    padding-inline: 24px;
  }

  .site-nav {
    gap: 20px;
  }

  .site-nav a:nth-child(4) {
    display: none;
  }

  .hero {
    grid-template-columns: minmax(0, 1fr) minmax(290px, 0.46fr);
    gap: 44px;
  }

  .title-name {
    font-size: clamp(66px, 8.5vw, 102px);
  }

  .section-heading {
    grid-template-columns: 62px minmax(0, 1fr) minmax(240px, 0.58fr);
  }

  .compact-heading {
    grid-template-columns: 62px 1fr;
  }

  .access-flow {
    gap: 22px;
  }

  .access-flow li {
    padding: 14px;
  }

  .access-flow strong {
    font-size: 14px;
  }

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

  .status-section {
    grid-template-columns: 1fr;
  }

  .component-status {
    max-width: 780px;
  }
}

@media (max-width: 850px) {
  :root {
    --shell: calc(100% - 36px);
    --header-height: 68px;
  }

  .site-header {
    grid-template-columns: auto 1fr;
    min-height: 68px;
    padding-inline: 18px;
  }

  .site-nav {
    justify-content: flex-end;
  }

  .site-nav a:nth-child(3),
  .site-nav a:nth-child(5),
  .print-button {
    display: none;
  }

  .hero {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    gap: 42px;
    padding-top: 125px;
  }

  .hero::before {
    display: none;
  }

  .hero-panel {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 0 24px;
  }

  .hero-panel .panel-heading,
  .hero-panel .panel-caption {
    grid-column: 1 / -1;
  }

  .shield-mark {
    align-self: center;
    margin: 30px auto;
  }

  .signal-list {
    align-self: center;
  }

  .institution-line {
    grid-template-columns: 90px 1fr;
  }

  .institution-line > span:last-child {
    display: none;
  }

  .section-heading {
    grid-template-columns: 42px 1fr;
    align-items: start;
  }

  .section-heading .section-intro {
    grid-column: 2;
  }

  .problem-card {
    grid-template-columns: 94px 1fr;
  }

  .problem-code {
    display: none;
  }

  .problem-index {
    font-size: 29px;
  }

  .problem-index i {
    width: 26px;
  }

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

  .objective-card {
    min-height: 270px;
  }

  .mapping-header,
  .mapping-row {
    grid-template-columns: 1fr;
  }

  .mapping-header {
    display: none;
  }

  .mapping-row {
    gap: 18px;
    padding: 30px 16px;
  }

  .mapping-arrow {
    margin-left: 29px;
    transform: rotate(90deg);
    transform-origin: left center;
  }

  .mapping-arrow span {
    display: none;
  }

  .architecture-section {
    padding-right: 18px;
    padding-left: 18px;
  }

  .diagram-toolbar span:last-child,
  .diagram-caption span:last-child {
    display: none;
  }

  .access-flow {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .access-flow li {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0 16px;
    min-height: 92px;
  }

  .access-flow li:not(:last-child)::after {
    top: calc(100% + 3px);
    left: 36px;
    transform: rotate(135deg);
  }

  .access-flow .flow-index {
    position: absolute;
    top: 9px;
    right: 10px;
  }

  .access-flow .flow-glyph {
    grid-row: 1 / 3;
    margin: 7px 0 0;
  }

  .access-flow strong {
    align-self: end;
  }

  .branch-line {
    display: none;
  }

  .monitor-flow {
    justify-content: flex-start;
  }

  .monitor-flow > div {
    width: 45%;
  }

  .supervisor-card {
    grid-template-columns: 200px 1fr;
  }

  .supervisor-card > .person-code {
    display: none;
  }

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

  .person-card {
    display: grid;
    grid-template-columns: 180px 1fr;
    gap: 20px;
  }

  .person-card .portrait-media {
    aspect-ratio: 4 / 5;
  }

  .person-card .person-copy {
    align-self: center;
    padding: 0;
  }

  .site-footer {
    grid-template-columns: 1fr auto;
  }

  .site-footer > p:nth-child(2) {
    display: none;
  }
}

@media (max-width: 560px) {
  :root {
    --shell: calc(100% - 28px);
  }

  .site-nav {
    display: none;
  }

  .title-kicker {
    font-size: 14px;
  }

  .title-name {
    font-size: clamp(44px, 12.8vw, 56px);
  }

  .title-detail {
    font-size: clamp(20px, 7.2vw, 30px);
  }

  .hero-summary {
    font-size: 14px;
  }

  .hero-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .hero-panel {
    display: block;
  }

  .shield-mark {
    margin-top: 28px;
  }

  .section-heading {
    display: block;
  }

  .section-number {
    margin-bottom: 20px;
  }

  .section-heading .section-intro {
    margin-top: 22px;
  }

  .problem-card {
    display: block;
    padding: 30px 4px;
  }

  .problem-card:hover {
    padding-right: 4px;
    padding-left: 4px;
  }

  .problem-index {
    margin-bottom: 23px;
  }

  .objective-card {
    padding: 22px;
  }

  .architecture-section {
    padding-right: 14px;
    padding-left: 14px;
  }

  .diagram-media {
    aspect-ratio: 4 / 3;
  }

  .diagram-media img {
    object-fit: contain;
  }

  .diagram-caption {
    line-height: 1.55;
  }

  .flow-board {
    padding: 22px 14px;
  }

  .monitor-flow {
    align-items: stretch;
    flex-direction: column;
  }

  .monitor-flow > div {
    width: 100%;
  }

  .monitor-arrow {
    align-self: center;
    transform: rotate(90deg);
  }

  .technology-grid,
  .component-status {
    grid-template-columns: 1fr;
  }

  .tech-card {
    min-height: 105px;
  }

  .supervisor-card,
  .person-card {
    display: block;
  }

  .supervisor-card .portrait-media {
    aspect-ratio: 4 / 5;
  }

  .supervisor-card .person-copy,
  .person-card .person-copy {
    padding: 22px 7px 8px;
  }

  .person-card .person-code {
    display: none;
  }

  .status-section {
    display: block;
  }

  .component-status {
    margin-top: 48px;
  }

  .site-footer {
    display: block;
  }

  .site-footer > p:last-child {
    margin-top: 20px;
  }
}

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

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

  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

@media print {
  @page {
    size: A3 portrait;
    margin: 12mm;
  }

  :root {
    --ink: #ffffff;
    --ink-soft: #ffffff;
    --slate: #f4f4f2;
    --slate-raised: #eeeeeb;
    --ivory: #0c1116;
    --petal-grey: #3d4852;
    --muted: #5e6871;
    --steel: #b9c0c8;
    --hairline: rgba(7, 17, 27, 0.18);
    --shell: 100%;
  }

  html,
  body {
    color: #0c1116;
    background: #fff !important;
    font-size: 9pt;
  }

  .site-header,
  .scroll-progress,
  .hero-actions,
  .network-atmosphere,
  .hero-grid,
  .diagram-toolbar span:last-child,
  .diagram-caption span:last-child,
  .diagram-dialog {
    display: none !important;
  }

  .hero {
    grid-template-columns: 1.35fr 0.65fr;
    min-height: auto;
    padding-top: 0;
    padding-bottom: 14mm;
    break-after: page;
  }

  .hero-panel,
  .objective-card,
  .flow-board,
  .supervisor-card,
  .person-card,
  .diagram-trigger {
    background: #fff !important;
    border-color: #9fa8b0 !important;
    box-shadow: none !important;
  }

  .shield-mark,
  .objective-icon,
  .flow-glyph,
  .tech-card > span {
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  .title-name {
    font-size: 68pt;
  }

  .title-detail {
    font-size: 23pt;
  }

  .institution-line {
    grid-column: 1 / -1;
  }

  .content-section {
    padding-top: 14mm;
    padding-bottom: 14mm;
  }

  .content-section,
  .status-section {
    break-before: page;
  }

  .section-heading {
    margin-bottom: 10mm;
  }

  .section-heading h2,
  .status-heading h2 {
    font-size: 42pt;
  }

  .problem-card,
  .objective-card,
  .mapping-row,
  .diagram-trigger,
  .flow-board,
  .tech-card,
  .supervisor-card,
  .person-card,
  .component-status li {
    break-inside: avoid;
  }

  .problem-card:hover,
  .objective-card:hover,
  .person-card:hover,
  .diagram-trigger:hover {
    transform: none;
  }

  .architecture-section {
    padding-right: 0;
    padding-left: 0;
  }

  .diagram-media {
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  .flow-board {
    padding: 8mm;
  }

  .access-flow {
    gap: 4mm;
  }

  .technology-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .site-footer {
    margin-top: 10mm;
  }

  .js .reveal,
  .js .reveal.is-visible {
    opacity: 1 !important;
    transform: none !important;
  }
}
