@font-face {
  font-family: "PT Mono";
  src: url("assets/fonts/PTMono-Regular.ttf") format("truetype");
  font-style: normal;
  font-weight: 400;
  font-display: swap;
}

/* Full-screen cover for anomaly and incident records */
body:is([data-record-type="anomaly"], [data-record-type="incident"]) .record-identity {
  position: relative;
  display: block;
  height: calc(100svh - 58px);
  min-height: 640px;
  overflow: hidden;
  color: var(--paper);
  background: var(--ink);
}

body:is([data-record-type="anomaly"], [data-record-type="incident"]) .record-identity::after {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.38) 0%, rgba(0, 0, 0, 0.24) 42%, rgba(0, 0, 0, 0.72) 100%);
  pointer-events: none;
}

body:is([data-record-type="anomaly"], [data-record-type="incident"]) .record-heading {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  padding: clamp(32px, 4vw, 66px) var(--side);
  border: 0;
}

body:is([data-record-type="anomaly"], [data-record-type="incident"]) .record-code {
  color: rgba(255, 255, 255, 0.76);
}

body:is([data-record-type="anomaly"], [data-record-type="incident"]) .record-heading h1 {
  max-width: 1280px;
  margin-bottom: 30px;
  color: var(--paper);
  font-size: clamp(62px, 9vw, 150px);
  text-shadow: 0 1px 20px rgba(0, 0, 0, 0.2);
}

body:is([data-record-type="anomaly"], [data-record-type="incident"]) .record-alias {
  max-width: 820px;
  color: rgba(255, 255, 255, 0.82);
  border-top-color: rgba(255, 255, 255, 0.48);
}

body:is([data-record-type="anomaly"], [data-record-type="incident"]) .record-portrait {
  position: absolute;
  inset: 0;
  display: block;
  margin: 0;
}

body:is([data-record-type="anomaly"], [data-record-type="incident"]) .record-portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 56%;
}

body:is([data-record-type="anomaly"], [data-record-type="incident"]) .record-portrait figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  z-index: 2;
  background: rgba(0, 0, 0, 0.72);
}

@media (max-width: 760px) {
  body:is([data-record-type="anomaly"], [data-record-type="incident"]) .record-identity {
    height: calc(100svh - 54px);
    min-height: 560px;
  }

  body:is([data-record-type="anomaly"], [data-record-type="incident"]) .record-heading {
    min-height: 0;
    padding: 28px 16px 54px;
  }

  body:is([data-record-type="anomaly"], [data-record-type="incident"]) .record-heading h1 {
    margin-top: 50px;
    margin-bottom: 22px;
    font-size: clamp(46px, 15vw, 76px);
  }

  body[data-record-type="incident"] .record-heading h1 {
    max-width: 100%;
    font-size: clamp(36px, 11.2vw, 56px);
    line-height: 0.86;
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  body[data-record-type="incident"] .lore-section h3,
  body[data-record-type="incident"] .research-header h2,
  body[data-record-type="incident"] .research-chart-heading h3,
  body[data-record-type="incident"] .research-table-section h3 {
    max-width: 100%;
    overflow-wrap: anywhere;
    word-break: break-word;
    hyphens: auto;
  }

  body:is([data-record-type="anomaly"], [data-record-type="incident"]) .record-alias {
    font-size: 13px;
  }

  body:is([data-record-type="anomaly"], [data-record-type="incident"]) .record-portrait figcaption {
    display: none;
  }
}

/* Historical archive: animated documentary chronology. */
.history-page,
.history-shell {
  color: #f4f4f0;
  background: #080808;
}

.history-header {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  color: #fff;
  background: rgba(8, 8, 8, 0.94);
  border-bottom-color: #353535;
  backdrop-filter: blur(16px);
}

.history-header .header-back-button {
  grid-column: 1;
  grid-row: 1;
  color: #fff;
  background: transparent;
  border-right-color: #353535;
}

.history-header .main-navigation {
  grid-column: 2;
  grid-row: 1;
}

.history-header .wordmark {
  border-color: #353535;
}

.history-header .nav-group a:hover,
.history-header .nav-group a:focus-visible,
.history-header .nav-group button:hover,
.history-header .nav-group button:focus-visible,
.history-header .wordmark:hover,
.history-header .wordmark:focus-visible,
.history-header .header-back-button:hover,
.history-header .header-back-button:focus-visible {
  color: #000;
  background: #fff;
}

.history-hero {
  position: relative;
  display: grid;
  min-height: calc(100svh - 58px);
  padding: 30px var(--side) 58px;
  overflow: hidden;
  border-bottom: 1px solid #383838;
}

.history-hero-media,
.history-hero-shade {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.history-hero-media {
  z-index: 0;
  overflow: hidden;
  background: #050505;
}

.history-hero-background {
  position: absolute;
  inset: -9% -6%;
  width: 112%;
  height: 118%;
  max-width: none;
  object-fit: cover;
  object-position: 50% 52%;
  filter: grayscale(1) brightness(0.4) contrast(1.18);
  transform: translate3d(0, var(--hero-parallax-y, 0), 0) scale(1.08);
  will-change: transform;
}

.history-hero-fog {
  position: absolute;
  z-index: 5;
  right: -15%;
  bottom: -12%;
  width: 130%;
  height: auto;
  min-height: 58%;
  max-width: none;
  pointer-events: none;
  object-fit: contain;
  object-position: 50% 100%;
  opacity: 0.62;
  filter: grayscale(1) brightness(0.54) contrast(1.22);
  mix-blend-mode: screen;
  transform: translate3d(var(--hero-parallax-x, 0), var(--hero-parallax-y, 0), 0) scale(1.12);
  will-change: transform;
}

.history-hero-shade {
  z-index: 2;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.68), rgba(0, 0, 0, 0.25) 58%, rgba(0, 0, 0, 0.5)),
    linear-gradient(0deg, rgba(0, 0, 0, 0.8), transparent 58%, rgba(0, 0, 0, 0.24));
}

.history-hero::before {
  position: absolute;
  inset: 0;
  content: "";
  z-index: 3;
  opacity: 0.14;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, #000, transparent 84%);
}

.history-hero-meta {
  position: relative;
  z-index: 6;
  display: flex;
  justify-content: space-between;
  color: #858585;
  font-size: 10px;
}

.history-hero-copy {
  position: relative;
  z-index: 6;
  display: grid;
  align-self: end;
  grid-template-columns: 1fr;
}

.history-hero-copy > p {
  margin: 0 0 22px;
  color: #8f8f8f;
  font-size: 11px;
}

.history-hero-copy h1 {
  max-width: 10ch;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(72px, 13vw, 220px);
  line-height: 0.72;
  letter-spacing: -0.075em;
}

.history-hero-copy > div {
  display: grid;
  grid-template-columns: minmax(0, 620px) minmax(260px, 380px);
  gap: 70px;
  justify-content: end;
  align-items: end;
  margin-top: 54px;
}

.history-hero-copy > div p {
  margin: 0;
  color: #b9b9b4;
  font-size: clamp(13px, 1.2vw, 18px);
  line-height: 1.65;
}

.history-hero-copy > div a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 72px;
  border: 1px solid #fff;
  font-weight: 700;
  transition: color 160ms ease, background-color 160ms ease;
}

.history-hero-copy > div a:hover,
.history-hero-copy > div a:focus-visible {
  color: #000;
  background: #fff;
  outline: none;
}

.history-orbit {
  position: absolute;
  top: 8%;
  right: -11vw;
  width: min(49vw, 760px);
  aspect-ratio: 1;
  opacity: 0.22;
  pointer-events: none;
  animation: history-orbit-turn 42s linear infinite;
}

.history-orbit span {
  position: absolute;
  inset: 0;
  border: 1px solid #fff;
  border-radius: 50% !important;
}

.history-orbit span:nth-child(2) {
  inset: 13%;
  transform: rotateX(68deg);
}

.history-orbit span:nth-child(3) {
  inset: 28%;
  border-style: dashed;
}

@keyframes history-orbit-turn {
  to { transform: rotate(360deg); }
}

.history-notice {
  display: grid;
  grid-template-columns: 0.55fr 2.45fr;
  gap: 40px;
  padding: 48px var(--side) 58px;
  border-bottom: 1px solid #383838;
}

.history-notice span,
.timeline-rail > span,
.timeline-class,
.timeline-date,
.history-sources > div > span,
.history-source-list span {
  color: #7f7f7f;
  font-size: 10px;
  letter-spacing: 0.04em;
}

.history-notice p {
  max-width: 1050px;
  margin: 0;
  font-size: clamp(14px, 1.25vw, 18px);
  line-height: 1.75;
}

.history-timeline {
  display: grid;
  grid-template-columns: minmax(230px, 0.62fr) minmax(0, 2.38fr);
  border-bottom: 1px solid #383838;
}

.timeline-rail {
  position: sticky;
  top: 58px;
  display: flex;
  height: calc(100svh - 58px);
  flex-direction: column;
  padding: 42px 30px 32px var(--side);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #383838 transparent;
  border-right: 1px solid #383838;
}

.timeline-rail > span {
  margin-bottom: auto;
}

.timeline-rail a {
  padding: clamp(5px, 0.85vh, 9px) 0;
  color: #888;
  border-top: 1px solid #252525;
  font-size: 9px;
  line-height: 1.2;
  transition: color 160ms ease, padding-left 160ms ease;
}

.timeline-rail a:hover,
.timeline-rail a:focus-visible,
.timeline-rail a.is-active {
  color: #fff;
  padding-left: 10px;
  outline: none;
}

.timeline-rail > i {
  position: relative;
  display: block;
  height: 3px;
  margin-top: 28px;
  overflow: hidden;
  background: #2f2f2f;
}

.timeline-rail > i b {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: #fff;
}

.timeline-stream {
  min-width: 0;
}

.timeline-entry {
  position: relative;
  display: grid;
  grid-template-columns: 94px minmax(150px, 0.62fr) minmax(0, 1.8fr);
  gap: 34px;
  min-height: 70svh;
  padding: clamp(72px, 9vw, 140px) var(--side) clamp(76px, 9vw, 150px) 0;
  border-bottom: 1px solid #383838;
  opacity: 0.15;
  transform: translateY(60px);
  transition:
    opacity 800ms cubic-bezier(0.2, 0.75, 0.2, 1),
    transform 900ms cubic-bezier(0.2, 0.75, 0.2, 1);
}

.timeline-entry.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.timeline-entry-major {
  min-height: 92svh;
  background: #0d0d0d;
}

.timeline-entry-impact {
  background: #f0f0eb;
  color: #080808;
}

.timeline-entry-impact .timeline-class,
.timeline-entry-impact .timeline-date {
  color: #666;
}

.timeline-entry-final {
  background: repeating-linear-gradient(-45deg, #080808, #080808 12px, #0e0e0e 12px, #0e0e0e 24px);
}

.timeline-marker {
  position: relative;
  display: flex;
  justify-content: center;
}

.timeline-marker::before {
  position: absolute;
  top: 38px;
  bottom: calc(-1 * clamp(76px, 9vw, 150px));
  width: 1px;
  content: "";
  background: #3b3b3b;
}

.timeline-marker span {
  position: relative;
  z-index: 1;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50% !important;
  background: inherit;
  font-size: 10px;
}

.timeline-date {
  padding-top: 13px;
  line-height: 1.6;
}

.timeline-copy {
  max-width: 980px;
}

.timeline-class {
  margin: 0 0 24px;
}

.timeline-copy h2 {
  margin: 0 0 clamp(34px, 4vw, 64px);
  font-family: var(--display);
  font-size: clamp(48px, 7vw, 120px);
  line-height: 0.82;
  letter-spacing: -0.06em;
}

.timeline-copy > p:not(.timeline-class) {
  max-width: 920px;
  margin: 0 0 24px;
  color: #bdbdb8;
  font-size: clamp(14px, 1.25vw, 18px);
  line-height: 1.8;
}

.timeline-entry-impact .timeline-copy > p:not(.timeline-class) {
  color: #333;
}

.history-branches {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 42px;
  border-top: 1px solid #555;
  border-left: 1px solid #555;
}

.history-branches section {
  min-height: 330px;
  padding: 28px 24px;
  border-right: 1px solid #555;
  border-bottom: 1px solid #555;
}

.history-branches span {
  color: #777;
  font-size: 9px;
}

.history-branches h3 {
  margin: 90px 0 22px;
  font-family: var(--display);
  font-size: clamp(28px, 3.4vw, 52px);
  line-height: 0.9;
}

.history-branches p {
  margin: 0;
  color: #aaa;
  font-size: 12px;
  line-height: 1.65;
}

.history-sources {
  display: grid;
  grid-template-columns: 0.75fr 2.25fr;
  gap: 48px;
  padding: clamp(74px, 9vw, 140px) var(--side);
  background: #f0f0eb;
  color: #080808;
}

.history-sources h2 {
  max-width: 7ch;
  margin: 32px 0 0;
  font-family: var(--display);
  font-size: clamp(46px, 6vw, 96px);
  line-height: 0.86;
  letter-spacing: -0.055em;
}

.history-source-list {
  border-top: 1px solid #000;
}

.history-source-list a {
  display: grid;
  grid-template-columns: 0.62fr 1.38fr;
  gap: 30px;
  align-items: center;
  min-height: 104px;
  padding: 18px 20px;
  border-bottom: 1px solid #000;
  transition: color 160ms ease, background-color 160ms ease;
}

.history-source-list a:hover,
.history-source-list a:focus-visible {
  color: #fff;
  background: #000;
  outline: none;
}

.history-source-list strong {
  font-size: clamp(13px, 1.2vw, 17px);
  line-height: 1.5;
}

.history-footer {
  color: #fff;
  background: #080808;
  border-top-color: #383838;
}

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

  .timeline-rail {
    position: sticky;
    top: 54px;
    z-index: 8;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    gap: 0;
    width: 100%;
    height: auto;
    padding: 0 var(--side);
    overflow-x: auto;
    overflow-y: hidden;
    background: rgba(8, 8, 8, 0.96);
    border-right: 0;
    border-bottom: 1px solid #383838;
  }

  .timeline-rail > span,
  .timeline-rail > i {
    display: none;
  }

  .timeline-rail a {
    flex: 0 0 auto;
    min-width: max-content;
    padding: 11px 18px;
    font-size: 10px;
    white-space: nowrap;
    border-top: 0;
    border-right: 1px solid #252525;
  }

  .timeline-entry {
    grid-template-columns: 70px minmax(120px, 0.45fr) minmax(0, 1.55fr);
    padding-left: var(--side);
  }
}

@media (max-width: 760px) {
  .history-header {
    grid-template-columns: 54px 54px minmax(0, 1fr);
  }

  .history-header .menu-toggle {
    grid-column: 2;
    grid-row: 1;
    display: grid;
    color: #fff;
    background: transparent;
    border-color: #353535;
  }

  .history-header .header-back-button {
    width: 54px;
    min-height: 54px;
  }

  .history-header .mobile-wordmark {
    grid-column: 3;
    grid-row: 1;
    display: flex;
    color: #fff;
    border-bottom-color: #353535;
  }

  .history-header .main-navigation {
    grid-column: 1 / -1;
    grid-row: 2;
    color: #000;
    background: #f0f0eb;
  }

  .history-header .other-menu {
    top: 54px;
  }

  .history-hero {
    min-height: calc(100svh - 54px);
    padding-top: 24px;
  }

  .history-hero-meta span:last-child {
    display: none;
  }

  .history-hero-copy h1 {
    font-size: clamp(58px, 19vw, 92px);
    line-height: 0.78;
  }

  .history-hero-copy > div {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-top: 42px;
  }

  .history-notice,
  .history-sources {
    grid-template-columns: 1fr;
  }

  .timeline-entry {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 18px;
    min-height: 0;
    padding: 72px var(--side) 82px;
  }

  .timeline-marker {
    grid-column: 1;
    grid-row: 1 / span 2;
  }

  .timeline-marker::before {
    bottom: -82px;
  }

  .timeline-marker span {
    width: 36px;
    height: 36px;
  }

  .timeline-date,
  .timeline-copy {
    grid-column: 2;
  }

  .timeline-copy h2 {
    font-size: clamp(42px, 12vw, 66px);
  }

  .history-branches {
    grid-template-columns: 1fr;
  }

  .history-branches section {
    min-height: 240px;
  }

  .history-branches h3 {
    margin-top: 52px;
  }

  .history-source-list a {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

/* Historical archive v1.0: expandable dossiers and layered scenes. */
.archive-scene {
  --fg-bottom: -4%;
  --fg-inline: clamp(8px, 3vw, 54px);
  --fg-opacity: 0.86;
  --fg-width: min(36vw, 580px);
  isolation: isolate;
  min-height: 100svh;
  overflow: clip;
  background: #050505;
  opacity: 1;
  transform: none;
}

.archive-motion-ready .archive-scene {
  opacity: 0.18;
  transform: translateY(54px);
}

.archive-motion-ready .archive-scene.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.archive-scene.timeline-entry-impact {
  color: #f4f4f0;
  background: #090909;
}

.archive-scene.timeline-entry-impact .timeline-class,
.archive-scene.timeline-entry-impact .timeline-date {
  color: #888;
}

.archive-scene.timeline-entry-impact .timeline-copy > p,
.archive-scene.timeline-entry-impact .timeline-dossier-body p {
  color: #d0d0ca;
}

.archive-scene-media,
.archive-scene-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.archive-scene-media {
  z-index: 0;
  overflow: clip;
}

.archive-scene-stage {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
}

.archive-scene-stage::after {
  position: absolute;
  z-index: 2;
  inset: 0;
  opacity: 0.13;
  background:
    repeating-radial-gradient(circle at 35% 28%, rgba(255, 255, 255, 0.14) 0 0.7px, transparent 0.8px 4px),
    repeating-linear-gradient(0deg, transparent 0 3px, rgba(255, 255, 255, 0.035) 3px 4px);
  mix-blend-mode: soft-light;
  pointer-events: none;
  content: "";
}

.archive-scene-background {
  position: absolute;
  z-index: 0;
  inset: -10% -6%;
  width: 112%;
  height: 120%;
  max-width: none;
  object-fit: cover;
  object-position: var(--bg-position, 50% 50%);
  opacity: 0.94;
  filter: contrast(1.08) brightness(0.9) blur(0);
  transform: translate3d(var(--parallax-x, 0), var(--parallax-y, 0), 0) scale(var(--parallax-scale, 1.12));
  transition: opacity 1200ms ease, filter 1400ms ease;
}

.archive-scene-cutout {
  position: absolute;
  z-index: 1;
  bottom: var(--fg-bottom);
  display: block;
  width: var(--fg-width);
  height: auto;
  max-height: 82svh;
  object-fit: contain;
  opacity: var(--fg-opacity);
  filter:
    brightness(1.2)
    contrast(1.1)
    drop-shadow(0 22px 28px rgba(0, 0, 0, 0.72))
    drop-shadow(0 0 50px color-mix(in srgb, var(--scene-accent, #8b96aa) 24%, transparent));
  transform:
    translate3d(var(--parallax-x, 0), var(--parallax-y, 0), 0)
    rotate(var(--parallax-rotate, 0deg))
    scale(var(--parallax-scale, 1));
  transition: opacity 1100ms ease 180ms, filter 1200ms ease;
}

.archive-scene-cutout--right {
  right: var(--fg-inline);
}

.archive-scene-cutout--left {
  right: auto;
  left: var(--fg-inline);
}

.archive-motion-ready .archive-scene:not(.is-visible) .archive-scene-background {
  opacity: 0.18;
  filter: contrast(1.05) brightness(0.46) blur(7px);
}

.archive-motion-ready .archive-scene:not(.is-visible) .archive-scene-cutout {
  opacity: 0;
  filter: blur(9px) drop-shadow(0 18px 24px rgba(0, 0, 0, 0.66));
}

.archive-scene.is-in-viewport .archive-scene-background,
.archive-scene.is-in-viewport .archive-scene-cutout {
  will-change: transform;
}

.archive-scene.is-in-viewport .archive-scene-background {
  animation: archive-background-breathe 12s ease-in-out infinite alternate;
}

.archive-scene.is-in-viewport .archive-scene-cutout {
  animation: archive-object-float 6.5s ease-in-out infinite alternate;
}

.archive-scene-vignette {
  z-index: 2;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.54) 0%, rgba(0, 0, 0, 0.38) 40%, rgba(0, 0, 0, 0.16) 74%, rgba(0, 0, 0, 0.3) 100%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.68), transparent 46%, rgba(0, 0, 0, 0.26));
}

.archive-scene > .timeline-marker,
.archive-scene > .timeline-date,
.archive-scene > .timeline-copy {
  position: relative;
  z-index: 3;
}

.archive-scene[data-scene="union"] { --scene-accent: #52627e; --fg-width: min(38vw, 610px); --fg-bottom: -7%; --bg-position: 52% 50%; }
.archive-scene[data-scene="discovery"] { --scene-accent: #345b62; --fg-width: min(31vw, 500px); --fg-bottom: -9%; --fg-inline: clamp(16px, 5vw, 84px); --bg-position: 52% 50%; }
.archive-scene[data-scene="human"] { --scene-accent: #8c5548; --fg-width: min(35vw, 555px); --fg-bottom: -5%; --fg-opacity: 0.76; --bg-position: 46% 50%; }
.archive-scene[data-scene="eden"] { --scene-accent: #7b6d45; --fg-width: min(33vw, 530px); --fg-bottom: -10%; --bg-position: 52% 50%; }
.archive-scene[data-scene="belts"] { --scene-accent: #5e527c; --fg-width: min(38vw, 610px); --fg-bottom: -7%; --fg-opacity: 0.76; --bg-position: 48% 50%; }
.archive-scene[data-scene="hyperborea"] { --scene-accent: #6e8fa6; --fg-width: min(35vw, 560px); --fg-bottom: -10%; --bg-position: 56% 50%; }
.archive-scene[data-scene="interplanetary"] { --scene-accent: #736b90; --fg-width: min(43vw, 690px); --fg-bottom: -13%; --fg-opacity: 0.8; --bg-position: 50% 54%; }
.archive-scene[data-scene="successors"] { --scene-accent: #755a48; --fg-width: min(35vw, 560px); --fg-bottom: -4%; --bg-position: 54% 50%; }
.archive-scene[data-scene="selbet-war"] { --scene-accent: #9b352d; --fg-width: min(50vw, 790px); --fg-bottom: -12%; --fg-opacity: 0.94; --bg-position: 51% 50%; }
.archive-scene[data-scene="resettlement"] { --scene-accent: #587359; --fg-width: min(24vw, 380px); --fg-bottom: -3%; --fg-inline: clamp(32px, 8vw, 130px); --bg-position: 50% 50%; }
.archive-scene[data-scene="tartaria"] { --scene-accent: #977941; --fg-width: min(40vw, 640px); --fg-bottom: -8%; --bg-position: 50% 50%; }
.archive-scene[data-scene="hidden-war"] { --scene-accent: #73503f; --fg-width: min(24vw, 380px); --fg-bottom: -2%; --fg-inline: clamp(38px, 8vw, 130px); --bg-position: 54% 50%; }
.archive-scene[data-scene="compression"] { --scene-accent: #6f6a61; --fg-width: min(42vw, 680px); --fg-bottom: -10%; --fg-opacity: 0.78; --bg-position: 48% 50%; }
.archive-scene[data-scene="war-1812"] { --scene-accent: #a52d27; --fg-width: min(35vw, 560px); --fg-bottom: -4%; --bg-position: 56% 50%; }
.archive-scene[data-scene="reset"] { --scene-accent: #68717b; --fg-width: min(41vw, 660px); --fg-bottom: -9%; --fg-opacity: 0.76; --bg-position: 50% 50%; }
.archive-scene[data-scene="silence"] { --scene-accent: #4b5260; --fg-width: min(38vw, 610px); --fg-bottom: -10%; --bg-position: 54% 50%; }

@keyframes archive-background-breathe {
  from { scale: 1; }
  to { scale: 1.018; }
}

@keyframes archive-object-float {
  from { translate: 0 0; }
  to { translate: 0 -8px; }
}

.archive-motion-ready .archive-scene .timeline-date,
.archive-motion-ready .archive-scene .timeline-copy > h2,
.archive-motion-ready .archive-scene .timeline-lede,
.archive-motion-ready .archive-scene .timeline-dossier {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 700ms ease, transform 850ms cubic-bezier(0.2, 0.75, 0.2, 1);
}

.archive-motion-ready .archive-scene.is-visible .timeline-date,
.archive-motion-ready .archive-scene.is-visible .timeline-copy > h2,
.archive-motion-ready .archive-scene.is-visible .timeline-lede,
.archive-motion-ready .archive-scene.is-visible .timeline-dossier {
  opacity: 1;
  transform: translateY(0);
}

.archive-motion-ready .archive-scene.is-visible .timeline-copy > h2 { transition-delay: 90ms; }
.archive-motion-ready .archive-scene.is-visible .timeline-lede { transition-delay: 180ms; }
.archive-motion-ready .archive-scene.is-visible .timeline-dossier { transition-delay: 270ms; }

.archive-scene {
  scroll-margin-top: 72px;
}

.archive-scene .timeline-copy {
  max-width: 1040px;
  text-shadow: 0 2px 22px #000, 0 0 5px #000;
}

.timeline-lede {
  max-width: 68ch !important;
  margin-bottom: 0 !important;
  color: #e0e0db !important;
  font-size: clamp(15px, 1.3vw, 20px) !important;
  line-height: 1.75 !important;
}

.timeline-dossier {
  max-width: 940px;
  margin-top: 38px;
  border-top: 1px solid rgba(255, 255, 255, 0.42);
}

.timeline-dossier-toggle {
  display: none;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  cursor: pointer;
  list-style: none;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  transition: color 160ms ease, padding 160ms ease;
}

.timeline-dossier-toggle::-webkit-details-marker {
  display: none;
}

.timeline-dossier-toggle:hover {
  padding-right: 10px;
  color: var(--scene-accent, #fff);
}

.timeline-dossier-toggle:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 5px;
}

.timeline-dossier-icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid currentColor;
  border-radius: 50% !important;
  transition: transform 220ms ease;
}

.timeline-dossier[open] .timeline-dossier-icon {
  transform: rotate(180deg);
}

.timeline-dossier-body {
  max-width: 76ch;
  padding: 38px 0 70px;
}

.timeline-dossier-body section {
  margin-top: 58px;
}

.timeline-dossier-body h3 {
  margin: 0 0 22px;
  font-family: var(--display);
  font-size: clamp(28px, 3vw, 48px);
  line-height: 0.96;
  letter-spacing: -0.035em;
}

.timeline-dossier-body p {
  margin: 0 0 26px;
  color: #c4c4bf;
  font-size: clamp(14px, 1.15vw, 17px);
  line-height: 1.88;
}

.timeline-dossier-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 10px 0 62px;
  border-top: 1px solid rgba(255, 255, 255, 0.45);
  border-left: 1px solid rgba(255, 255, 255, 0.45);
}

.timeline-dossier-facts > div {
  min-height: 114px;
  padding: 18px;
  border-right: 1px solid rgba(255, 255, 255, 0.45);
  border-bottom: 1px solid rgba(255, 255, 255, 0.45);
}

.timeline-dossier-facts dt {
  margin-bottom: 26px;
  color: #8b8b86;
  font-size: 9px;
  letter-spacing: 0.08em;
}

.timeline-dossier-facts dd {
  margin: 0;
  font-size: clamp(12px, 1vw, 15px);
  line-height: 1.55;
}

.timeline-genome dd {
  font-family: var(--display);
  font-size: clamp(34px, 4vw, 62px);
  line-height: 0.9;
}

.timeline-progress {
  position: relative;
  height: 3px;
  margin-top: 28px;
  overflow: hidden;
  background: #2f2f2f;
}

.timeline-progress span {
  position: absolute;
  inset: 0;
  background: #fff;
  transform: scaleX(var(--progress, 0));
  transform-origin: left center;
  transition: transform 90ms linear;
}

.history-source-list .history-source-note {
  display: grid;
  grid-template-columns: 0.62fr 1.38fr;
  gap: 30px;
  align-items: center;
  min-height: 104px;
  padding: 18px 20px;
  border-bottom: 1px solid #000;
  background: #deded8;
}

.history-source-note span {
  color: #666;
  font-size: 10px;
  letter-spacing: 0.04em;
}

.history-source-note strong {
  font-size: clamp(13px, 1.2vw, 17px);
  line-height: 1.5;
}

@media (max-width: 980px) {
  .archive-scene {
    scroll-margin-top: 116px;
  }

  .archive-scene-cutout {
    width: min(44vw, 470px);
    opacity: 0.6;
  }

  .timeline-rail {
    top: 58px;
  }

  .timeline-rail .timeline-progress {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    display: block;
    height: 2px;
    margin: 0;
  }
}

@media (max-width: 760px) {
  .archive-scene-vignette {
    background:
      linear-gradient(0deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.42) 64%, rgba(0, 0, 0, 0.24) 100%),
      linear-gradient(90deg, rgba(0, 0, 0, 0.34), rgba(0, 0, 0, 0.12));
  }

  .archive-scene-cutout {
    top: auto;
    right: -18vw;
    bottom: -6%;
    width: 86vw;
    max-height: 60svh;
    opacity: 0.66;
  }

  .archive-scene-cutout--left {
    right: auto;
    left: -18vw;
  }

  .archive-scene .timeline-copy h2 {
    hyphens: none;
  }

  .timeline-dossier {
    margin-top: 30px;
  }

  .timeline-dossier-toggle {
    min-height: 62px;
  }

  .timeline-dossier-body {
    max-width: none;
    padding-bottom: 38px;
  }

  .timeline-dossier-body section {
    margin-top: 44px;
  }

  .timeline-dossier-facts {
    grid-template-columns: 1fr;
    margin-bottom: 48px;
  }

  .timeline-dossier-facts > div {
    min-height: 96px;
  }

  .history-source-list .history-source-note {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

@media (max-width: 760px) {
  .timeline-rail {
    top: 55px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .history-hero-background,
  .history-hero-fog { transform: none !important; will-change: auto !important; }

  .archive-scene,
  .timeline-dossier-icon {
    opacity: 1;
    transform: none !important;
    transition: none !important;
  }

  .archive-scene-background,
  .archive-scene-cutout {
    transform: none !important;
    transition: none !important;
    animation: none !important;
    will-change: auto !important;
  }

  .archive-scene-background {
    opacity: 0.94;
  }

  .archive-scene-cutout {
    opacity: var(--fg-opacity);
  }
}

/* MID-A-0001 / radiation research */
.record-research {
  background: var(--paper);
  border-top: 1px solid var(--ink);
}

.research-header {
  display: grid;
  grid-template-columns: 0.45fr 2.55fr;
  gap: 34px;
  padding: 72px var(--side);
  border-bottom: 1px solid var(--ink);
}

.research-header > span,
.research-header > div > p:first-child {
  color: var(--muted);
  font-size: 11px;
}

.research-header h2 {
  max-width: 1250px;
  margin: 18px 0 32px;
  font-size: clamp(42px, 6.4vw, 108px);
  line-height: 0.88;
  letter-spacing: -0.075em;
}

.research-header > div > p:last-child {
  max-width: 980px;
  margin: 0;
  font-size: clamp(15px, 1.35vw, 20px);
  line-height: 1.7;
}

.research-methods {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  border-bottom: 1px solid var(--ink);
}

.research-methods > div {
  min-height: 132px;
  padding: 24px var(--side);
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.research-methods > div:nth-child(3n) {
  border-right: 0;
}

.research-methods dt {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
}

.research-methods dd {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
}

.research-chart {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: 620px;
  border-bottom: 1px solid var(--ink);
}

.research-chart-copy {
  order: 2;
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 42px clamp(28px, 3vw, 58px) 48px;
  border-left: 1px solid var(--ink);
}

.research-chart.is-reversed .research-chart-copy {
  order: 1;
  border-right: 1px solid var(--ink);
  border-left: 0;
}

.research-chart.is-reversed .research-chart-canvas {
  order: 2;
}

.research-chart-meta {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: auto;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--ink);
  color: var(--muted);
  font-size: 11px;
}

.research-chart-meta strong {
  color: var(--ink);
  font-size: 10px;
  text-align: right;
}

.research-chart-heading {
  margin-top: 34px;
}

.research-chart-heading h3,
.research-table-section h3 {
  max-width: 1100px;
  margin: 0 0 18px;
  font-size: clamp(27px, 3vw, 54px);
  line-height: 0.94;
  letter-spacing: -0.05em;
}

.research-chart-heading p {
  max-width: 860px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}

.research-chart-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 30px 0 0;
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
}

.research-chart-metrics > div {
  min-width: 0;
  padding: 12px;
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.research-chart-metrics dt {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 8px;
  line-height: 1.35;
}

.research-chart-metrics dd {
  margin: 0;
  font-size: clamp(12px, 1.15vw, 17px);
  font-weight: 700;
  line-height: 1.2;
}

.research-chart-analysis {
  margin-top: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--ink);
}

.research-chart-analysis p {
  margin: 0 0 13px;
  font-size: 12px;
  line-height: 1.65;
}

.research-chart-canvas {
  order: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  width: 100%;
  overflow: hidden;
  background: #f7f7f5;
}

.research-chart-canvas svg {
  display: block;
  width: 100%;
  height: auto;
  min-height: 430px;
  background: var(--paper);
}

.chart-instrument-bar {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  min-height: 42px;
  align-items: center;
  padding: 0 18px;
  border-bottom: 1px solid var(--ink);
  color: var(--muted);
  background: var(--paper);
  font-size: 9px;
}

.chart-grid-line {
  stroke: #d1d1d1;
  stroke-width: 1;
}

.chart-danger-zone {
  fill: #ececeb;
}

.chart-axis {
  stroke: var(--ink);
  stroke-width: 1.5;
}

.chart-axis-label,
.chart-threshold-label {
  fill: var(--muted);
  font-family: "PT Mono", monospace;
  font-size: 11px;
}

.chart-threshold {
  stroke: var(--ink);
  stroke-width: 1.5;
  stroke-dasharray: 5 5;
}

.chart-threshold-label {
  fill: var(--ink);
  font-weight: 700;
}

.chart-line,
.chart-point,
.chart-bar,
.chart-heat-cell {
  transition: opacity 150ms ease, stroke-width 150ms ease;
}

.chart-point,
.chart-bar,
.chart-heat-cell {
  cursor: crosshair;
}

.chart-point:hover,
.chart-bar:hover,
.chart-heat-cell:hover {
  opacity: 0.62;
}

.chart-confidence {
  pointer-events: none;
}

.chart-area {
  stroke: var(--paper);
  stroke-width: 1;
}

.chart-cell-value,
.chart-value-label {
  font-family: "PT Mono", monospace;
  font-size: 10px;
  font-weight: 700;
  pointer-events: none;
}

.chart-heat-label {
  font-size: 9px;
}

.chart-tooltip {
  position: absolute;
  z-index: 3;
  display: grid;
  gap: 4px;
  min-width: 176px;
  padding: 10px 12px;
  color: var(--paper);
  background: var(--ink);
  font-size: 10px;
  line-height: 1.4;
  pointer-events: none;
}

.chart-tooltip[hidden] {
  display: none;
}

.chart-legend {
  display: flex;
  flex-wrap: wrap;
  margin-top: 24px;
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
}

.chart-legend-item {
  display: flex;
  gap: 10px;
  align-items: center;
  min-height: 46px;
  padding: 0 16px;
  border: 0;
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  color: var(--muted);
  background: var(--paper);
  font: inherit;
  font-size: 10px;
  cursor: pointer;
}

.chart-legend-item i {
  width: 18px;
  height: 4px;
  background: var(--series-tone);
}

.chart-legend-item.is-active {
  color: var(--ink);
  font-weight: 700;
}

.chart-legend-item:not(.is-active) i {
  background: transparent;
  border: 1px solid var(--muted);
}

.chart-legend-item:hover,
.chart-legend-item:focus-visible {
  color: var(--paper);
  background: var(--ink);
  outline: none;
}

.research-table-section {
  padding: 64px var(--side) 80px;
  border-bottom: 1px solid var(--ink);
}

.research-table-section h3 {
  margin-bottom: 34px;
}

.research-table-viewport {
  overflow-x: auto;
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
}

.research-table-viewport table {
  width: 100%;
  min-width: 900px;
  border-collapse: collapse;
  font-size: 11px;
}

.research-table-viewport th,
.research-table-viewport td {
  padding: 15px 14px;
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  text-align: left;
  white-space: nowrap;
}

.research-table-viewport th {
  color: var(--paper);
  background: var(--ink);
  font-weight: 400;
  text-transform: uppercase;
}

.research-table-viewport td:last-child {
  font-weight: 700;
  text-transform: uppercase;
}

@media (max-width: 760px) {
  .research-header {
    grid-template-columns: 1fr;
    padding-top: 46px;
    padding-bottom: 50px;
  }

  .research-header h2 {
    font-size: clamp(38px, 12vw, 62px);
  }

  .research-methods {
    grid-template-columns: 1fr;
  }

  .research-methods > div,
  .research-methods > div:nth-child(3n) {
    min-height: 0;
    border-right: 0;
  }

  .research-chart {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .research-chart-copy,
  .research-chart.is-reversed .research-chart-copy {
    order: 1;
    padding: 30px 16px 34px;
    border-right: 0;
    border-bottom: 1px solid var(--ink);
    border-left: 0;
  }

  .research-chart.is-reversed .research-chart-canvas,
  .research-chart-canvas {
    order: 2;
  }

  .research-chart-canvas {
    width: 100%;
    overflow: hidden;
  }

  .research-chart-canvas svg {
    width: 100%;
    max-width: 100%;
    min-height: 0;
    aspect-ratio: 760 / 500;
  }

  .research-chart-heading h3 {
    font-size: clamp(27px, 9vw, 40px);
  }

  .research-chart-metrics dd {
    font-size: 11px;
  }

  .research-chart-analysis p {
    font-size: 11px;
  }

  .chart-axis-label,
  .chart-threshold-label,
  .chart-cell-value,
  .chart-value-label {
    font-size: 18px;
  }

  .chart-heat-label {
    font-size: 16px;
  }

  .chart-legend-item {
    flex: 1 1 50%;
    border-bottom: 1px solid var(--ink);
  }

  .research-table-section {
    padding-top: 48px;
    padding-bottom: 58px;
  }
}

@font-face {
  font-family: "PT Mono";
  src: url("assets/fonts/PTMono-Bold.ttf") format("truetype");
  font-style: normal;
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --display: "PT Mono", monospace;
  --paper: #fff;
  --ink: #000;
  --muted: #606060;
  --line: #cfcfcf;
  --page: min(100%, 1600px);
  --side: clamp(16px, 2.4vw, 38px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
  border-radius: 0 !important;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "PT Mono", monospace;
  font-size: 14px;
  line-height: 1.45;
}

button,
a {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  color: inherit;
}

.site-shell {
  width: 100%;
  max-width: none;
  min-height: 100svh;
  margin: 0;
  background: var(--paper);
  border: 0;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.main-navigation {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: stretch;
  min-height: 58px;
}

.record-shell .site-header,
.registry-page .site-header {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
}

.header-back-button {
  grid-column: 1;
  grid-row: 1;
  display: grid;
  width: 54px;
  min-height: 58px;
  place-items: center;
  padding: 0;
  border: 0;
  border-right: 1px solid var(--line);
  background: var(--paper);
  font-size: 23px;
  cursor: pointer;
  transition: color 160ms ease, background-color 160ms ease;
}

.header-back-button:hover,
.header-back-button:focus-visible {
  color: var(--paper);
  background: var(--ink);
  outline: none;
}

.record-shell .main-navigation,
.registry-page .main-navigation {
  grid-column: 2;
  grid-row: 1;
}

.nav-group {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.nav-group-mobile-extra {
  display: none;
}

.nav-group a,
.nav-group button,
.wordmark {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  white-space: nowrap;
  transition: background-color 140ms linear, color 140ms linear;
}

.nav-group button {
  border: 0;
  background: transparent;
  cursor: pointer;
}

.nav-group a:hover,
.nav-group a:focus-visible,
.nav-group button:hover,
.nav-group button:focus-visible,
.wordmark:hover,
.wordmark:focus-visible {
  color: var(--paper);
  background: var(--ink);
  outline: none;
}

.other-menu {
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 120;
  display: grid;
  grid-template-columns: 1fr;
  width: 220px;
  color: var(--ink);
  background: var(--paper);
  border-bottom: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.14);
}

.other-menu[hidden] {
  display: none;
}

.other-menu > button {
  min-height: 58px;
  padding: 0 20px;
  border: 0;
  border-bottom: 1px solid var(--ink);
  background: transparent;
  text-align: left;
}

.other-menu > span {
  display: none;
}

.other-menu > button {
  font-weight: 700;
  cursor: default;
}

.other-menu > button:last-child {
  border-bottom: 0;
}

.wordmark {
  min-width: 220px;
  border-right: 1px solid var(--line);
  border-left: 1px solid var(--line);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.menu-toggle {
  display: none;
  width: 100%;
  min-height: 48px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  text-align: left;
  padding: 0 var(--side);
  font-weight: 700;
}

.mobile-wordmark {
  display: none;
}

.menu-icon {
  position: relative;
  display: block;
  width: 21px;
  height: 15px;
}

.menu-icon span {
  position: absolute;
  left: 0;
  width: 100%;
  height: 1px;
  background: currentColor;
  transition:
    top 180ms ease,
    opacity 180ms ease,
    transform 180ms ease;
}

.menu-icon span:nth-child(1) {
  top: 0;
}

.menu-icon span:nth-child(2) {
  top: 7px;
}

.menu-icon span:nth-child(3) {
  top: 14px;
}

.menu-toggle.is-open .menu-icon span:nth-child(1) {
  top: 7px;
  transform: rotate(45deg);
}

.menu-toggle.is-open .menu-icon span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open .menu-icon span:nth-child(3) {
  top: 7px;
  transform: rotate(-45deg);
}

.system-strip {
  display: grid;
  grid-template-columns: 2fr repeat(4, 1fr);
  min-height: 62px;
  border-bottom: 1px solid var(--ink);
}

.system-strip span {
  display: flex;
  align-items: center;
  padding: 0 18px;
  border-right: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}

.system-strip span:first-child {
  color: var(--ink);
  font-weight: 700;
}

.system-strip span:last-child {
  border-right: 0;
  justify-content: flex-end;
}

.hero {
  display: grid;
  grid-template-columns: minmax(340px, 0.82fr) minmax(0, 1.68fr);
  min-height: 610px;
  border-bottom: 1px solid var(--ink);
}

.hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(34px, 4.5vw, 76px) var(--side) 34px;
  border-right: 1px solid var(--ink);
}

.eyebrow,
.section-index {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
}

.hero-copy h1 {
  margin: auto 0;
  font-size: clamp(52px, 6vw, 108px);
  line-height: 0.86;
  letter-spacing: -0.075em;
}

.hero-copy-footer {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 20px;
  align-items: end;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.hero-copy-footer p {
  max-width: 470px;
  margin: 0;
  font-size: 12px;
}

.text-link {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--ink);
  padding-bottom: 6px;
  font-weight: 700;
}

.hero-media {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  grid-template-rows: 1fr 1fr;
  min-width: 0;
  background: var(--ink);
  gap: 1px;
}

.media-panel {
  position: relative;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: #ddd;
}

.media-panel-main {
  grid-row: 1 / -1;
}

.media-panel img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: 50% 40%;
  filter: saturate(0.92) contrast(1.02);
  transition: transform 300ms linear;
}

.media-panel:hover img {
  transform: scale(1.015);
}

.media-caption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  color: var(--paper);
  background: var(--ink);
  font-size: 10px;
}

.intro-section {
  display: grid;
  grid-template-columns: 0.5fr 1.45fr 1fr;
  gap: 34px;
  padding: 88px var(--side) 104px;
  border-bottom: 1px solid var(--ink);
}

.intro-section h2,
.section-heading h2 {
  margin: 0;
  font-size: clamp(34px, 4.5vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.intro-copy {
  display: grid;
  align-content: end;
  gap: 22px;
  border-left: 1px solid var(--line);
  padding-left: 30px;
}

.intro-copy p {
  margin: 0;
  max-width: 520px;
}

.section-heading {
  display: grid;
  grid-template-columns: 0.5fr 2.45fr;
  gap: 34px;
  align-items: start;
  padding: 74px var(--side) 54px;
}

.registry {
  border-bottom: 1px solid var(--ink);
}

.registry-row {
  display: grid;
  grid-template-columns: 0.38fr 1.05fr 1.6fr 0.45fr 38px;
  align-items: center;
  min-height: 112px;
  padding: 0 var(--side);
  border-top: 1px solid var(--ink);
  transition: background-color 140ms linear, color 140ms linear;
}

.registry-row:hover,
.registry-row:focus-visible {
  color: var(--paper);
  background: var(--ink);
  outline: none;
}

.registry-number,
.registry-count {
  color: var(--muted);
  font-size: 11px;
}

.registry-row:hover .registry-number,
.registry-row:hover .registry-count {
  color: var(--paper);
}

.registry-title {
  font-size: clamp(23px, 2.7vw, 42px);
  font-weight: 700;
}

.registry-description {
  font-size: 12px;
}

.registry-count {
  text-align: right;
}

.registry-arrow {
  text-align: right;
  font-size: 24px;
}

.client-preview {
  border-bottom: 1px solid var(--ink);
}

.home-page .client-preview .section-heading-inline {
  grid-template-columns: 1fr;
}

.registry-more-link {
  display: grid;
  grid-template-columns: 0.55fr 1.7fr auto;
  gap: 26px;
  align-items: center;
  min-height: 138px;
  padding: 28px var(--side);
  color: var(--paper);
  background: var(--ink);
  text-decoration: none;
  transition: color 160ms ease, background-color 160ms ease;
}

.registry-more-link span {
  font-size: 10px;
}

.registry-more-link strong {
  font-size: clamp(28px, 4.2vw, 72px);
  line-height: 0.95;
  letter-spacing: -0.05em;
}

.registry-more-link:hover,
.registry-more-link:focus-visible {
  color: var(--ink);
  background: var(--paper);
  outline: 1px solid var(--ink);
  outline-offset: -1px;
}

.catalog-hero {
  display: grid;
  grid-template-columns: 0.45fr 2.55fr;
  gap: 34px;
  min-height: 430px;
  padding: 66px var(--side) 72px;
  border-bottom: 1px solid var(--ink);
}

.catalog-hero h1 {
  max-width: 1300px;
  margin: 66px 0 28px;
  font-size: clamp(62px, 10vw, 172px);
  line-height: 0.82;
  letter-spacing: -0.085em;
}

.catalog-hero p {
  max-width: 830px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(15px, 1.4vw, 21px);
  line-height: 1.65;
}

.catalog-controls {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 28px;
  align-items: center;
  padding: 24px var(--side);
  border-bottom: 1px solid var(--ink);
}

.catalog-controls[hidden] {
  display: none;
}

.catalog-results {
  min-height: 240px;
}

.catalog-empty {
  min-height: 240px;
  padding: 78px var(--side);
  border-bottom: 1px solid var(--ink);
  font-size: clamp(24px, 4vw, 62px);
  line-height: 1;
}

.registry-page .registry-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-top: 0;
}

.registry-page .registry-card:nth-child(3n) {
  border-right: 1px solid var(--ink);
}

.registry-page .registry-card:nth-child(4n) {
  border-right: 0;
}

.registry-page .registry-card img {
  aspect-ratio: 16 / 10;
}

.registry-page .registry-card {
  position: relative;
  overflow: hidden;
  transition: color 180ms ease, background-color 180ms ease;
}

.registry-page .registry-card img {
  transition: transform 420ms cubic-bezier(0.2, 0.75, 0.2, 1), filter 180ms ease;
}

.registry-page .registry-card .client-card-data,
.registry-page .registry-card p {
  transition: color 180ms ease, border-color 180ms ease;
}

@media (hover: hover) {
  .registry-page .registry-card:hover,
  .registry-page .registry-card:focus-visible {
    color: var(--paper);
    background: var(--ink);
    outline: none;
  }

  .registry-page .registry-card:hover img,
  .registry-page .registry-card:focus-visible img {
    transform: scale(1.035);
    filter: saturate(1) contrast(1.06);
  }

  .registry-page .registry-card:hover .client-card-data,
  .registry-page .registry-card:focus-visible .client-card-data {
    color: #bdbdbd;
    border-color: #333;
  }

  .registry-page .registry-card:hover p,
  .registry-page .registry-card:focus-visible p {
    color: #bdbdbd;
  }
}

/* The all-records card must invert independently from the generic card hover below. */
.home-page .client-card.registry-more-card:hover,
.home-page .client-card.registry-more-card:focus-visible {
  color: #000 !important;
  background: #fff !important;
  outline: 1px solid #000;
  outline-offset: -1px;
}

.home-page .client-card.registry-more-card:hover .client-card-data,
.home-page .client-card.registry-more-card:hover p,
.home-page .client-card.registry-more-card:focus-visible .client-card-data,
.home-page .client-card.registry-more-card:focus-visible p {
  color: #000 !important;
  border-color: #000 !important;
}

@media (max-width: 760px) {
  .record-shell .site-header,
  .registry-page .site-header {
    grid-template-columns: 46px 54px minmax(0, 1fr);
  }

  .record-shell .header-back-button,
  .registry-page .header-back-button {
    grid-column: 1;
    grid-row: 1;
    width: 46px;
    min-height: 54px;
    font-size: 20px;
  }

  .record-shell .menu-toggle,
  .registry-page .menu-toggle {
    grid-column: 2;
    grid-row: 1;
  }

  .record-shell .mobile-wordmark,
  .registry-page .mobile-wordmark {
    grid-column: 3;
    grid-row: 1;
  }

  .record-shell .main-navigation,
  .registry-page .main-navigation {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .registry-more-link {
    grid-template-columns: 1fr auto;
    gap: 12px;
    min-height: 116px;
  }

  .registry-more-link strong {
    grid-column: 1 / -1;
    grid-row: 1;
    font-size: clamp(28px, 9vw, 42px);
  }

  .registry-more-link span:first-child {
    grid-column: 1;
    grid-row: 2;
  }

  .registry-more-link span:last-child {
    grid-column: 2;
    grid-row: 2;
  }

  .catalog-hero {
    grid-template-columns: 1fr;
    min-height: 380px;
    padding-top: 42px;
    padding-bottom: 48px;
  }

  .catalog-hero h1 {
    margin-top: 36px;
    font-size: clamp(52px, 17vw, 86px);
  }

  .catalog-controls {
    grid-template-columns: 1fr;
  }

  .catalog-controls .filters {
    grid-template-columns: 1fr;
  }

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

  .registry-page .registry-card,
  .registry-page .registry-card:nth-child(3n) {
    border-right: 1px solid var(--ink);
  }

  .registry-page .registry-card:nth-child(2n) {
    border-right: 0;
  }
}

.section-heading-inline {
  grid-template-columns: 1fr auto;
  align-items: end;
}

.section-heading-inline h2 {
  margin-top: 16px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.filter-button {
  min-height: 38px;
  border: 1px solid var(--ink);
  border-right: 0;
  background: var(--paper);
  padding: 0 13px;
  font-size: 10px;
  cursor: pointer;
}

.filter-button:last-child {
  border-right: 1px solid var(--ink);
}

.filter-button:hover,
.filter-button:focus-visible,
.filter-button.is-active {
  color: var(--paper);
  background: var(--ink);
  outline: none;
}

.client-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--ink);
}

.client-card {
  min-width: 0;
  padding-bottom: 28px;
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.client-card:nth-child(3n) {
  border-right: 0;
}

.client-card[hidden] {
  display: none;
}

.client-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  display: block;
  object-fit: cover;
  object-position: center 35%;
  border-bottom: 1px solid var(--ink);
}

.client-card-data {
  display: flex;
  justify-content: space-between;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
}

.client-card h3,
.client-card p {
  margin-right: 18px;
  margin-left: 18px;
}

.client-card h3 {
  margin-top: 22px;
  margin-bottom: 8px;
  font-size: clamp(18px, 2vw, 30px);
  line-height: 1.05;
}

.client-card p {
  margin-top: 0;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 11px;
}

.archive-section {
  display: grid;
  grid-template-columns: 0.55fr 1.3fr 1fr;
  gap: 34px;
  min-height: 330px;
  padding: 70px var(--side);
  border-bottom: 1px solid var(--ink);
}

.archive-main {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.archive-main p {
  margin: 0;
  font-weight: 700;
}

.archive-main strong {
  font-size: clamp(80px, 12vw, 190px);
  line-height: 0.75;
  letter-spacing: -0.09em;
}

.archive-meta {
  display: grid;
  align-content: end;
  border-left: 1px solid var(--line);
}

.archive-meta span {
  padding: 14px 0 14px 24px;
  border-top: 1px solid var(--line);
  font-size: 11px;
}

.glossary-section {
  display: grid;
  grid-template-columns: 0.55fr 2.3fr;
  gap: 34px;
  padding: 48px var(--side);
  border-bottom: 1px solid var(--ink);
}

.glossary-section p {
  margin: 0;
  font-size: clamp(16px, 2vw, 28px);
  line-height: 1.4;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  min-height: 72px;
  align-items: center;
  padding: 0 var(--side);
  font-size: 10px;
}

.site-footer span:nth-child(2) {
  text-align: center;
}

.site-footer a {
  text-align: right;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.record-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 76px;
  padding: 0;
  border-bottom: 1px solid var(--ink);
  font-size: 12px;
}

.record-toolbar a {
  display: flex;
  min-width: min(440px, 58%);
  min-height: 76px;
  align-items: center;
  gap: 16px;
  align-self: stretch;
  padding: 0 var(--side);
  border-right: 1px solid var(--ink);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition:
    color 160ms ease,
    background-color 160ms ease;
}

.record-toolbar a > span {
  font-size: 28px;
  line-height: 1;
}

.record-toolbar a:hover,
.record-toolbar a:focus-visible {
  color: var(--paper);
  background: var(--ink);
  outline: none;
}

.record-toolbar span {
  font-weight: 700;
}

.toolbar-status-only {
  justify-content: flex-end;
}

.toolbar-status-only > span {
  margin-left: auto;
}

.record-toolbar > span {
  padding: 0 var(--side);
}

.record-identity {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  min-height: 680px;
  border-bottom: 1px solid var(--ink);
}

.record-heading {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 54px var(--side);
  border-right: 1px solid var(--ink);
}

.record-code {
  margin: 0 0 auto;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.record-heading h1,
.record-empty h1 {
  max-width: 980px;
  margin: 70px 0 28px;
  font-size: clamp(56px, 8vw, 142px);
  line-height: 0.82;
  letter-spacing: -0.09em;
  text-transform: uppercase;
}

.record-alias {
  max-width: 760px;
  margin: 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: clamp(15px, 1.5vw, 24px);
}

.record-portrait {
  display: grid;
  grid-template-rows: 1fr auto;
  min-width: 0;
  margin: 0;
  background: var(--ink);
}

.record-portrait img {
  width: 100%;
  height: 100%;
  min-height: 0;
  display: block;
  object-fit: cover;
  object-position: 50% 32%;
}

.record-portrait figcaption {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  color: var(--paper);
  background: var(--ink);
  font-size: 10px;
}

.record-overview {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 1px solid var(--ink);
}

.record-summary {
  padding: 72px var(--side);
  border-right: 1px solid var(--ink);
}

.record-summary p {
  max-width: 780px;
  margin: 34px 0 0;
  font-size: clamp(20px, 2.6vw, 40px);
  line-height: 1.3;
  letter-spacing: -0.035em;
}

.record-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin: 0;
}

.record-fields > div {
  min-height: 126px;
  padding: 25px 26px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.record-fields > div:nth-child(2n) {
  border-right: 0;
}

.record-fields dt {
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
  text-transform: uppercase;
}

.record-fields dd {
  margin: 0;
  font-size: 16px;
  line-height: 1.45;
  font-weight: 700;
}

.record-section-heading {
  grid-template-columns: 1fr;
  padding-top: 36px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--ink);
}

.lore-section {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  min-height: 220px;
  padding: 46px var(--side) 54px;
  border-bottom: 1px solid var(--ink);
}

.lore-section > div {
  width: min(100%, 1160px);
  justify-self: center;
}

.lore-number {
  position: absolute;
  top: 46px;
  left: var(--side);
  color: var(--muted);
  font-size: 11px;
}

.lore-section h3 {
  margin: 0 0 28px;
  font-size: clamp(24px, 3.3vw, 54px);
  line-height: 1;
  letter-spacing: -0.05em;
  text-transform: uppercase;
}

.lore-section p {
  width: 100%;
  max-width: none;
  margin: 0 0 18px;
  font-size: clamp(14px, 1.2vw, 18px);
  line-height: 1.75;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

.lore-media-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  max-width: 1320px;
  margin-top: 38px;
  background: var(--ink);
  border: 1px solid var(--ink);
}

.lore-media-grid + p {
  margin-top: 44px;
}

.lore-media-count-1 {
  grid-template-columns: 1fr;
}

.lore-media-grid > .lore-media:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.lore-media {
  display: grid;
  grid-template-rows: 1fr auto;
  min-width: 0;
  margin: 0;
  background: var(--ink);
}

.lore-media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 280px;
  max-height: 640px;
  object-fit: cover;
}

.lore-media-wide img {
  aspect-ratio: 16 / 9;
}

.lore-media-standard img {
  aspect-ratio: 4 / 3;
}

.lore-media figcaption {
  min-height: 42px;
  padding: 12px 14px;
  color: var(--paper);
  background: var(--ink);
  font-size: 10px;
  line-height: 1.5;
  text-transform: uppercase;
}

.lore-section-image {
  width: 100%;
  max-width: none;
  margin: 28px 0 34px;
  border: 0;
  background: transparent;
}

.lore-section-image .lore-media {
  background: #151515;
  border: 1px solid var(--ink);
}

.lore-section-image .lore-media img {
  width: 100%;
  height: auto;
  min-height: 0;
  max-height: none;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.lore-section-image .lore-media figcaption {
  min-height: 36px;
  padding: 10px 12px;
  font-size: 8px;
}

.related-records {
  max-width: 1050px;
  margin-top: 38px;
  border-top: 1px solid var(--ink);
}

.related-records--final {
  max-width: none;
  margin: 72px var(--side) 0;
  padding-bottom: 72px;
}

.related-records > strong {
  display: block;
  padding: 14px 0;
  font-size: 11px;
}

.related-record-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--ink);
}

.related-record-list a {
  min-height: 54px;
  padding: 16px;
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  color: var(--ink);
  font-size: 12px;
  line-height: 1.45;
  text-decoration: none;
  transition: color 160ms ease, background-color 160ms ease;
}

.related-record-list a:hover,
.related-record-list a:focus-visible {
  color: var(--paper);
  background: var(--ink);
  outline: none;
}

.lore-pending {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 34px;
  min-height: 250px;
  align-items: center;
  padding: 50px var(--side);
  border-bottom: 1px solid var(--ink);
}

.lore-pending strong {
  font-size: clamp(30px, 4vw, 64px);
  line-height: 0.95;
}

.lore-pending span {
  max-width: 620px;
  color: var(--muted);
}

.lore-editorial-note {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 34px;
  padding: 24px var(--side);
  border-bottom: 1px solid var(--ink);
  font-size: 11px;
}

.lore-editorial-note span {
  color: var(--muted);
}

.record-empty {
  min-height: calc(100vh - 132px);
  padding: 70px var(--side);
}

.record-empty > p:not(.record-code) {
  max-width: 540px;
  color: var(--muted);
}

.record-empty .text-link {
  max-width: 380px;
  margin-top: 60px;
}

@media (max-width: 1100px) {
  .site-shell {
    width: calc(100% - 16px);
    margin: 24px auto;
  }

  .wordmark {
    min-width: 180px;
  }

  .nav-group a,
  .nav-group button {
    padding: 0 7px;
    font-size: 11px;
  }

  .hero {
    grid-template-columns: 0.9fr 1.1fr;
    min-height: 540px;
  }

  .hero-media {
    grid-template-columns: 1fr 1fr;
  }

  .media-panel-main {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .system-strip span:nth-child(2),
  .system-strip span:nth-child(3),
  .system-strip span:nth-child(4) {
    display: none;
  }

  .system-strip {
    grid-template-columns: 1fr auto;
  }

  .intro-section,
  .archive-section {
    grid-template-columns: 0.45fr 1.55fr;
  }

  .intro-copy,
  .archive-meta {
    grid-column: 2;
  }
}

@media (max-width: 760px) {
  .site-shell {
    width: 100%;
    margin: 0;
    border-right: 0;
    border-left: 0;
  }

  .menu-toggle {
    display: block;
  }

  .main-navigation {
    display: none;
    grid-template-columns: 1fr;
  }

  .main-navigation.is-open {
    display: grid;
  }

  .wordmark {
    grid-row: 1;
    min-height: 58px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    border-left: 0;
  }

  .nav-group {
    grid-template-columns: 1fr;
  }

  .nav-group a,
  .nav-group button {
    justify-content: flex-start;
    min-height: 46px;
    padding: 0 var(--side);
    border-bottom: 1px solid var(--line);
  }

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

  .hero-copy {
    min-height: 510px;
    border-right: 0;
    border-bottom: 1px solid var(--ink);
  }

  .hero-media {
    min-height: 640px;
  }

  .intro-section,
  .section-heading,
  .archive-section,
  .glossary-section {
    grid-template-columns: 1fr;
  }

  .intro-copy,
  .archive-meta {
    grid-column: auto;
    padding-top: 24px;
    padding-left: 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

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

  .filters {
    justify-content: flex-start;
  }

  .registry-row {
    grid-template-columns: 42px 1fr auto;
    min-height: 98px;
  }

  .registry-description {
    display: none;
  }

  .registry-count {
    display: none;
  }

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

  .client-card {
    border-right: 0;
    border-bottom: 1px solid var(--ink);
  }

  .archive-section {
    min-height: 0;
  }

  .archive-main {
    min-height: 210px;
  }

  .site-footer {
    grid-template-columns: 1fr;
    gap: 12px;
    padding-top: 24px;
    padding-bottom: 24px;
  }

  .site-footer span:nth-child(2),
  .site-footer a {
    text-align: left;
  }

  .record-identity,
  .record-overview {
    grid-template-columns: 1fr;
  }

  .record-heading {
    min-height: 520px;
    border-right: 0;
    border-bottom: 1px solid var(--ink);
  }

  .record-portrait {
    min-height: 620px;
  }

  .record-summary {
    border-right: 0;
    border-bottom: 1px solid var(--ink);
  }

  .record-fields {
    grid-template-columns: 1fr;
  }

  .record-fields > div,
  .record-fields > div:nth-child(2n) {
    border-right: 0;
  }

  .lore-section,
  .lore-pending,
  .lore-editorial-note {
    grid-template-columns: 1fr;
  }

  .lore-section > div { grid-column: auto; }

  .lore-number {
    position: static;
    margin-bottom: 18px;
  }

  .lore-media-grid,
  .related-record-list {
    grid-template-columns: 1fr;
  }

  .lore-media img {
    min-height: 210px;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}

/* Home page refinement: quieter spacing, compact data density, visible states. */
.home-page {
  background: var(--paper);
}

.home-page .site-shell {
  width: 100%;
  margin: 0 auto;
  border-top: 0;
  border-bottom: 0;
}

.home-page .main-navigation {
  min-height: 54px;
}

.home-page .system-strip {
  grid-template-columns: 1fr 1fr 1fr;
  min-height: 42px;
}

.home-page .system-strip span {
  padding: 0 var(--side);
  font-size: 10px;
}

.home-page .system-strip span:nth-child(2) {
  justify-content: center;
}

.home-page .hero {
  grid-template-columns: minmax(340px, 0.78fr) minmax(0, 1.72fr);
  min-height: clamp(620px, 82vh, 840px);
}

.home-page .hero-copy {
  padding-top: clamp(30px, 4vw, 62px);
}

.home-page .hero-copy h1 {
  font-size: clamp(48px, 5.7vw, 94px);
  letter-spacing: -0.07em;
}

.home-page .hero-copy-footer {
  grid-template-columns: 1fr;
  gap: 20px;
}

.home-page .hero-copy-footer .text-link {
  max-width: 310px;
}

.home-page .hero-group-photo {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: minmax(0, 1fr) auto;
  margin: 0;
  overflow: hidden;
  background: var(--ink);
}

.home-page .hero-group-photo > img {
  width: 100%;
  height: 100%;
  min-height: 0;
  display: block;
  object-fit: contain;
  object-position: center;
}

.home-page .hero-group-photo .media-caption {
  position: static;
}

.home-page .text-link span,
.home-page .registry-arrow {
  transition: transform 180ms ease;
}

.home-page .text-link:hover span,
.home-page .text-link:focus-visible span {
  transform: translateY(3px);
}

.home-page .intro-section {
  padding-top: 72px;
  padding-bottom: 78px;
}

.home-page .intro-section h2,
.home-page .section-heading h2 {
  font-size: clamp(31px, 3.9vw, 60px);
}

.home-page .section-heading {
  padding-top: 62px;
  padding-bottom: 42px;
}

.home-page .registry {
  color: var(--ink);
  background: var(--paper);
}

.home-page .registry .section-index,
.home-page .registry-number,
.home-page .registry-count {
  color: var(--muted);
}

.home-page .registry-description {
  color: var(--ink);
}

.home-page .registry-row {
  min-height: 94px;
  border-color: var(--ink);
}

.home-page .registry-row:hover,
.home-page .registry-row:focus-visible {
  color: var(--paper);
  background: var(--ink);
}

.home-page .registry-row:hover .registry-number,
.home-page .registry-row:hover .registry-count,
.home-page .registry-row:focus-visible .registry-number,
.home-page .registry-row:focus-visible .registry-count {
  color: var(--paper);
}

.home-page .registry-row:hover .registry-description,
.home-page .registry-row:focus-visible .registry-description {
  color: var(--paper);
}

.home-page .registry-row:hover .registry-arrow,
.home-page .registry-row:focus-visible .registry-arrow {
  transform: translateX(5px);
}

.home-page .client-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.home-page .client-card {
  position: relative;
  min-height: 0;
  overflow: hidden;
  padding-bottom: 24px;
  background: var(--paper);
  transition:
    color 180ms ease,
    background-color 180ms ease;
}

.home-page .client-card:nth-child(3n) {
  border-right: 1px solid var(--ink);
}

.home-page .client-card:nth-child(4n) {
  border-right: 0;
}

.home-page .client-card img {
  aspect-ratio: 1 / 1;
  transition:
    transform 420ms cubic-bezier(0.2, 0.75, 0.2, 1),
    filter 180ms ease;
}

.client-card img[data-fit="contain"],
#record-image[data-fit="contain"] {
  object-fit: contain;
  object-position: center;
  background: #fff;
}

.home-page .registry-more-card {
  display: flex;
  min-height: 100%;
  padding: clamp(24px, 3vw, 52px);
  color: var(--paper);
  background: var(--ink);
  flex-direction: column;
  justify-content: space-between;
}

.home-page .registry-more-card span {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .02em;
}

.home-page .registry-more-card strong {
  max-width: 10ch;
  font-family: var(--display);
  font-size: clamp(27px, 3.2vw, 52px);
  line-height: .95;
}

@media (hover: hover) {
  .home-page .registry-more-card:hover,
  .home-page .registry-more-card:focus-visible {
    color: var(--ink);
    background: #fff;
    outline: none;
  }
}

.home-page .client-card h3 {
  max-width: calc(100% - 68px);
  margin-top: 18px;
  font-size: clamp(17px, 1.55vw, 24px);
}

.home-page .client-card-data {
  font-size: 12px;
  line-height: 1.4;
}

.home-page .client-card p {
  font-size: 12px;
  line-height: 1.5;
}

.home-page .client-card-data,
.home-page .client-card p {
  transition: color 180ms ease, border-color 180ms ease;
}

@media (hover: hover) {
  .home-page .client-card:hover,
  .home-page .client-card:focus-visible {
    color: var(--paper);
    background: var(--ink);
    outline: none;
  }

  .home-page .client-card:hover img,
  .home-page .client-card:focus-visible img {
    transform: scale(1.035);
    filter: saturate(1) contrast(1.06);
  }

  .home-page .client-card:hover .client-card-data,
  .home-page .client-card:focus-visible .client-card-data {
    color: #bdbdbd;
    border-color: #333;
  }

  .home-page .client-card:hover p,
  .home-page .client-card:focus-visible p {
    color: #bdbdbd;
  }

}

.home-page .archive-section {
  min-height: 280px;
  padding-top: 58px;
  padding-bottom: 58px;
}

.home-page .archive-main strong {
  font-size: clamp(76px, 9vw, 142px);
}

.home-page .glossary-section {
  padding-top: 36px;
  padding-bottom: 36px;
}

.home-page .glossary-section p {
  font-size: clamp(14px, 1.45vw, 21px);
}

.historical-archive-cover {
  position: relative;
  width: 100%;
  height: 100svh;
  min-height: 680px;
  overflow: hidden;
  color: #fff;
  background: #000;
  border-bottom: 1px solid var(--ink);
}

.historical-archive-cover > img,
.historical-archive-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.historical-archive-cover > img {
  display: block;
  object-fit: cover;
  object-position: center;
  filter: grayscale(1);
  transition: transform 1.2s cubic-bezier(0.2, 0.75, 0.2, 1);
}

.historical-archive-shade {
  z-index: 1;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.38), rgba(0, 0, 0, 0.14) 45%, rgba(0, 0, 0, 0.76));
  pointer-events: none;
}

.historical-archive-heading,
.historical-archive-footer {
  position: absolute;
  right: var(--side);
  left: var(--side);
  z-index: 2;
}

.historical-archive-heading {
  top: clamp(74px, 10vh, 122px);
  text-align: center;
}

.historical-archive-heading span {
  display: block;
  margin-bottom: 22px;
  font-size: 10px;
  letter-spacing: 0.08em;
}

.historical-archive-heading h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(42px, 7.2vw, 124px);
  line-height: 0.88;
  letter-spacing: -0.055em;
}

.historical-archive-footer {
  bottom: clamp(32px, 6vh, 76px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 42px;
  align-items: end;
}

.historical-archive-footer p {
  max-width: 760px;
  margin: 0;
  font-size: clamp(14px, 1.55vw, 23px);
  line-height: 1.5;
}

.historical-archive-footer a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 48px;
  min-width: min(390px, 38vw);
  min-height: 88px;
  padding: 0 28px;
  border: 1px solid #fff;
  background: rgba(0, 0, 0, 0.22);
  font-weight: 700;
  transition: color 180ms ease, background-color 180ms ease;
}

.historical-archive-footer a:hover,
.historical-archive-footer a:focus-visible {
  color: #000;
  background: #fff;
  outline: none;
}

.historical-archive-cover:hover > img {
  transform: scale(1.018);
}

.motion-ready .reveal-item {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 520ms ease var(--reveal-delay, 0ms),
    transform 520ms cubic-bezier(0.2, 0.75, 0.2, 1) var(--reveal-delay, 0ms);
}

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

@media (max-width: 1100px) {
  .home-page .site-shell {
    width: 100%;
    margin: 0;
  }

  .home-page .system-strip span:nth-child(2) {
    display: none;
  }

  .home-page .system-strip span:nth-child(3) {
    display: flex;
  }

  .home-page .system-strip {
    grid-template-columns: 1fr auto;
  }

  .home-page .hero {
    grid-template-columns: 0.9fr 1.1fr;
    min-height: 600px;
  }

  .home-page .client-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .home-page .client-card:nth-child(4n) {
    border-right: 1px solid var(--ink);
  }

  .home-page .client-card:nth-child(3n) {
    border-right: 0;
  }
}

@media (max-width: 760px) {
  .home-page .hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .home-page .hero-copy {
    min-height: 470px;
  }

  .home-page .hero-media {
    min-height: 560px;
  }

  .home-page .hero-group-photo {
    width: 100%;
    height: 100svh;
    min-height: 620px;
  }

  .home-page .hero-group-photo > img {
    object-fit: cover;
    object-position: center center;
  }

  .home-page .client-grid {
    grid-template-columns: 1fr;
  }

  .home-page .client-card:nth-child(3n),
  .home-page .client-card:nth-child(4n) {
    border-right: 0;
  }

}

@media (prefers-reduced-motion: reduce) {
  .motion-ready .reveal-item,
  .motion-ready .reveal-item.is-visible {
    opacity: 1;
    transform: none;
  }
}

/* Full-screen archive cover and adaptive transparent navigation. */
.home-page .site-shell {
  max-width: none;
}

.home-page .site-header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 100;
  color: var(--paper);
  background: transparent;
  border-bottom-color: rgba(255, 255, 255, 0.42);
  transition:
    color 220ms ease,
    background-color 220ms ease,
    border-color 220ms ease;
}

.home-page .site-header.is-scrolled {
  color: var(--ink);
  background: var(--paper);
  border-bottom-color: var(--line);
}

.home-page .site-header.menu-open {
  color: var(--ink);
  background: var(--paper);
  border-bottom-color: var(--line);
}

.home-page .site-header.other-menu-open {
  color: var(--ink);
  background: var(--paper);
  border-bottom-color: var(--line);
}

.home-page .site-header .wordmark {
  border-color: rgba(255, 255, 255, 0.42);
  transition:
    color 180ms ease,
    background-color 180ms ease,
    border-color 220ms ease;
}

.home-page .site-header.is-scrolled .wordmark {
  border-color: var(--line);
}

.home-page .site-header.menu-open .wordmark {
  border-color: var(--line);
}

.home-page .site-header.other-menu-open .wordmark {
  border-color: var(--line);
}

.home-page .site-header:not(.is-scrolled) .nav-group a:hover,
.home-page .site-header:not(.is-scrolled) .nav-group a:focus-visible,
.home-page .site-header:not(.is-scrolled) .nav-group button:hover,
.home-page .site-header:not(.is-scrolled) .nav-group button:focus-visible,
.home-page .site-header:not(.is-scrolled) .wordmark:hover,
.home-page .site-header:not(.is-scrolled) .wordmark:focus-visible {
  color: var(--ink);
  background: var(--paper);
}

.home-page .site-header.menu-open .nav-group a:hover,
.home-page .site-header.menu-open .nav-group a:focus-visible,
.home-page .site-header.menu-open .nav-group button:hover,
.home-page .site-header.menu-open .nav-group button:focus-visible {
  color: var(--paper);
  background: var(--ink);
}

.home-page .hero-cover {
  position: relative;
  display: block;
  width: 100%;
  height: 100svh;
  min-height: 680px;
  overflow: hidden;
  border-bottom: 1px solid var(--ink);
}

.home-page .hero-cover .hero-group-photo {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
}

.home-page .hero-cover .hero-group-photo::after {
  position: absolute;
  inset: 0;
  content: "";
  background: rgba(0, 0, 0, 0.46);
  pointer-events: none;
}

.home-page .hero-cover .hero-group-photo > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-cover-copy {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-content: center;
  justify-items: center;
  padding: 90px var(--side) 50px;
  color: var(--paper);
  text-align: center;
}

.hero-cover-copy p {
  margin: 0 0 24px;
  font-size: 11px;
}

.hero-cover-copy h1 {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0 0.32em;
  margin: 0;
  font-size: clamp(34px, 4.15vw, 76px);
  line-height: 0.95;
  letter-spacing: -0.055em;
}

.support-section {
  padding: clamp(64px, 8vw, 120px) var(--side);
  border-bottom: 1px solid var(--ink);
  text-align: center;
}

.support-section p {
  margin: 0 0 clamp(42px, 6vw, 82px);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.support-partners {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(28px, 6vw, 100px);
  width: min(100%, 1120px);
  margin: 0 auto;
}

.support-partner {
  display: grid;
  grid-template-rows: 170px auto;
  min-width: 0;
}

.support-logo {
  display: grid;
  place-items: center;
  padding: 8px;
}

.support-logo img {
  width: 100%;
  max-width: 150px;
  height: 145px;
  object-fit: contain;
  filter: grayscale(1);
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.support-logo-wide img {
  max-width: 220px;
}

.support-partner h2 {
  max-width: 260px;
  margin: 22px auto 0;
  font-size: clamp(12px, 1.1vw, 16px);
  line-height: 1.4;
  letter-spacing: 0;
}

@media (hover: hover) {
  .support-partner:hover img {
    opacity: 0.68;
    transform: translateY(-4px);
  }
}

.current-topics {
  border-bottom: 1px solid var(--ink);
}

.topic-strip {
  position: relative;
  display: block;
  width: 100%;
  height: 48svh;
  min-height: 420px;
  max-height: 650px;
  overflow: hidden;
  border-top: 1px solid var(--ink);
  background: var(--ink);
}

.topic-strip::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(to top, rgba(0, 0, 0, 0.68), rgba(0, 0, 0, 0.08) 68%);
  pointer-events: none;
}

.topic-strip img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
  filter: brightness(0.82);
  transition:
    transform 420ms cubic-bezier(0.2, 0.75, 0.2, 1),
    filter 180ms ease;
}

.topic-strip-copy {
  position: absolute;
  right: var(--side);
  bottom: clamp(22px, 3vw, 42px);
  left: var(--side);
  z-index: 2;
  color: var(--paper);
}

.topic-strip-copy h3 {
  margin: 0;
  font-size: clamp(25px, 4vw, 62px);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.055em;
}

.topic-strip-copy p {
  max-width: 780px;
  margin: 18px 0 0;
  font-size: clamp(11px, 1.1vw, 16px);
  line-height: 1.45;
}

@media (hover: hover) {
  .topic-strip:hover img,
  .topic-strip:focus-visible img {
    transform: scale(1.015);
    filter: brightness(0.68);
  }

  .topic-strip:focus-visible {
    outline: 2px solid var(--paper);
    outline-offset: -4px;
  }
}

@media (max-width: 760px) {
  .site-header {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    align-items: stretch;
  }

  .menu-toggle {
    grid-column: 1;
    grid-row: 1;
    display: grid;
    width: 54px;
    min-height: 54px;
    place-items: center;
    padding: 0;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .mobile-wordmark {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    min-height: 54px;
    padding: 0 var(--side);
    border-bottom: 1px solid var(--line);
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.04em;
  }

  .main-navigation {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .main-navigation .wordmark {
    display: none;
  }

  .other-menu {
    top: 54px;
    grid-template-columns: 1fr;
    width: 100%;
    border-left: 0;
  }

  .other-menu > span,
  .other-menu > button {
    min-height: 58px;
    border-right: 0;
    border-bottom: 1px solid var(--ink);
  }

  .historical-archive-cover {
    min-height: 620px;
  }

  .historical-archive-footer {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .historical-archive-footer a {
    width: 100%;
    min-width: 0;
    min-height: 72px;
  }

  .home-page .site-header .menu-toggle {
    color: var(--paper);
    background: transparent;
    border-right-color: rgba(255, 255, 255, 0.42);
    border-bottom-color: rgba(255, 255, 255, 0.42);
  }

  .home-page .site-header .mobile-wordmark {
    border-bottom-color: rgba(255, 255, 255, 0.42);
  }

  .home-page .site-header.is-scrolled .menu-toggle {
    color: var(--ink);
    background: var(--paper);
    border-right-color: var(--line);
    border-bottom-color: var(--line);
  }

  .home-page .site-header.is-scrolled .mobile-wordmark {
    border-bottom-color: var(--line);
  }

  .home-page .site-header .main-navigation.is-open {
    color: var(--ink);
    background: var(--paper);
    backdrop-filter: none;
  }

  .home-page .site-header.menu-open .menu-toggle,
  .home-page .site-header.menu-open .mobile-wordmark {
    color: var(--ink);
    background: var(--paper);
    border-color: var(--line);
  }

  .home-page .hero-cover {
    height: 100svh;
    min-height: 620px;
  }

  .home-page .hero-cover .hero-group-photo {
    height: 100%;
    min-height: 0;
  }

  .hero-cover-copy {
    padding-top: 76px;
  }

  .hero-cover-copy h1 {
    flex-direction: column;
    gap: 6px;
    font-size: clamp(36px, 10vw, 58px);
  }

  .support-section {
    padding-top: 64px;
    padding-bottom: 68px;
  }

  .support-partners {
    grid-template-columns: 1fr;
    gap: 28px;
    width: min(100%, 430px);
  }

  .support-partner {
    grid-template-columns: 104px minmax(0, 1fr);
    grid-template-rows: 104px;
    align-items: center;
    min-height: 104px;
  }

  .support-logo {
    padding: 8px;
  }

  .support-logo img,
  .support-logo-wide img {
    max-width: 88px;
    height: 88px;
  }

  .support-partner h2 {
    display: flex;
    max-width: none;
    min-height: 100%;
    align-items: center;
    margin: 0;
    padding: 0 0 0 22px;
    border: 0;
    font-size: 14px;
    line-height: 1.4;
    text-align: left;
  }

  .topic-strip {
    height: 33.333svh;
    min-height: 220px;
    max-height: 340px;
  }

  .topic-strip-copy {
    bottom: 22px;
  }

  .topic-strip-copy h3 {
    font-size: clamp(21px, 7vw, 32px);
  }

  .topic-strip-copy p {
    max-width: 520px;
    margin-top: 10px;
    font-size: 10px;
  }

  .record-toolbar {
    min-height: 68px;
  }

  .record-toolbar a {
    min-width: 0;
    min-height: 68px;
    gap: 10px;
    padding-right: 14px;
    padding-left: 14px;
    font-size: 11px;
    line-height: 1.25;
  }

  .record-toolbar a > span {
    font-size: 24px;
  }

  .record-toolbar > span {
    padding-right: 12px;
    padding-left: 12px;
    font-size: 9px;
    text-align: right;
  }

  .home-page .client-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-page .client-card,
  .home-page .client-card:nth-child(3n),
  .home-page .client-card:nth-child(4n) {
    border-right: 1px solid var(--ink);
  }

  .home-page .client-card:nth-child(2n) {
    border-right: 0;
  }

  .home-page .client-card-data {
    padding: 10px;
    font-size: 10px;
  }

  .home-page .client-card h3,
  .home-page .client-card p {
    margin-right: 10px;
    margin-left: 10px;
  }

  .home-page .client-card h3 {
    max-width: none;
    margin-top: 14px;
    margin-bottom: 6px;
    font-size: 15px;
    line-height: 1.12;
  }

  .home-page .client-card p {
    font-size: 10px;
  }
}

/* Final cascade guards for the dark historical shell. */
.history-page .history-shell,
.history-page .history-header {
  color: #f4f4f0;
  background: #080808;
}

.history-page .history-header {
  background: rgba(8, 8, 8, 0.94);
  border-bottom-color: #353535;
}

.history-page .history-footer {
  color: #f4f4f0;
  background: #080808;
  border-top-color: #353535;
}

/* Responsive containment for long historical headings. */
.history-page {
  overflow-x: clip;
}

.history-hero-copy,
.history-hero-copy h1,
.timeline-copy,
.timeline-copy h2,
.history-sources > div,
.history-sources h2,
.history-branches h3 {
  min-width: 0;
  max-width: 100%;
}

.history-hero-copy h1,
.timeline-copy h2,
.history-sources h2,
.history-branches h3,
.historical-archive-heading h2 {
  overflow-wrap: anywhere;
  word-break: normal;
  hyphens: auto;
  text-wrap: balance;
}

.history-hero-copy h1 {
  width: 100%;
  font-size: clamp(64px, 10.4vw, 178px);
}

.timeline-copy {
  width: 100%;
}

.timeline-copy h2 {
  font-size: clamp(40px, 4.6vw, 84px);
}

.history-sources h2 {
  width: 100%;
  font-size: clamp(40px, 4.8vw, 78px);
}

@media (max-width: 980px) {
  .timeline-copy h2 {
    font-size: clamp(34px, 5.8vw, 58px);
  }
}

@media (max-width: 760px) {
  .other-menu,
  .other-menu-toggle {
    display: none !important;
  }

  .nav-group-mobile-extra {
    display: grid;
  }

  .nav-group button {
    justify-content: flex-start;
    min-height: 46px;
    padding: 0 var(--side);
    border: 0;
    border-bottom: 1px solid var(--line);
    background: transparent;
    text-align: left;
  }

  .history-hero-copy h1 {
    font-size: clamp(36px, 11.5vw, 62px);
    line-height: 0.82;
    letter-spacing: -0.055em;
  }

  .timeline-entry {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 14px;
  }

  .timeline-copy h2 {
    font-size: clamp(26px, 8vw, 46px);
    line-height: 0.9;
    letter-spacing: -0.04em;
  }

  .history-sources h2 {
    font-size: clamp(31px, 9vw, 46px);
  }

  .history-branches h3 {
    font-size: clamp(27px, 8vw, 42px);
  }

  .historical-archive-heading h2 {
    font-size: clamp(34px, 10vw, 52px);
  }
}

/* Expanded glossary system. */
.home-page .glossary-section.glossary-expanded {
  display: block;
  padding: 0;
  background: var(--paper);
}

.glossary-header {
  display: grid;
  grid-template-columns: 0.55fr 2.45fr;
  gap: 34px;
  padding: clamp(64px, 8vw, 118px) var(--side) clamp(52px, 7vw, 96px);
  border-bottom: 1px solid var(--ink);
}

.glossary-header > div {
  min-width: 0;
}

.glossary-header h2 {
  max-width: 100%;
  margin: 0 0 34px;
  font-family: var(--display);
  font-size: clamp(48px, 7vw, 118px);
  line-height: 0.86;
  letter-spacing: -0.06em;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.home-page .glossary-header p {
  max-width: 920px;
  margin: 0;
  color: var(--muted);
  font-size: clamp(13px, 1.25vw, 18px);
  line-height: 1.7;
}

.glossary-tools {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  border-bottom: 1px solid var(--ink);
}

.glossary-tools label {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 24px;
  align-items: center;
  min-height: 78px;
  padding: 0 var(--side);
  border-right: 1px solid var(--ink);
}

.glossary-tools label > span {
  color: var(--muted);
  font-size: 9px;
  white-space: nowrap;
}

.glossary-tools input {
  width: 100%;
  min-width: 0;
  padding: 12px 0;
  border: 0;
  border-bottom: 1px solid var(--ink);
  color: var(--ink);
  background: transparent;
  font: inherit;
  outline: none;
}

.glossary-tools input::placeholder {
  color: #999;
}

.glossary-tools input:focus {
  border-bottom-width: 3px;
}

.glossary-filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.glossary-filters button {
  min-width: 0;
  border: 0;
  border-right: 1px solid var(--ink);
  color: var(--ink);
  background: transparent;
  font-size: 10px;
  cursor: pointer;
}

.glossary-filters button:last-child {
  border-right: 0;
}

.glossary-filters button:hover,
.glossary-filters button:focus-visible,
.glossary-filters button.is-active {
  color: var(--paper);
  background: var(--ink);
  outline: none;
}

.glossary-group[hidden],
.glossary-entry[hidden] {
  display: none !important;
}

.glossary-group-heading {
  display: grid;
  grid-template-columns: 0.28fr 1.2fr 1fr;
  gap: 30px;
  align-items: end;
  min-height: 210px;
  padding: 54px var(--side) 38px;
  border-bottom: 1px solid var(--ink);
}

.glossary-group-heading > span {
  align-self: start;
  color: var(--muted);
  font-size: 11px;
}

.glossary-group-heading h3 {
  min-width: 0;
  max-width: 100%;
  margin: 0;
  font-size: clamp(27px, 3.1vw, 52px);
  line-height: 0.94;
  letter-spacing: -0.045em;
  overflow-wrap: anywhere;
}

.home-page .glossary-group-heading p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.glossary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-bottom: 1px solid var(--ink);
}

.glossary-entry {
  display: grid;
  grid-template-columns: minmax(180px, 0.7fr) minmax(0, 1.3fr);
  grid-template-rows: 1fr auto;
  gap: 20px 34px;
  min-height: 330px;
  padding: clamp(28px, 3vw, 48px);
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  transition: color 170ms ease, background-color 170ms ease;
}

.glossary-entry:nth-child(2n) {
  border-right: 0;
}

.glossary-entry > div {
  min-width: 0;
}

.glossary-entry > div > span {
  display: block;
  margin-bottom: 30px;
  color: var(--muted);
  font-size: 9px;
}

.glossary-entry h4 {
  max-width: 100%;
  margin: 0 0 20px;
  font-size: clamp(21px, 2.2vw, 36px);
  line-height: 0.96;
  letter-spacing: -0.045em;
  overflow-wrap: anywhere;
}

.glossary-entry em {
  display: inline-block;
  padding: 6px 8px;
  border: 1px solid currentColor;
  font-size: 8px;
  font-style: normal;
  line-height: 1.25;
}

.home-page .glossary-entry > p {
  align-self: start;
  margin: 0;
  color: var(--muted);
  font-size: clamp(12px, 1vw, 15px);
  line-height: 1.75;
}

.glossary-entry > a {
  grid-column: 2;
  align-self: end;
  padding-top: 14px;
  border-top: 1px solid currentColor;
  font-size: 9px;
  font-weight: 700;
}

.glossary-entry:hover,
.glossary-entry:focus-within {
  color: var(--paper);
  background: var(--ink);
}

.glossary-entry:hover > div > span,
.glossary-entry:focus-within > div > span,
.home-page .glossary-entry:hover > p,
.home-page .glossary-entry:focus-within > p {
  color: #bdbdbd;
}

.home-page .glossary-empty {
  padding: 80px var(--side);
  border-bottom: 1px solid var(--ink);
  font-size: clamp(18px, 2.2vw, 34px);
}

@media (max-width: 900px) {
  .glossary-tools {
    grid-template-columns: 1fr;
  }

  .glossary-tools label {
    border-right: 0;
    border-bottom: 1px solid var(--ink);
  }

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

  .glossary-entry,
  .glossary-entry:nth-child(2n) {
    border-right: 0;
  }
}

@media (max-width: 760px) {
  .glossary-header,
  .glossary-group-heading {
    grid-template-columns: 1fr;
  }

  .glossary-header h2 {
    font-size: clamp(36px, 11vw, 56px);
  }

  .glossary-tools label {
    grid-template-columns: 1fr;
    gap: 10px;
    padding-top: 16px;
    padding-bottom: 16px;
  }

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

  .glossary-filters button {
    min-height: 52px;
    border-bottom: 1px solid var(--ink);
  }

  .glossary-group-heading {
    min-height: 0;
    padding-top: 42px;
  }

  .glossary-group-heading h3 {
    font-size: clamp(25px, 8vw, 40px);
  }

  .glossary-entry {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 30px var(--side) 36px;
  }

  .glossary-entry > div > span {
    margin-bottom: 18px;
  }

  .glossary-entry h4 {
    font-size: clamp(23px, 7vw, 34px);
  }

  .glossary-entry > a {
    grid-column: 1;
  }
}

/* Compact interactive glossary. */
.home-page .glossary-header {
  padding-top: clamp(44px, 5vw, 74px);
  padding-bottom: clamp(38px, 4.5vw, 66px);
}

.home-page .glossary-header h2 {
  margin-bottom: 18px;
  font-size: clamp(42px, 5.4vw, 86px);
}

.home-page .glossary-group-heading {
  grid-template-columns: 70px minmax(240px, 1.2fr) minmax(260px, 1fr);
  min-height: 0;
  padding-top: 28px;
  padding-bottom: 24px;
}

.home-page .glossary-group-heading h3 {
  font-size: clamp(20px, 2vw, 32px);
}

.home-page .glossary-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: stretch;
  padding: 0 var(--side);
  border-bottom: 1px solid var(--ink);
}

.home-page .glossary-grid .glossary-entry:nth-child(n) {
  display: block;
  flex: 0 1 auto;
  width: auto;
  min-height: 0;
  padding: 13px 16px;
  border-right: 1px solid var(--ink);
  border-bottom: 0;
  cursor: pointer;
  outline: none;
}

.home-page .glossary-entry > div > span,
.home-page .glossary-entry em,
.home-page .glossary-entry > p,
.home-page .glossary-entry > a {
  display: none;
}

.home-page .glossary-entry h4 {
  max-width: min(42vw, 520px);
  margin: 0;
  font-size: clamp(13px, 1.15vw, 17px);
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.home-page .glossary-entry:hover,
.home-page .glossary-entry:focus-visible,
.home-page .glossary-entry.is-open {
  color: var(--paper);
  background: var(--ink);
}

.glossary-definition-panel {
  display: grid;
  grid-template-rows: 0fr;
  color: var(--paper);
  background: var(--ink);
  border-bottom: 0 solid var(--ink);
  transition: grid-template-rows 220ms ease, border-bottom-width 220ms ease;
}

.glossary-definition-panel.is-open {
  grid-template-rows: 1fr;
  border-bottom-width: 1px;
}

.glossary-definition-inner {
  display: grid;
  grid-template-columns: minmax(220px, 0.7fr) minmax(0, 1.6fr);
  gap: 36px;
  min-height: 0;
  padding: 0 var(--side);
  overflow: hidden;
  opacity: 0;
  transition: padding 220ms ease, opacity 150ms ease;
}

.glossary-definition-panel.is-open .glossary-definition-inner {
  padding-top: 30px;
  padding-bottom: 34px;
  opacity: 1;
}

.glossary-definition-heading > span {
  display: block;
  margin-bottom: 14px;
  color: #999;
  font-size: 9px;
}

.glossary-definition-heading h4 {
  margin: 0 0 18px;
  font-size: clamp(24px, 2.8vw, 46px);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.glossary-definition-heading em {
  display: inline-block;
  padding: 6px 8px;
  border: 1px solid #777;
  color: #bdbdbd;
  font-size: 8px;
  font-style: normal;
}

.home-page .glossary-definition-copy p {
  max-width: 920px;
  margin: 0 0 24px;
  color: #c5c5c5;
  font-size: clamp(13px, 1.1vw, 16px);
  line-height: 1.7;
}

.glossary-definition-copy a {
  display: inline-block;
  padding: 10px 0;
  border-top: 1px solid #666;
  border-bottom: 1px solid #666;
  color: var(--paper);
  font-size: 9px;
  font-weight: 700;
}

@media (max-width: 760px) {
  .home-page .glossary-header {
    padding-top: 36px;
    padding-bottom: 32px;
  }

  .home-page .glossary-header h2 {
    font-size: clamp(34px, 10vw, 48px);
  }

  .home-page .glossary-tools label {
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .home-page .glossary-filters {
    display: flex;
    overflow-x: auto;
  }

  .home-page .glossary-filters button {
    flex: 0 0 auto;
    min-height: 0;
    padding: 13px 16px;
    white-space: nowrap;
    border-bottom: 0;
  }

  .home-page .glossary-group-heading {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 14px;
    padding-top: 24px;
    padding-bottom: 18px;
  }

  .home-page .glossary-group-heading p {
    grid-column: 2;
  }

  .home-page .glossary-group-heading h3 {
    font-size: clamp(18px, 5.8vw, 25px);
  }

  .home-page .glossary-grid {
    display: flex;
    padding-right: var(--side);
    padding-left: var(--side);
  }

  .home-page .glossary-grid .glossary-entry:nth-child(n) {
    padding: 11px 12px;
  }

  .home-page .glossary-entry h4 {
    max-width: min(72vw, 420px);
    font-size: clamp(12px, 3.8vw, 15px);
  }

  .glossary-definition-inner {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .glossary-definition-panel.is-open .glossary-definition-inner {
    padding-top: 24px;
    padding-bottom: 28px;
  }

  .glossary-definition-heading h4 {
    font-size: clamp(24px, 8vw, 36px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .glossary-definition-panel,
  .glossary-definition-inner {
    transition: none;
  }
}

/* Glossary accordion v2 — compact cards that expand in place. */
.home-page .glossary-section.glossary-expanded {
  background: #efefea;
}

.home-page .glossary-header {
  grid-template-columns: minmax(150px, 0.42fr) minmax(0, 2.58fr);
  padding-top: clamp(46px, 5vw, 76px);
  padding-bottom: clamp(40px, 4.5vw, 68px);
  background: var(--paper);
}

.home-page .glossary-header h2 {
  margin-bottom: 16px;
  font-size: clamp(48px, 6.2vw, 98px);
  line-height: 0.82;
}

.home-page .glossary-header p {
  max-width: 680px;
  font-size: clamp(13px, 1.1vw, 16px);
  line-height: 1.55;
}

.home-page .glossary-tools {
  grid-template-columns: minmax(280px, 0.9fr) minmax(520px, 1.8fr);
  background: var(--paper);
}

.home-page .glossary-tools label {
  min-height: 54px;
}

.home-page .glossary-tools input {
  padding: 10px 0;
  font-size: 13px;
}

.home-page .glossary-filters button {
  min-height: 54px;
  padding: 0 14px;
}

.home-page .glossary-group-heading {
  grid-template-columns: 46px minmax(260px, 0.9fr) minmax(260px, 1.1fr);
  gap: 18px;
  min-height: 0;
  padding-top: 26px;
  padding-bottom: 20px;
  background: var(--paper);
}

.home-page .glossary-group-heading > span {
  font-size: 9px;
}

.home-page .glossary-group-heading h3 {
  font-size: clamp(20px, 1.75vw, 29px);
  line-height: 1;
  letter-spacing: -0.035em;
}

.home-page .glossary-group-heading p {
  max-width: 580px;
  font-size: 11px;
  line-height: 1.45;
}

.home-page .glossary-group .glossary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  align-items: start;
  padding: 18px var(--side) 26px;
  background: #efefea;
  border-bottom: 1px solid var(--ink);
}

.home-page .glossary-group .glossary-entry:nth-child(n) {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto 0fr;
  gap: 0;
  width: 100%;
  min-width: 0;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--ink);
  transition:
    grid-template-rows 240ms ease,
    color 180ms ease,
    background-color 180ms ease,
    transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1),
    box-shadow 260ms ease;
}

.home-page .glossary-group .glossary-entry:nth-child(n)::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: var(--ink);
  content: "";
  transform: scaleX(0);
  transform-origin: right center;
  transition: transform 320ms cubic-bezier(0.7, 0, 0.2, 1);
}

.home-page .glossary-group .glossary-entry:nth-child(n):hover,
.home-page .glossary-group .glossary-entry:nth-child(n):focus-within {
  color: var(--ink);
  background: var(--paper);
}

.home-page .glossary-group .glossary-entry.is-open:nth-child(n),
.home-page .glossary-group .glossary-entry.is-open:nth-child(n):hover,
.home-page .glossary-group .glossary-entry.is-open:nth-child(n):focus-within {
  grid-column: 1 / -1;
  grid-template-rows: auto 1fr;
  color: var(--paper);
  background: var(--ink);
  transform: none;
  box-shadow: none;
}

.home-page .glossary-group .glossary-entry.is-open:nth-child(n)::before {
  transform: scaleX(1);
}

.glossary-entry-trigger {
  display: grid;
  grid-template-columns: minmax(70px, auto) minmax(0, 1fr) 28px;
  gap: 14px;
  align-items: center;
  width: 100%;
  min-height: 68px;
  padding: 14px 16px;
  border: 0;
  color: inherit;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.glossary-entry-trigger:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: -5px;
}

.glossary-entry-trigger > span:first-child {
  color: #777;
  font-size: 8px;
  line-height: 1.2;
}

.glossary-entry.is-open .glossary-entry-trigger > span:first-child {
  color: #9b9b9b;
}

.home-page .glossary-entry-trigger h4 {
  max-width: none;
  margin: 0;
  font-size: clamp(15px, 1.35vw, 20px);
  line-height: 1.05;
  letter-spacing: -0.025em;
  overflow-wrap: anywhere;
  transition: transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1), letter-spacing 260ms ease;
}

.glossary-entry-indicator {
  position: relative;
  display: block;
  width: 26px;
  height: 26px;
  border: 1px solid currentColor;
  border-radius: 50%;
  transition: color 220ms ease, background-color 220ms ease, transform 320ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

@media (hover: hover) and (pointer: fine) {
  .home-page .glossary-group .glossary-entry:nth-child(n):not(.is-open):hover {
    z-index: 2;
    color: var(--paper);
    background: var(--paper);
    box-shadow: 8px 9px 0 rgba(17, 17, 17, 0.18);
    transform: translate3d(-3px, -4px, 0);
  }

  .home-page .glossary-group .glossary-entry:nth-child(n):not(.is-open):hover::before {
    transform: scaleX(1);
    transform-origin: left center;
  }

  .home-page .glossary-group .glossary-entry:nth-child(n):not(.is-open):hover .glossary-entry-trigger > span:first-child {
    color: #aaa;
  }

  .home-page .glossary-group .glossary-entry:nth-child(n):not(.is-open):hover .glossary-entry-trigger h4 {
    letter-spacing: 0.005em;
    transform: translateX(7px);
  }

  .home-page .glossary-group .glossary-entry:nth-child(n):not(.is-open):hover .glossary-entry-indicator {
    color: var(--ink);
    background: var(--paper);
    transform: rotate(90deg) scale(1.08);
  }
}

.glossary-entry-indicator::before,
.glossary-entry-indicator::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 1px;
  background: currentColor;
  content: "";
  transform: translate(-50%, -50%);
  transition: transform 180ms ease;
}

.glossary-entry-indicator::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.glossary-entry.is-open .glossary-entry-indicator::after {
  transform: translate(-50%, -50%) rotate(0deg);
}

.glossary-entry-body {
  min-height: 0;
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transition: opacity 150ms ease, visibility 0s linear 240ms;
}

.glossary-entry.is-open .glossary-entry-body {
  opacity: 1;
  visibility: visible;
  transition: opacity 190ms ease 70ms, visibility 0s;
}

.glossary-entry-body-inner {
  display: grid;
  grid-template-columns: minmax(150px, 0.45fr) minmax(320px, 1.7fr) minmax(150px, 0.5fr);
  gap: 28px;
  align-items: start;
  margin: 0 16px;
  padding: 22px 0 26px;
  border-top: 1px solid #3c3c3c;
}

.home-page .glossary-entry-body-inner > em {
  display: inline-flex;
  justify-self: start;
  padding: 6px 8px;
  border: 1px solid #666;
  color: #aaa;
  font-size: 8px;
  font-style: normal;
  line-height: 1.2;
}

.home-page .glossary-entry-body-inner > p {
  margin: 0;
  color: #d0d0d0;
  font-size: clamp(13px, 1vw, 15px);
  line-height: 1.65;
}

.home-page .glossary-entry-body-inner > a {
  align-self: end;
  padding: 10px 0;
  border-top: 1px solid #666;
  border-bottom: 1px solid #666;
  color: var(--paper);
  font-size: 8px;
  font-weight: 700;
  line-height: 1.35;
}

@media (max-width: 1040px) {
  .home-page .glossary-group .glossary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .home-page .glossary-header {
    grid-template-columns: 1fr;
    gap: 22px;
    padding-top: 34px;
    padding-bottom: 30px;
  }

  .home-page .glossary-header h2 {
    margin-bottom: 12px;
    font-size: clamp(42px, 14vw, 58px);
    line-height: 0.84;
  }

  .home-page .glossary-header p {
    max-width: 34em;
    font-size: 12px;
    line-height: 1.5;
  }

  .home-page .glossary-tools {
    display: block;
  }

  .home-page .glossary-tools label {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
    min-height: 48px;
    padding: 0 var(--side);
    border-right: 0;
    border-bottom: 1px solid var(--ink);
  }

  .home-page .glossary-tools label > span {
    font-size: 8px;
  }

  .home-page .glossary-tools input {
    min-height: 47px;
    padding: 8px 0;
    font-size: 12px;
  }

  .home-page .glossary-filters {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .home-page .glossary-filters::-webkit-scrollbar {
    display: none;
  }

  .home-page .glossary-filters button {
    flex: 0 0 auto;
    min-height: 42px;
    padding: 0 14px;
    white-space: nowrap;
    border-bottom: 0;
  }

  .home-page .glossary-group-heading {
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 10px;
    padding-top: 22px;
    padding-bottom: 17px;
  }

  .home-page .glossary-group-heading > span {
    grid-row: 1 / 3;
  }

  .home-page .glossary-group-heading h3 {
    font-size: clamp(18px, 5.7vw, 24px);
    line-height: 1.05;
  }

  .home-page .glossary-group-heading p {
    grid-column: 2;
    font-size: 10px;
    line-height: 1.4;
  }

  .home-page .glossary-group .glossary-grid {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 12px var(--side) 18px;
  }

  .home-page .glossary-group .glossary-entry.is-open:nth-child(n) {
    grid-column: 1;
  }

  .glossary-entry-trigger {
    grid-template-columns: 50px minmax(0, 1fr) 26px;
    gap: 10px;
    min-height: 58px;
    padding: 11px 12px;
  }

  .home-page .glossary-entry-trigger h4 {
    font-size: clamp(15px, 4.4vw, 18px);
    line-height: 1.08;
  }

  .glossary-entry-indicator {
    width: 24px;
    height: 24px;
  }

  .glossary-entry-body-inner {
    grid-template-columns: 1fr;
    gap: 16px;
    margin: 0 12px;
    padding: 17px 0 19px;
  }

  .home-page .glossary-entry-body-inner > p {
    font-size: 13px;
    line-height: 1.6;
  }

  .home-page .glossary-entry-body-inner > a {
    justify-self: stretch;
    padding: 11px 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-page .glossary-group .glossary-entry:nth-child(n),
  .home-page .glossary-group .glossary-entry:nth-child(n)::before,
  .home-page .glossary-entry-trigger h4,
  .glossary-entry-indicator,
  .glossary-entry-indicator::after,
  .glossary-entry-body {
    transition: none;
  }
}

/* Company hub / editorial floor */
.company-hub {
  --company-red: #e53122;
  --company-paper: #f2f1ec;
  --company-muted: #a8a7a1;
  position: relative;
  color: var(--ink);
  background: var(--company-paper);
  border-top: 1px solid var(--ink);
  scroll-margin-top: 76px;
}

.company-hub *,
.site-footer--company * {
  box-sizing: border-box;
}

.company-hub [hidden] {
  display: none !important;
}

.company-hub a,
.site-footer--company a {
  color: inherit;
}

.company-hub button,
.company-hub input,
.company-hub textarea {
  font: inherit;
}

.company-hero {
  position: relative;
  min-height: min(980px, calc(100svh - 36px));
  overflow: hidden;
  color: var(--paper);
  background: #080808;
  border-bottom: 1px solid var(--ink);
  isolation: isolate;
}

.company-hero-media,
.company-hero-media::after {
  position: absolute;
  inset: 0;
}

.company-hero-media::after {
  z-index: 2;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.38) 46%, rgba(0, 0, 0, 0.18) 100%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.9) 0%, transparent 45%, rgba(0, 0, 0, 0.28) 100%);
}

.company-hero-back {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 112%;
  height: 124%;
  object-fit: cover;
  opacity: 0.78;
  filter: contrast(1.08) brightness(0.7);
  transform: translate3d(-50%, calc(-50% + var(--company-parallax-y, 0px)), 0) scale(1.03);
  will-change: transform;
}

.company-hero-media::before {
  position: absolute;
  z-index: 3;
  inset: 0;
  content: "";
  pointer-events: none;
  opacity: 0.24;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 7.5vw 7.5vw;
  mask-image: linear-gradient(to right, transparent, #000 45%);
}

.company-hero-frame {
  position: absolute;
  z-index: 1;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.58);
  will-change: transform;
}

.company-hero-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.08);
}

.company-hero-frame--one {
  top: 10%;
  right: 8%;
  width: min(30vw, 490px);
  aspect-ratio: 4 / 3;
  transform: translate3d(0, var(--company-parallax-y, 0px), 0) rotate(2.5deg);
}

.company-hero-frame--two {
  right: -3%;
  bottom: 8%;
  width: min(21vw, 330px);
  aspect-ratio: 4 / 5;
  transform: translate3d(0, var(--company-parallax-y, 0px), 0) rotate(-5deg);
}

.company-hero-cross {
  position: absolute;
  z-index: 4;
  width: 18px;
  height: 18px;
}

.company-hero-cross::before,
.company-hero-cross::after {
  position: absolute;
  top: 50%;
  left: 50%;
  content: "";
  background: var(--paper);
  transform: translate(-50%, -50%);
}

.company-hero-cross::before { width: 18px; height: 1px; }
.company-hero-cross::after { width: 1px; height: 18px; }
.company-hero-cross--a { top: 12%; left: 4%; }
.company-hero-cross--b { right: 3%; bottom: 4%; }

.company-hero-copy {
  position: absolute;
  z-index: 5;
  left: var(--side);
  bottom: clamp(98px, 12vh, 145px);
  width: min(920px, 74vw);
  text-shadow: 0 3px 28px rgba(0, 0, 0, 0.8);
}

.company-kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 28px;
  font-size: 10px;
  letter-spacing: 0.11em;
}

.company-kicker::before {
  width: 9px;
  height: 9px;
  content: "";
  border-radius: 50%;
  background: var(--company-red);
  box-shadow: 0 0 0 5px rgba(229, 49, 34, 0.22);
}

.company-hero-copy h2 {
  max-width: 100%;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(54px, 7.8vw, 138px);
  font-weight: 700;
  line-height: 0.82;
  letter-spacing: -0.075em;
  text-transform: uppercase;
}

.company-hero-copy p {
  max-width: 720px;
  margin: 32px 0 0;
  font-size: clamp(12px, 1.1vw, 17px);
  line-height: 1.7;
  text-wrap: pretty;
}

.company-hero-link {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  margin-top: 28px;
  padding-bottom: 8px;
  border-bottom: 1px solid currentColor;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.company-hero-link span {
  transition: transform 180ms ease;
}

.company-hero-link:hover span { transform: translateY(4px); }

.company-hero-caption {
  position: absolute;
  z-index: 5;
  right: var(--side);
  bottom: 26px;
  left: var(--side);
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.45);
  font-size: 8px;
  line-height: 1.4;
  letter-spacing: 0.08em;
}

.company-method,
.company-process,
.company-journal,
.company-board,
.company-editor {
  scroll-margin-top: 76px;
}

.company-method {
  display: grid;
  grid-template-columns: minmax(110px, 0.32fr) minmax(0, 1fr);
  gap: 64px;
  padding: clamp(100px, 11vw, 170px) var(--side);
  border-bottom: 1px solid var(--ink);
}

.company-section-label {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  font-size: 9px;
  line-height: 1.45;
  letter-spacing: 0.09em;
}

.company-section-label span {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  place-items: center;
  color: var(--paper);
  background: var(--ink);
  border-radius: 50%;
}

.company-section-label p { margin: 8px 0 0; }

.company-method-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.45fr);
  gap: 30px 60px;
}

.company-method-intro > span,
.company-module-heading > div:nth-child(2) > span,
.company-editor-heading > div:nth-child(2) > span {
  grid-column: 1 / -1;
  color: #66655f;
  font-size: 9px;
  letter-spacing: 0.09em;
}

.company-method-intro h3,
.company-process-heading h3,
.company-module-heading h3,
.company-editor-heading h3 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(42px, 5.4vw, 92px);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: -0.065em;
}

.company-method-intro > p,
.company-process-heading > p,
.company-module-heading > p,
.company-editor-heading > p {
  margin: 0;
  font-size: 13px;
  line-height: 1.75;
  text-wrap: pretty;
}

.company-protocol {
  grid-column: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 76px 0 0;
  padding: 0;
  border-top: 1px solid var(--ink);
  list-style: none;
}

.company-protocol li {
  min-height: 270px;
  padding: 20px 20px 24px 0;
  border-right: 1px solid rgba(0, 0, 0, 0.35);
}

.company-protocol li + li { padding-left: 20px; }
.company-protocol li:last-child { border-right: 0; }

.company-protocol li > span {
  display: block;
  margin-bottom: 54px;
  color: #76756f;
  font-size: 9px;
}

.company-protocol strong {
  display: block;
  margin-bottom: 16px;
  font-family: var(--display);
  font-size: clamp(18px, 1.7vw, 27px);
  letter-spacing: -0.04em;
}

.company-protocol p {
  margin: 0;
  font-size: 10px;
  line-height: 1.65;
}

.company-metrics {
  grid-column: 2;
  display: grid;
  grid-template-columns: 0.55fr 0.55fr 1fr;
  margin-top: 42px;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.company-metrics > div {
  display: flex;
  min-height: 118px;
  flex-direction: column;
  justify-content: space-between;
  padding: 18px 20px 17px 0;
  border-right: 1px solid rgba(0, 0, 0, 0.35);
}

.company-metrics > div + div { padding-left: 20px; }
.company-metrics > div:last-child { border-right: 0; }

.company-metrics strong {
  font-family: var(--display);
  font-size: clamp(28px, 3vw, 52px);
  line-height: 1;
  letter-spacing: -0.05em;
}

.company-metrics > div:last-child strong { font-size: clamp(20px, 2.35vw, 42px); }
.company-metrics span { color: #64635e; font-size: 8px; letter-spacing: 0.08em; }

.company-process {
  padding: clamp(100px, 11vw, 170px) var(--side);
  background: #fff;
  border-bottom: 1px solid var(--ink);
  overflow: hidden;
}

.company-process-heading,
.company-module-heading,
.company-editor-heading {
  display: grid;
  grid-template-columns: minmax(130px, 0.34fr) minmax(0, 1fr) minmax(260px, 0.42fr);
  gap: 44px;
  align-items: end;
  margin-bottom: clamp(60px, 7vw, 110px);
}

.company-process-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 32px);
  align-items: start;
}

.company-process-shot {
  grid-column: span 4;
  position: relative;
  margin: 0;
  overflow: hidden;
  background: #d8d7d1;
  border: 1px solid var(--ink);
  aspect-ratio: 4 / 5;
}

.company-process-shot--wide {
  grid-column: span 8;
  aspect-ratio: 16 / 9;
}

.company-process-shot--tall {
  grid-column: span 4;
  margin-top: 0;
  aspect-ratio: 3 / 5;
}

.company-process-shot img {
  width: 100%;
  height: 112%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.06);
  transform: translate3d(0, calc(-6% + var(--company-parallax-y, 0px)), 0) scale(1.02);
  transition: filter 500ms ease, transform 700ms cubic-bezier(.2,.8,.2,1);
  will-change: transform;
}

.company-process-shot:hover img {
  filter: grayscale(0.25) contrast(1.08);
  transform: translate3d(0, calc(-6% + var(--company-parallax-y, 0px)), 0) scale(1.07);
}

.company-process-shot figcaption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 18px;
  padding: 14px 16px;
  color: var(--ink);
  background: rgba(242, 241, 236, 0.94);
  border-top: 1px solid var(--ink);
  backdrop-filter: blur(8px);
}

.company-process-shot figcaption span,
.company-process-shot figcaption em {
  font-size: 7px;
  font-style: normal;
  line-height: 1.4;
  letter-spacing: 0.07em;
}

.company-process-shot figcaption strong {
  justify-self: end;
  font-family: var(--display);
  font-size: 12px;
  letter-spacing: -0.03em;
}

.company-process-shot figcaption em {
  grid-column: 1 / -1;
  color: #696862;
}

.company-journal {
  padding: clamp(100px, 10vw, 155px) var(--side);
  background: var(--company-paper);
  border-bottom: 1px solid var(--ink);
}

.company-live {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
  color: #5c5b56;
  font-size: 8px;
  letter-spacing: 0.08em;
}

.company-live i,
.company-footer-contact i {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--company-red);
  box-shadow: 0 0 0 4px rgba(229, 49, 34, 0.14);
  animation: company-pulse 2.4s ease-out infinite;
}

@keyframes company-pulse {
  0%, 35% { box-shadow: 0 0 0 0 rgba(229, 49, 34, 0.36); }
  80%, 100% { box-shadow: 0 0 0 9px rgba(229, 49, 34, 0); }
}

.company-journal-dashboard {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
  border: 1px solid var(--ink);
}

.company-journal-summary {
  display: flex;
  min-height: 190px;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  color: var(--paper);
  background: var(--ink);
}

.company-journal-summary > span,
.company-journal-summary p,
.company-journal-totals span {
  font-size: 8px;
  line-height: 1.55;
  letter-spacing: 0.08em;
}

.company-journal-summary strong {
  font-family: var(--display);
  font-size: clamp(26px, 3vw, 52px);
  line-height: 1;
  letter-spacing: -0.055em;
}

.company-journal-summary p { max-width: 560px; margin: 0; color: #c7c6c0; }

.company-journal-totals {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
}

.company-journal-totals > div {
  display: flex;
  min-height: 190px;
  flex-direction: column;
  justify-content: space-between;
  padding: 22px;
  border-left: 1px solid var(--ink);
}

.company-journal-totals strong {
  font-family: var(--display);
  font-size: clamp(44px, 5vw, 82px);
  line-height: 0.8;
  letter-spacing: -0.08em;
}

.company-journal-totals span { color: #5f5e59; }

.company-journal-controls,
.company-board-toolbar {
  display: flex;
  margin-top: 22px;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.company-journal-controls button,
.company-board-toolbar button {
  min-height: 44px;
  padding: 0 22px;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-right: 1px solid var(--ink);
  font-size: 8px;
  letter-spacing: 0.08em;
  cursor: pointer;
}

.company-journal-controls button:hover,
.company-journal-controls button.is-active,
.company-board-toolbar button:hover,
.company-board-toolbar button.is-active {
  color: var(--paper);
  background: var(--ink);
}

.company-journal-list { border-bottom: 1px solid var(--ink); }

.company-journal-entry {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) minmax(220px, 0.34fr);
  gap: 28px;
  min-height: 178px;
  padding: 28px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.28);
}

.company-journal-entry[hidden] { display: none; }

.company-journal-number {
  font-family: var(--display);
  font-size: 27px;
  letter-spacing: -0.05em;
}

.company-journal-entry > div:nth-child(2) > span,
.company-journal-entry > div:last-child > span {
  display: block;
  margin-bottom: 14px;
  color: #686761;
  font-size: 8px;
  line-height: 1.5;
  letter-spacing: 0.07em;
}

.company-journal-entry h4 {
  margin: 0 0 14px;
  font-family: var(--display);
  font-size: clamp(20px, 2.2vw, 34px);
  line-height: 1;
  letter-spacing: -0.045em;
}

.company-journal-entry p {
  max-width: 760px;
  margin: 0;
  font-size: 11px;
  line-height: 1.65;
}

.company-journal-entry > div:last-child {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
}

.company-journal-entry a {
  padding-bottom: 6px;
  border-bottom: 1px solid currentColor;
  font-size: 9px;
  text-decoration: none;
}

.company-journal-list {
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.company-journal-day > summary {
  display: grid;
  grid-template-columns: minmax(130px, 0.25fr) minmax(0, 1fr) minmax(120px, 0.2fr);
  gap: 28px;
  align-items: center;
  min-height: 160px;
  padding: 26px 0;
  cursor: pointer;
  list-style: none;
}

.company-journal-day > summary::-webkit-details-marker { display: none; }

.company-journal-date {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.company-journal-date strong { font-size: 11px; letter-spacing: 0.08em; }
.company-journal-date time { color: #6a6964; font-size: 8px; letter-spacing: 0.08em; }

.company-journal-day h4 {
  max-width: 920px;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(28px, 3.4vw, 58px);
  line-height: 0.96;
  letter-spacing: -0.055em;
}

.company-journal-action {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: flex-end;
  font-size: 8px;
  letter-spacing: 0.08em;
}

.company-journal-action i {
  position: relative;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border: 1px solid var(--ink);
  border-radius: 50%;
}

.company-journal-action i::before,
.company-journal-action i::after {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 1px;
  background: currentColor;
  content: "";
  transform: translate(-50%, -50%);
  transition: transform 220ms ease;
}

.company-journal-action i::after { transform: translate(-50%, -50%) rotate(90deg); }
.company-journal-day[open] .company-journal-action i::after { transform: translate(-50%, -50%) rotate(0deg); }
.company-journal-day > summary:hover .company-journal-action i { color: var(--paper); background: var(--ink); }

.company-journal-details {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 0;
  padding: 0 0 34px;
  border-top: 1px solid var(--ink);
}

.company-journal-details section {
  min-width: 0;
  padding: 26px;
  border-right: 1px solid var(--ink);
}

.company-journal-details section:last-child { border-right: 0; }
.company-journal-details h5 { margin: 0 0 20px; color: #686761; font-size: 8px; letter-spacing: 0.08em; }

.company-journal-details ul {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.company-journal-details section:first-child ul {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 22px;
}

.company-journal-details li { border-top: 1px solid rgba(0, 0, 0, 0.24); }

.company-journal-details a {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 10px;
  padding: 11px 0;
  text-decoration: none;
}

.company-journal-details a:hover strong { text-decoration: underline; text-underline-offset: 3px; }
.company-journal-details a span { color: #77766f; font-size: 7px; }
.company-journal-details a strong { font-size: 9px; line-height: 1.3; overflow-wrap: anywhere; }

.company-quotes {
  position: relative;
  min-height: min(900px, 90svh);
  overflow: hidden;
  color: var(--paper);
  background: #080808;
  border-bottom: 1px solid var(--ink);
}

.company-quotes::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.9), rgba(0, 0, 0, 0.56) 58%, rgba(0, 0, 0, 0.2));
  pointer-events: none;
}

.company-quotes-image,
.company-quotes-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.company-quotes-image img {
  height: 118%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.1) brightness(0.72);
  transform: translate3d(0, calc(-8% + var(--company-parallax-y, 0px)), 0) scale(1.04);
  will-change: transform;
}

.company-quotes-body {
  position: relative;
  z-index: 2;
  display: grid;
  min-height: inherit;
  grid-template-columns: minmax(130px, 0.3fr) minmax(0, 1fr);
  grid-template-rows: auto 1fr auto;
  gap: 30px 60px;
  align-items: start;
  padding: clamp(70px, 8vw, 120px) var(--side) 42px;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.74);
}

.company-quotes .company-section-label span { color: var(--ink); background: var(--paper); }

.company-quote-mark {
  grid-column: 2;
  font-family: Georgia, serif;
  font-size: clamp(90px, 12vw, 190px);
  line-height: 0.45;
}

.company-quotes blockquote {
  grid-column: 2;
  align-self: center;
  max-width: 1040px;
  margin: 0;
}

.company-quotes blockquote p {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(34px, 4.6vw, 78px);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.company-quotes blockquote footer {
  margin-top: 34px;
  font-size: 9px;
  letter-spacing: 0.08em;
}

.company-quote-controls {
  grid-column: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.55);
}

.company-quote-controls span {
  margin-right: auto;
  font-size: 9px;
}

.company-quote-controls button {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  color: var(--paper);
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.65);
  cursor: pointer;
  transition: color 160ms ease, background 160ms ease;
}

.company-quote-controls button:hover { color: var(--ink); background: var(--paper); }

.company-board {
  padding: clamp(100px, 10vw, 155px) var(--side);
  color: var(--paper);
  background: #0b0b0b;
  border-bottom: 1px solid #555;
}

.company-board .company-section-label span { color: var(--ink); background: var(--paper); }
.company-board .company-module-heading > p,
.company-board .company-module-heading > div:nth-child(2) > span { color: #aaa9a3; }

.company-board-toolbar {
  margin-bottom: 28px;
  border-color: #666;
}

.company-board-toolbar button {
  color: var(--paper);
  border-color: #666;
}

.company-board-toolbar button:hover,
.company-board-toolbar button.is-active {
  color: var(--ink);
  background: var(--paper);
}

.company-board-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(290px, 0.28fr);
  min-height: 760px;
  border: 1px solid #656565;
}

.company-board-canvas {
  position: relative;
  min-width: 0;
  overflow: hidden;
  background-color: #111;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.075) 1px, transparent 1px);
  background-size: 42px 42px;
}

.company-board-canvas::before,
.company-board-canvas::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.company-board-canvas::before {
  top: 50%;
  left: 50%;
  width: min(38vw, 560px);
  aspect-ratio: 1;
  border: 1px solid rgba(229, 49, 34, 0.28);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.company-board-canvas::after {
  inset: 0;
  opacity: 0.16;
  background: radial-gradient(circle at 50% 48%, rgba(229, 49, 34, 0.24), transparent 27%);
}

.company-board-lines {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}

.company-board-lines line {
  stroke: rgba(255, 255, 255, 0.36);
  stroke-width: 1;
  stroke-dasharray: 6 8;
  vector-effect: non-scaling-stroke;
}

.company-board-lines line.is-active {
  stroke: var(--company-red);
  stroke-width: 1.8;
  stroke-dasharray: none;
  filter: drop-shadow(0 0 5px rgba(229, 49, 34, 0.75));
}

.company-board-grid-label {
  position: absolute;
  z-index: 2;
  color: #777;
  font-size: 7px;
  letter-spacing: 0.08em;
}

.company-board-grid-label--x { top: 12px; left: 14px; }
.company-board-grid-label--y { right: 12px; bottom: 10px; }

.company-board-node {
  position: absolute;
  z-index: 3;
  top: var(--node-y);
  left: var(--node-x);
  display: flex;
  width: clamp(124px, 11vw, 180px);
  min-height: 76px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 12px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid #666;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.55);
  transform: translate(-50%, -50%) rotate(var(--node-rotation, 0deg));
  cursor: pointer;
  text-align: left;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.company-board-node:nth-of-type(2n) { --node-rotation: 1.2deg; }
.company-board-node:nth-of-type(3n) { --node-rotation: -1.4deg; }

.company-board-node:hover,
.company-board-node:focus-visible,
.company-board-node.is-active {
  z-index: 5;
  border-color: var(--company-red);
  box-shadow: 0 0 0 3px rgba(229, 49, 34, 0.35), 0 22px 50px rgba(0, 0, 0, 0.66);
  outline: 0;
  transform: translate(-50%, -50%) rotate(0) scale(1.045);
}

.company-board-node img {
  width: calc(100% + 24px);
  height: 72px;
  margin: -12px -12px 10px;
  object-fit: cover;
  filter: grayscale(1) contrast(1.08);
  border-bottom: 1px solid var(--ink);
}

.company-board-node span {
  margin-bottom: 7px;
  color: #66645f;
  font-size: 7px;
  letter-spacing: 0.07em;
}

.company-board-node strong {
  font-family: var(--display);
  font-size: 10px;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.company-board-node--major {
  width: clamp(180px, 15vw, 250px);
  min-height: 166px;
}

.company-board-node--major img { height: 104px; }
.company-board-node--small { width: 112px; min-height: 62px; }

.company-board-inspector {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 22px;
  color: var(--ink);
  background: var(--company-paper);
  border-left: 1px solid #656565;
}

.company-board-inspector > span {
  margin-bottom: 20px;
  font-size: 8px;
  letter-spacing: 0.08em;
}

.company-board-inspector > img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05);
  border: 1px solid var(--ink);
}

.company-board-inspector > div {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px 0;
  border-bottom: 1px solid var(--ink);
}

.company-board-inspector em {
  color: var(--company-red);
  font-size: 8px;
  font-style: normal;
  letter-spacing: 0.08em;
}

.company-board-inspector strong {
  font-family: var(--display);
  font-size: clamp(19px, 2vw, 30px);
  line-height: 1;
  letter-spacing: -0.045em;
}

.company-board-inspector > p {
  display: -webkit-box;
  overflow: hidden;
  margin: 22px 0;
  font-size: 10px;
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 9;
}

.company-board-inspector dl { margin: auto 0 22px; }

.company-board-inspector dl > div {
  display: grid;
  grid-template-columns: 70px 1fr;
  padding: 10px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.35);
  font-size: 8px;
}

.company-board-inspector dt { color: #696862; }
.company-board-inspector dd { margin: 0; }

.company-board-inspector > a {
  display: flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  color: var(--paper);
  background: var(--ink);
  border: 1px solid var(--ink);
  font-size: 9px;
  text-decoration: none;
  transition: color 160ms ease, background 160ms ease;
}

.company-board-inspector > a:hover { color: var(--ink); background: transparent; }

.company-editor {
  padding: clamp(100px, 10vw, 155px) var(--side);
  background: #d9d8d2;
  border-bottom: 1px solid var(--ink);
}

.company-editor-console {
  color: var(--paper);
  background: #0d0d0d;
  border: 1px solid var(--ink);
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.25);
}

.company-editor-topline {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 24px;
  min-height: 44px;
  align-items: center;
  padding: 0 18px;
  color: #aaa9a3;
  border-bottom: 1px solid #4e4e4e;
  font-size: 8px;
  letter-spacing: 0.08em;
}

.company-editor-topline strong { color: var(--paper); font-weight: 400; }

.company-editor-topline i {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--paper);
  font-style: normal;
}

.company-editor-topline i::before {
  width: 6px;
  height: 6px;
  content: "";
  border-radius: 50%;
  background: var(--company-red);
}

.company-editor-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid #4e4e4e;
}

.company-editor-tabs button {
  min-height: 62px;
  padding: 0 20px;
  color: #aaa9a3;
  background: transparent;
  border: 0;
  border-right: 1px solid #4e4e4e;
  cursor: pointer;
  font-size: 9px;
  letter-spacing: 0.08em;
  text-align: left;
}

.company-editor-tabs button:last-child { border-right: 0; }
.company-editor-tabs button:hover,
.company-editor-tabs button.is-active { color: var(--ink); background: var(--paper); }

.company-editor-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.28fr);
  min-height: 430px;
}

.company-editor-form {
  display: grid;
  grid-template-columns: 0.36fr 1fr;
  gap: 26px;
  padding: clamp(28px, 4vw, 62px);
}

.company-editor-form label {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 10px;
}

.company-editor-form label > span,
.company-editor-panel aside > span {
  color: #96958f;
  font-size: 8px;
  letter-spacing: 0.08em;
}

.company-editor-form input,
.company-editor-form textarea {
  width: 100%;
  color: var(--paper);
  background: transparent;
  border: 0;
  border-bottom: 1px solid #5a5a5a;
  border-radius: 0;
  outline: 0;
}

.company-editor-form input {
  height: 52px;
  font-family: var(--display);
  font-size: clamp(13px, 1.35vw, 20px);
}

.company-editor-field-wide { grid-column: 1 / -1; }

.company-editor-form textarea {
  min-height: 155px;
  padding: 15px 0;
  resize: none;
  font-size: 11px;
  line-height: 1.7;
}

.company-editor-panel > aside {
  display: flex;
  flex-direction: column;
  padding: 34px 26px;
  background: #181818;
  border-left: 1px solid #4e4e4e;
}

.company-editor-panel > aside strong {
  margin: 46px 0 22px;
  font-family: var(--display);
  font-size: clamp(46px, 6vw, 94px);
  line-height: 0.8;
  letter-spacing: -0.08em;
}

.company-editor-panel > aside > div {
  height: 5px;
  overflow: hidden;
  background: #444;
}

.company-editor-panel > aside > div i {
  display: block;
  height: 100%;
  background: var(--company-red);
}

.company-editor-panel > aside p {
  margin: auto 0 0;
  color: #aaa9a3;
  font-size: 9px;
  line-height: 1.6;
}

.company-editor-relations,
.company-editor-checks {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: clamp(28px, 4vw, 62px);
}

.company-editor-relations > span,
.company-editor-relations button {
  padding: 18px;
  color: var(--paper);
  background: transparent;
  border: 1px solid #666;
  font-size: 9px;
}

.company-editor-relations button { cursor: pointer; }
.company-editor-relations button:hover { color: var(--ink); background: var(--paper); }
.company-editor-relations i { width: clamp(30px, 6vw, 100px); border-top: 1px dashed #777; }

.company-editor-checks {
  align-items: stretch;
  flex-direction: column;
}

.company-editor-checks label {
  display: flex;
  min-height: 56px;
  align-items: center;
  gap: 14px;
  padding: 0 18px;
  border: 1px solid #555;
  font-size: 9px;
}

.company-editor-checks input { accent-color: var(--company-red); }

.company-editor-panel aside button {
  min-height: 46px;
  margin-top: 18px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--paper);
  font-size: 8px;
  cursor: pointer;
}

.company-editor-panel aside button:hover,
.company-editor-panel aside button.is-complete { color: var(--paper); background: var(--company-red); border-color: var(--company-red); }

.company-reveal {
  opacity: 0;
  transform: translateY(38px);
  transition: opacity 800ms cubic-bezier(.2,.8,.2,1), transform 900ms cubic-bezier(.2,.8,.2,1);
}

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

.site-footer--company {
  display: grid;
  grid-template-columns: minmax(260px, 1.1fr) minmax(260px, 0.85fr) minmax(150px, 0.45fr) minmax(180px, 0.55fr);
  min-height: 0;
  padding: clamp(64px, 7vw, 110px) var(--side) 0;
  color: var(--paper);
  background: #080808;
  border: 0;
}

.company-footer-wordmark {
  align-self: start;
  font-family: var(--display);
  font-size: clamp(68px, 8vw, 138px);
  font-weight: 700;
  line-height: 0.72;
  letter-spacing: -0.09em;
}

.company-footer-wordmark sup {
  margin-left: 4px;
  font-size: 10px;
  letter-spacing: 0;
  vertical-align: top;
}

.company-footer-statement,
.company-footer-nav,
.company-footer-contact {
  display: flex;
  min-height: 300px;
  flex-direction: column;
  align-items: flex-start;
  padding: 4px 28px 30px;
  border-left: 1px solid #494949;
}

.company-footer-statement > span,
.company-footer-nav > span,
.company-footer-contact > span {
  margin-bottom: 38px;
  color: #888781;
  font-size: 8px;
  letter-spacing: 0.08em;
}

.company-footer-statement p,
.company-footer-contact p {
  margin: 0;
  font-size: 10px;
  line-height: 1.75;
}

.company-footer-statement a {
  margin-top: auto;
  padding-bottom: 6px;
  border-bottom: 1px solid currentColor;
  font-size: 8px;
  text-decoration: none;
}

.company-footer-nav { gap: 16px; }
.company-footer-nav > span { margin-bottom: 22px; }

.company-footer-nav a {
  font-family: var(--display);
  font-size: 17px;
  letter-spacing: -0.035em;
  text-decoration: none;
}

.company-footer-nav a:hover { color: var(--company-red); }

.company-footer-contact > div {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  font-size: 8px;
}

.company-footer-bottom {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr auto;
  gap: 24px;
  min-height: 72px;
  align-items: center;
  margin-top: 70px;
  border-top: 1px solid #494949;
  font-size: 8px;
  letter-spacing: 0.06em;
}

.company-footer-bottom a { text-decoration: none; }

@media (max-width: 1040px) {
  .company-method { grid-template-columns: 90px minmax(0, 1fr); gap: 35px; }
  .company-method-intro { grid-template-columns: minmax(0, 1fr); }
  .company-method-intro > span { grid-column: auto; }
  .company-protocol { grid-template-columns: repeat(2, 1fr); }
  .company-protocol li:nth-child(2) { border-right: 0; }
  .company-protocol li:nth-child(n + 3) { border-top: 1px solid rgba(0, 0, 0, 0.35); }
  .company-process-heading,
  .company-module-heading,
  .company-editor-heading { grid-template-columns: 90px minmax(0, 1fr); }
  .company-process-heading > p,
  .company-module-heading > p,
  .company-editor-heading > p { grid-column: 2; }
  .company-board-workspace { grid-template-columns: minmax(0, 1fr) 300px; min-height: 700px; }
  .site-footer--company { grid-template-columns: 1fr 1fr; }
  .company-footer-wordmark { min-height: 280px; }
  .company-footer-nav { border-top: 1px solid #494949; }
  .company-footer-contact { border-top: 1px solid #494949; }
}

@media (max-width: 760px) {
  .company-hub { scroll-margin-top: 64px; }

  .company-hero {
    min-height: 820px;
  }

  .company-hero-media::after {
    background:
      linear-gradient(90deg, rgba(0, 0, 0, 0.68), rgba(0, 0, 0, 0.22)),
      linear-gradient(0deg, rgba(0, 0, 0, 0.96) 0%, rgba(0, 0, 0, 0.38) 62%, rgba(0, 0, 0, 0.18));
  }

  .company-hero-back { width: 150%; height: 120%; opacity: 0.7; }

  .company-hero-frame--one {
    top: 8%;
    right: -9%;
    width: 68vw;
    opacity: 0.92;
  }

  .company-hero-frame--two {
    right: auto;
    bottom: 37%;
    left: -7%;
    width: 40vw;
    opacity: 0.82;
  }

  .company-hero-copy {
    right: var(--side);
    bottom: 84px;
    width: auto;
  }

  .company-kicker { max-width: 260px; margin-bottom: 20px; font-size: 8px; line-height: 1.5; }

  .company-hero-copy h2 {
    font-size: clamp(40px, 12.6vw, 61px);
    line-height: 0.9;
    letter-spacing: -0.07em;
    overflow-wrap: anywhere;
  }

  .company-hero-copy p { margin-top: 24px; font-size: 11px; line-height: 1.65; }
  .company-hero-link { margin-top: 22px; font-size: 9px; }

  .company-hero-caption {
    right: var(--side);
    bottom: 16px;
    left: var(--side);
    display: grid;
    gap: 5px;
    font-size: 6px;
  }

  .company-method,
  .company-process,
  .company-journal,
  .company-board,
  .company-editor {
    scroll-margin-top: 70px;
  }

  .company-method {
    display: block;
    padding: 80px var(--side);
  }

  .company-method > .company-section-label { margin-bottom: 50px; }
  .company-method-intro { display: block; }
  .company-method-intro > span { display: block; margin-bottom: 18px; }

  .company-method-intro h3,
  .company-process-heading h3,
  .company-module-heading h3,
  .company-editor-heading h3 {
    font-size: clamp(35px, 11vw, 54px);
    line-height: 0.94;
    overflow-wrap: anywhere;
  }

  .company-method-intro > p { margin-top: 28px; font-size: 11px; line-height: 1.7; }

  .company-protocol {
    display: block;
    margin-top: 55px;
  }

  .company-protocol li,
  .company-protocol li + li {
    min-height: 0;
    padding: 20px 0 26px;
    border-right: 0;
    border-top: 1px solid rgba(0, 0, 0, 0.35);
  }

  .company-protocol li:first-child { border-top: 0; }
  .company-protocol li > span { float: left; width: 42px; margin: 4px 0 0; }
  .company-protocol strong,
  .company-protocol p { margin-left: 42px; }
  .company-protocol strong { margin-bottom: 10px; font-size: 20px; }

  .company-metrics {
    grid-template-columns: 1fr;
    margin-top: 38px;
  }

  .company-metrics > div,
  .company-metrics > div + div {
    min-height: 88px;
    padding: 14px 0;
    border-right: 0;
    border-bottom: 1px solid rgba(0, 0, 0, 0.35);
  }

  .company-metrics > div:last-child { border-bottom: 0; }
  .company-metrics strong { font-size: 34px; }
  .company-metrics > div:last-child strong { font-size: 26px; }

  .company-process,
  .company-journal,
  .company-board,
  .company-editor { padding: 80px var(--side); }

  .company-process-heading,
  .company-module-heading,
  .company-editor-heading {
    display: block;
    margin-bottom: 48px;
  }

  .company-process-heading > .company-section-label,
  .company-module-heading > .company-section-label,
  .company-editor-heading > .company-section-label { margin-bottom: 45px; }
  .company-process-heading > p,
  .company-module-heading > p,
  .company-editor-heading > p { margin-top: 26px; font-size: 11px; line-height: 1.7; }

  .company-process-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    align-items: stretch;
  }
  .company-process-shot,
  .company-process-shot--wide,
  .company-process-shot--tall {
    grid-column: span 1;
    min-width: 0;
    width: 100%;
    margin: 0;
    aspect-ratio: 3 / 4;
  }

  .company-process-shot--wide { aspect-ratio: 3 / 4; }
  .company-process-shot figcaption {
    grid-template-columns: 1fr;
    gap: 3px;
    padding: 9px;
  }
  .company-process-shot figcaption strong {
    justify-self: start;
    font-size: 9px;
    line-height: 1.05;
  }
  .company-process-shot figcaption span,
  .company-process-shot figcaption em { font-size: 5.5px; }
  .company-process-shot figcaption em { grid-column: 1; }

  .company-journal-dashboard { grid-template-columns: 1fr; }
  .company-journal-summary { min-height: 176px; }
  .company-journal-summary strong { font-size: 34px; }
  .company-journal-totals > div { min-height: 118px; padding: 14px 10px; border-top: 1px solid var(--ink); }
  .company-journal-totals > div:first-child { border-left: 0; }
  .company-journal-totals strong { font-size: 42px; }

  .company-journal-controls,
  .company-board-toolbar {
    overflow-x: auto;
    scrollbar-width: none;
  }

  .company-journal-controls::-webkit-scrollbar,
  .company-board-toolbar::-webkit-scrollbar { display: none; }
  .company-journal-controls button,
  .company-board-toolbar button { flex: 0 0 auto; padding: 0 15px; white-space: nowrap; }

  .company-journal-entry {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 12px;
    min-height: 0;
    padding: 24px 0;
  }

  .company-journal-number { font-size: 18px; }
  .company-journal-entry h4 { font-size: 20px; }
  .company-journal-entry p { font-size: 10px; }
  .company-journal-entry > div:last-child { grid-column: 2; gap: 14px; }

  .company-journal-day > summary {
    grid-template-columns: 1fr auto;
    gap: 16px;
    min-height: 0;
    padding: 22px 0;
  }
  .company-journal-date { grid-column: 1 / -1; }
  .company-journal-day h4 { font-size: clamp(25px, 8vw, 38px); }
  .company-journal-action > span { display: none; }
  .company-journal-action i { width: 40px; height: 40px; }
  .company-journal-details { grid-template-columns: 1fr; padding-bottom: 0; }
  .company-journal-details section,
  .company-journal-details section:last-child {
    padding: 22px 0;
    border-right: 0;
    border-bottom: 1px solid var(--ink);
  }
  .company-journal-details section:last-child { border-bottom: 0; }
  .company-journal-details section:first-child ul { grid-template-columns: 1fr; }
  .company-journal-details a { grid-template-columns: 76px minmax(0, 1fr); }

  .company-quotes { min-height: 720px; }
  .company-quotes::after { background: linear-gradient(0deg, rgba(0, 0, 0, 0.92), rgba(0, 0, 0, 0.38)); }
  .company-quotes-image img { object-position: 54% center; }

  .company-quotes-body {
    display: flex;
    min-height: inherit;
    flex-direction: column;
    gap: 0;
    padding: 68px var(--side) 26px;
  }

  .company-quote-mark { margin: auto 0 24px; font-size: 110px; }
  .company-quotes blockquote p { font-size: clamp(31px, 9vw, 46px); line-height: 1.03; }
  .company-quotes blockquote footer { margin-top: 25px; font-size: 7px; line-height: 1.5; }
  .company-quote-controls { width: 100%; margin-top: 38px; }
  .company-quote-controls button { width: 42px; height: 42px; }

  .company-board-workspace {
    display: block;
    min-height: 0;
  }

  .company-board-canvas { min-height: 590px; }
  .company-board-canvas::before { width: 78vw; }
  .company-board-node { width: 104px; min-height: 62px; padding: 9px; }
  .company-board-node span { margin-bottom: 5px; font-size: 6px; }
  .company-board-node strong { font-size: 8px; }
  .company-board-node img { width: calc(100% + 18px); height: 52px; margin: -9px -9px 7px; }
  .company-board-node--major { width: 138px; min-height: 130px; }
  .company-board-node--major img { height: 76px; }
  .company-board-node--small { width: 86px; }

  .company-board-inspector {
    min-height: 500px;
    padding: 18px;
    border-top: 1px solid #656565;
    border-left: 0;
  }

  .company-board-inspector > p { -webkit-line-clamp: 7; }

  .company-editor-topline { grid-template-columns: 1fr auto; gap: 10px; padding: 0 12px; }
  .company-editor-topline strong { display: none; }
  .company-editor-tabs { overflow-x: auto; display: flex; scrollbar-width: none; }
  .company-editor-tabs button { min-width: 145px; flex: 1 0 auto; padding: 0 14px; }

  .company-editor-panel { grid-template-columns: 1fr; min-height: 0; }
  .company-editor-form { grid-template-columns: 1fr; padding: 28px 18px; }
  .company-editor-field-wide { grid-column: auto; }
  .company-editor-form textarea { min-height: 180px; }
  .company-editor-panel > aside { min-height: 270px; border-top: 1px solid #4e4e4e; border-left: 0; }
  .company-editor-panel > aside strong { margin: 34px 0 22px; font-size: 58px; }
  .company-editor-relations { min-height: 360px; align-items: stretch; flex-direction: column; }
  .company-editor-relations i { width: 1px; height: 24px; align-self: center; border-top: 0; border-left: 1px dashed #777; }
  .company-editor-checks { padding: 28px 18px; }

  .site-footer--company {
    display: block;
    padding: 70px var(--side) 0;
  }

  .company-footer-wordmark { min-height: 190px; font-size: clamp(70px, 25vw, 112px); }

  .company-footer-statement,
  .company-footer-nav,
  .company-footer-contact {
    min-height: 240px;
    padding: 28px 0;
    border-top: 1px solid #494949;
    border-left: 0;
  }

  .company-footer-bottom {
    grid-template-columns: 1fr auto;
    gap: 12px;
    min-height: 100px;
    margin-top: 24px;
    padding: 18px 0;
  }

  .company-footer-bottom span:nth-child(3) { display: none; }
  .company-footer-bottom a { text-align: right; }
}

@media (prefers-reduced-motion: reduce) {
  .company-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .company-live i,
  .company-footer-contact i { animation: none; }

  .company-hero-back,
  .company-hero-frame,
  .company-process-shot img,
  .company-quotes-image img { will-change: auto; }
}

/* Investigation map v2: large pannable evidence world. */
.company-board-hint {
  margin: -4px 0 22px;
  color: #aaa9a3;
  font-size: 9px;
  line-height: 1.55;
  letter-spacing: 0.04em;
}

.company-board-toolbar {
  align-items: center;
  margin-bottom: 18px;
}

.company-board-count {
  margin-left: auto;
  padding: 0 18px;
  color: #8e8d87;
  font-size: 8px;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.company-board-toolbar .company-board-reset {
  margin-left: 0;
  border-left: 1px solid #666;
  border-right: 0;
}

.company-board-workspace {
  grid-template-columns: minmax(0, 1fr) 320px;
  min-height: 0;
}

.company-board-viewport {
  position: relative;
  min-height: clamp(720px, 80svh, 920px);
  overflow: hidden;
  cursor: grab;
  touch-action: none;
  user-select: none;
  overscroll-behavior: auto;
  background-color: #101010;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 44px 44px, 44px 44px, 11px 11px, 11px 11px;
}

.company-board-viewport:focus-visible { outline: 2px solid var(--company-red); outline-offset: -2px; }
.company-board-viewport.is-dragging { cursor: grabbing; }

.company-board-world {
  position: absolute;
  top: 0;
  left: 0;
  width: 3600px;
  height: 2400px;
  transform-origin: 0 0;
  will-change: transform;
}

.company-board-world::before {
  position: absolute;
  z-index: 0;
  top: 50%;
  left: 50%;
  width: 1120px;
  height: 1120px;
  border: 1px solid rgba(229, 49, 34, 0.22);
  border-radius: 50%;
  content: "";
  transform: translate(-50%, -50%);
  box-shadow:
    0 0 0 210px rgba(255, 255, 255, 0.018),
    0 0 0 420px rgba(255, 255, 255, 0.012);
}

.company-board-world .company-board-lines {
  width: 3600px;
  height: 2400px;
}

.company-board-thread {
  opacity: 0.82;
  transition: opacity 180ms ease;
}

.company-board-thread path {
  fill: none;
  vector-effect: non-scaling-stroke;
  transition: stroke 190ms ease, stroke-width 190ms ease, opacity 190ms ease, filter 190ms ease;
}

.company-board-thread-shadow { stroke: rgba(0, 0, 0, 0.9); stroke-width: 5.5; }
.company-board-thread-base { stroke: #6f6f6b; stroke-width: 2.2; }
.company-board-thread-fiber { stroke: rgba(231, 230, 222, 0.62); stroke-width: 0.7; stroke-dasharray: 1.2 3.8; }
.company-board-thread.is-dimmed { opacity: 0.2; }
.company-board-thread.is-active { opacity: 1; }
.company-board-thread.is-active .company-board-thread-shadow { stroke: rgba(72, 0, 0, 0.9); stroke-width: 7; }
.company-board-thread.is-active .company-board-thread-base { stroke: var(--company-red); stroke-width: 3.5; filter: drop-shadow(0 0 5px rgba(229, 49, 34, 0.82)); }
.company-board-thread.is-active .company-board-thread-fiber { stroke: #ffb1a8; stroke-width: 0.9; }

.company-board-world .company-board-node {
  width: 150px;
  min-height: 82px;
  padding: 10px;
  border: 1px solid #797874;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.62);
  transform: translate(-50%, -50%) rotate(var(--node-tilt, 0deg));
  transition: opacity 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.company-board-world .company-board-node img {
  width: calc(100% + 20px);
  height: 86px;
  margin: -10px -10px 9px;
}

.company-board-world .company-board-node--anomaly { width: 220px; min-height: 170px; }
.company-board-world .company-board-node--anomaly img { height: 118px; }
.company-board-world .company-board-node--incident { width: 186px; min-height: 108px; background: #d6d4ca; }
.company-board-world .company-board-node--place {
  width: 142px;
  min-height: 62px;
  justify-content: center;
  color: var(--paper);
  background: #171717;
  border: 1px dashed #8b8a84;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.5);
}
.company-board-world .company-board-node--place span { color: #8e8d87; }

.company-board-world .company-board-node.is-related {
  z-index: 5;
  border-color: #c2c0b8;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.18), 0 18px 40px rgba(0, 0, 0, 0.7);
}

.company-board-world .company-board-node.is-active {
  z-index: 7;
  border-color: var(--company-red);
  box-shadow: 0 0 0 4px rgba(229, 49, 34, 0.38), 0 24px 56px rgba(0, 0, 0, 0.78);
  transform: translate(-50%, -50%) rotate(0deg) scale(1.075);
}

.company-board-world .company-board-node.is-dimmed { opacity: 0.45; }
.company-board-world .company-board-node:hover { opacity: 1; transform: translate(-50%, -50%) rotate(0deg) scale(1.055); }

.company-board-world .company-board-grid-label { position: absolute; }
.company-board-world .company-board-grid-label--x { top: 18px; left: 20px; }
.company-board-world .company-board-grid-label--y { right: 20px; bottom: 18px; }

.company-board-inspector { min-height: clamp(720px, 80svh, 920px); }
.company-board-inspector > img[hidden],
.company-board-inspector > a[hidden] { display: none; }

@media (max-width: 1040px) {
  .company-board-workspace { grid-template-columns: minmax(0, 1fr) 280px; }
  .company-board-count { display: none; }
}

@media (max-width: 760px) {
  .company-board-toolbar { flex-wrap: nowrap; margin-bottom: 14px; }
  .company-board-toolbar .company-board-reset { margin-left: auto; }
  .company-board-hint { margin-bottom: 16px; font-size: 8px; }
  .company-board-workspace { display: block; }
  .company-board-viewport { min-height: 68svh; border-bottom: 1px solid #656565; }
  .company-board-inspector { min-height: 0; padding: 18px; border-top: 0; border-left: 0; }
  .company-board-inspector > img { max-height: 240px; }
  .company-board-inspector dl { margin-top: 0; }
  .company-board-world .company-board-node { width: 142px; }
  .company-board-world .company-board-node--anomaly { width: 205px; }
  .company-board-world .company-board-node--incident { width: 178px; }
  .company-board-world .company-board-node--place { width: 134px; }
}

@media (prefers-reduced-motion: reduce) {
  .company-board-thread,
  .company-board-thread path,
  .company-board-world .company-board-node { transition: none; }
}

/* Working dossier editor. */
.company-editor-notice {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  padding: 18px;
  color: #b7b6b0;
  background: #171717;
  border-bottom: 1px solid #4e4e4e;
  font-size: 9px;
  line-height: 1.6;
}

.company-editor-notice strong {
  color: var(--paper);
  font-family: var(--display);
  font-size: 16px;
  letter-spacing: -0.02em;
}

.company-editor-notice p { max-width: 720px; margin: 0; }

.company-editor-form.company-editor-form--live {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.34fr);
  gap: 0;
  padding: 0;
}

.company-editor-types {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, 1fr);
  margin: 0;
  padding: 0;
  border: 0;
  border-bottom: 1px solid #4e4e4e;
}

.company-editor-types legend {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.company-editor-form--live .company-editor-types label {
  position: relative;
  display: block;
  gap: 0;
  cursor: pointer;
}

.company-editor-types label + label { border-left: 1px solid #4e4e4e; }

.company-editor-types input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.company-editor-types label > span {
  display: flex;
  min-height: 92px;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 18px 22px;
  color: #8d8c86;
  background: #0d0d0d;
  transition: color 180ms ease, background 180ms ease;
}

.company-editor-types label > span b {
  color: var(--paper);
  font-family: var(--display);
  font-size: clamp(18px, 2.2vw, 30px);
  font-weight: 500;
  line-height: 0.9;
  letter-spacing: -0.04em;
}

.company-editor-types label > span small { font-size: 8px; line-height: 1.4; letter-spacing: 0.06em; }
.company-editor-types input:checked + span { color: #363636; background: var(--paper); }
.company-editor-types input:checked + span b { color: var(--ink); }
.company-editor-types input:checked + span::after {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 8px;
  height: 8px;
  content: "";
  border-radius: 50%;
  background: var(--company-red);
}
.company-editor-types input:focus-visible + span { outline: 2px solid var(--company-red); outline-offset: -2px; }

.company-editor-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 24px;
  padding: clamp(28px, 4vw, 58px);
}

.company-editor-step {
  display: flex;
  grid-column: 1 / -1;
  align-items: center;
  gap: 12px;
  margin-bottom: 4px;
  color: #96958f;
  font-size: 8px;
  letter-spacing: 0.09em;
}

.company-editor-step span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  color: var(--ink);
  background: var(--paper);
  border-radius: 50%;
}

.company-editor-step strong { color: var(--paper); font-weight: 500; }

.company-editor-form--live label > span {
  color: #96958f;
  font-size: 8px;
  letter-spacing: 0.08em;
}

.company-editor-form--live input:not([type="radio"]):not([type="file"]),
.company-editor-form--live select,
.company-editor-form--live textarea {
  width: 100%;
  color: var(--paper);
  background: #121212;
  border: 1px solid #575757;
  border-radius: 0;
  outline: 0;
  transition: border-color 160ms ease, background 160ms ease;
}

.company-editor-form--live input:not([type="radio"]):not([type="file"]),
.company-editor-form--live select {
  min-height: 50px;
  padding: 0 14px;
  font-family: var(--sans);
  font-size: 11px;
}

.company-editor-form--live select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, #aaa 50%), linear-gradient(135deg, #aaa 50%, transparent 50%);
  background-position: calc(100% - 17px) 21px, calc(100% - 12px) 21px;
  background-repeat: no-repeat;
  background-size: 5px 5px, 5px 5px;
}

.company-editor-form--live textarea {
  min-height: 120px;
  padding: 14px;
  resize: vertical;
  font-family: var(--sans);
  font-size: 11px;
  line-height: 1.65;
}

.company-editor-form--live input:focus,
.company-editor-form--live select:focus,
.company-editor-form--live textarea:focus { background-color: #191919; border-color: var(--paper); }

.company-editor-form--live input::placeholder,
.company-editor-form--live textarea::placeholder { color: #666560; opacity: 1; }

.company-editor-form--live .company-editor-field-wide { grid-column: 1 / -1; }

.company-editor-upload {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: clamp(28px, 3.5vw, 48px) clamp(22px, 3vw, 36px);
  background: #171717;
  border-left: 1px solid #4e4e4e;
}

.company-editor-upload > p {
  margin: 18px 0 0;
  color: #8d8c86;
  font-size: 8px;
  line-height: 1.6;
}

.company-editor-form--live .company-editor-drop {
  position: relative;
  display: grid;
  min-height: 410px;
  flex: 1;
  place-items: center;
  overflow: hidden;
  border: 1px dashed #6d6c67;
  cursor: pointer;
  isolation: isolate;
}

.company-editor-drop::before,
.company-editor-drop::after {
  position: absolute;
  z-index: -1;
  width: 86px;
  height: 86px;
  content: "";
  border-color: #4f4e4a;
  border-style: solid;
}
.company-editor-drop::before { top: 14px; left: 14px; border-width: 1px 0 0 1px; }
.company-editor-drop::after { right: 14px; bottom: 14px; border-width: 0 1px 1px 0; }

.company-editor-drop input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.company-editor-drop:focus-within { border-color: var(--paper); outline: 2px solid var(--company-red); outline-offset: -2px; }

.company-editor-drop img {
  width: 100%;
  height: 100%;
  min-height: 410px;
  object-fit: cover;
  filter: grayscale(1) contrast(1.08);
}

.company-editor-drop > span {
  display: flex;
  max-width: 190px;
  align-items: center;
  flex-direction: column;
  gap: 10px;
  color: #8d8c86;
  text-align: center;
}

.company-editor-drop > span b { color: var(--paper); font-family: var(--display); font-size: 23px; line-height: 0.95; }
.company-editor-drop > span small { font-size: 8px; line-height: 1.5; }
.company-editor-drop > span i {
  margin-top: 10px;
  padding: 13px 16px;
  color: var(--ink);
  background: var(--paper);
  font-size: 8px;
  font-style: normal;
  letter-spacing: 0.06em;
}

.company-editor-submit {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1fr) minmax(230px, 0.32fr);
  min-height: 118px;
  border-top: 1px solid #4e4e4e;
}

.company-editor-submit > div { display: flex; justify-content: center; flex-direction: column; padding: 20px 28px; }
.company-editor-submit span { color: var(--paper); font-size: 9px; letter-spacing: 0.08em; }
.company-editor-submit p { margin: 8px 0 0; color: #8d8c86; font-size: 8px; line-height: 1.5; }
.company-editor-submit button {
  color: var(--paper);
  background: var(--company-red);
  border: 0;
  border-left: 1px solid #4e4e4e;
  cursor: pointer;
  font-family: var(--display);
  font-size: clamp(19px, 2vw, 28px);
  transition: color 160ms ease, background 160ms ease;
}
.company-editor-submit button:hover { color: var(--ink); background: var(--paper); }
.company-editor-submit button:disabled { color: #777; background: #272727; cursor: wait; }

.company-editor-result {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: 210px minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 22px 28px;
  color: var(--ink);
  background: var(--paper);
  border-top: 5px solid var(--company-red);
}
.company-editor-result[hidden] { display: none; }
.company-editor-result > div { display: flex; flex-direction: column; gap: 5px; }
.company-editor-result span { color: #666; font-size: 8px; letter-spacing: 0.08em; }
.company-editor-result strong { font-family: var(--display); font-size: 28px; }
.company-editor-result p { margin: 0; font-size: 10px; line-height: 1.55; }
.company-editor-result nav { display: flex; gap: 8px; }
.company-editor-result a { padding: 13px; color: var(--paper); background: var(--ink); font-size: 8px; text-decoration: none; white-space: nowrap; }
.company-editor-result a:hover { background: var(--company-red); }

.company-editor-error {
  grid-column: 1 / -1;
  margin: 0;
  padding: 16px 28px;
  color: #fff;
  background: #7e1711;
  border-top: 1px solid #a73b33;
  font-size: 10px;
  line-height: 1.5;
}
.company-editor-error[hidden] { display: none; }

@media (max-width: 900px) {
  .company-editor-form.company-editor-form--live { grid-template-columns: 1fr; }
  .company-editor-fields,
  .company-editor-upload { grid-column: 1; }
  .company-editor-upload { border-top: 1px solid #4e4e4e; border-left: 0; }
  .company-editor-form--live .company-editor-drop { min-height: 55svh; }
  .company-editor-result { grid-template-columns: 180px minmax(0, 1fr); }
  .company-editor-result nav { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .company-editor-notice { grid-template-columns: 1fr; gap: 6px; padding: 16px 14px; }
  .company-editor-types { grid-template-columns: 1fr; }
  .company-editor-types label + label { border-top: 1px solid #4e4e4e; border-left: 0; }
  .company-editor-types label > span { min-height: 78px; padding: 14px 18px; }
  .company-editor-fields { grid-template-columns: 1fr; gap: 22px; padding: 28px 16px; }
  .company-editor-form--live .company-editor-field-wide { grid-column: auto; }
  .company-editor-upload { padding: 28px 16px; }
  .company-editor-form--live .company-editor-drop,
  .company-editor-drop img { min-height: 72vw; }
  .company-editor-submit { grid-template-columns: 1fr; }
  .company-editor-submit button { min-height: 78px; border-top: 1px solid #4e4e4e; border-left: 0; }
  .company-editor-result { grid-template-columns: 1fr; gap: 14px; padding: 20px 16px; }
  .company-editor-result nav { grid-column: auto; flex-direction: column; }
  .company-editor-result a { display: flex; min-height: 46px; align-items: center; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .company-editor-types label > span,
  .company-editor-form--live input,
  .company-editor-form--live select,
  .company-editor-form--live textarea,
  .company-editor-submit button { transition: none; }
}

/* Investigation map v3: spacious, touch-first and visually quiet. */
.company-board {
  padding-right: clamp(12px, 2vw, 34px);
  padding-left: clamp(12px, 2vw, 34px);
}

.company-board-toolbar--simple {
  align-items: center;
  justify-content: space-between;
  overflow: visible;
  margin-bottom: 18px;
}

.company-board-toolbar--simple .company-board-count {
  margin-right: auto;
  margin-left: 0;
  padding: 0 18px 0 0;
}

.company-board-toolbar--simple .company-board-reset {
  margin-left: auto;
  border-right: 0;
  border-left: 1px solid #666;
}

.company-board-workspace {
  grid-template-columns: minmax(0, 1fr) 260px;
}

.company-board-viewport {
  min-height: clamp(780px, 86svh, 1040px);
  background-color: #0b0b0b;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  contain: layout paint;
}

.company-board-canvas::before,
.company-board-canvas::after,
.company-board-world::before { content: none; }

.company-board-world {
  width: 3600px;
  height: 2400px;
  backface-visibility: hidden;
}

.company-board-world .company-board-lines {
  width: 3600px;
  height: 2400px;
}

.company-board-thread-shadow { stroke-width: 4.5; }
.company-board-thread-base { stroke: #64645f; stroke-width: 1.8; }
.company-board-thread.is-active .company-board-thread-shadow { stroke-width: 6; }
.company-board-thread.is-active .company-board-thread-base { stroke-width: 3.2; }

.company-board-world .company-board-node {
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
  backface-visibility: hidden;
}

.company-board-world .company-board-node img {
  pointer-events: none;
  -webkit-user-drag: none;
}

.company-board-inspector { min-height: clamp(780px, 86svh, 1040px); }

@media (max-width: 1040px) {
  .company-board-workspace { grid-template-columns: minmax(0, 1fr) 250px; }
}

@media (max-width: 760px) {
  .company-board { padding-right: 10px; padding-left: 10px; }
  .company-board-toolbar--simple { display: flex; overflow: visible; }
  .company-board-toolbar--simple .company-board-count { display: block; padding-left: 8px; font-size: 7px; }
  .company-board-workspace {
    width: calc(100% + 20px);
    margin-left: -10px;
    border-right: 0;
    border-left: 0;
  }
  .company-board-viewport {
    width: 100%;
    height: calc(100svh - 54px);
    min-height: 560px;
    border-right: 0;
    border-left: 0;
    background-size: 48px 48px;
  }
  .company-board-inspector { width: 100%; min-height: 0; }
}

@media (hover: none) {
  .company-board-world .company-board-node:hover:not(.is-active) {
    transform: translate(-50%, -50%) rotate(var(--node-tilt, 0deg));
  }
}

/* Fullscreen relationship board v4 */
.company-board { padding: clamp(28px, 5vw, 76px) var(--side); background: #deddd6; }

.company-board-stage {
  position: relative;
  width: min(100%, 1180px);
  aspect-ratio: 4 / 3;
  margin: 0 auto;
  overflow: hidden;
  color: #e9e7df;
  background: #090909;
  border: 1px solid #0b0b0b;
  isolation: isolate;
}

.company-board-stage .company-board-workspace {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  min-height: 0;
  border: 0;
}

.company-board-stage:not(.is-fullscreen) .company-board-workspace {
  grid-template-columns: minmax(0, 1fr);
  visibility: hidden;
  pointer-events: none;
}

.company-board-stage:not(.is-fullscreen) .company-board-inspector { display: none; }
.company-board-stage .company-board-viewport { width: 100%; height: 100%; min-height: 0; border: 0; }

.company-board-preview-cover {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: grid;
  place-content: center;
  justify-items: center;
  padding: 40px;
  text-align: center;
  background: linear-gradient(rgba(0,0,0,.18), rgba(0,0,0,.42));
}

.company-board-preview-cover > span { margin-bottom: 18px; color: #a4a39d; font-size: 8px; letter-spacing: .14em; }
.company-board-preview-cover h3 { margin: 0 0 34px; font-family: var(--display); font-size: clamp(54px, 8vw, 108px); font-weight: 500; line-height: .82; }
.company-board-preview-cover button {
  min-width: 220px;
  min-height: 58px;
  padding: 0 28px;
  color: #080808;
  background: #eceae2;
  border: 1px solid #eceae2;
  cursor: pointer;
  font-size: 10px;
  letter-spacing: .08em;
  transition: color 180ms ease, background 180ms ease, transform 180ms ease;
}
.company-board-preview-cover button:hover { color: #eceae2; background: transparent; transform: translateY(-2px); }

.company-board-preview-meta {
  position: absolute;
  right: 18px;
  bottom: 15px;
  left: 18px;
  z-index: 21;
  display: flex;
  justify-content: space-between;
  color: #aaa9a3;
  font-size: 7px;
  letter-spacing: .08em;
}

.company-board-fullscreen-controls {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 8px;
  visibility: hidden;
  opacity: 0;
  pointer-events: none;
}

.company-board-fullscreen-controls button {
  min-height: 44px;
  padding: 0 17px;
  color: #eceae2;
  background: rgba(7,7,7,.9);
  border: 1px solid #66655f;
  cursor: pointer;
  font-size: 8px;
  letter-spacing: .06em;
  backdrop-filter: blur(8px);
}
.company-board-fullscreen-controls button:hover,
.company-board-fullscreen-controls button.is-active { color: #090909; background: #eceae2; }
.company-board-fullscreen-controls > span { max-width: 260px; color: #e55343; font-size: 7px; line-height: 1.4; }
.company-board-editor-tools { display: flex; gap: 8px; }
.company-board-editor-tools[hidden] { display: none; }

.company-board-stage.is-fullscreen {
  position: fixed;
  inset: 0;
  z-index: 100000;
  width: 100vw;
  height: 100dvh;
  max-width: none;
  aspect-ratio: auto;
  margin: 0;
  border: 0;
}
.company-board-stage.is-fullscreen .company-board-preview-cover,
.company-board-stage.is-fullscreen .company-board-preview-meta { display: none; }
.company-board-stage.is-fullscreen .company-board-fullscreen-controls { visibility: visible; opacity: 1; pointer-events: auto; }
.company-board-stage.is-fullscreen .company-board-workspace { grid-template-columns: minmax(0, 1fr) 340px; }
.company-board-stage.is-fullscreen .company-board-viewport { cursor: grab; touch-action: none; overscroll-behavior: none; }
.company-board-stage.is-fullscreen .company-board-viewport.is-dragging { cursor: grabbing; }
.board-fullscreen-open,
.board-fullscreen-open body { overflow: hidden !important; overscroll-behavior: none; }
.board-fullscreen-open .site-header,
.board-fullscreen-open .topbar { visibility: hidden !important; }

.company-board-stage .company-board-inspector {
  position: relative;
  z-index: 30;
  width: 340px;
  min-height: 0;
  height: 100dvh;
  padding: 82px 26px 28px;
  overflow-y: auto;
  color: #171717;
  background: #dfded7;
  border: 0;
  border-left: 1px solid #5d5c57;
}
.company-board-inspector-toggle { display: none; }
.company-board-stage .company-board-inspector > img { width: 100%; max-height: 230px; object-fit: cover; }
.company-board-stage .company-board-inspector > a { margin-top: 24px; }

.company-board-world .company-board-node--subject {
  width: 150px;
  min-height: 78px;
  color: #eceae2;
  background: #171717;
  border-color: #aaa9a3;
}
.company-board-world .company-board-node--subject span { color: #999892; }

.company-board-thread--draft { opacity: 1 !important; pointer-events: none; }
.company-board-thread--draft .company-board-thread-shadow { stroke: rgba(60,0,0,.95); stroke-width: 7; }
.company-board-thread--draft .company-board-thread-base { stroke: #e53122; stroke-width: 3.4; filter: drop-shadow(0 0 5px rgba(229,49,34,.8)); }

.company-board-node-dialog {
  width: min(620px, calc(100% - 28px));
  max-height: calc(100dvh - 28px);
  padding: 0;
  color: #eceae2;
  background: #111;
  border: 1px solid #686761;
}
.company-board-node-dialog::backdrop { background: rgba(0,0,0,.82); backdrop-filter: blur(5px); }
.company-board-node-dialog form { display: grid; gap: 18px; padding: 28px; }
.company-board-node-dialog header { display: flex; align-items: center; justify-content: space-between; color: #8d8c86; font-size: 8px; }
.company-board-node-dialog header button { min-width: 38px; min-height: 38px; color: #eceae2; background: transparent; border: 1px solid #555; }
.company-board-node-dialog h4 { margin: 0; font-family: var(--display); font-size: clamp(38px, 7vw, 72px); font-weight: 500; line-height: .86; }
.company-board-node-dialog fieldset { display: grid; grid-template-columns: 1fr 1fr; padding: 0; border: 1px solid #555; }
.company-board-node-dialog legend { padding: 0 8px; color: #8d8c86; font-size: 7px; }
.company-board-node-dialog fieldset label { position: relative; }
.company-board-node-dialog fieldset label + label { border-left: 1px solid #555; }
.company-board-node-dialog fieldset input { position: absolute; opacity: 0; }
.company-board-node-dialog fieldset label > span { display: block; min-height: 92px; padding: 20px; font-family: var(--display); font-size: 28px; cursor: pointer; }
.company-board-node-dialog fieldset small { color: #898883; font-family: var(--mono); font-size: 7px; }
.company-board-node-dialog fieldset input:checked + span { color: #111; background: #eceae2; }
.company-board-node-dialog form > label { display: grid; gap: 8px; color: #8d8c86; font-size: 7px; }
.company-board-node-dialog input,
.company-board-node-dialog textarea { width: 100%; padding: 13px; color: #eceae2; background: #090909; border: 1px solid #555; resize: vertical; }
.company-board-node-dialog form > button { min-height: 56px; color: #111; background: #eceae2; border: 1px solid #eceae2; cursor: pointer; }
.company-board-node-dialog [data-board-node-error] { min-height: 14px; margin: 0; color: #e55343; font-size: 8px; }

@media (max-width: 760px) {
  .company-board { padding: 18px 10px; }
  .company-board-stage { width: 100%; aspect-ratio: 1 / 1; }
  .company-board-preview-cover { padding: 22px; }
  .company-board-preview-cover h3 { max-width: 290px; font-size: clamp(50px, 17vw, 76px); }
  .company-board-preview-cover button { min-width: 190px; min-height: 52px; }
  .company-board-stage.is-fullscreen .company-board-workspace { display: block; }
  .company-board-stage.is-fullscreen .company-board-viewport { width: 100%; height: 100dvh; min-height: 0; }
  .company-board-fullscreen-controls { top: max(10px, env(safe-area-inset-top)); right: 10px; left: 10px; flex-wrap: wrap; gap: 5px; }
  .company-board-fullscreen-controls button { min-height: 40px; padding: 0 12px; font-size: 7px; }
  .company-board-fullscreen-controls > span { order: 3; flex-basis: 100%; padding-left: 3px; }
  .company-board-editor-tools { gap: 5px; }
  .company-board-stage .company-board-inspector {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 88px;
    min-height: 0;
    padding: 12px 16px max(12px, env(safe-area-inset-bottom));
    overflow: hidden;
    border-top: 1px solid #65645f;
    border-left: 0;
    transition: height 240ms cubic-bezier(.2,.8,.2,1);
  }
  .company-board-stage .company-board-inspector.is-expanded { height: min(58dvh, 540px); overflow-y: auto; }
  .company-board-inspector-toggle { display: flex; width: 100%; align-items: center; justify-content: space-between; padding: 0 0 10px; color: #151515; background: transparent; border: 0; font-size: 7px; }
  .company-board-inspector-toggle span { transition: transform 200ms ease; }
  .company-board-inspector.is-expanded .company-board-inspector-toggle span { transform: rotate(180deg); }
  .company-board-stage .company-board-inspector > img { max-height: 170px; }
  .company-board-stage .company-board-inspector > div strong { font-size: 22px; }
  .company-board-world .company-board-node { width: 134px; }
  .company-board-world .company-board-node--place,
  .company-board-world .company-board-node--subject { width: 122px; }
  .company-board-node-dialog form { padding: 20px 16px; }
}

/* Method flow v2: one clearly readable route from evidence to publication. */
.company-method--flow { background: #e1e0da; }

.company-method--flow .company-method-intro {
  padding-bottom: 44px;
  border-bottom: 1px solid var(--ink);
}

.company-method--flow .company-protocol--flow {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 38px;
  border-top: 0;
}

.company-method--flow .company-protocol--flow li,
.company-method--flow .company-protocol--flow li + li {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 440px;
  flex-direction: column;
  padding: 18px;
  color: var(--ink);
  background: #ecebe5;
  border: 1px solid var(--ink);
  transition: color 220ms ease, background 220ms ease, transform 220ms ease, box-shadow 220ms ease;
}

.company-method--flow .company-protocol--flow li:last-child {
  color: var(--paper);
  background: var(--ink);
}

.company-method--flow .company-protocol--flow li:hover {
  z-index: 2;
  color: var(--paper);
  background: var(--ink);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.2);
  transform: translateY(-8px);
}

.company-protocol--flow li:not(:last-child)::after {
  position: absolute;
  z-index: 4;
  top: 104px;
  right: -20px;
  width: 25px;
  border-top: 2px solid var(--company-red);
  content: "";
}

.company-protocol--flow li:not(:last-child)::before {
  position: absolute;
  z-index: 5;
  top: 100px;
  right: -21px;
  width: 7px;
  height: 7px;
  content: "";
  border-top: 2px solid var(--company-red);
  border-right: 2px solid var(--company-red);
  transform: rotate(45deg);
}

.company-protocol--flow li header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid currentColor;
}

.company-protocol--flow li header span {
  font-family: var(--display);
  font-size: 30px;
  line-height: 0.8;
  letter-spacing: -0.06em;
}

.company-protocol--flow li header em {
  color: #6e6d67;
  font-size: 7px;
  font-style: normal;
  letter-spacing: 0.08em;
  text-align: right;
}

.company-protocol--flow li:last-child header em,
.company-protocol--flow li:hover header em { color: #aaa9a3; }

.company-method--flow .company-protocol--flow li > span.company-protocol-mark {
  position: relative;
  display: block;
  width: 74px;
  height: 74px;
  float: none;
  flex: 0 0 auto;
  margin: 28px 0 30px;
  overflow: hidden;
  border: 1px solid currentColor;
}

.company-protocol-mark::before,
.company-protocol-mark::after,
.company-protocol-mark i {
  position: absolute;
  content: "";
}

[data-protocol-stage="capture"] .company-protocol-mark::before {
  inset: 17px;
  border: 1px solid currentColor;
  border-radius: 50%;
}
[data-protocol-stage="capture"] .company-protocol-mark::after { top: 36px; left: 9px; width: 56px; border-top: 1px solid currentColor; }
[data-protocol-stage="capture"] .company-protocol-mark i { top: 9px; left: 36px; height: 56px; border-left: 1px solid currentColor; }

[data-protocol-stage="verify"] .company-protocol-mark::before { top: 15px; left: 15px; width: 31px; height: 31px; border: 2px solid currentColor; border-radius: 50%; }
[data-protocol-stage="verify"] .company-protocol-mark::after { top: 47px; left: 46px; width: 20px; border-top: 3px solid currentColor; transform: rotate(48deg); transform-origin: left; }
[data-protocol-stage="verify"] .company-protocol-mark i { right: 10px; bottom: 10px; width: 7px; height: 7px; background: var(--company-red); border-radius: 50%; }

[data-protocol-stage="connect"] .company-protocol-mark::before { top: 15px; left: 15px; width: 10px; height: 10px; background: currentColor; border-radius: 50%; box-shadow: 34px 7px currentColor, 12px 34px currentColor; }
[data-protocol-stage="connect"] .company-protocol-mark::after { top: 27px; left: 22px; width: 39px; height: 30px; border-top: 1px solid currentColor; border-left: 1px solid currentColor; transform: skew(-28deg) rotate(7deg); }

[data-protocol-stage="publish"] .company-protocol-mark::before { inset: 13px 18px; border: 1px solid currentColor; }
[data-protocol-stage="publish"] .company-protocol-mark::after { top: 23px; left: 26px; width: 22px; height: 16px; border-top: 1px solid currentColor; border-bottom: 1px solid currentColor; box-shadow: 0 9px 0 -8px currentColor; }
[data-protocol-stage="publish"] .company-protocol-mark i { right: 9px; bottom: 9px; width: 8px; height: 8px; background: var(--company-red); }

.company-method--flow .company-protocol--flow strong {
  margin: 0 0 12px;
  font-size: clamp(20px, 1.75vw, 28px);
  line-height: 0.95;
}

.company-method--flow .company-protocol--flow p {
  margin: 0;
  font-size: 10px;
  line-height: 1.65;
}

.company-protocol--flow dl {
  margin: auto 0 0;
  border-top: 1px solid currentColor;
}

.company-protocol--flow dl > div {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 8px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.2);
  font-size: 7px;
  line-height: 1.4;
}

.company-protocol--flow li:last-child dl > div,
.company-protocol--flow li:hover dl > div { border-color: rgba(255, 255, 255, 0.25); }
.company-protocol--flow dt { color: #777670; }
.company-protocol--flow dd { margin: 0; text-align: right; }

.company-protocol-route {
  grid-column: 2;
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  margin-top: 16px;
  padding: 22px 24px;
  color: var(--paper);
  background: var(--ink);
}

.company-protocol-route > span { color: #aaa9a3; font-size: 8px; letter-spacing: 0.08em; }
.company-protocol-route > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.company-protocol-route strong { font-family: var(--display); font-size: clamp(12px, 1.15vw, 18px); font-weight: 500; }
.company-protocol-route i { color: var(--company-red); font-size: 22px; font-style: normal; }

.company-method--flow .company-metrics { margin-top: 18px; }

@media (max-width: 1040px) {
  .company-method--flow .company-protocol--flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .company-method--flow .company-protocol--flow li::before,
  .company-method--flow .company-protocol--flow li::after { display: none; }
  .company-protocol-route { grid-template-columns: 1fr; }
  .company-protocol-route > div { flex-wrap: wrap; justify-content: flex-start; }
}

@media (max-width: 760px) {
  .company-method--flow .company-method-intro { padding-bottom: 34px; }
  .company-method--flow .company-protocol--flow {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 24px;
  }
  .company-method--flow .company-protocol--flow li,
  .company-method--flow .company-protocol--flow li + li { min-height: 390px; padding: 16px; }
  .company-method--flow .company-protocol--flow li:hover { transform: none; }
  .company-method--flow .company-protocol--flow li > span.company-protocol-mark { width: 64px; height: 64px; margin: 24px 0; }
  .company-method--flow .company-protocol--flow strong,
  .company-method--flow .company-protocol--flow p { margin-left: 0; }
  .company-protocol-route { grid-column: auto; gap: 16px; padding: 20px 16px; }
  .company-protocol-route > div { display: grid; grid-template-columns: 1fr auto; gap: 11px; }
  .company-protocol-route strong { font-size: 16px; }
  .company-protocol-route i { transform: rotate(90deg); }
}

@media (prefers-reduced-motion: reduce) {
  .company-method--flow .company-protocol--flow li { transition: none; }
}

/* Editor relation picker. */
.company-editor-relations-picker {
  overflow: hidden;
  margin-top: 8px;
  border: 1px solid #575757;
}

.company-editor-relations-picker > header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: center;
  padding: 18px;
}

.company-editor-relations-picker > header > div { display: flex; flex-direction: column; gap: 6px; }
.company-editor-relations-picker > header span { color: #8d8c86; font-size: 7px; letter-spacing: 0.09em; }
.company-editor-relations-picker > header strong { color: var(--paper); font-family: var(--display); font-size: 20px; line-height: 1; }
.company-editor-relations-picker > header p { max-width: 600px; margin: 0; color: #8d8c86; font-size: 8px; line-height: 1.55; }
.company-editor-relations-picker > header button {
  min-height: 44px;
  padding: 0 16px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--paper);
  cursor: pointer;
  font-size: 8px;
  letter-spacing: 0.06em;
}
.company-editor-relations-picker > header button:hover,
.company-editor-relations-picker > header button.has-selection { color: var(--paper); background: var(--company-red); border-color: var(--company-red); }

.company-editor-relations-panel { padding: 18px; background: #171717; border-top: 1px solid #575757; }
.company-editor-relations-panel[hidden] { display: none; }
.company-editor-form--live label.company-editor-relations-search { margin-bottom: 12px; }
.company-editor-relations-summary { display: flex; min-height: 36px; align-items: center; justify-content: space-between; color: #8d8c86; font-size: 8px; }
.company-editor-relations-summary button { padding: 7px 0; color: #aaa9a3; background: transparent; border: 0; cursor: pointer; font-size: 7px; }
.company-editor-relations-summary button:hover { color: var(--company-red); }

.company-editor-relations-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-height: 360px;
  overflow: auto;
  border-top: 1px solid #4d4d4d;
  border-left: 1px solid #4d4d4d;
  scrollbar-color: #777 #171717;
  scrollbar-width: thin;
}

.company-editor-form--live label.company-editor-relation-option {
  position: relative;
  display: block;
  gap: 0;
  min-width: 0;
  cursor: pointer;
}
.company-editor-relation-option[hidden] { display: none !important; }
.company-editor-relation-option input {
  position: absolute;
  z-index: 2;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.company-editor-form--live .company-editor-relation-option > span {
  display: flex;
  min-height: 68px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 11px 14px;
  color: var(--paper);
  background: #111;
  border-right: 1px solid #4d4d4d;
  border-bottom: 1px solid #4d4d4d;
  transition: color 150ms ease, background 150ms ease;
}
.company-editor-relation-option small { color: #777670; font-size: 6.5px; letter-spacing: 0.07em; }
.company-editor-relation-option strong { overflow: hidden; font-family: var(--display); font-size: 13px; line-height: 1.05; text-overflow: ellipsis; }
.company-editor-relation-option input:checked + span { color: var(--ink); background: var(--paper); }
.company-editor-relation-option input:checked + span small { color: var(--company-red); }
.company-editor-relation-option input:focus-visible + span { outline: 2px solid var(--company-red); outline-offset: -2px; }

@media (max-width: 760px) {
  .company-editor-relations-picker > header { grid-template-columns: 1fr; padding: 16px; }
  .company-editor-relations-picker > header button { width: 100%; }
  .company-editor-relations-panel { padding: 14px; }
  .company-editor-relations-list { grid-template-columns: 1fr; max-height: 52svh; }
}

/* Header 4 + wordmark + 4: one uninterrupted desktop row. */
@media (min-width: 761px) {
  .main-navigation {
    grid-template-columns: minmax(0, 1fr) clamp(150px, 16vw, 220px) minmax(0, 1fr);
    width: 100%;
    min-width: 0;
  }

  .nav-group {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    min-width: 0;
  }

  .wordmark {
    width: auto;
    min-width: 0;
  }

  .nav-group a,
  .nav-group button {
    min-width: 0;
    overflow: hidden;
    padding-right: clamp(4px, 0.7vw, 12px);
    padding-left: clamp(4px, 0.7vw, 12px);
    font-size: clamp(9px, 0.78vw, 13px);
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

@media (max-width: 760px) {
  .main-navigation.is-open {
    max-height: calc(100svh - 54px);
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .nav-group {
    grid-template-columns: 1fr;
  }
}

/* Editor account gate. */
.company-account {
  position: relative;
  padding: clamp(76px, 9vw, 132px) var(--side);
  color: var(--paper);
  background: #0c0c0c;
  border-top: 1px solid #4e4e4e;
  scroll-margin-top: 64px;
}

.company-materials,
#company-materials,
.company-journal,
.company-board,
.company-editor,
.company-restore {
  scroll-margin-top: 64px;
}

.company-account [hidden],
.company-editor[hidden],
.company-restore[hidden] {
  display: none !important;
}

.company-account-shell {
  display: grid;
  grid-template-columns: minmax(210px, 0.42fr) minmax(0, 1.58fr);
  margin-top: clamp(44px, 6vw, 80px);
  border: 1px solid #5b5b58;
  background: #111;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.32);
}

.company-account-index {
  display: flex;
  min-height: 430px;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  border-right: 1px solid #5b5b58;
  background:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    #090909;
  background-size: 34px 34px;
}

.company-account-index > span,
.company-account-copy > span,
.company-account-topline,
.company-account-form label > span,
.company-account-session span,
.company-restore header span {
  font-size: 8px;
  letter-spacing: 0.11em;
}

.company-account-index > strong {
  align-self: center;
  font-family: var(--display);
  font-size: clamp(104px, 12vw, 188px);
  font-weight: 500;
  line-height: 0.72;
}

.company-account-index > p {
  max-width: 200px;
  margin: 0;
  color: #8e8d87;
  font-size: 9px;
  line-height: 1.65;
}

.company-account-console {
  min-width: 0;
}

.company-account-topline {
  display: grid;
  grid-template-columns: 1fr auto auto;
  min-height: 48px;
  align-items: center;
  gap: 24px;
  padding: 0 18px;
  color: #8e8d87;
  border-bottom: 1px solid #5b5b58;
}

.company-account-topline i {
  color: var(--company-red);
  font-style: normal;
}

.company-account-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 0.72fr) minmax(180px, 0.72fr) auto;
  gap: 18px;
  align-items: end;
  padding: clamp(28px, 4.5vw, 64px);
}

.company-account-copy {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 0.4fr minmax(0, 1fr) minmax(240px, 0.85fr);
  gap: 24px;
  align-items: end;
  padding-bottom: 28px;
  border-bottom: 1px solid #383836;
}

.company-account-copy h4,
.company-restore h4 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(38px, 5vw, 76px);
  font-weight: 500;
  line-height: 0.86;
}

.company-account-copy p {
  margin: 0;
  color: #8e8d87;
  font-size: 9px;
  line-height: 1.7;
}

.company-account-form label {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 8px;
}

.company-account-form input {
  width: 100%;
  min-height: 54px;
  padding: 0 14px;
  color: var(--paper);
  background: #181818;
  border: 1px solid #565653;
  border-radius: 0;
}

.company-account-form input:focus {
  border-color: var(--paper);
  outline: 2px solid var(--company-red);
  outline-offset: -2px;
}

.company-account-form > button,
.company-account-session button,
.company-restore button {
  min-height: 54px;
  padding: 0 22px;
  color: var(--paper);
  background: transparent;
  border: 1px solid #686864;
  font-size: 8px;
  letter-spacing: 0.08em;
  cursor: pointer;
}

.company-account-form > button {
  color: var(--ink);
  background: var(--paper);
  border-color: var(--paper);
}

.company-account-form > button:hover,
.company-account-session button:hover,
.company-restore button:hover {
  color: var(--paper);
  background: var(--company-red);
  border-color: var(--company-red);
}

.company-account-demo {
  grid-column: 1 / -1;
  margin: 10px 0 0;
  color: #777670;
  font-size: 8px;
  line-height: 1.6;
}

.company-account-demo strong {
  margin-right: 10px;
  color: var(--company-red);
}

.company-account-session {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 382px;
  align-items: center;
  gap: 32px;
  padding: clamp(30px, 5vw, 72px);
}

.company-account-session strong {
  display: block;
  overflow-wrap: anywhere;
  margin-top: 18px;
  font-family: var(--display);
  font-size: clamp(34px, 5vw, 74px);
  font-weight: 500;
  line-height: 0.9;
}

.company-account-session p {
  max-width: 580px;
  margin: 22px 0 0;
  color: #8e8d87;
  font-size: 10px;
  line-height: 1.7;
}

.company-account-session nav {
  display: grid;
  gap: 10px;
}

.company-account-status {
  min-height: 28px;
  margin: 0;
  padding: 8px 18px;
  color: #b8b7b0;
  border-top: 1px solid #383836;
  font-size: 8px;
  letter-spacing: 0.06em;
}

.company-restore {
  margin-top: 22px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--paper);
}

.company-restore > header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.65fr);
  gap: 30px;
  align-items: end;
  padding: clamp(24px, 4vw, 52px);
  border-bottom: 1px solid var(--ink);
}

.company-restore h4 {
  margin-top: 12px;
}

.company-restore > header p {
  margin: 0;
  font-size: 9px;
  line-height: 1.7;
}

.company-restore-list {
  min-height: 88px;
}

.company-restore-list > p {
  margin: 0;
  padding: 32px;
  color: #72716d;
  font-size: 9px;
  letter-spacing: 0.08em;
}

@media (max-width: 900px) {
  .company-account-shell { grid-template-columns: 150px minmax(0, 1fr); }
  .company-account-form { grid-template-columns: 1fr 1fr; }
  .company-account-form > button { min-height: 54px; }
  .company-account-copy { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .company-account { padding: 72px 12px; }
  .company-account-shell { grid-template-columns: 1fr; }
  .company-account-index { display: none; }
  .company-account-topline { grid-template-columns: 1fr auto; gap: 10px; padding: 0 12px; }
  .company-account-topline strong { display: none; }
  .company-account-form { grid-template-columns: 1fr; gap: 16px; padding: 28px 16px; }
  .company-account-copy { grid-template-columns: 1fr; gap: 16px; padding-bottom: 22px; }
  .company-account-copy h4 { font-size: clamp(40px, 14vw, 64px); }
  .company-account-form > button { width: 100%; }
  .company-account-session { grid-template-columns: 1fr; min-height: 0; padding: 34px 16px; }
  .company-account-session nav { grid-template-columns: 1fr; }
  .company-account-session button { width: 100%; }
  .company-restore > header { grid-template-columns: 1fr; gap: 18px; padding: 28px 16px; }
}

.company-restore-entry {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  border-bottom: 1px solid var(--ink);
}

.company-restore-entry:last-child { border-bottom: 0; }

.company-restore-entry > div {
  display: grid;
  grid-template-columns: minmax(150px, 0.35fr) minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  min-height: 82px;
  padding: 16px 22px;
}

.company-restore-entry span,
.company-restore-entry time {
  color: #6f6e69;
  font-size: 8px;
  letter-spacing: 0.07em;
}

.company-restore-entry strong {
  overflow: hidden;
  font-family: var(--display);
  font-size: 22px;
  font-weight: 500;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.company-restore-entry > button {
  min-width: 150px;
  color: var(--ink);
  border: 0;
  border-left: 1px solid var(--ink);
}

/* Existing record editor and reversible deletion. */
.record-editor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.record-editor-actions[hidden] { display: none !important; }

.record-editor-actions button {
  min-height: 46px;
  padding: 0 18px;
  color: var(--ink);
  background: transparent;
  border: 1px solid currentColor;
  font-size: 8px;
  letter-spacing: 0.08em;
  cursor: pointer;
}

.record-editor-actions button:last-child { color: #9f2118; }
.record-editor-actions button:hover { color: var(--paper); background: var(--ink); border-color: var(--ink); }
.record-editor-actions button:last-child:hover { color: var(--paper); background: var(--company-red); border-color: var(--company-red); }

body:is([data-record-type="anomaly"], [data-record-type="incident"]) .record-editor-actions button {
  color: var(--paper);
  border-color: rgba(255, 255, 255, 0.76);
}

body:is([data-record-type="anomaly"], [data-record-type="incident"]) .record-editor-actions button:last-child { color: #ff796f; }
body:is([data-record-type="anomaly"], [data-record-type="incident"]) .record-editor-actions button:hover { color: var(--ink); background: var(--paper); }
body:is([data-record-type="anomaly"], [data-record-type="incident"]) .record-editor-actions button:last-child:hover { color: var(--paper); background: var(--company-red); border-color: var(--company-red); }

body.record-editor-open { overflow: hidden; }

.record-editor-dialog,
.record-delete-dialog {
  width: min(1180px, calc(100vw - 24px));
  max-width: none;
  max-height: 94svh;
  margin: auto;
  padding: 0;
  color: var(--paper);
  background: #101010;
  border: 1px solid #6c6c67;
  border-radius: 0;
  box-shadow: 0 40px 140px rgba(0, 0, 0, 0.7);
}

.record-editor-dialog { overflow: hidden; }

.record-editor-dialog::backdrop,
.record-delete-dialog::backdrop {
  background: rgba(0, 0, 0, 0.82);
}

.record-editor-dialog:not([open]),
.record-delete-dialog:not([open]) { display: none; }

.record-editor-form {
  max-height: 94svh;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-color: #777 #111;
}

.record-editor-dialog-heading {
  position: sticky;
  top: 0;
  z-index: 10;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 72px;
  min-height: 126px;
  background: rgba(16, 16, 16, 0.96);
  border-bottom: 1px solid #5a5a56;
  backdrop-filter: blur(16px);
}

.record-editor-dialog-heading > div {
  display: grid;
  grid-template-columns: minmax(150px, 0.35fr) minmax(0, 1fr);
  gap: 24px;
  align-items: end;
  padding: 24px 28px;
}

.record-editor-dialog-heading span,
.record-editor-identity label > span,
.record-editor-cover > div > span,
.record-editor-collection header span,
.record-editor-relation-search > span {
  color: #878681;
  font-size: 8px;
  letter-spacing: 0.1em;
}

.record-editor-dialog-heading h2 {
  margin: 0;
  font-family: var(--display);
  font-size: clamp(38px, 5vw, 72px);
  font-weight: 500;
  line-height: 0.82;
}

.record-editor-dialog-heading > button {
  color: var(--paper);
  background: transparent;
  border: 0;
  border-left: 1px solid #5a5a56;
  font-size: 38px;
  font-weight: 200;
  cursor: pointer;
}

.record-editor-dialog-heading > button:hover { color: var(--ink); background: var(--paper); }

.record-editor-identity {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  padding: clamp(26px, 4vw, 52px);
  border-bottom: 1px solid #5a5a56;
}

.record-editor-identity label {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 8px;
}

.record-editor-wide { grid-column: 1 / -1; }

.record-editor-form input,
.record-editor-form textarea {
  width: 100%;
  color: var(--paper);
  background: #191919;
  border: 1px solid #555550;
  border-radius: 0;
  font: inherit;
}

.record-editor-form input {
  min-height: 52px;
  padding: 0 14px;
}

.record-editor-form textarea {
  min-height: 104px;
  padding: 14px;
  line-height: 1.6;
  resize: vertical;
}

.record-editor-form input[readonly] {
  color: #85847f;
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.025) 0 8px, transparent 8px 16px),
    #121212;
  cursor: not-allowed;
}

.record-editor-form input:focus,
.record-editor-form textarea:focus {
  border-color: var(--paper);
  outline: 2px solid var(--company-red);
  outline-offset: -2px;
}

.record-editor-cover {
  display: grid;
  grid-template-columns: minmax(260px, 0.82fr) minmax(0, 1.18fr);
  min-height: 0;
  border-bottom: 1px solid #5a5a56;
}

.record-editor-cover > div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(26px, 4vw, 52px);
  border-right: 1px solid #5a5a56;
}

.record-editor-cover > div strong {
  max-width: 360px;
  margin-top: 16px;
  font-family: var(--display);
  font-size: clamp(34px, 4vw, 58px);
  font-weight: 500;
  line-height: 0.9;
}

.record-editor-cover > div p,
.record-editor-help {
  max-width: 440px;
  margin: 22px 0 0;
  color: #85847f;
  font-size: 9px;
  line-height: 1.7;
}

.record-editor-cover > label {
  position: relative;
  min-width: 0;
  min-height: 0;
  height: clamp(300px, 34vw, 420px);
  overflow: hidden;
  cursor: pointer;
}

.record-editor-cover > label input {
  position: absolute;
  z-index: 3;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.record-editor-cover img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  filter: grayscale(1) contrast(1.06) brightness(0.72);
}

.record-editor-cover label > span {
  position: absolute;
  right: 18px;
  bottom: 18px;
  padding: 14px 18px;
  color: var(--ink);
  background: var(--paper);
  font-size: 8px;
  letter-spacing: 0.08em;
  pointer-events: none;
}

.record-editor-cover label:hover > span { color: var(--paper); background: var(--company-red); }
.record-editor-cover > label:focus-within { outline: 2px solid var(--company-red); outline-offset: -2px; }
.record-editor-image-status { min-height: 48px; }

.record-editor-collection {
  border-bottom: 1px solid #5a5a56;
}

.record-editor-collection > header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  border-bottom: 1px solid #5a5a56;
}

.record-editor-collection > header > div {
  padding: 24px 28px;
}

.record-editor-collection h3 {
  margin: 10px 0 0;
  font-family: var(--display);
  font-size: clamp(32px, 4vw, 56px);
  font-weight: 500;
  line-height: 0.9;
}

.record-editor-collection > header > button {
  min-width: 190px;
  padding: 0 20px;
  color: var(--paper);
  background: transparent;
  border: 0;
  border-left: 1px solid #5a5a56;
  font-size: 8px;
  letter-spacing: 0.08em;
  cursor: pointer;
}

.record-editor-collection > header > button:hover { color: var(--ink); background: var(--paper); }

.record-editor-fields-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.record-editor-field-row {
  display: grid;
  grid-template-columns: minmax(120px, 0.42fr) minmax(0, 1fr) 44px;
  min-height: 92px;
  border-right: 1px solid #4d4d49;
  border-bottom: 1px solid #4d4d49;
}

.record-editor-field-row input,
.record-editor-field-row textarea {
  min-height: 92px;
  border: 0;
  border-right: 1px solid #4d4d49;
}

.record-editor-field-row textarea { resize: none; }

.record-editor-remove {
  color: #9e9d97;
  background: transparent;
  border: 0;
  font-size: 22px;
  cursor: pointer;
}

.record-editor-remove:hover { color: var(--paper); background: var(--company-red); }

.record-editor-help {
  max-width: none;
  margin: 0;
  padding: 14px 28px;
  border-bottom: 1px solid #3f3f3c;
}

.record-editor-section-row {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) 160px;
  border-bottom: 1px solid #4d4d49;
}

.record-editor-section-row:last-child { border-bottom: 0; }

.record-editor-section-row > span {
  display: grid;
  place-items: center;
  color: #777670;
  border-right: 1px solid #4d4d49;
  font-family: var(--display);
  font-size: 36px;
}

.record-editor-section-row > div {
  min-width: 0;
}

.record-editor-section-content > [data-record-editor-section-title] {
  min-height: 76px;
  padding: 18px;
  border: 0;
  border-bottom: 1px solid #4d4d49;
  font-family: var(--display);
  font-size: 24px;
}

.record-editor-section-content > [data-record-editor-section-paragraphs] {
  min-height: 190px;
  padding: 18px;
  border: 0;
  border-bottom: 1px solid #4d4d49;
}

.record-editor-section-image {
  display: grid;
  grid-template-columns: minmax(170px, 0.46fr) minmax(220px, 1fr);
  grid-template-rows: minmax(92px, auto) auto;
  min-width: 0;
  background: #141414;
}

.record-editor-section-image > div:first-child {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  padding: 18px;
  border-right: 1px solid #4d4d49;
}

.record-editor-section-image > div:first-child span {
  color: #85847f;
  font-size: 7px;
  letter-spacing: 0.1em;
}

.record-editor-section-image > div:first-child strong {
  color: #aaa9a3;
  font-family: var(--display);
  font-size: 18px;
  font-weight: 500;
  line-height: 1;
}

.record-editor-section-image > img {
  grid-column: 2;
  grid-row: 1 / 3;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 230px;
  max-height: 330px;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05) brightness(0.82);
}

.record-editor-section-image > img[hidden] { display: none; }

.record-editor-section-caption {
  grid-column: 1;
  display: grid;
  gap: 7px;
  padding: 12px 14px 14px;
  border-top: 1px solid #4d4d49;
}

.record-editor-section-caption[hidden] { display: none; }
.record-editor-section-caption > span { color: #85847f; font-size: 7px; letter-spacing: 0.08em; }
.record-editor-section-caption > input { min-height: 40px; padding: 0 11px; border: 1px solid #4d4d49; }

.record-editor-section-image > div:last-child {
  grid-column: 1 / -1;
  display: flex;
  min-height: 50px;
  border-top: 1px solid #4d4d49;
}

.record-editor-section-image button {
  flex: 1;
  min-height: 50px;
  color: #aaa9a3;
  background: transparent;
  border: 0;
  font-size: 7px;
  letter-spacing: 0.08em;
  cursor: pointer;
}

.record-editor-section-image .record-editor-section-image-add {
  color: var(--ink);
  background: var(--paper);
  font-weight: 700;
}

.record-editor-section-image .record-editor-section-image-add:hover {
  color: var(--paper);
  background: var(--company-red);
}

.record-editor-section-image button + button { border-left: 1px solid #4d4d49; }
.record-editor-section-image button:hover { color: var(--ink); background: var(--paper); }
.record-editor-section-image .record-editor-section-image-remove:hover { color: var(--paper); background: var(--company-red); }

.record-editor-section-image-file {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  min-height: 0 !important;
  padding: 0 !important;
  opacity: 0;
  pointer-events: none;
}

.record-editor-paragraph-row {
  border-bottom: 1px solid #4d4d49;
}

.record-editor-paragraph-row > header {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding-left: 16px;
  color: #8f8e88;
  background: #141414;
  border-bottom: 1px solid #3d3d3a;
  font-size: 8px;
  letter-spacing: 0.09em;
}

.record-editor-paragraph-row > header > div {
  display: flex;
  align-self: stretch;
}

.record-editor-paragraph-row > header button,
.record-editor-add-paragraph,
.record-editor-paragraph-media-item button {
  min-height: 44px;
  padding: 0 14px;
  color: #aaa9a3;
  background: transparent;
  border: 0;
  border-left: 1px solid #3d3d3a;
  font-size: 7px;
  letter-spacing: 0.08em;
  cursor: pointer;
}

.record-editor-paragraph-row > header button:hover,
.record-editor-add-paragraph:hover,
.record-editor-paragraph-media-item button:hover {
  color: var(--ink);
  background: var(--paper);
}

.record-editor-paragraph-row > header .record-editor-paragraph-remove:hover,
.record-editor-paragraph-media-item .record-editor-paragraph-media-remove:hover {
  color: var(--paper);
  background: var(--company-red);
}

.record-editor-paragraph-row > [data-record-editor-paragraph-text] {
  min-height: 142px;
  padding: 18px;
  border: 0;
  resize: vertical;
}

.record-editor-add-paragraph {
  width: 100%;
  min-height: 50px;
  border-left: 0;
}

.record-editor-paragraph-media-file {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  min-height: 0 !important;
  padding: 0 !important;
  opacity: 0;
  pointer-events: none;
}

.record-editor-paragraph-media-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  background: #4d4d49;
}

.record-editor-paragraph-media-list:empty { display: none; }

.record-editor-paragraph-media-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: 168px auto;
  min-width: 0;
  margin: 0;
  background: #111;
}

.record-editor-paragraph-media-item img {
  grid-column: 1 / -1;
  display: block;
  width: 100%;
  height: 168px;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05);
}

.record-editor-paragraph-media-item > input[type="text"] {
  min-width: 0;
  min-height: 50px;
  padding: 0 14px;
  border: 0;
  border-top: 1px solid #3d3d3a;
  font-size: 9px;
}

.record-editor-paragraph-media-item > div {
  display: flex;
  border-top: 1px solid #3d3d3a;
}

.record-editor-paragraph-media-item button { min-height: 50px; }

.record-editor-remove-section {
  color: #a3a29c;
  background: transparent;
  border: 0;
  font-size: 7px;
  letter-spacing: 0.08em;
  cursor: pointer;
}

.record-editor-remove-section:hover { color: var(--paper); background: var(--company-red); }

.record-editor-relations > header > strong {
  display: grid;
  min-width: 150px;
  place-items: center;
  color: #898883;
  border-left: 1px solid #5a5a56;
  font-size: 8px;
  letter-spacing: 0.08em;
}

.record-editor-relation-search {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 24px;
  border-bottom: 1px solid #4d4d49;
}

.record-editor-relation-search input { flex: 1; }

.record-editor-relations-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-height: 420px;
  overflow: auto;
}

.record-editor-relation-option {
  position: relative;
  min-width: 0;
  border-right: 1px solid #4d4d49;
  border-bottom: 1px solid #4d4d49;
  cursor: pointer;
}

.record-editor-relation-option[hidden] { display: none; }
.record-editor-relation-option input {
  position: absolute;
  z-index: 2;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.record-editor-relation-option > span {
  position: relative;
  z-index: 1;
  display: flex;
  min-height: 74px;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  padding: 12px 16px;
}

.record-editor-relation-option small {
  color: #777670;
  font-size: 7px;
  letter-spacing: 0.07em;
}

.record-editor-relation-option strong {
  overflow: hidden;
  font-family: var(--display);
  font-size: 16px;
  font-weight: 500;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.record-editor-relation-option input:checked + span { color: var(--ink); background: var(--paper); }
.record-editor-relation-option input:checked + span small { color: var(--company-red); }
.record-editor-relation-option input:focus-visible + span { outline: 2px solid var(--company-red); outline-offset: -2px; }

.record-editor-submit {
  position: sticky;
  bottom: 0;
  z-index: 8;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 78px;
  align-items: stretch;
  background: rgba(16, 16, 16, 0.96);
  border-top: 1px solid #5a5a56;
  backdrop-filter: blur(16px);
}

.record-editor-submit p {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 16px 24px;
  color: #8b8a85;
  font-size: 8px;
  line-height: 1.5;
}

.record-editor-submit button {
  min-width: 230px;
  padding: 0 24px;
  color: var(--ink);
  background: var(--paper);
  border: 0;
  border-left: 1px solid #5a5a56;
  font-size: 8px;
  letter-spacing: 0.08em;
  cursor: pointer;
}

.record-editor-submit button:hover { color: var(--paper); background: var(--company-red); }
.record-editor-submit button:disabled { color: #777; background: #282828; cursor: wait; }

.record-delete-dialog { width: min(640px, calc(100vw - 24px)); }

.record-delete-dialog > form {
  padding: clamp(28px, 6vw, 72px);
}

.record-delete-dialog span {
  color: var(--company-red);
  font-size: 8px;
  letter-spacing: 0.1em;
}

.record-delete-dialog h2 {
  margin: 24px 0;
  font-family: var(--display);
  font-size: clamp(54px, 9vw, 96px);
  font-weight: 500;
  line-height: 0.82;
}

.record-delete-dialog p {
  margin: 0;
  color: #aaa9a2;
  font-size: 10px;
  line-height: 1.75;
}

.record-delete-dialog strong {
  display: block;
  margin: 34px 0;
  padding: 18px;
  color: var(--paper);
  border: 1px solid #5d5d59;
  font-family: var(--display);
  font-size: 28px;
  text-align: center;
}

.record-delete-dialog form > div {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 10px;
}

.record-delete-dialog button {
  min-height: 58px;
  color: var(--paper);
  background: transparent;
  border: 1px solid #686864;
  font-size: 8px;
  cursor: pointer;
}

.record-delete-dialog button[type="submit"] { background: #70130d; border-color: #a1241b; }
.record-delete-dialog button:hover { background: var(--company-red); border-color: var(--company-red); }
.record-delete-dialog [role="alert"] { min-height: 24px; margin-top: 14px; color: #ff776e; }

@media (max-width: 760px) {
  .company-restore-entry { grid-template-columns: 1fr; }
  .company-restore-entry > div { grid-template-columns: 1fr; gap: 8px; min-height: 0; padding: 18px 16px; }
  .company-restore-entry strong { white-space: normal; }
  .company-restore-entry > button { min-height: 54px; border-top: 1px solid var(--ink); border-left: 0; }

  .record-editor-actions { flex-direction: column; }
  .record-editor-actions button { width: 100%; }
  .record-editor-dialog,
  .record-delete-dialog { width: 100vw; max-height: 100svh; border-right: 0; border-left: 0; }
  .record-editor-form { max-height: 100svh; }
  .record-editor-dialog-heading { grid-template-columns: minmax(0, 1fr) 58px; min-height: 104px; }
  .record-editor-dialog-heading > div { grid-template-columns: 1fr; gap: 8px; padding: 16px; }
  .record-editor-dialog-heading h2 { font-size: 38px; }
  .record-editor-identity { grid-template-columns: 1fr; gap: 18px; padding: 26px 16px; }
  .record-editor-wide { grid-column: auto; }
  .record-editor-cover { grid-template-columns: 1fr; }
  .record-editor-cover > div { padding: 26px 16px; border-right: 0; border-bottom: 1px solid #5a5a56; }
  .record-editor-cover > label { height: clamp(260px, 76vw, 360px); }
  .record-editor-cover img { min-height: 0; }
  .record-editor-collection > header { grid-template-columns: 1fr; }
  .record-editor-collection > header > div { padding: 20px 16px; }
  .record-editor-collection > header > button { min-height: 52px; border-top: 1px solid #5a5a56; border-left: 0; }
  .record-editor-fields-list { grid-template-columns: 1fr; }
  .record-editor-field-row {
    grid-template-columns: minmax(0, 1fr) 42px;
    grid-template-areas: "term remove" "value remove";
    border-right: 0;
  }
  .record-editor-field-row input { grid-area: term; min-height: 54px; border-bottom: 1px solid #4d4d49; }
  .record-editor-field-row textarea { grid-area: value; min-height: 96px; }
  .record-editor-remove { grid-area: remove; }
  .record-editor-section-row { grid-template-columns: 46px minmax(0, 1fr); }
  .record-editor-section-content > [data-record-editor-section-title] { min-height: 64px; }
  .record-editor-section-content > [data-record-editor-section-paragraphs] { min-height: 180px; }
  .record-editor-section-image { grid-template-columns: 1fr; grid-template-rows: auto; }
  .record-editor-section-image > div:first-child { min-height: 92px; border-right: 0; }
  .record-editor-section-image > img { grid-column: 1; grid-row: auto; min-height: 230px; max-height: 320px; border-top: 1px solid #4d4d49; }
  .record-editor-section-caption { grid-column: 1; }
  .record-editor-paragraph-row > header { align-items: stretch; flex-direction: column; gap: 0; padding: 14px 0 0 14px; }
  .record-editor-paragraph-row > header > div { margin-top: 12px; margin-left: -14px; border-top: 1px solid #3d3d3a; }
  .record-editor-paragraph-row > header button { flex: 1; border-left: 0; }
  .record-editor-paragraph-row > header button + button { border-left: 1px solid #3d3d3a; }
  .record-editor-paragraph-row > [data-record-editor-paragraph-text] { min-height: 180px; border-bottom: 0; }
  .record-editor-paragraph-media-list { grid-template-columns: 1fr; }
  .record-editor-paragraph-media-item { grid-template-rows: 210px auto; }
  .record-editor-paragraph-media-item img { height: 210px; }
  .record-editor-paragraph-media-item { grid-template-columns: 1fr; }
  .record-editor-paragraph-media-item > div { border-top: 0; }
  .record-editor-paragraph-media-item button { flex: 1; border-top: 1px solid #3d3d3a; }
  .record-editor-remove-section { grid-column: 1 / -1; min-height: 46px; border-top: 1px solid #4d4d49; }
  .record-editor-relations > header > strong { min-height: 44px; border-top: 1px solid #5a5a56; border-left: 0; }
  .record-editor-relation-search { align-items: stretch; flex-direction: column; padding: 14px 16px; }
  .record-editor-relations-list { grid-template-columns: 1fr; max-height: none; overflow: visible; }
  .record-editor-submit { grid-template-columns: 1fr; }
  .record-editor-submit button { min-height: 64px; border-top: 1px solid #5a5a56; border-left: 0; }
  .record-delete-dialog > form { padding: 38px 18px; }
  .record-delete-dialog form > div { grid-template-columns: 1fr; }
}

.editor-maintenance-status {
  min-height: 18px;
  margin: 0;
  color: #8d8c86;
  font-size: 8px;
  letter-spacing: 0.06em;
}

html.site-maintenance-locked,
html.site-maintenance-locked body { overflow: hidden !important; background: #050505; }

.site-maintenance-gate {
  position: fixed;
  z-index: 100000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  color: #e8e7df;
  background: #050505;
}

.site-maintenance-gate::before {
  position: absolute;
  inset: 0;
  content: "";
  opacity: 0.16;
  background-image: linear-gradient(rgba(255,255,255,.12) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.12) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(circle at center, #000, transparent 82%);
}

.site-maintenance-panel {
  position: relative;
  width: min(760px, 100%);
  padding: clamp(28px, 6vw, 72px);
  border: 1px solid #3f3f3b;
  background: rgba(8,8,8,.96);
}

.site-maintenance-panel > span { color: #77766f; font-size: 8px; letter-spacing: .12em; }
.site-maintenance-panel h1 { margin: 24px 0; font-family: var(--display); font-size: clamp(38px, 7vw, 86px); font-weight: 500; line-height: .9; }
.site-maintenance-panel p { max-width: 580px; color: #aaa9a3; font-size: 11px; line-height: 1.7; }
.site-maintenance-panel button { min-height: 52px; padding: 0 22px; color: #050505; background: #e8e7df; border: 1px solid #e8e7df; cursor: pointer; font-size: 9px; letter-spacing: .08em; }
.site-maintenance-panel button:hover { color: #e8e7df; background: #050505; }
.site-maintenance-panel form { display: grid; grid-template-columns: 1fr 1fr auto; gap: 1px; margin-top: 24px; background: #3f3f3b; border: 1px solid #3f3f3b; }
.site-maintenance-panel form[hidden] { display: none; }
.site-maintenance-panel label { display: grid; gap: 7px; padding: 10px 12px; background: #0b0b0b; }
.site-maintenance-panel label span { color: #77766f; font-size: 7px; }
.site-maintenance-panel input { min-height: 30px; padding: 0; color: #e8e7df; background: transparent; border: 0; outline: 0; }
.site-maintenance-panel em { display: block; min-height: 18px; margin-top: 14px; color: #a43a31; font-size: 8px; font-style: normal; }

@media (max-width: 760px) {
  .lore-section-image { width: 100%; max-width: none; margin: 22px 0 28px; }
  .lore-section-image .lore-media img { height: auto; aspect-ratio: 4 / 3; }
  .related-records--final { margin: 44px var(--side) 0; padding-bottom: 46px; }
  .site-maintenance-gate { padding: 12px; }
  .site-maintenance-panel { padding: 28px 20px; }
  .site-maintenance-panel form { grid-template-columns: 1fr; }
}

/* Method v3: restrained typographic workflow. */
.company-method--simple { background: #e1e0da; }
.company-method--simple .company-method-intro { padding-bottom: 38px; border-bottom: 1px solid var(--ink); }

.company-method--simple .company-protocol--simple {
  grid-column: 2;
  display: block;
  margin: 24px 0 0;
  border-top: 0;
}

.company-method--simple .company-protocol--simple li,
.company-method--simple .company-protocol--simple li + li {
  display: grid;
  grid-template-columns: 54px minmax(180px, 0.32fr) minmax(220px, 1fr) minmax(250px, 0.46fr);
  gap: clamp(18px, 3vw, 50px);
  min-height: 150px;
  align-items: center;
  padding: 24px 0;
  color: var(--ink);
  background: transparent;
  border-top: 1px solid var(--ink);
  border-right: 0;
  transition: color 180ms ease, background 180ms ease, padding 180ms ease;
}
.company-method--simple .company-protocol--simple li:last-child { border-bottom: 1px solid var(--ink); }
.company-method--simple .company-protocol--simple li:hover { padding-right: 18px; padding-left: 18px; color: var(--paper); background: var(--ink); }

.company-method--simple .company-protocol--simple li > span {
  width: auto;
  float: none;
  margin: 0;
  color: #74736d;
  font-family: var(--display);
  font-size: 36px;
  line-height: 0.8;
  letter-spacing: -0.06em;
}
.company-method--simple .company-protocol--simple li:hover > span { color: var(--company-red); }
.company-protocol--simple li > div { display: flex; min-width: 0; flex-direction: column; gap: 7px; }
.company-protocol--simple em { color: #74736d; font-size: 7px; font-style: normal; letter-spacing: 0.09em; }
.company-method--simple .company-protocol--simple strong { margin: 0; font-size: clamp(19px, 1.7vw, 27px); line-height: 0.95; }
.company-method--simple .company-protocol--simple p { margin: 0; font-size: 11px; line-height: 1.65; }

.company-protocol--simple dl { margin: 0; border-top: 1px solid currentColor; }
.company-protocol--simple dl > div { display: grid; grid-template-columns: 68px minmax(0, 1fr); gap: 10px; padding: 9px 0; border-bottom: 1px solid rgba(0, 0, 0, 0.24); font-size: 7px; line-height: 1.4; }
.company-protocol--simple li:hover dl > div { border-color: rgba(255, 255, 255, 0.25); }
.company-protocol--simple dt { color: #74736d; }
.company-protocol--simple dd { margin: 0; text-align: right; }
.company-method--simple .company-metrics { margin-top: 28px; }

@media (max-width: 1040px) {
  .company-method--simple .company-protocol--simple li,
  .company-method--simple .company-protocol--simple li + li {
    grid-template-columns: 46px minmax(160px, 0.4fr) minmax(0, 1fr);
  }
  .company-protocol--simple dl { grid-column: 2 / -1; }
}

@media (max-width: 760px) {
  .company-method--simple .company-method-intro { padding-bottom: 30px; }
  .company-method--simple .company-protocol--simple { grid-column: auto; margin-top: 14px; }
  .company-method--simple .company-protocol--simple li,
  .company-method--simple .company-protocol--simple li + li {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 12px 14px;
    min-height: 0;
    padding: 22px 0;
  }
  .company-method--simple .company-protocol--simple li:hover { padding-right: 12px; padding-left: 12px; }
  .company-method--simple .company-protocol--simple li > span { grid-row: 1 / span 3; font-size: 28px; }
  .company-method--simple .company-protocol--simple strong,
  .company-method--simple .company-protocol--simple p { margin-left: 0; }
  .company-method--simple .company-protocol--simple p,
  .company-protocol--simple dl { grid-column: 2; }
}

@media (prefers-reduced-motion: reduce) {
  .company-method--simple .company-protocol--simple li { transition: none; }
}

/* Desktop field archive: stable masonry columns without overlaps. */
@media (min-width: 761px) {
  .company-process-grid {
    display: block;
    column-count: 4;
    column-gap: clamp(14px, 1.7vw, 26px);
  }

  .company-process-shot,
  .company-process-shot--wide,
  .company-process-shot--tall {
    display: inline-block;
    width: 100%;
    margin: 0 0 clamp(14px, 1.7vw, 26px);
    break-inside: avoid;
    vertical-align: top;
  }

  .company-process-shot--wide { aspect-ratio: 4 / 3; }
  .company-process-shot--tall { aspect-ratio: 3 / 5; }
}

@media (min-width: 761px) and (max-width: 1120px) {
  .company-process-grid { column-count: 3; }
}

/* Change journal v3: compact revision ledger. */
.company-journal-list { background: #dfded8; }
.company-journal-day { border-top: 1px solid var(--ink); }
.company-journal-day:last-child { border-bottom: 1px solid var(--ink); }

.company-journal-day > summary {
  grid-template-columns: minmax(130px, 0.22fr) minmax(0, 1fr) 132px;
  min-height: 136px;
  padding: 22px 24px;
  transition: color 180ms ease, background 180ms ease;
}
.company-journal-day > summary:hover { background: #d2d1cb; }
.company-journal-day[open] > summary { color: var(--paper); background: var(--ink); }
.company-journal-day[open] .company-journal-date time { color: #aaa9a3; }
.company-journal-day[open] .company-journal-action i { border-color: var(--paper); }
.company-journal-day[open] .company-journal-action i:hover { color: var(--ink); background: var(--paper); }

.company-journal-date strong { color: var(--company-red); font-size: 9px; }
.company-journal-date time { font-family: var(--display); font-size: 18px; letter-spacing: -0.03em; }
.company-journal-day h4 { font-size: clamp(28px, 3vw, 48px); }

.company-journal-details {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  padding: 18px;
  background: #ecebe5;
  border-top: 0;
}
.company-journal-details section,
.company-journal-details section:last-child {
  padding: 18px;
  border: 1px solid var(--ink);
  border-right: 0;
}
.company-journal-details section:last-child { border-right: 1px solid var(--ink); }
.company-journal-details h5 { display: flex; min-height: 28px; align-items: center; margin-bottom: 10px; color: var(--ink); border-bottom: 1px solid var(--ink); }
.company-journal-details a { min-height: 46px; padding: 9px 0; }
.company-journal-details a:hover { color: var(--paper); background: var(--ink); padding-right: 8px; padding-left: 8px; }
.company-journal-details a:hover span { color: #aaa9a3; }
.company-journal-events li > div {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 10px;
  min-height: 46px;
  align-items: center;
  padding: 9px 0;
  color: #77766f;
}
.company-journal-events li > div span { font-size: 7px; }
.company-journal-events li > div strong { color: var(--ink); font-size: 9px; line-height: 1.3; overflow-wrap: anywhere; }

@media (max-width: 760px) {
  .company-journal-day > summary { grid-template-columns: 1fr auto; gap: 14px; padding: 20px 14px; }
  .company-journal-date { grid-column: 1 / -1; flex-direction: row; align-items: baseline; justify-content: space-between; }
  .company-journal-date time { font-size: 16px; }
  .company-journal-details { grid-template-columns: 1fr; padding: 10px; }
  .company-journal-details section,
  .company-journal-details section:last-child { padding: 14px; border-right: 1px solid var(--ink); border-bottom: 0; }
  .company-journal-details section:last-child { border-bottom: 1px solid var(--ink); }
}

@media (prefers-reduced-motion: reduce) {
  .company-journal-day > summary { transition: none; }
}

/* Editor mode v2: one compact access point and progressive tools. */
.company-editor-hub {
  padding: clamp(78px, 9vw, 150px) var(--side);
  color: var(--paper);
  background:
    radial-gradient(circle at 82% 12%, rgba(255, 255, 255, 0.055), transparent 26%),
    #0b0b0b;
}

.company-editor-hub > .company-module-heading {
  min-height: 0;
  color: var(--paper);
}
.company-editor-hub > .company-module-heading p { color: #aaa9a3; }

.editor-mode-card {
  margin-top: clamp(34px, 5vw, 72px);
  border: 1px solid #5a5a56;
  background: #101010;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.24);
}

.editor-mode-topline {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  color: #85847f;
  border-bottom: 1px solid #5a5a56;
  font-size: 7px;
  letter-spacing: 0.1em;
}

.editor-mode-topline i {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #aaa9a3;
  font-style: normal;
}

.editor-mode-topline i::before {
  width: 7px;
  height: 7px;
  content: "";
  border-radius: 50%;
  background: var(--company-red);
}

.editor-mode-locked,
.editor-mode-home {
  padding: clamp(28px, 4vw, 54px);
}

.editor-mode-locked > span,
.editor-mode-identity span,
.editor-work-heading span,
.editor-login-copy > span {
  color: #8d8c86;
  font-size: 8px;
  letter-spacing: 0.1em;
}

.editor-mode-locked h4 {
  max-width: 720px;
  margin: 18px 0 12px;
  font-family: var(--display);
  font-size: clamp(42px, 6vw, 76px);
  font-weight: 500;
  line-height: 0.84;
  letter-spacing: -0.045em;
}

.editor-mode-locked p,
.editor-mode-identity p {
  margin: 0;
  color: #aaa9a3;
  font-size: 10px;
  line-height: 1.6;
}

.editor-mode-locked > button {
  min-width: 220px;
  min-height: 58px;
  margin-top: 30px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--paper);
  cursor: pointer;
  font-size: 9px;
  letter-spacing: 0.08em;
}

.editor-mode-locked > button:hover { color: var(--paper); background: var(--company-red); border-color: var(--company-red); }

.editor-mode-identity {
  display: flex;
  gap: 28px;
  align-items: flex-end;
  justify-content: space-between;
  padding-bottom: 26px;
  border-bottom: 1px solid #51514d;
}

.editor-mode-identity > div { display: flex; min-width: 0; flex-direction: column; gap: 10px; }

.editor-mode-identity strong {
  overflow-wrap: anywhere;
  font-family: var(--display);
  font-size: clamp(25px, 3vw, 43px);
  font-weight: 500;
  line-height: 0.9;
}

.editor-mode-identity p { max-width: 410px; text-align: right; }

.editor-mode-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 24px;
  border-top: 1px solid #5a5a56;
  border-left: 1px solid #5a5a56;
}

/* Public deployment ledger */
.deploy-log-page {
  margin: 0;
  color: #eeeae1;
  background: #090909;
}

.deploy-log {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
}

.deploy-log-hero {
  min-height: 72vh;
  display: grid;
  align-content: end;
  gap: 20px;
  padding: 48px 0 64px;
  border-bottom: 1px solid #4d4d48;
}

.deploy-log-hero > a,
.deploy-log-hero > span,
.deploy-log-entry header,
.deploy-log-entry code {
  color: #93938d;
  font-size: 9px;
  letter-spacing: 0.12em;
  text-decoration: none;
}

.deploy-log-hero h1 {
  max-width: 1050px;
  margin: 0;
  font-family: var(--display);
  font-size: clamp(64px, 11vw, 168px);
  font-weight: 500;
  line-height: 0.78;
}

.deploy-log-hero p { max-width: 620px; margin: 0; color: #b7b5ad; line-height: 1.7; }
.deploy-log-hero > div { display: flex; align-items: end; gap: 16px; }
.deploy-log-hero > div strong { color: var(--company-red, #d92b20); font-family: var(--display); font-size: 54px; line-height: 0.8; }
.deploy-log-hero > div small { color: #85857f; font-size: 8px; letter-spacing: 0.1em; }
.deploy-log-list { padding: 0 0 100px; }

.deploy-log-entry {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr) 90px;
  gap: 28px;
  padding: 34px 0;
  border-bottom: 1px solid #33332f;
}

.deploy-log-entry header { display: flex; flex-direction: column; gap: 10px; }
.deploy-log-entry time { color: #eeeae1; }
.deploy-log-entry h2 { margin: 0 0 16px; font-family: var(--display); font-size: clamp(25px, 3vw, 44px); font-weight: 500; line-height: 0.94; }
.deploy-log-entry ul { margin: 0; padding-left: 18px; color: #b7b5ad; line-height: 1.65; }
.deploy-log-entry code { justify-self: end; color: var(--company-red, #d92b20); }
.deploy-log-footer { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }

@media (max-width: 700px) {
  .deploy-log { width: min(100% - 28px, 1180px); }
  .deploy-log-hero { min-height: 62vh; padding: 28px 0 44px; }
  .deploy-log-hero h1 { font-size: clamp(48px, 19vw, 88px); }
  .deploy-log-entry { grid-template-columns: 1fr auto; gap: 18px; padding: 26px 0; }
  .deploy-log-entry header { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; }
  .deploy-log-entry code { align-self: start; }
  .deploy-log-footer { width: min(100% - 28px, 1180px); }
}

.editor-mode-actions button {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 8px 14px;
  min-height: 126px;
  align-content: center;
  padding: 24px;
  color: var(--paper);
  text-align: left;
  background: #151515;
  border: 0;
  border-right: 1px solid #5a5a56;
  border-bottom: 1px solid #5a5a56;
  cursor: pointer;
  transition: color 180ms ease, background 180ms ease;
}

.editor-mode-actions button:hover { color: var(--ink); background: var(--paper); }
.editor-mode-actions button > span { grid-row: 1 / span 2; color: var(--company-red); font-family: var(--display); font-size: 28px; }
.editor-mode-actions strong { align-self: end; font-family: var(--display); font-size: clamp(20px, 2.2vw, 30px); font-weight: 500; line-height: 0.94; }
.editor-mode-actions small { color: #8d8c86; font-size: 7px; line-height: 1.45; letter-spacing: 0.05em; }
.editor-mode-actions button:hover small { color: #62615c; }

.editor-mode-session-actions {
  display: flex;
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  margin-top: 16px;
  color: #777670;
  border-top: 1px solid #3d3d3a;
  font-size: 7px;
  letter-spacing: 0.08em;
}

.editor-mode-logout {
  align-self: stretch;
  min-width: 92px;
  padding: 0 14px;
  color: #8d8c86;
  background: transparent;
  border: 0;
  border-left: 1px solid #3d3d3a;
  cursor: pointer;
  font-size: 7px;
}
.editor-mode-logout:hover { color: var(--ink); background: var(--paper); }

.company-editor-hub .company-account-status {
  min-height: 38px;
  margin: 0;
  padding: 12px 18px;
  color: #8d8c86;
  border-top: 1px solid #42423f;
  font-size: 7px;
  letter-spacing: 0.07em;
}

.editor-work-panel,
.company-editor.editor-work-panel,
.company-restore.editor-work-panel {
  margin-top: 20px;
  padding: 0;
  color: var(--paper);
  background: #101010;
  border: 1px solid #5a5a56;
}

.editor-work-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 66px;
  min-height: 104px;
  border-bottom: 1px solid #5a5a56;
}

.editor-work-heading > div { display: flex; justify-content: center; flex-direction: column; padding: 18px 24px; }
.editor-work-heading h4 { margin: 10px 0 0; font-family: var(--display); font-size: clamp(38px, 5vw, 64px); font-weight: 500; line-height: 0.82; }
.editor-work-heading > button { color: var(--paper); background: transparent; border: 0; border-left: 1px solid #5a5a56; cursor: pointer; font-size: 34px; }
.editor-work-heading > button:hover { color: var(--ink); background: var(--paper); }

[data-create-step][hidden],
[data-editor-locked][hidden],
[data-editor-home][hidden],
[data-editor-create-panel][hidden],
[data-editor-recovery-panel][hidden] { display: none !important; }

.company-editor-next {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: minmax(0, 1fr) minmax(250px, 0.34fr);
  min-height: 92px;
  border-top: 1px solid #5a5a56;
  border-bottom: 1px solid #5a5a56;
}

.company-editor-next p { display: flex; align-items: center; margin: 0; padding: 18px 24px; color: #8d8c86; font-size: 8px; }
.company-editor-next button { color: var(--ink); background: var(--paper); border: 0; border-left: 1px solid #5a5a56; cursor: pointer; font-size: 8px; letter-spacing: 0.08em; }
.company-editor-next button:hover { color: var(--paper); background: var(--company-red); }

.company-editor-relations-stage {
  grid-column: 1 / -1;
  margin: 0;
  border: 0;
  border-bottom: 1px solid #5a5a56;
}

.editor-recovery-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.editor-recovery-grid > section + section { border-left: 1px solid #5a5a56; }
.editor-recovery-grid > section > header { display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 14px; min-height: 92px; align-items: center; padding: 18px; border-bottom: 1px solid #5a5a56; }
.editor-recovery-grid > section > header > span { color: var(--company-red); font-family: var(--display); font-size: 28px; }
.editor-recovery-grid > section > header div { display: flex; flex-direction: column; gap: 6px; }
.editor-recovery-grid > section > header strong { font-family: var(--display); font-size: 22px; font-weight: 500; }
.editor-recovery-grid > section > header p { margin: 0; color: #8d8c86; font-size: 7px; line-height: 1.5; }
.editor-recovery-grid .company-restore-list > p { margin: 0; padding: 22px 18px; color: #777670; font-size: 8px; }
.editor-recovery-grid .company-restore-entry { color: var(--paper); border-color: #51514d; }
.editor-recovery-grid .company-restore-entry > div { border-color: #51514d; }
.editor-recovery-grid .company-restore-entry span,
.editor-recovery-grid .company-restore-entry time { color: #777670; }
.editor-recovery-grid .company-restore-entry > button { color: var(--paper); border-color: #51514d; }

.editor-login-dialog {
  width: min(560px, calc(100vw - 24px));
  max-width: none;
  margin: auto;
  padding: 0;
  color: var(--paper);
  background: #101010;
  border: 1px solid #767670;
  border-radius: 0;
  box-shadow: 0 32px 120px rgba(0, 0, 0, 0.75);
}
.editor-login-dialog:not([open]) { display: none; }
.editor-login-dialog::backdrop { background: rgba(0, 0, 0, 0.84); }
.editor-login-dialog form { display: grid; grid-template-columns: 1fr 1fr; }
.editor-login-dialog header { display: flex; grid-column: 1 / -1; min-height: 44px; align-items: center; justify-content: space-between; padding-left: 16px; color: #85847f; border-bottom: 1px solid #555550; font-size: 7px; letter-spacing: 0.09em; }
.editor-login-dialog header button { align-self: stretch; width: 48px; color: var(--paper); background: transparent; border: 0; border-left: 1px solid #555550; cursor: pointer; font-size: 24px; }
.editor-login-dialog header button:hover { color: var(--ink); background: var(--paper); }
.editor-login-copy { grid-column: 1 / -1; padding: 28px 28px 22px; }
.editor-login-copy h2 { margin: 14px 0; font-family: var(--display); font-size: clamp(42px, 8vw, 68px); font-weight: 500; line-height: 0.84; }
.editor-login-copy p { max-width: 440px; margin: 0; color: #9b9a94; font-size: 9px; line-height: 1.65; }
.editor-login-dialog label { display: flex; flex-direction: column; gap: 8px; padding: 0 14px 20px 28px; }
.editor-login-dialog label + label { padding-right: 28px; padding-left: 14px; }
.editor-login-dialog label > span { color: #85847f; font-size: 7px; letter-spacing: 0.08em; }
.editor-login-dialog input { width: 100%; min-height: 50px; padding: 0 12px; color: var(--paper); background: #191919; border: 1px solid #555550; border-radius: 0; outline: 0; }
.editor-login-dialog input:focus { border-color: var(--paper); outline: 2px solid var(--company-red); outline-offset: -2px; }
.editor-auth-status { grid-column: 1 / -1; min-height: 34px; margin: 0; padding: 0 28px 16px; color: #c6c4bc; font-size: 8px; line-height: 1.55; }
.editor-login-dialog form > button[type="submit"] { grid-column: 1 / -1; min-height: 62px; color: var(--ink); background: var(--paper); border: 0; border-top: 1px solid #555550; cursor: pointer; font-size: 9px; letter-spacing: 0.08em; }
.editor-login-dialog form > button[type="submit"]:hover { color: var(--paper); background: var(--company-red); }
.editor-auth-toggle { grid-column: 1 / -1; min-height: 48px; color: #aaa9a3; background: #151515; border: 0; border-top: 1px solid #555550; cursor: pointer; font-size: 8px; letter-spacing: 0.07em; }
.editor-auth-toggle:hover { color: var(--paper); background: #252525; }
.editor-login-dialog button:disabled,
.editor-login-dialog input:disabled { cursor: wait; opacity: 0.55; }

.editor-password-dialog { width: min(620px, calc(100vw - 24px)); }
.editor-password-dialog .editor-password-current { grid-column: 1 / -1; padding-right: 28px; }
.editor-password-dialog input::placeholder { color: #666560; font-size: 8px; letter-spacing: 0.06em; }
.editor-password-dialog [data-password-status]:not(:empty) { color: var(--paper); }

/* The change log is an editor utility now, not a standalone landing section. */
.company-editor-hub .company-journal--editor {
  width: 100%;
  margin: 24px 0 0;
  padding: 0;
  color: var(--ink);
  background: #dfded8;
  border: 1px solid #565650;
}

.company-journal--editor .company-module-heading--compact {
  grid-template-columns: 170px minmax(260px, 0.7fr) minmax(280px, 1fr);
  min-height: 116px;
  padding: 0;
  border-bottom: 1px solid var(--ink);
}

.company-journal--editor .company-module-heading--compact > * { padding: 18px 20px; }
.company-journal--editor .company-module-heading--compact h3 {
  margin: 6px 0 0;
  font-size: clamp(28px, 3vw, 44px);
  line-height: 0.88;
}
.company-journal--editor .company-module-heading--compact > p { margin: 0; font-size: 8px; line-height: 1.55; }
.company-journal--editor .company-journal-day > summary { min-height: 72px; padding: 14px 18px; }
.company-journal--editor .company-journal-day h4 { font-size: clamp(22px, 2.4vw, 34px); }
.company-journal--editor .company-journal-details { padding: 8px; }
.company-journal--editor .company-journal-details section { padding: 12px; }

@media (max-width: 760px) {
  .company-editor-hub { padding: 72px 12px; }
  .editor-mode-card { margin-top: 28px; }
  .editor-mode-locked,
  .editor-mode-home { padding: 28px 16px; }
  .editor-mode-locked h4 { font-size: clamp(42px, 13vw, 64px); }
  .editor-mode-locked > button { width: 100%; min-width: 0; }
  .editor-mode-identity { grid-template-columns: 1fr; }
  .editor-mode-identity { align-items: flex-start; flex-direction: column; }
  .editor-mode-identity p { max-width: none; text-align: left; }
  .editor-mode-actions { grid-template-columns: 1fr; }
  .editor-mode-actions button { min-height: 104px; padding: 18px; }
  .editor-mode-session-actions { align-items: stretch; }
  .editor-mode-session-actions > span { display: flex; align-items: center; padding-right: 12px; line-height: 1.5; }
  .editor-work-panel,
  .company-editor.editor-work-panel,
  .company-restore.editor-work-panel { margin-top: 12px; }
  .editor-work-heading { grid-template-columns: minmax(0, 1fr) 54px; min-height: 88px; }
  .editor-work-heading > div { padding: 14px; }
  .editor-work-heading h4 { font-size: 36px; }
  .company-editor-next { grid-template-columns: 1fr; }
  .company-editor-next button { min-height: 62px; border-top: 1px solid #5a5a56; border-left: 0; }
  .editor-recovery-grid { grid-template-columns: 1fr; }
  .editor-recovery-grid > section + section { border-top: 1px solid #5a5a56; border-left: 0; }
  .editor-login-dialog form { grid-template-columns: 1fr; }
  .editor-login-copy,
  .editor-login-dialog label,
  .editor-login-dialog label + label { grid-column: 1; padding-right: 18px; padding-left: 18px; }
  .editor-password-dialog .editor-password-current { grid-column: 1; padding-right: 18px; }
  .editor-auth-status { grid-column: 1; padding-right: 18px; padding-left: 18px; }
  .editor-login-dialog form > button[type="submit"],
  .editor-auth-toggle { grid-column: 1; }
  .company-editor-hub .company-journal--editor { margin-top: 12px; }
  .company-journal--editor .company-module-heading--compact { grid-template-columns: 1fr; min-height: 0; }
  .company-journal--editor .company-module-heading--compact > * { padding: 14px; }
  .company-journal--editor .company-module-heading--compact > .company-section-label { display: flex; }
  .company-journal--editor .company-module-heading--compact > p { border-top: 1px solid var(--ink); }
  .company-journal--editor .company-journal-day > summary { padding: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  .editor-mode-actions button { transition: none; }
}

/* Focused dossier column and board editor additions. */
@media (min-width: 761px) {
  .lore-section > div {
    width: 50vw;
    max-width: 960px;
  }

  .lore-section .lore-media-grid {
    width: 100%;
    max-width: none;
  }

  .lore-section .lore-media img,
  .lore-section-image .lore-media img {
    width: 100%;
    height: auto;
    min-height: 0;
    max-height: none;
    aspect-ratio: 16 / 9;
    object-fit: cover;
  }
}

@media (max-width: 760px) {
  .lore-section > div { width: 100%; max-width: none; }
  .lore-section .lore-media img,
  .lore-section-image .lore-media img {
    width: 100%;
    height: auto;
    min-height: 0;
    max-height: none;
    aspect-ratio: 3 / 4;
    object-fit: cover;
  }
}

.company-board-preview-cover {
  background: #0a0a0a;
}

.company-board-preview-cover > span,
.company-board-preview-meta { display: none; }

.company-board-preview-cover h3 { margin-bottom: 24px; }

.company-board-node-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: auto;
  border-top: 1px solid #454541;
}

.company-board-node-actions[hidden] { display: none; }
.company-board-node-actions button {
  min-height: 48px;
  padding: 10px;
  color: #e9e7df;
  background: #111;
  border: 0;
  border-right: 1px solid #454541;
  cursor: pointer;
  font-size: 7px;
  letter-spacing: .06em;
}
.company-board-node-actions button:last-child { border-right: 0; color: #e05b50; }
.company-board-node-actions button:hover { color: #090909; background: #e9e7df; }
.company-board-stage.is-position-mode .company-board-node { cursor: grab; }
.company-board-stage.is-position-mode .company-board-node.is-positioning { z-index: 9; cursor: grabbing; box-shadow: 0 18px 48px rgba(0,0,0,.55); }

@media (max-width: 760px) {
  .company-board-stage .company-board-inspector {
    right: 10px;
    bottom: max(10px, env(safe-area-inset-bottom));
    left: 10px;
    width: auto;
    height: 82px;
    padding: 8px;
    overflow: hidden;
    color: #111;
    background: rgba(238, 237, 231, .76);
    border: 1px solid rgba(255, 255, 255, .56);
    box-shadow: 0 14px 50px rgba(0, 0, 0, .32);
    backdrop-filter: blur(18px) saturate(.8);
    -webkit-backdrop-filter: blur(18px) saturate(.8);
    transition: height 240ms cubic-bezier(.2,.8,.2,1), opacity 180ms ease, transform 220ms cubic-bezier(.2,.8,.2,1);
  }

  .company-board-stage:not(.has-board-selection) .company-board-inspector {
    opacity: 0;
    transform: translateY(calc(100% + 18px));
    pointer-events: none;
  }

  .company-board-stage .company-board-inspector.is-expanded {
    height: min(56dvh, 510px);
    padding: 8px 14px 18px;
    overflow-y: auto;
  }

  .company-board-inspector-toggle {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr) 18px;
    gap: 12px;
    width: 100%;
    height: 64px;
    align-items: center;
    padding: 0;
    color: #111;
    text-align: left;
    background: transparent;
    border: 0;
  }

  .company-board-inspector-toggle img {
    display: block;
    width: 64px;
    height: 64px;
    object-fit: cover;
    background: rgba(0,0,0,.12);
  }
  .company-board-inspector-toggle img[hidden] { display: block; visibility: hidden; }
  .company-board-inspector-toggle > span { display: flex; min-width: 0; flex-direction: column; gap: 5px; transform: none !important; }
  .company-board-inspector-toggle small { color: #4e4e4a; font-size: 8px; letter-spacing: .05em; }
  .company-board-inspector-toggle strong { overflow: hidden; font-family: var(--display); font-size: clamp(22px, 7vw, 31px); font-weight: 500; line-height: .86; text-overflow: ellipsis; white-space: nowrap; }
  .company-board-inspector-toggle i { font-size: 14px; font-style: normal; transition: transform 200ms ease; }
  .company-board-inspector.is-expanded .company-board-inspector-toggle { margin-bottom: 18px; padding-bottom: 8px; border-bottom: 1px solid rgba(17,17,17,.32); }
  .company-board-inspector.is-expanded .company-board-inspector-toggle i { transform: rotate(180deg); }
  .company-board-stage .company-board-inspector > img,
  .company-board-stage .company-board-inspector > div:not(.company-board-node-actions) { display: none; }
  .company-board-stage .company-board-inspector > p { margin: 0 0 18px; font-size: 11px; line-height: 1.6; }
  .company-board-stage .company-board-inspector dl { margin: 0 0 16px; }
  .company-board-stage .company-board-inspector > a { margin-top: 0; }
}

/* Full-screen relationship board cover. */
.company-board { padding: 0; }
.company-board-stage {
  width: 100%;
  max-width: none;
  height: 100svh;
  aspect-ratio: auto;
}

.company-board-preview-cover {
  overflow: hidden;
  background: #080808;
}

.company-board-preview-cover::before {
  position: absolute;
  z-index: 0;
  inset: -9%;
  content: "";
  background: url("assets/board-links-preview.png") center / cover no-repeat;
  transform: translate3d(0, var(--board-preview-parallax, 0px), 0) scale(1.04);
  will-change: transform;
}

.company-board-preview-cover::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  content: "";
  background: transparent;
}

.company-board-preview-cover h3,
.company-board-preview-cover button { position: relative; z-index: 2; }
.company-board-preview-cover h3 {
  max-width: none;
  margin: 0 0 18px;
  color: #050505;
  font-size: clamp(38px, 5vw, 72px);
  font-weight: 700;
  text-shadow: none;
}
.company-board-preview-cover button {
  position: relative;
  min-width: 210px;
  color: #050505;
  background: transparent;
  border-color: #050505;
}
.company-board-preview-cover button:hover {
  color: #fff;
  background: #050505;
  transform: translateY(-2px);
}

@media (max-width: 760px) {
  .company-board { padding: 0 10px; }
  .company-board-stage { height: auto; aspect-ratio: 1 / 1; }
  .company-board-preview-cover::before { inset: -7%; background-position: center; }
  .company-board-preview-cover h3 { font-size: clamp(34px, 11vw, 52px); }
  .company-board-preview-cover h3 { margin-bottom: 14px; }
  .company-board-preview-cover button { min-width: 170px; min-height: 48px; }
}

/* Clear editor controls, registry creation entry and source-ratio dossier media. */
.company-board-fullscreen-controls .company-board-tool-icon {
  display: grid;
  width: 46px;
  min-width: 46px;
  height: 46px;
  min-height: 46px;
  place-items: center;
  padding: 0;
}

.company-board-tool-icon svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.company-board-tool-icon > span { display: none; }
.company-board-node-dialog fieldset { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.company-board-node-dialog fieldset label > span { min-height: 82px; padding: 16px 10px; font-size: 22px; }
.company-board-node-dialog [data-board-node-details][hidden] { display: none !important; }

.company-editor-sections-builder {
  grid-column: 1 / -1;
  border-top: 1px solid #4e4e4e;
  border-bottom: 1px solid #4e4e4e;
}

.company-editor-sections-builder > header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  min-height: 112px;
  border-bottom: 1px solid #4e4e4e;
}

.company-editor-sections-builder > header > div { padding: 22px 28px; }
.company-editor-sections-builder > header span { color: #85847f; font-size: 7px; letter-spacing: .09em; }
.company-editor-sections-builder > header strong { display: block; margin-top: 9px; color: var(--paper); font-family: var(--display); font-size: clamp(25px, 3vw, 42px); line-height: .9; }
.company-editor-sections-builder > header p { max-width: 680px; margin: 10px 0 0; color: #85847f; font-size: 8px; line-height: 1.5; }
.company-editor-sections-builder > header button,
.company-editor-section-remove {
  padding: 0 22px;
  color: var(--paper);
  background: transparent;
  border: 0;
  border-left: 1px solid #4e4e4e;
  cursor: pointer;
  font-size: 8px;
  letter-spacing: .08em;
}
.company-editor-sections-builder > header button:hover { color: var(--ink); background: var(--paper); }

.company-editor-section-row {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr) 124px;
  border-bottom: 1px solid #4e4e4e;
}
.company-editor-section-row:last-child { border-bottom: 0; }
.company-editor-section-row > span { display: grid; place-items: center; color: #777670; border-right: 1px solid #4e4e4e; font-family: var(--display); font-size: 30px; }
.company-editor-section-row > div { display: grid; grid-template-columns: .38fr 1fr; min-width: 0; }
.company-editor-section-row input,
.company-editor-section-row textarea { border: 0 !important; }
.company-editor-section-row input { min-height: 138px !important; border-right: 1px solid #4e4e4e !important; font-family: var(--display) !important; font-size: 21px !important; }
.company-editor-section-row textarea { min-height: 138px; }
.company-editor-section-remove:hover { color: var(--paper); background: var(--company-red); }

.registry-create-card {
  display: flex;
  min-height: 100%;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 12px;
  padding: 34px 18px;
  color: var(--ink);
  background: transparent;
  border-right: 1px solid var(--ink);
  border-bottom: 1px solid var(--ink);
  text-align: center;
  text-decoration: none;
  transition: color 160ms ease, background 160ms ease;
}
.registry-create-card > span { display: grid; width: 58px; height: 58px; place-items: center; border: 1px solid currentColor; border-radius: 50%; font-size: 32px; font-weight: 300; }
.registry-create-card > strong { font-family: var(--display); font-size: clamp(22px, 2.4vw, 36px); line-height: .9; }
.registry-create-card > small { color: var(--muted); font-size: 8px; letter-spacing: .08em; }
.registry-create-card:hover,
.registry-create-card:focus-visible { color: var(--paper); background: var(--ink); outline: none; }
.registry-create-card:hover > small,
.registry-create-card:focus-visible > small { color: #aaa9a3; }

.lore-media .lore-media-expandable { cursor: zoom-in; }
.lore-media .lore-media-expandable:focus-visible { outline: 2px solid #050505; outline-offset: 3px; }
.lore-media.is-source-expanded .lore-media-expandable {
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  aspect-ratio: auto !important;
  object-fit: contain !important;
  cursor: zoom-out;
}

.record-editor-dialog-heading { position: sticky; top: 0; z-index: 20; background: #111; }
.record-editor-collection { margin: 18px; border: 1px solid #5a5a56; }
.record-editor-collection > header { background: #181818; }
.record-editor-help { color: #aaa9a3; background: #141414; }

@media (max-width: 760px) {
  .company-board-fullscreen-controls .company-board-tool-icon { width: 40px; min-width: 40px; height: 40px; min-height: 40px; padding: 0; }
  .company-board-tool-icon svg { width: 19px; height: 19px; }
  .company-board-node-dialog fieldset { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .company-board-node-dialog fieldset label { border-top: 1px solid #555; }
  .company-editor-sections-builder > header { grid-template-columns: 1fr; }
  .company-editor-sections-builder > header > div { padding: 18px 16px; }
  .company-editor-sections-builder > header button { min-height: 52px; border-top: 1px solid #4e4e4e; border-left: 0; }
  .company-editor-section-row { grid-template-columns: 42px minmax(0, 1fr); }
  .company-editor-section-row > div { grid-template-columns: 1fr; }
  .company-editor-section-row input { min-height: 64px !important; border-right: 0 !important; border-bottom: 1px solid #4e4e4e !important; }
  .company-editor-section-row textarea { min-height: 160px; }
  .company-editor-section-remove { grid-column: 1 / -1; min-height: 46px; border-top: 1px solid #4e4e4e; border-left: 0; }
  .record-editor-collection { margin: 10px; }
}
