:root {
  color-scheme: dark;
  --bg: #07121f;
  --bg-soft: #0c1a2a;
  --surface: rgba(14, 31, 50, 0.88);
  --surface-solid: #0e1f32;
  --surface-2: #132940;
  --text: #eef8ff;
  --muted: #a9bfd1;
  --line: rgba(154, 202, 232, 0.18);
  --cyan: #62e8ff;
  --blue: #75a7ff;
  --violet: #b799ff;
  --green: #66efb4;
  --yellow: #ffd978;
  --red: #ff8d9a;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
  --radius: 24px;
  --radius-small: 14px;
  --focus: 0 0 0 3px rgba(98, 232, 255, 0.36);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f5f9fc;
  --bg-soft: #eaf2f8;
  --surface: rgba(255, 255, 255, 0.94);
  --surface-solid: #ffffff;
  --surface-2: #edf5fa;
  --text: #102235;
  --muted: #496176;
  --line: rgba(30, 82, 115, 0.18);
  --cyan: #007c91;
  --blue: #235fc7;
  --violet: #6c45ba;
  --green: #0c7b55;
  --yellow: #8a5b00;
  --red: #ad2639;
  --shadow: 0 24px 65px rgba(31, 73, 99, 0.12);
  --focus: 0 0 0 3px rgba(0, 124, 145, 0.25);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

body {
  min-width: 320px;
  min-height: 100dvh;
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 4%, rgba(98, 232, 255, 0.12), transparent 30rem),
    radial-gradient(circle at 88% 18%, rgba(183, 153, 255, 0.11), transparent 27rem),
    var(--bg);
  line-height: 1.6;
}

body.drawer-open {
  overflow: hidden;
}

button,
a,
input {
  font: inherit;
}

a {
  color: var(--cyan);
}

button {
  color: inherit;
}

:focus-visible {
  outline: none;
  box-shadow: var(--focus);
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  color: #07121f;
  background: #fff;
  border-radius: 10px;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.shell {
  width: min(1160px, calc(100% - 40px));
  margin-inline: auto;
}

.topbar {
  position: sticky;
  z-index: 50;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 66px;
  padding:
    max(10px, env(safe-area-inset-top))
    max(20px, calc((100vw - 1160px) / 2));
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 85%, transparent);
  backdrop-filter: blur(18px);
}

.icon-button {
  display: inline-grid;
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  place-items: center;
  padding: 0;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-2);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.icon-button:hover {
  color: var(--cyan);
  border-color: var(--cyan);
}

.drawer-backdrop {
  position: fixed;
  z-index: 80;
  inset: 0;
  background: rgba(1, 7, 13, 0.7);
  backdrop-filter: blur(5px);
}

.drawer-backdrop[hidden],
.study-drawer[hidden] {
  display: none;
}

.study-drawer {
  position: fixed;
  z-index: 90;
  top: 0;
  right: 0;
  bottom: 0;
  display: flex;
  width: min(390px, calc(100vw - 28px));
  flex-direction: column;
  gap: 20px;
  padding:
    max(22px, env(safe-area-inset-top))
    max(22px, env(safe-area-inset-right))
    max(22px, env(safe-area-inset-bottom))
    22px;
  overflow-y: auto;
  border-left: 1px solid var(--line);
  background:
    radial-gradient(circle at 80% 0, rgba(98, 232, 255, 0.12), transparent 18rem),
    var(--surface-solid);
  box-shadow: -24px 0 70px rgba(0, 0, 0, 0.38);
  overscroll-behavior: contain;
}

.study-drawer-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.study-drawer-head h2 {
  margin: 5px 0 0;
  font-size: 1.55rem;
  line-height: 1.08;
}

.study-drawer-nav {
  display: grid;
  gap: 8px;
}

.study-drawer-nav a {
  display: flex;
  min-height: 48px;
  align-items: center;
  padding: 11px 13px;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-2);
  font-weight: 800;
  text-decoration: none;
}

.study-drawer-nav a:hover {
  color: var(--cyan);
  border-color: var(--cyan);
}

.study-drawer-note {
  display: grid;
  gap: 4px;
  margin-top: auto;
  padding: 15px;
  color: var(--muted);
  border: 1px solid color-mix(in srgb, var(--green) 34%, transparent);
  border-radius: 12px;
  background: color-mix(in srgb, var(--green) 7%, var(--surface));
  font-size: 0.8rem;
}

.study-drawer-note strong {
  color: var(--green);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-decoration: none;
}

.brand > span:first-child {
  color: var(--cyan);
  font-size: 1.35rem;
}

.top-actions,
.hero-actions,
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.ghost-button,
.primary-button,
.secondary-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  text-decoration: none;
  cursor: pointer;
  transition: 160ms ease;
}

.ghost-button {
  color: var(--muted);
  background: var(--surface);
}

.ghost-button:hover,
.secondary-button:hover {
  color: var(--text);
  border-color: var(--cyan);
  transform: translateY(-1px);
}

.primary-button {
  color: #06131e;
  border-color: transparent;
  background: linear-gradient(135deg, var(--cyan), #8fffd8);
  font-weight: 900;
  box-shadow: 0 12px 28px rgba(49, 202, 224, 0.18);
}

:root[data-theme="light"] .primary-button {
  color: #fff;
  background: linear-gradient(135deg, #007c91, #146ab2);
}

.primary-button:hover {
  transform: translateY(-2px);
  filter: brightness(1.04);
}

.secondary-button {
  color: var(--text);
  background: var(--surface);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.65fr);
  gap: 42px;
  align-items: center;
  min-height: 630px;
  padding-block: 90px 78px;
}

.eyebrow,
.section-kicker,
.mission-number {
  color: var(--cyan);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 22px;
  font-size: clamp(2.55rem, 6.5vw, 5.8rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

h1 span {
  display: block;
  color: transparent;
  background: linear-gradient(100deg, var(--cyan), var(--violet));
  background-clip: text;
}

.hero-lead {
  max-width: 700px;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.28rem);
}

.hero-actions {
  margin-top: 28px;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 26px 0 0;
  padding: 0;
  color: var(--muted);
  font-size: 0.84rem;
  list-style: none;
}

.mission-card {
  position: relative;
  overflow: hidden;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(150deg, rgba(98, 232, 255, 0.1), transparent 50%),
    var(--surface);
  box-shadow: var(--shadow);
}

.mission-card::before {
  position: absolute;
  top: -65px;
  right: -55px;
  width: 160px;
  height: 160px;
  border: 1px solid rgba(98, 232, 255, 0.25);
  border-radius: 50%;
  content: "";
  box-shadow:
    0 0 0 22px rgba(98, 232, 255, 0.035),
    0 0 0 45px rgba(183, 153, 255, 0.025);
}

.mission-card h2 {
  position: relative;
  margin: 32px 0 12px;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.mission-card p {
  color: var(--muted);
}

.loop-map {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 24px 0;
  color: var(--cyan);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.68rem;
  font-weight: 800;
}

.status-pill {
  display: inline-flex;
  padding: 7px 11px;
  color: var(--yellow);
  border: 1px solid color-mix(in srgb, var(--yellow) 35%, transparent);
  border-radius: 999px;
  background: color-mix(in srgb, var(--yellow) 9%, transparent);
  font-size: 0.78rem;
  font-weight: 800;
}

.safety-band {
  border-block: 1px solid color-mix(in srgb, var(--yellow) 38%, transparent);
  background: color-mix(in srgb, var(--yellow) 7%, var(--bg));
}

.safety-grid {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 20px;
  align-items: center;
  padding-block: 20px;
}

.safety-grid strong {
  color: var(--yellow);
}

.safety-grid span {
  color: var(--muted);
}

.real-pocus {
  padding-top: 100px;
}

.real-pocus-notice {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 18px;
  align-items: center;
  margin-bottom: 24px;
  padding: 16px 18px;
  color: var(--muted);
  border: 1px solid color-mix(in srgb, var(--green) 38%, transparent);
  border-radius: var(--radius-small);
  background: color-mix(in srgb, var(--green) 7%, var(--surface));
}

.real-pocus-notice strong {
  color: var(--green);
}

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

.pocus-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.16);
}

.pocus-card-head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  padding: 15px 17px;
  border-bottom: 1px solid var(--line);
}

.real-badge,
.phenotype-badge {
  display: inline-flex;
  padding: 6px 9px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.real-badge {
  color: var(--green);
  border: 1px solid color-mix(in srgb, var(--green) 35%, transparent);
  background: color-mix(in srgb, var(--green) 8%, transparent);
}

.phenotype-badge {
  color: var(--cyan);
  background: color-mix(in srgb, var(--cyan) 8%, transparent);
}

.pocus-image {
  display: grid;
  min-height: 310px;
  place-items: center;
  margin: 0;
  padding: 18px;
  background:
    linear-gradient(rgba(0, 0, 0, 0.24), rgba(0, 0, 0, 0.24)),
    #02060a;
}

.pocus-image img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: contain;
}

.pocus-zoom-trigger {
  position: relative;
  display: grid;
  width: 100%;
  min-width: 0;
  place-items: center;
  padding: 0;
  overflow: hidden;
  color: inherit;
  border: 0;
  border-radius: 10px;
  background: transparent;
  cursor: zoom-in;
}

.pocus-zoom-trigger::after {
  position: absolute;
  right: 10px;
  bottom: 10px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: #06131e;
  border-radius: 50%;
  background: rgba(238, 248, 255, 0.9);
  content: "⌕";
  font-size: 1.35rem;
  font-weight: 900;
  box-shadow: 0 5px 18px rgba(0, 0, 0, 0.3);
}

.pocus-zoom-trigger:hover::after,
.pocus-zoom-trigger:focus-visible::after {
  background: var(--cyan);
}

.pocus-image--portrait img {
  width: auto;
  max-width: 100%;
}

.pocus-image figcaption {
  width: 100%;
  margin-top: 12px;
  color: #d8e7f1;
  font-size: 0.78rem;
  text-align: left;
}

.temi-read {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0 18px;
}

.temi-read div {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.temi-read dt,
.temi-read dd {
  margin: 0;
}

.temi-read dt {
  color: var(--cyan);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.05em;
}

.temi-read dd {
  color: var(--muted);
  font-size: 0.84rem;
}

.source-line {
  margin: 0;
  padding: 15px 18px 18px;
  color: var(--muted);
  font-size: 0.72rem;
}

.atlas-safety {
  margin: 22px 0 0;
  padding: 15px 17px;
  color: var(--muted);
  border-left: 3px solid var(--yellow);
  background: color-mix(in srgb, var(--yellow) 6%, var(--surface));
}

.atlas-safety strong {
  color: var(--yellow);
}

.atlas-expansion {
  padding-top: 100px;
}

.track-nav {
  display: flex;
  overflow-x: auto;
  gap: 10px;
  margin-bottom: 18px;
  padding: 3px 0 7px;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.track-nav a {
  flex: 0 0 auto;
  padding: 10px 14px;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.82rem;
  font-weight: 850;
  text-decoration: none;
  scroll-snap-align: start;
}

.track-nav a:hover {
  color: var(--cyan);
  border-color: var(--cyan);
}

.expansion-intro {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 16px;
  align-items: center;
  margin-bottom: 24px;
  padding: 16px 18px;
  color: var(--muted);
  border: 1px solid color-mix(in srgb, var(--cyan) 34%, transparent);
  border-radius: var(--radius-small);
  background: color-mix(in srgb, var(--cyan) 6%, var(--surface));
}

.expansion-intro strong {
  color: var(--cyan);
}

.expansion-grid {
  display: grid;
  gap: 24px;
}

.expansion-card {
  display: grid;
  overflow: hidden;
  grid-template-columns: minmax(300px, 0.92fr) minmax(0, 1.08fr);
  scroll-margin-top: 88px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.16);
}

.expansion-card:target {
  border-color: var(--cyan);
  box-shadow: var(--focus), var(--shadow);
}

.expansion-card-head {
  display: flex;
  grid-column: 1 / -1;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  justify-content: space-between;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(100deg, color-mix(in srgb, var(--cyan) 8%, transparent), transparent 55%);
}

.track-index {
  display: block;
  margin-bottom: 4px;
  color: var(--cyan);
  font-size: 0.67rem;
  font-weight: 900;
  letter-spacing: 0.14em;
}

.expansion-card h3 {
  margin: 0;
  font-size: clamp(1.25rem, 2.2vw, 1.8rem);
  line-height: 1.1;
  letter-spacing: -0.025em;
}

.expansion-figure {
  display: grid;
  min-height: 100%;
  place-content: center;
  margin: 0;
  padding: 20px;
  border-right: 1px solid var(--line);
  background: #02060a;
}

.expansion-figure img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 560px;
  object-fit: contain;
}

.expansion-figure figcaption {
  margin-top: 13px;
  color: #d8e7f1;
  font-size: 0.78rem;
}

.expansion-card .temi-read {
  align-content: start;
  padding: 6px 20px;
}

.active-challenge {
  grid-column: 1 / -1;
  margin: 0 20px 18px;
  border: 1px solid color-mix(in srgb, var(--violet) 38%, transparent);
  border-radius: 12px;
  background: color-mix(in srgb, var(--violet) 7%, var(--surface-solid));
}

.active-challenge summary {
  padding: 13px 15px;
  color: var(--violet);
  font-weight: 900;
  cursor: pointer;
}

.active-challenge p {
  margin: 0;
  padding: 0 15px 15px;
  color: var(--muted);
  font-size: 0.86rem;
}

.expansion-card > .source-line {
  grid-column: 1 / -1;
  border-top: 1px solid var(--line);
}

.widget-lab {
  padding-top: 100px;
}

.widget-size-picker {
  display: flex;
  overflow-x: auto;
  gap: 9px;
  margin-bottom: 18px;
  padding: 3px 0 6px;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.widget-size-picker button {
  min-width: 98px;
  min-height: 44px;
  flex: 0 0 auto;
  padding: 9px 15px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-weight: 850;
  cursor: pointer;
}

.widget-size-picker button[aria-pressed="true"] {
  color: #06131e;
  border-color: var(--cyan);
  background: var(--cyan);
}

:root[data-theme="light"] .widget-size-picker button[aria-pressed="true"] {
  color: #fff;
}

.widget-stage {
  display: grid;
  min-height: 332px;
  place-items: center;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 80% 0, rgba(183, 153, 255, 0.13), transparent 24rem),
    var(--bg-soft);
}

.acra-widget {
  overflow: hidden;
  color: #eef8ff;
  border: 1px solid rgba(154, 202, 232, 0.24);
  border-radius: 28px;
  background:
    radial-gradient(circle at 90% 0, rgba(98, 232, 255, 0.22), transparent 12rem),
    linear-gradient(145deg, #102941, #081725);
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.3);
}

.acra-widget[hidden] {
  display: none;
}

.acra-widget a {
  color: #62e8ff;
  font-weight: 900;
  text-decoration: none;
}

.widget-eyebrow {
  display: block;
  color: #62e8ff;
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.acra-widget--small {
  display: grid;
  width: 164px;
  min-height: 164px;
  align-content: space-between;
  gap: 8px;
  padding: 18px;
  aspect-ratio: 1;
}

.acra-widget--small strong {
  font-size: 1.24rem;
}

.acra-widget--small p {
  margin: 0;
  color: #c3d6e4;
  font-size: 0.78rem;
  line-height: 1.35;
}

.acra-widget--medium {
  display: grid;
  width: min(344px, 100%);
  min-height: 164px;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: center;
  padding: 20px;
}

.acra-widget--medium strong,
.acra-widget--large strong {
  display: block;
  margin-top: 6px;
  font-size: 1.2rem;
  line-height: 1.15;
}

.acra-widget--medium ol {
  margin: 0;
  padding-left: 18px;
  color: #c3d6e4;
  font-size: 0.78rem;
}

.acra-widget--medium a {
  grid-column: 1 / -1;
}

.acra-widget--large {
  display: grid;
  width: min(344px, 100%);
  min-height: 356px;
  align-content: start;
  gap: 20px;
  padding: 22px;
}

.widget-large-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.widget-large-head > span {
  padding: 5px 8px;
  color: #b799ff;
  border: 1px solid rgba(183, 153, 255, 0.35);
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 900;
}

.widget-track-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 9px;
}

.widget-track-grid a {
  display: grid;
  min-height: 78px;
  place-items: center;
  padding: 10px;
  color: #eef8ff;
  border: 1px solid rgba(154, 202, 232, 0.2);
  border-radius: 13px;
  background: rgba(238, 248, 255, 0.055);
  text-align: center;
}

.widget-track-grid span {
  display: block;
  color: #c3d6e4;
  font-size: 0.72rem;
}

.acra-widget--large > p {
  margin: 0;
  color: #c3d6e4;
  font-size: 0.78rem;
}

.widget-platform-note {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 12px;
  margin-top: 18px;
  padding: 15px 17px;
  color: var(--muted);
  border-left: 3px solid var(--violet);
  background: color-mix(in srgb, var(--violet) 6%, var(--surface));
  font-size: 0.82rem;
}

.widget-platform-note strong {
  color: var(--violet);
}

.pocus-viewer {
  width: min(920px, calc(100vw - 32px));
  max-width: none;
  max-height: min(880px, calc(100dvh - 32px));
  margin: auto;
  padding:
    max(20px, env(safe-area-inset-top))
    max(20px, env(safe-area-inset-right))
    max(20px, env(safe-area-inset-bottom))
    max(20px, env(safe-area-inset-left));
  overflow: hidden;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface-solid);
  box-shadow: var(--shadow);
}

.pocus-viewer[open] {
  display: grid;
  grid-template-rows: auto minmax(180px, 1fr) auto auto auto;
  gap: 13px;
}

.pocus-viewer::backdrop {
  background: rgba(1, 7, 13, 0.82);
  backdrop-filter: blur(7px);
}

.pocus-viewer-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.pocus-viewer-head h2 {
  margin: 4px 0 0;
  font-size: clamp(1.3rem, 3vw, 2rem);
}

.pocus-viewer-canvas {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #02060a;
  overscroll-behavior: contain;
  touch-action: pan-x pan-y pinch-zoom;
  -webkit-overflow-scrolling: touch;
}

.pocus-viewer-canvas img {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
  margin: auto;
}

.pocus-viewer-caption,
.pocus-viewer-safety {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.pocus-viewer-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  justify-content: center;
}

.pocus-viewer-controls button,
.pocus-viewer-controls output {
  display: inline-grid;
  min-width: 48px;
  min-height: 44px;
  place-items: center;
  padding: 8px 13px;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface-2);
  font-weight: 900;
}

.pocus-viewer-controls button {
  cursor: pointer;
}

.pocus-viewer-controls button:hover {
  color: var(--cyan);
  border-color: var(--cyan);
}

.pocus-viewer-safety {
  padding-left: 11px;
  border-left: 3px solid var(--yellow);
}

.visual-map {
  padding-top: 92px;
}

.visual-map-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(300px, 0.7fr);
  gap: 34px;
  align-items: center;
}

.visual-figure {
  overflow: hidden;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #020b1d;
  box-shadow: var(--shadow);
}

.visual-figure img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.visual-figure figcaption {
  padding: 13px 16px;
  color: #c1d3e3;
  border-top: 1px solid rgba(154, 202, 232, 0.18);
  background: #07121f;
  font-size: 0.78rem;
}

.visual-copy h2 {
  margin: 8px 0 12px;
  font-size: clamp(2rem, 3.4vw, 3.25rem);
  line-height: 1.03;
  letter-spacing: -0.045em;
}

.visual-copy > p {
  color: var(--muted);
}

.visual-labels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin: 22px 0;
  padding: 0;
  list-style: none;
}

.visual-labels li {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
}

.visual-labels b,
.visual-labels span {
  display: block;
}

.visual-labels b {
  color: var(--cyan);
  font-size: 0.82rem;
}

.visual-labels span {
  color: var(--muted);
  font-size: 0.76rem;
}

.visual-workflow {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.visual-workflow summary {
  padding: 13px 15px;
  color: var(--text);
  font-weight: 850;
  cursor: pointer;
}

.visual-workflow ol,
.visual-workflow p {
  margin: 0 16px 14px;
  color: var(--muted);
  font-size: 0.82rem;
}

.visual-workflow ol {
  padding-left: 18px;
}

.method,
.artifact-section {
  padding-block: 100px;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.65fr);
  gap: 36px;
  align-items: end;
  margin-bottom: 38px;
}

.section-heading h2,
.focus-launch h2 {
  margin: 7px 0 0;
  font-size: clamp(2rem, 4.5vw, 3.6rem);
  line-height: 1.04;
  letter-spacing: -0.045em;
}

.section-heading p,
.focus-launch p {
  margin: 0;
  color: var(--muted);
}

.layer-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 10px;
  margin: 0 0 36px;
  padding: 0;
  list-style: none;
}

.layer-grid li {
  min-width: 0;
  padding: 20px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background: var(--surface);
}

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

.layer-grid b {
  margin-bottom: 18px;
  color: var(--cyan);
  font-size: 1.35rem;
}

.layer-grid span {
  overflow-wrap: anywhere;
  font-size: 0.84rem;
  font-weight: 850;
}

.layer-grid small {
  margin-top: 4px;
  color: var(--muted);
}

.method-notes {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.method-notes article {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  background: var(--surface);
}

.method-notes article > span {
  font-size: 1.7rem;
}

.method-notes h3 {
  margin: 14px 0 7px;
}

.method-notes p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

code {
  color: var(--violet);
}

.focus-launch {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  padding: 34px;
  border: 1px solid color-mix(in srgb, var(--cyan) 38%, transparent);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 90% 0, rgba(98, 232, 255, 0.14), transparent 18rem),
    var(--surface-solid);
}

.focus-launch h2 {
  font-size: clamp(1.8rem, 3vw, 2.7rem);
}

.artifact-section {
  padding-bottom: 120px;
}

.loading-card,
.error-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-small);
  color: var(--muted);
  background: var(--surface);
}

.error-card {
  color: var(--red);
  border-color: color-mix(in srgb, var(--red) 40%, transparent);
}

.critical-stack,
.component-stack {
  display: grid;
  gap: 18px;
}

.critical-stack {
  margin-bottom: 20px;
}

.critical-alert {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--cyan);
  border-radius: var(--radius-small);
  background: var(--surface);
}

.critical-alert[data-severity="warning"] {
  border-left-color: var(--yellow);
}

.critical-alert[data-severity="danger"] {
  border-left-color: var(--red);
}

.critical-icon {
  font-size: 1.3rem;
}

.critical-alert h3 {
  margin-bottom: 3px;
  font-size: 1rem;
}

.critical-alert p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.component {
  overflow: hidden;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 15px 38px rgba(0, 0, 0, 0.08);
}

.component:target {
  border-color: var(--cyan);
  box-shadow: var(--focus), var(--shadow);
}

.component-title {
  margin-bottom: 20px;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  letter-spacing: -0.02em;
}

.callout {
  border-left: 4px solid var(--cyan);
}

.callout[data-tone="warning"] {
  border-left-color: var(--yellow);
}

.callout[data-tone="danger"] {
  border-left-color: var(--red);
}

.callout p {
  max-width: 900px;
  margin: 0;
  color: var(--muted);
  font-size: 1.04rem;
}

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

.kv-item,
.study-card {
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-2);
}

.kv-item dt {
  margin-bottom: 7px;
  font-weight: 850;
}

.kv-item dd {
  margin: 0;
  color: var(--muted);
  font-size: 0.89rem;
}

.study-card h3 {
  margin-bottom: 7px;
  font-size: 1rem;
}

.study-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.study-card[data-tone="warning"] {
  border-top: 3px solid var(--yellow);
}

.study-card[data-tone="danger"] {
  border-top: 3px solid var(--red);
}

.step-list {
  display: grid;
  gap: 13px;
  margin: 0;
  padding: 0;
  counter-reset: active-step;
  list-style: none;
}

.step-list li {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 15px;
  align-items: start;
  counter-increment: active-step;
}

.step-list li::before {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--cyan);
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface-2);
  content: counter(active-step);
  font-weight: 900;
}

.step-list h3 {
  margin: 0 0 3px;
  font-size: 1rem;
}

.step-list p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.tab-list {
  display: flex;
  overflow-x: auto;
  gap: 8px;
  margin-bottom: 15px;
  padding-bottom: 3px;
}

.tab-button {
  flex: 0 0 auto;
  padding: 9px 14px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-2);
  cursor: pointer;
}

.tab-button[aria-selected="true"] {
  color: #06131e;
  border-color: var(--cyan);
  background: var(--cyan);
  font-weight: 850;
}

:root[data-theme="light"] .tab-button[aria-selected="true"] {
  color: #fff;
}

.tab-panel {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: color-mix(in srgb, var(--surface-2) 70%, transparent);
}

.tab-panel[hidden] {
  display: none;
}

.content-block {
  color: var(--muted);
}

.content-block:last-child,
.content-block p:last-child,
.content-block ul:last-child {
  margin-bottom: 0;
}

.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 13px;
}

table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  background: var(--surface-solid);
}

th,
td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

thead th {
  color: var(--cyan);
  background: var(--surface-2);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

tbody th {
  width: 22%;
  font-size: 0.9rem;
}

td {
  color: var(--muted);
  font-size: 0.87rem;
}

tbody tr:last-child th,
tbody tr:last-child td {
  border-bottom: 0;
}

.checklist {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.check-item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-2);
}

.check-item input {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  accent-color: var(--cyan);
}

.check-item label {
  cursor: pointer;
}

.check-item strong,
.check-item small {
  display: block;
}

.check-item small {
  margin-top: 3px;
  color: var(--muted);
}

.check-item:has(input:checked) {
  border-color: color-mix(in srgb, var(--green) 52%, transparent);
}

.check-item:has(input:checked) strong {
  color: var(--green);
  text-decoration: line-through;
  text-decoration-thickness: 1px;
}

.accordion-list {
  display: grid;
  gap: 10px;
}

.accordion-item {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-2);
}

.accordion-trigger {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  color: var(--text);
  border: 0;
  background: transparent;
  font-weight: 850;
  text-align: left;
  cursor: pointer;
}

.accordion-trigger::after {
  color: var(--cyan);
  content: "+";
  font-size: 1.3rem;
}

.accordion-trigger[aria-expanded="true"]::after {
  content: "−";
}

.accordion-panel {
  padding: 0 16px 17px;
}

.accordion-panel[hidden] {
  display: none;
}

.quiz-list {
  display: grid;
  gap: 16px;
}

.quiz-question {
  padding: 19px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-2);
}

.quiz-question fieldset {
  margin: 0;
  padding: 0;
  border: 0;
}

.quiz-question legend {
  margin-bottom: 14px;
  font-weight: 850;
}

.quiz-options {
  display: grid;
  gap: 8px;
}

.quiz-option {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  cursor: pointer;
}

.quiz-option:hover {
  border-color: var(--cyan);
}

.quiz-option input {
  margin-top: 5px;
  accent-color: var(--cyan);
}

.quiz-submit,
.action-button {
  min-height: 42px;
  margin-top: 14px;
  padding: 9px 14px;
  color: var(--text);
  border: 1px solid var(--cyan);
  border-radius: 10px;
  background: transparent;
  font-weight: 800;
  cursor: pointer;
}

.quiz-submit:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.quiz-feedback {
  margin: 13px 0 0;
  padding: 12px;
  border-left: 3px solid var(--cyan);
  border-radius: 8px;
  color: var(--muted);
  background: var(--surface-solid);
}

.quiz-feedback[data-correct="true"] {
  border-left-color: var(--green);
}

.quiz-feedback[data-correct="false"] {
  border-left-color: var(--red);
}

.progress-shell {
  display: grid;
  gap: 10px;
}

.progress-track {
  overflow: hidden;
  height: 12px;
  border-radius: 999px;
  background: var(--surface-2);
}

.progress-value {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), var(--violet));
  transition: width 250ms ease;
}

.progress-copy {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.86rem;
}

.source-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.source-list a {
  display: block;
  padding: 14px;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface-2);
  text-decoration: none;
}

.source-list a:hover {
  border-color: var(--cyan);
}

.source-list small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

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

.action-button {
  min-height: 58px;
  margin: 0;
  text-align: left;
}

.action-preview {
  margin-top: 14px;
  padding: 15px;
  border: 1px dashed var(--violet);
  border-radius: 11px;
  color: var(--muted);
  background: var(--surface-2);
}

.site-footer {
  padding-block: 42px 26px;
  border-top: 1px solid var(--line);
  background: var(--bg-soft);
}

.footer-grid {
  display: flex;
  justify-content: space-between;
  gap: 30px;
}

.footer-grid p,
.footer-note {
  color: var(--muted);
  font-size: 0.84rem;
}

.footer-links a {
  text-decoration: none;
}

.footer-note {
  margin-top: 25px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.noscript-warning {
  margin: 0;
  padding: 16px;
  color: #08131d;
  background: #ffd978;
  text-align: center;
}

body.focus-active .method,
body.focus-active .section-heading > p,
body.focus-active .component:not(.callout):not([data-component-type="checklist"]):not([data-component-type="quiz"]) {
  display: none;
}

body.focus-active .artifact-section {
  padding-top: 44px;
}

@media (max-width: 960px) {
  .hero,
  .section-heading,
  .visual-map-grid,
  .expansion-card {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 68px;
  }

  .mission-card {
    max-width: 660px;
  }

  .visual-map-grid {
    align-items: start;
  }

  .visual-copy {
    max-width: 760px;
  }

  .expansion-figure {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .layer-grid {
    grid-template-columns: repeat(4, 1fr);
  }

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

@media (max-width: 700px) {
  .shell {
    width: min(100% - 24px, 1160px);
  }

  .topbar {
    align-items: flex-start;
    padding:
      max(10px, env(safe-area-inset-top))
      max(12px, env(safe-area-inset-right))
      10px
      max(12px, env(safe-area-inset-left));
  }

  .top-actions a {
    display: none;
  }

  .hero {
    gap: 28px;
    padding-block: 52px;
  }

  h1 {
    font-size: clamp(2.5rem, 14vw, 4rem);
  }

  .hero-actions > *,
  .focus-launch .primary-button {
    width: 100%;
  }

  .safety-grid,
  .real-pocus-notice,
  .expansion-intro,
  .section-heading {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .real-pocus,
  .atlas-expansion,
  .widget-lab {
    padding-top: 70px;
  }

  .pocus-atlas {
    grid-template-columns: 1fr;
  }

  .pocus-image {
    min-height: 0;
  }

  .temi-read div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .method,
  .artifact-section {
    padding-block: 70px;
  }

  .visual-map {
    padding-top: 58px;
  }

  .visual-labels {
    grid-template-columns: 1fr;
  }

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

  .method-notes,
  .kv-grid,
  .card-grid,
  .action-grid {
    grid-template-columns: 1fr;
  }

  .widget-stage {
    min-height: 390px;
    padding: 18px 12px;
  }

  .widget-platform-note {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .study-drawer {
    top: auto;
    left: 0;
    width: 100%;
    max-height: min(82dvh, 720px);
    padding:
      20px
      max(16px, env(safe-area-inset-right))
      max(20px, env(safe-area-inset-bottom))
      max(16px, env(safe-area-inset-left));
    border-top: 1px solid var(--line);
    border-left: 0;
    border-radius: 24px 24px 0 0;
    box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.42);
  }

  .pocus-viewer {
    width: 100vw;
    max-height: 100dvh;
    margin: auto 0 0;
    border-right: 0;
    border-bottom: 0;
    border-left: 0;
    border-radius: 24px 24px 0 0;
  }

  .pocus-viewer[open] {
    grid-template-rows: auto minmax(220px, 1fr) auto auto auto;
  }

  .focus-launch,
  .footer-grid {
    align-items: stretch;
    flex-direction: column;
  }

  .component {
    padding: 19px;
    border-radius: 17px;
  }

  .critical-alert {
    grid-template-columns: 1fr;
  }
}

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

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

@media print {
  :root,
  :root[data-theme="dark"],
  :root[data-theme="light"] {
    color-scheme: light;
    --bg: #ffffff;
    --bg-soft: #ffffff;
    --surface: #ffffff;
    --surface-solid: #ffffff;
    --surface-2: #f4f6f8;
    --text: #000000;
    --muted: #27313a;
    --line: #c9d0d6;
    --cyan: #005f73;
    --yellow: #684600;
    --red: #8d1729;
    --green: #075c3e;
    --violet: #493185;
  }

  body {
    background: #ffffff;
    color: #000000;
  }

  .topbar,
  .drawer-backdrop,
  .study-drawer,
  .pocus-viewer,
  .hero-actions,
  .focus-launch,
  .quiz-submit,
  .action-grid,
  .footer-links {
    display: none !important;
  }

  .hero {
    min-height: 0;
    padding-block: 30px;
  }

  .method,
  .artifact-section {
    padding-block: 30px;
  }

  .component,
  .mission-card,
  .method-notes article,
  .pocus-card,
  .expansion-card,
  .visual-figure {
    break-inside: avoid;
    box-shadow: none;
  }

  .tab-panel[hidden],
  .accordion-panel[hidden],
  .quiz-feedback[hidden] {
    display: block;
  }
}
