:root {
  color-scheme: dark light;
  --bg: #0b0b0c;
  --bg-top: #17181a;
  --panel: #161719;
  --panel-alt: #1f2023;
  --text: #f3f4f6;
  --muted: #c7c9ce;
  --line: #f0f0f2;
  --line-soft: #7a7d84;
  --shadow: #000000;
  --chip-bg: #f3f4f6;
  --chip-text: #0b0b0c;
  --grid-line: rgba(255, 255, 255, 0.03);
  --btn-primary-bg: #f3f4f6;
  --btn-primary-text: #0b0b0c;
}

body[data-theme="light"] {
  --bg: #f4f5f7;
  --bg-top: #ffffff;
  --panel: #ffffff;
  --panel-alt: #f2f3f6;
  --text: #101114;
  --muted: #3e424b;
  --line: #111215;
  --line-soft: #9ca2ad;
  --shadow: #d8dbe1;
  --chip-bg: #111215;
  --chip-text: #f7f7f8;
  --grid-line: rgba(0, 0, 0, 0.05);
  --btn-primary-bg: #111215;
  --btn-primary-text: #f7f7f8;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  font-family: "IBM Plex Sans", sans-serif;
  font-size: 1rem;
  line-height: 1.62;
  background: linear-gradient(180deg, var(--bg-top) 0%, var(--bg) 50%, var(--bg) 100%);
  transition: background 200ms ease, color 200ms ease;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 24px 24px;
  z-index: -1;
}

.container {
  width: min(1060px, 92%);
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  border-bottom: 1px solid var(--line-soft);
  backdrop-filter: blur(6px);
}

.nav-wrap {
  min-height: 74px;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  justify-content: space-between;
}

.brand,
.title-chip,
.nav a,
.menu-btn,
.theme-btn,
.btn,
h1,
h2,
h3,
.card-meta {
  font-family: "IBM Plex Mono", monospace;
}

.brand {
  text-decoration: none;
  color: var(--text);
  font-size: 0.95rem;
  letter-spacing: 0.01em;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.theme-btn,
.menu-btn {
  background: var(--panel-alt);
  color: var(--text);
  border: 1px solid var(--line-soft);
  font-size: 0.68rem;
  padding: 0.48rem 0.64rem;
  cursor: pointer;
}

.theme-btn:hover,
.menu-btn:hover {
  border-color: var(--line);
}

.menu-btn {
  display: none;
}

.nav {
  display: flex;
  gap: 0.45rem;
}

.nav a {
  text-decoration: none;
  color: var(--text);
  font-size: 0.68rem;
  padding: 0.4rem 0.52rem;
  border: 1px solid transparent;
}

.nav a:hover {
  border-color: var(--line-soft);
  background: var(--panel-alt);
}

.section {
  padding: 3.6rem 0;
}

.hero {
  padding-top: 3.8rem;
}

.hero-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1.25fr 1fr;
  align-items: stretch;
}

.hero-main,
.hero-side {
  height: 100%;
}

.hero-main {
  padding: 0.95rem;
  display: flex;
  flex-direction: column;
}

.hero-main h1 {
  font-size: clamp(1.35rem, 3.1vw, 1.86rem);
}

.hero-main .lead {
  margin: 0.9rem 0 0;
  font-size: 0.9rem;
}

.hero-status {
  margin: 0.5rem 0 0;
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  font-size: 0.86rem;
  color: var(--text);
}

.hero-side {
  display: grid;
  gap: 0.65rem;
  align-content: start;
}

.hero-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
}

.hero-photo {
  margin: 0;
  width: clamp(250px, 20vw, 170px);
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  box-shadow: inset 0 0 0 1px var(--line-soft);
}

.hero-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
}

.panel,
.pixel-card,
.skill-list li {
  background: linear-gradient(180deg, var(--panel-alt) 0%, var(--panel) 100%);
  border: 1px solid var(--line-soft);
  box-shadow: 3px 3px 0 var(--shadow);
}

.panel {
  padding: 1.2rem;
}

.title-chip {
  display: inline-block;
  margin-bottom: 0.8rem;
  font-size: 0.92rem;
  color: var(--chip-text);
  background: var(--chip-bg);
  border: 1px solid var(--line-soft);
  padding: 0.45rem 0.66rem;
  line-height: 1.3;
}

.eyebrow {
  margin: 0 0 0.6rem;
  color: var(--muted);
  font-size: 0.73rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

h1 {
  margin: 0;
  font-size: clamp(1.55rem, 3.6vw, 2.1rem);
  line-height: 1.28;
}

h2 {
  margin: 0 0 0.65rem;
  font-size: 1.1rem;
  line-height: 1.3;
}

h3 {
  margin: 0.24rem 0 0.35rem;
  font-size: 1.02rem;
  line-height: 1.35;
  color: var(--text);
}

.lead {
  font-size: 1rem;
}

p,
li {
  color: var(--muted);
}

.hero-actions {
  margin-top: 1rem;
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  align-items: center;
}

.hero-action-bar {
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem 0.8rem;
  margin-top: auto;
  padding: 0.34rem 0.42rem;
  border-radius: 6px;
  background: #ffffff;
}

.hero-action-bar .hero-status {
  margin: 0;
  color: #101114;
  font-weight: 600;
}

.btn {
  text-decoration: none;
  font-size: 0.68rem;
  color: var(--text);
  border: 1px solid var(--line-soft);
  padding: 0.62rem 0.86rem;
  background: var(--panel-alt);
}

.btn:hover {
  border-color: var(--line);
}

.btn-primary {
  background: var(--btn-primary-bg);
  color: var(--btn-primary-text);
}

.btn-primary:hover {
  filter: brightness(0.95);
}

.hero-icon-links {
  display: inline-flex;
  gap: 0.48rem;
}

.icon-btn-email {
  width: 50px;
  height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  box-shadow: none;
  transition: transform 140ms ease;
}

.icon-btn-linked {
  width: 50px;
  height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  box-shadow: none;
  transition: transform 140ms ease;
}

.icon-btn-email:hover {
  background: transparent;
  box-shadow: none;
  transform: translateY(-1px);
}

.icon-btn-linked:hover {
  background: transparent;
  box-shadow: none;
  transform: translateY(-1px);
}

.icon-btn-email img {
  width: 25px;
  height: 25px;
  object-fit: contain;
  display: block;
  transition: filter 140ms ease;
}

.icon-btn-linked img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  display: block;
  transition: filter 140ms ease;
}

.icon-btn-email:hover img {
  filter: brightness(0.72);
}

.icon-btn-linked:hover img {
  filter: brightness(0.72);
}

body[data-theme="light"] .icon-btn-email:hover img {
  filter: brightness(0.6);
}

body[data-theme="light"] .icon-btn-linked:hover img {
  filter: brightness(0.6);
}

.stat-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.6rem;
}

.stat-list li {
  border: 1px solid var(--line-soft);
  background: var(--panel);
  padding: 0.55rem;
}

.stat-list span {
  display: block;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.66rem;
  color: var(--muted);
  margin-bottom: 0.08rem;
  text-transform: uppercase;
}

.stat-list strong {
  color: var(--text);
  font-weight: 600;
  font-size: 0.96rem;
}

.hero-experience {
  display: grid;
  gap: 0.45rem;
}

.hero-education {
  display: grid;
  gap: 0.42rem;
}

.hero-education h3 {
  margin: 0.02rem 0 0.06rem;
  font-size: 0.9rem;
}

.hero-experience h3 {
  margin: 0.05rem 0 0.08rem;
  font-size: 0.9rem;
}

.mini-experience-list {
  display: grid;
  gap: 0.5rem;
}

.mini-job-card {
  padding: 0.56rem 0.62rem;
  background: var(--panel);
  border: 1px solid var(--line-soft);
  box-shadow: none;
}

.mini-job-card.current-role {
  box-shadow: 2px 2px 0 color-mix(in srgb, #3fb950 30%, var(--shadow));
}

.mini-job-card.current-role::before {
  width: 3px;
}

.mini-job-card h4 {
  margin: 0.18rem 0 0.16rem;
  font-size: 0.9rem;
  line-height: 1.3;
  color: var(--text);
}

.mini-job-card .card-meta {
  font-size: 0.68rem;
}

.mini-job-card .card-sub {
  margin: 0;
  font-size: 0.79rem;
  font-weight: 500;
  color: var(--muted);
}

.mini-job-card .study-progress {
  margin-top: 0.42rem;
  max-width: 100%;
}

.mini-job-card .study-progress-label {
  margin-top: 0.22rem;
  font-size: 0.68rem;
}

.status-line {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.status-pill {
  display: inline-block;
  padding: 0.14rem 0.44rem;
  font-size: 0.64rem;
  line-height: 1.2;
  color: #000000;
  background: #6ee787;
  border: 1px solid #3fb950;
  border-radius: 999px;
  font-family: "IBM Plex Mono", monospace;
}

.study-progress {
  margin-top: 0.34rem;
  width: 100%;
  max-width: 190px;
  height: 8px;
  border: 1px solid var(--line-soft);
  background: color-mix(in srgb, var(--panel-alt) 85%, transparent);
  overflow: hidden;
}

.study-progress-fill {
  display: block;
  width: 62.5%;
  height: 100%;
  background: linear-gradient(90deg, #6ee787 0%, #3fb950 100%);
}

.study-progress-label {
  margin-top: 0.2rem;
  display: block;
  font-size: 0.72rem;
  color: var(--muted);
}

.card-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: 1fr;
}

.experience-list {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: 1fr;
}

.pixel-card {
  padding: 1.05rem;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 280ms ease, transform 280ms ease;
}

.job-card {
  position: relative;
  overflow: hidden;
}

.job-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
}

.current-role {
  border-color: #3fb950;
  box-shadow: 3px 3px 0 color-mix(in srgb, #3fb950 35%, var(--shadow));
}

.current-role::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: #3fb950;
}

.current-badge {
  display: inline-block;
  padding: 0.16rem 0.46rem;
  border-radius: 999px;
  border: 1px solid #3fb950;
  background: #6ee787;
  color: #0a2f13;
  font-size: 0.62rem;
  line-height: 1.1;
  font-family: "IBM Plex Mono", monospace;
  font-weight: 600;
  white-space: nowrap;
}

.card-meta {
  margin: 0;
  font-size: 0.73rem;
  color: var(--text);
  opacity: 0.92;
}

.card-sub {
  margin: 0.05rem 0 0.4rem;
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
}

.pixel-card p,
.pixel-card li {
  font-size: 0.95rem;
}

.pixel-card ul {
  margin: 0.3rem 0 0;
  padding-left: 1rem;
}

.impact-list {
  list-style: none;
  margin: 0.42rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.impact-list li {
  position: relative;
  padding-left: 1rem;
  line-height: 1.55;
}

.impact-list li::before {
  content: ">";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--text);
  opacity: 0.9;
  font-family: "IBM Plex Mono", monospace;
}

.impact-list strong {
  color: var(--text);
  font-weight: 600;
}

.card-link {
  text-decoration: underline;
  color: var(--text);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.68rem;
}

.project-divider {
  border: none;
  border-top: 1px solid var(--line-soft);
  margin: 1rem 0 0.9rem;
}

.score-tool {
  margin-top: 0.8rem;
}

.scores-status {
  margin: 0.55rem 0 0;
  font-size: 0.88rem;
}

.scores-status.error {
  color: #ff8d8d;
}

#scoresList.scores-list {
  margin-top: 0.75rem;
  display: grid;
  gap: 0.6rem;
  grid-template-columns: 1fr;
  align-items: start;
}

@media (min-width: 700px) {
  #scoresList.scores-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1100px) {
  #scoresList.scores-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.score-card {
  border: 1px solid var(--line-soft);
  background: var(--panel);
  padding: 0.65rem 0.75rem;
  display: grid;
  gap: 0.45rem;
  height: 100%;
}

.score-head {
  display: flex;
  justify-content: space-between;
  gap: 0.7rem;
  align-items: center;
}

.score-head strong {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.78rem;
}

.score-head a {
  font-size: 0.68rem;
  color: var(--text);
}

.score-lines {
  display: grid;
  gap: 0.25rem;
}

.score-line {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.9rem;
}

.score-line .score-num {
  font-family: "IBM Plex Mono", monospace;
  color: var(--text);
}

.score-table {
  width: 100%;
  border-collapse: collapse;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.76rem;
}

.score-table th,
.score-table td {
  padding: 0.23rem 0.3rem;
  text-align: right;
}

.score-table thead th {
  border-bottom: 1px solid var(--line-soft);
  font-weight: 600;
  opacity: 0.88;
}

.score-table tbody tr + tr td {
  border-top: 1px solid color-mix(in srgb, var(--line-soft) 70%, transparent);
}

.score-table th:first-child,
.score-table td:first-child {
  text-align: left;
}

.score-table .score-team {
  font-family: "IBM Plex Sans", sans-serif;
  font-weight: 600;
  font-size: 0.87rem;
}

.score-table .score-num {
  font-weight: 700;
}

.project-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.project-filter-list {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.34rem;
  align-items: center;
}

.project-filter-btn {
  border: 1px solid var(--line-soft);
  background: color-mix(in srgb, var(--panel-alt) 82%, transparent);
  color: var(--text);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.62rem;
  line-height: 1.2;
  padding: 0.2rem 0.54rem;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  cursor: pointer;
  opacity: 0.82;
  transition: opacity 130ms ease, transform 130ms ease, box-shadow 130ms ease, filter 130ms ease;
}

.project-filter-btn:hover {
  border-color: var(--line);
  opacity: 1;
}

.project-filter-btn.is-active {
  opacity: 1;
  transform: translateY(-1px);
  box-shadow: 2px 2px 0 var(--shadow);
  filter: brightness(1.07);
}

.project-filter-all {
  background: color-mix(in srgb, var(--panel-alt) 82%, transparent);
  color: var(--text);
  border-color: var(--line-soft);
}

.project-filter-all .legend-dot {
  background: color-mix(in srgb, var(--line) 72%, transparent);
}

.project-filter-work {
  background: #1d2f4b;
  color: #d7e7ff;
  border-color: #4d73b8;
}

.project-filter-work .legend-dot {
  background: #73a0ff;
}

.project-filter-school {
  background: #4c3514;
  color: #ffe9c8;
  border-color: #d38b2c;
}

.project-filter-school .legend-dot {
  background: #f2a340;
}

.project-filter-fun {
  background: #4b1d3b;
  color: #ffd7f3;
  border-color: #cc6db0;
}

.project-filter-fun .legend-dot {
  background: #f08bd4;
}

.card-grid .pixel-card.is-filter-hidden {
  display: none;
}

.legend-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.34rem;
  padding: 0.16rem 0.46rem;
  border-radius: 999px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.62rem;
  border: 1px solid transparent;
  line-height: 1.25;
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
}

.legend-fun {
  background: #4b1d3b;
  color: #ffd7f3;
  border-color: #cc6db0;
}

.legend-fun .legend-dot {
  background: #f08bd4;
}

.legend-work {
  background: #1d2f4b;
  color: #d7e7ff;
  border-color: #4d73b8;
}

.legend-work .legend-dot {
  background: #73a0ff;
}

.legend-school {
  background: #4c3514;
  color: #ffe9c8;
  border-color: #d38b2c;
}

.legend-school .legend-dot {
  background: #f2a340;
}

.project-tags {
  margin-top: 0.6rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.project-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.project-card-link:hover {
  transform: translateY(-1px);
}

.card-grid .pixel-card {
  padding: 1rem 1.14rem 0.96rem;
  display: grid;
  grid-template-columns: minmax(95px, 118px) minmax(220px, 300px) minmax(360px, 1fr);
  gap: 0.35rem 1.1rem;
  align-items: start;
}

.card-grid .project-card-link {
  display: grid;
}

.card-grid .pixel-card .card-meta {
  grid-column: 1;
  margin-top: 0.18rem;
  font-size: 0.63rem;
  line-height: 1.25;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  opacity: 0.86;
}

.card-grid .pixel-card h3 {
  grid-column: 2;
  margin: 0;
  font-family: "IBM Plex Sans", sans-serif;
  font-size: clamp(1.06rem, 1.2vw, 1.22rem);
  line-height: 1.24;
  letter-spacing: 0.004em;
}

.card-grid .pixel-card > p:not(.card-meta) {
  grid-column: 3;
  margin: 0;
  max-width: 72ch;
  font-size: 0.9rem;
  line-height: 1.56;
  color: color-mix(in srgb, var(--muted) 90%, var(--text) 10%);
}

.card-grid .pixel-card .project-tags {
  grid-column: 2 / 4;
  margin-top: 0.12rem;
  justify-content: flex-start;
  align-self: end;
  gap: 0.28rem;
}

.card-grid .pixel-card .tag {
  font-size: 0.52rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.16rem 0.46rem;
}

.card-grid .project-censored .censored-badge {
  top: 0.62rem;
  right: 0.62rem;
}

.project-work {
  position: relative;
  overflow: hidden;
  border-color: #4d73b8;
  box-shadow: 3px 3px 0 color-mix(in srgb, #4d73b8 35%, var(--shadow));
}

.project-work::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: #4d73b8;
}

.project-fun {
  position: relative;
  overflow: hidden;
  border-color: #cc6db0;
  box-shadow: 3px 3px 0 color-mix(in srgb, #cc6db0 35%, var(--shadow));
}

.project-fun::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: #cc6db0;
}

.project-school {
  position: relative;
  overflow: hidden;
  border-color: #d38b2c;
  box-shadow: 3px 3px 0 color-mix(in srgb, #d38b2c 35%, var(--shadow));
}

.project-school::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: #d38b2c;
}

.project-censored {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.project-censored > :not(.censored-badge) {
  filter: blur(2.6px);
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  -webkit-touch-callout: none;
  pointer-events: none;
  caret-color: transparent;
}

.project-censored > .censored-badge {
  filter: none;
}

.project-censored *::selection {
  background: transparent;
  color: transparent;
}

.project-censored::after {
  content: "";
  position: absolute;
  inset: 0;
  background: color-mix(in srgb, var(--panel) 66%, transparent);
  backdrop-filter: saturate(108%) blur(1.6px);
  border: 1px solid color-mix(in srgb, var(--line-soft) 38%, transparent);
  box-shadow: inset 0 1px 0 color-mix(in srgb, #ffffff 18%, transparent);
  pointer-events: none;
  z-index: 3;
}

.censored-badge {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  z-index: 4;
  display: inline-block;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--line) 56%, transparent);
  background: color-mix(in srgb, var(--panel-alt) 76%, transparent);
  color: var(--text);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  box-shadow: 0 1px 0 color-mix(in srgb, #ffffff 24%, transparent);
}

.tag {
  display: inline-block;
  padding: 0.3rem 0.72rem;
  border-radius: 999px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.66rem;
  line-height: 1.35;
  border: 1px solid transparent;
}

.tag-tm1 {
  background: #2f3446;
  color: #d8ddf4;
  border-color: #50597b;
}

.tag-python {
  background: #1f3f2d;
  color: #ccf2d8;
  border-color: #2d7a52;
}

.tag-powerbi {
  background: #4a3b0f;
  color: #fff3c1;
  border-color: #b7952f;
}

.tag-excel {
  background: #143628;
  color: #d2f5e8;
  border-color: #2f8f66;
}

.tag-sql {
  background: #22314a;
  color: #d8e8ff;
  border-color: #4d73b8;
}

.tag-wrangler {
  background: #4a2b14;
  color: #ffe5cf;
  border-color: #d9822b;
}

.tag-worker {
  background: #2d2348;
  color: #e4dcff;
  border-color: #7e68cc;
}

.tag-scrape {
  background: #193645;
  color: #d5f0ff;
  border-color: #3c8eaf;
}

.tag-js {
  background: #4c471a;
  color: #fff7cc;
  border-color: #d4c04e;
}

.tag-tensorflow {
  background: #4a2d14;
  color: #ffe6cf;
  border-color: #dd8335;
}

.tag-lstm {
  background: #22364a;
  color: #d9eeff;
  border-color: #4f84b3;
}

.tag-yfinance {
  background: #173f31;
  color: #d5f6e9;
  border-color: #3a9a73;
}

.tag-sklearn {
  background: #3e2a46;
  color: #f0def8;
  border-color: #a366ba;
}

.tag-mediapipe {
  background: #24384f;
  color: #d8edff;
  border-color: #5d8fc0;
}

.tag-webcam {
  background: #2f3a24;
  color: #e6f5d6;
  border-color: #7ea85b;
}

.tag-hand {
  background: #2a243f;
  color: #e1dbff;
  border-color: #8f7bdf;
}

.tag-csv {
  background: #2f3a24;
  color: #e6f5d6;
  border-color: #7ea85b;
}


.tag-risk {
  background: #452a2a;
  color: #ffdedd;
  border-color: #cf7878;
}

.tag-stats {
  background: #24384f;
  color: #d8edff;
  border-color: #5d8fc0;
}

.tag-hypothesis {
  background: #2f3a24;
  color: #e6f5d6;
  border-color: #7ea85b;
}

.tag-regression {
  background: #2a243f;
  color: #e1dbff;
  border-color: #8f7bdf;
}

.tag-riskfin {
  background: #3e2b1f;
  color: #ffe8cf;
  border-color: #d39a61;
}

.emotion-panel {
  display: grid;
  gap: 0.9rem;
}

.emotion-copy {
  display: grid;
  gap: 0.6rem;
}

.emotion-copy p {
  margin: 0;
}

.emotion-controls {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  align-items: center;
}

.emotion-status {
  margin: -0.2rem 0 0;
  font-size: 0.88rem;
}

.emotion-status.error {
  color: #ff8d8d;
}

.emotion-stage {
  position: relative;
  width: 100%;
  border: 1px solid var(--line-soft);
  background: #000000;
  overflow: hidden;
}

.emotion-video {
  display: block;
  width: 100%;
  height: auto;
  transform: scaleX(-1);
}

.emotion-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  transform: scaleX(-1);
  pointer-events: none;
}

.emotion-flash {
  position: absolute;
  inset: 0;
  z-index: 4;
  background: #ffffff;
  opacity: 0;
  pointer-events: none;
}

.emotion-flash.is-active {
  animation: cameraFlash 260ms cubic-bezier(0.2, 0.7, 0.1, 1) 1;
}

@keyframes cameraFlash {
  0% {
    opacity: 0;
  }
  18% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

.emotion-blackout {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: #000000;
  color: #ffffff;
  font-family: "IBM Plex Sans", sans-serif;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-align: center;
}

.emotion-blackout[hidden] {
  display: none;
}

.gojo-orb {
  --gojo-growth: 0;
  position: absolute;
  left: 50%;
  top: 50%;
  width: clamp(60px, 10vw, 98px);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  opacity: 0;
  z-index: 4;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.58);
  transition: opacity 80ms ease, transform 80ms ease;
  mix-blend-mode: screen;
}

.gojo-chaos-layer {
  position: absolute;
  inset: 0;
  z-index: 8;
  overflow: hidden;
  pointer-events: none;
  mix-blend-mode: screen;
}

#gojoStage.gojo-chaos-active {
  animation: gojoStageShake 90ms steps(2) infinite;
}

#gojoStage.gojo-purple-active {
  animation: gojoStageShakeHeavy 55ms steps(2) infinite;
}

#gojoStage.gojo-chaos-active .emotion-video,
#gojoStage.gojo-chaos-active .emotion-canvas {
  animation: gojoRealityWarp 280ms steps(2) infinite;
}

#gojoStage.gojo-purple-active .emotion-video,
#gojoStage.gojo-purple-active .emotion-canvas {
  animation: gojoRealityWarpHeavy 160ms steps(2) infinite;
}

#gojoStage.gojo-chaos-active::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 9;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0) 45%),
    repeating-linear-gradient(
      0deg,
      rgba(255, 255, 255, 0.06) 0px,
      rgba(255, 255, 255, 0.06) 1px,
      rgba(255, 255, 255, 0) 3px,
      rgba(255, 255, 255, 0) 6px
    );
  opacity: 0.38;
  animation: gojoScanShift 220ms steps(2) infinite;
}

#gojoStage.gojo-purple-active::before {
  opacity: 0.62;
  background:
    radial-gradient(circle at 50% 52%, rgba(197, 130, 255, 0.2) 0%, rgba(109, 36, 198, 0.22) 42%, rgba(0, 0, 0, 0) 72%),
    repeating-linear-gradient(
      0deg,
      rgba(235, 201, 255, 0.1) 0px,
      rgba(235, 201, 255, 0.1) 1px,
      rgba(0, 0, 0, 0) 2px,
      rgba(0, 0, 0, 0) 5px
    );
}

#gojoStage.gojo-chaos-flash::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 10;
  pointer-events: none;
  background: radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.5) 0%, rgba(186, 223, 255, 0.18) 32%, rgba(255, 113, 113, 0.16) 56%, rgba(0, 0, 0, 0) 76%);
  mix-blend-mode: screen;
  animation: gojoFlashPulse 120ms ease-out 1;
}

.gojo-orb::before,
.gojo-orb::after {
  content: "";
  position: absolute;
  inset: -16%;
  border-radius: 50%;
  pointer-events: none;
}

.gojo-orb::before {
  inset: -36%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0.08) 42%, rgba(255, 255, 255, 0) 72%);
  filter: blur(5px);
  opacity: 0.75;
  animation: gojoOrbAuraPulse 1200ms ease-in-out infinite;
}

.gojo-orb::after {
  inset: -24%;
  background:
    conic-gradient(
      from 180deg,
      rgba(255, 255, 255, 0.0) 0deg,
      rgba(255, 255, 255, 0.34) 85deg,
      rgba(255, 255, 255, 0.0) 160deg,
      rgba(255, 255, 255, 0.28) 250deg,
      rgba(255, 255, 255, 0.0) 360deg
    );
  opacity: 0.36;
  filter: blur(1.6px);
  animation: gojoOrbRingDrift 1700ms linear infinite;
}

.gojo-orb.is-active {
  opacity: 1;
  transform: translate(-50%, -50%) scale(calc(1 + var(--gojo-growth, 0)));
  animation: gojoOrbPulse 720ms ease-in-out infinite, gojoOrbFloat 2100ms ease-in-out infinite, gojoOrbTremor 95ms steps(2) infinite;
}

.gojo-orb-blue {
  background:
    radial-gradient(circle at 34% 26%, rgba(94, 134, 208, 0.92) 0%, rgba(38, 74, 174, 0.98) 24%, rgba(14, 43, 126, 1) 52%, rgba(6, 18, 63, 1) 74%, rgba(2, 7, 28, 1) 100%);
  box-shadow:
    0 0 14px rgba(28, 70, 170, 0.76),
    0 0 36px rgba(16, 48, 130, 0.84),
    0 0 110px rgba(5, 18, 70, 0.9),
    inset 0 0 14px rgba(137, 174, 242, 0.32);
}

.gojo-orb-red {
  background:
    radial-gradient(circle at 34% 26%, rgba(188, 112, 112, 0.92) 0%, rgba(142, 42, 42, 0.98) 24%, rgba(108, 22, 22, 1) 52%, rgba(58, 11, 11, 1) 74%, rgba(24, 6, 6, 1) 100%);
  box-shadow:
    0 0 14px rgba(143, 41, 41, 0.76),
    0 0 36px rgba(104, 18, 18, 0.84),
    0 0 110px rgba(64, 10, 10, 0.9),
    inset 0 0 14px rgba(227, 152, 152, 0.32);
}

.gojo-orb-purple {
  z-index: 11;
  background:
    radial-gradient(circle at 34% 26%, rgba(166, 120, 210, 0.92) 0%, rgba(118, 54, 186, 0.98) 22%, rgba(84, 28, 150, 1) 46%, rgba(46, 14, 96, 1) 68%, rgba(15, 5, 40, 1) 100%);
  box-shadow:
    0 0 20px rgba(112, 52, 176, 0.84),
    0 0 52px rgba(76, 24, 138, 0.9),
    0 0 146px rgba(39, 10, 90, 0.92),
    inset 0 0 16px rgba(197, 150, 240, 0.3);
}

.gojo-orb-purple::before {
  background: radial-gradient(circle, rgba(180, 96, 237, 0.26) 0%, rgba(128, 55, 199, 0.16) 40%, rgba(84, 28, 151, 0) 72%);
}

.gojo-orb-purple::after {
  background:
    conic-gradient(
      from 0deg,
      rgba(248, 228, 255, 0) 0deg,
      rgba(228, 183, 255, 0.45) 90deg,
      rgba(159, 86, 255, 0.18) 150deg,
      rgba(248, 228, 255, 0) 240deg,
      rgba(228, 183, 255, 0.5) 320deg,
      rgba(248, 228, 255, 0) 360deg
    );
}

.gojo-orb-purple.is-active {
  animation:
    gojoOrbPulse 520ms ease-in-out infinite,
    gojoOrbFloat 1700ms ease-in-out infinite,
    gojoOrbTremor 70ms steps(2) infinite,
    gojoPurpleSurge 420ms ease-in-out infinite;
}

.gojo-particle {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--gojo-psize, 6px);
  height: var(--gojo-psize, 6px);
  border-radius: 50%;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.2);
  pointer-events: none;
  z-index: 5;
  filter: blur(0.2px);
}

.gojo-particle.is-live {
  animation: gojoParticleBurst 700ms ease-out forwards;
}

.gojo-particle-blue {
  background: radial-gradient(circle, rgba(182, 226, 255, 0.96) 0%, rgba(68, 154, 255, 0.94) 58%, rgba(8, 72, 187, 0.46) 100%);
  box-shadow: 0 0 12px rgba(52, 150, 255, 0.95), 0 0 30px rgba(19, 102, 228, 0.6);
}

.gojo-particle-red {
  background: radial-gradient(circle, rgba(255, 206, 206, 0.96) 0%, rgba(242, 92, 92, 0.94) 58%, rgba(170, 20, 20, 0.46) 100%);
  box-shadow: 0 0 12px rgba(236, 82, 82, 0.95), 0 0 30px rgba(191, 31, 31, 0.6);
}

.gojo-particle-purple {
  background: radial-gradient(circle, rgba(244, 219, 255, 0.98) 0%, rgba(181, 93, 255, 0.95) 56%, rgba(96, 35, 189, 0.52) 100%);
  box-shadow: 0 0 13px rgba(205, 123, 255, 0.98), 0 0 34px rgba(134, 52, 236, 0.78);
}

.gojo-lightning {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--gojo-lthickness, 2.4px);
  height: var(--gojo-len, 34px);
  transform-origin: 50% 0%;
  transform: translate(-50%, -50%) rotate(var(--gojo-angle, 0deg)) scaleY(0.2);
  opacity: 0;
  pointer-events: none;
  z-index: 6;
  filter: drop-shadow(0 0 5px rgba(255, 255, 255, 0.8));
}

.gojo-lightning::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 2px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.95) 20%,
    currentColor 55%,
    rgba(255, 255, 255, 0.35) 82%,
    rgba(255, 255, 255, 0) 100%
  );
  clip-path: polygon(
    52% 0%,
    76% 14%,
    44% 28%,
    68% 42%,
    34% 56%,
    61% 72%,
    42% 100%,
    23% 84%,
    40% 66%,
    16% 50%,
    43% 34%,
    20% 16%
  );
}

.gojo-lightning::after {
  content: "";
  position: absolute;
  left: 50%;
  top: var(--gojo-branch-y, 42%);
  width: calc(var(--gojo-lthickness, 2.4px) * 0.9);
  height: var(--gojo-branch-len, 16px);
  transform-origin: 50% 0%;
  transform: translateX(-50%) rotate(var(--gojo-branch-angle, -35deg));
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.88) 22%,
    currentColor 60%,
    rgba(255, 255, 255, 0.25) 100%
  );
  clip-path: polygon(52% 0%, 74% 26%, 40% 52%, 66% 76%, 44% 100%, 22% 72%, 42% 46%, 20% 20%);
  opacity: 0.88;
}

.gojo-lightning.is-live {
  animation: gojoLightningArc 260ms ease-out forwards;
}

.gojo-lightning-blue {
  color: rgba(70, 168, 255, 0.95);
}

.gojo-lightning-red {
  color: rgba(241, 88, 88, 0.95);
}

.gojo-lightning-purple {
  color: rgba(206, 125, 255, 0.98);
}

.gojo-spark {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--gojo-ssize, 2px);
  height: var(--gojo-ssize, 2px);
  border-radius: 50%;
  opacity: 0;
  transform: translate(-50%, -50%) scale(0.3);
  pointer-events: none;
  z-index: 7;
}

.gojo-spark.is-live {
  animation: gojoSparkArc 220ms ease-out forwards;
}

.gojo-spark-blue {
  background: rgba(177, 225, 255, 0.95);
  box-shadow: 0 0 8px rgba(54, 151, 255, 0.92), 0 0 18px rgba(31, 111, 222, 0.66);
}

.gojo-spark-red {
  background: rgba(255, 206, 206, 0.95);
  box-shadow: 0 0 8px rgba(228, 79, 79, 0.92), 0 0 18px rgba(184, 33, 33, 0.66);
}

.gojo-spark-purple {
  background: rgba(245, 218, 255, 0.98);
  box-shadow: 0 0 8px rgba(212, 131, 255, 0.96), 0 0 22px rgba(141, 59, 237, 0.82);
}

.gojo-rift {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--gojo-rift-thickness, 2.4px);
  height: var(--gojo-rift-len, 160px);
  transform-origin: 50% 0%;
  transform: translate(-50%, -50%) rotate(var(--gojo-rift-angle, 0deg)) scaleY(0.2);
  opacity: 0;
  pointer-events: none;
  filter: blur(0.25px) drop-shadow(0 0 9px rgba(255, 255, 255, 0.6));
}

.gojo-rift::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 2px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.95) 22%,
    currentColor 58%,
    rgba(255, 255, 255, 0.2) 86%,
    rgba(255, 255, 255, 0) 100%
  );
  clip-path: polygon(
    54% 0%,
    80% 12%,
    42% 24%,
    72% 36%,
    38% 48%,
    66% 60%,
    34% 72%,
    58% 86%,
    44% 100%,
    26% 86%,
    40% 72%,
    18% 58%,
    44% 44%,
    20% 28%,
    46% 14%
  );
}

.gojo-rift::after {
  content: "";
  position: absolute;
  left: 50%;
  top: var(--gojo-rift-branch-y, 48%);
  width: calc(var(--gojo-rift-thickness, 2.4px) * 0.95);
  height: var(--gojo-rift-branch-len, 24px);
  transform-origin: 50% 0%;
  transform: translateX(-50%) rotate(var(--gojo-rift-branch-angle, -45deg));
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.92) 22%,
    currentColor 58%,
    rgba(255, 255, 255, 0.2) 100%
  );
  clip-path: polygon(52% 0%, 78% 22%, 40% 46%, 70% 70%, 44% 100%, 18% 76%, 42% 50%, 16% 22%);
  opacity: 0.86;
}

.gojo-rift.is-live {
  animation: gojoRiftSpew 250ms ease-out forwards;
}

.gojo-rift-blue {
  color: rgba(76, 176, 255, 0.98);
}

.gojo-rift-red {
  color: rgba(246, 83, 83, 0.98);
}

.gojo-rift-purple {
  color: rgba(210, 124, 255, 0.98);
}

@keyframes gojoOrbPulse {
  0%,
  100% {
    filter: brightness(0.86) saturate(1.05);
  }
  50% {
    filter: brightness(1.12) saturate(1.28);
  }
}

@keyframes gojoOrbTremor {
  0% {
    margin-left: 0;
    margin-top: 0;
  }
  25% {
    margin-left: -1px;
    margin-top: 1px;
  }
  50% {
    margin-left: 1px;
    margin-top: -1px;
  }
  75% {
    margin-left: -1px;
    margin-top: -1px;
  }
  100% {
    margin-left: 0;
    margin-top: 0;
  }
}

@keyframes gojoOrbFloat {
  0% {
    margin-left: 0;
    margin-top: -1px;
  }
  50% {
    margin-left: 0;
    margin-top: 3px;
  }
  100% {
    margin-left: 0;
    margin-top: -1px;
  }
}

@keyframes gojoOrbAuraPulse {
  from {
    opacity: 0.45;
    transform: scale(0.94);
  }
  to {
    opacity: 0.88;
    transform: scale(1.08);
  }
}

@keyframes gojoOrbRingDrift {
  from {
    transform: rotate(0deg) scale(0.95);
  }
  to {
    transform: rotate(360deg) scale(1.06);
  }
}

@keyframes gojoParticleBurst {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.2);
  }
  20% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate(
      calc(-50% + var(--gojo-pdx, 0px)),
      calc(-50% + var(--gojo-pdy, 0px))
    ) scale(0.2);
  }
}

@keyframes gojoLightningArc {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(var(--gojo-angle, 0deg)) scaleY(0.2);
  }
  18% {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(var(--gojo-angle, 0deg)) scaleY(1)
      translate(var(--gojo-ltx, 0px), var(--gojo-lty, 0px));
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(calc(var(--gojo-angle, 0deg) + 14deg)) scaleY(0.3)
      translate(calc(var(--gojo-ltx, 0px) * 1.2), calc(var(--gojo-lty, 0px) * 1.2));
  }
}

@keyframes gojoSparkArc {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.3);
  }
  15% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.2);
  }
  100% {
    opacity: 0;
    transform: translate(
      calc(-50% + var(--gojo-sdx, 0px)),
      calc(-50% + var(--gojo-sdy, 0px))
    ) scale(0.2);
  }
}

@keyframes gojoRiftSpew {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) rotate(var(--gojo-rift-angle, 0deg)) scaleY(0.2);
  }
  16% {
    opacity: 1;
    transform: translate(-50%, -50%) rotate(var(--gojo-rift-angle, 0deg)) scaleY(1.1)
      translate(var(--gojo-rift-dx, 0px), var(--gojo-rift-dy, 0px));
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -50%)
      rotate(calc(var(--gojo-rift-angle, 0deg) + 22deg))
      scaleY(0.35)
      translate(calc(var(--gojo-rift-dx, 0px) * 1.4), calc(var(--gojo-rift-dy, 0px) * 1.4));
  }
}

@keyframes gojoPurpleSurge {
  0%,
  100% {
    filter: brightness(0.92) saturate(1.18) hue-rotate(0deg);
  }
  50% {
    filter: brightness(1.24) saturate(1.52) hue-rotate(-6deg);
  }
}

@keyframes gojoStageShake {
  0% {
    transform: translate(0, 0);
  }
  25% {
    transform: translate(-2px, 1px);
  }
  50% {
    transform: translate(2px, -1px);
  }
  75% {
    transform: translate(-1px, -2px);
  }
  100% {
    transform: translate(0, 0);
  }
}

@keyframes gojoStageShakeHeavy {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }
  20% {
    transform: translate(-4px, 2px) rotate(-0.3deg);
  }
  40% {
    transform: translate(4px, -3px) rotate(0.35deg);
  }
  60% {
    transform: translate(-3px, -4px) rotate(-0.28deg);
  }
  80% {
    transform: translate(4px, 3px) rotate(0.24deg);
  }
  100% {
    transform: translate(0, 0) rotate(0deg);
  }
}

@keyframes gojoRealityWarp {
  0% {
    filter: contrast(1.06) saturate(1.15) brightness(0.98);
  }
  50% {
    filter: contrast(1.28) saturate(1.35) brightness(0.9) hue-rotate(-8deg);
  }
  100% {
    filter: contrast(1.06) saturate(1.15) brightness(0.98);
  }
}

@keyframes gojoRealityWarpHeavy {
  0% {
    filter: contrast(1.16) saturate(1.28) brightness(0.94) hue-rotate(-8deg);
  }
  50% {
    filter: contrast(1.42) saturate(1.6) brightness(0.86) hue-rotate(-18deg);
  }
  100% {
    filter: contrast(1.16) saturate(1.28) brightness(0.94) hue-rotate(-8deg);
  }
}

@keyframes gojoScanShift {
  0% {
    transform: translateY(0);
    opacity: 0.22;
  }
  50% {
    transform: translateY(2px);
    opacity: 0.4;
  }
  100% {
    transform: translateY(0);
    opacity: 0.22;
  }
}

@keyframes gojoFlashPulse {
  0% {
    opacity: 0;
  }
  35% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

.emotion-label {
  position: absolute;
  left: 0.55rem;
  bottom: 0.55rem;
  z-index: 2;
  padding: 0.24rem 0.5rem;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.66rem;
  color: var(--text);
  border: 1px solid color-mix(in srgb, var(--line) 50%, transparent);
  background: color-mix(in srgb, var(--panel) 80%, transparent);
}

.emotion-reaction {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  z-index: 3;
  display: grid;
  justify-items: end;
  gap: 0.3rem;
  pointer-events: none;
}

.emotion-reaction-image {
  width: clamp(160px, 24vw, 260px);
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border: 1px solid var(--line-soft);
  background: rgba(0, 0, 0, 0.25);
}

.emotion-reaction-text {
  margin: 0;
  padding: 0.18rem 0.4rem;
  font-size: 0.68rem;
  color: #f7f7f7;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(0, 0, 0, 0.45);
}

.emotion-hint {
  margin: -0.15rem 0 0;
  font-size: 0.82rem;
}

.movie-panel {
  display: grid;
  gap: 0.9rem;
}

.movie-type-row {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.36rem;
  margin-top: -0.18rem;
}

.movie-type-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.14rem 0.52rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--line) 55%, transparent);
  background: color-mix(in srgb, var(--panel-alt) 82%, transparent);
  color: var(--text);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.6rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.movie-data-box,
.movie-recommender-box {
  display: grid;
  gap: 0.6rem;
}

.movie-note {
  margin: 0;
  font-size: 0.84rem;
}

.movie-dataset-controls {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.movie-file-label {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0.46rem 0.62rem;
  border: 1px dashed var(--line-soft);
  background: var(--panel-alt);
  color: var(--text);
  cursor: pointer;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.66rem;
}

.movie-file-label:hover {
  border-color: var(--line);
}

.movie-file-input {
  display: none;
}

.movie-status {
  margin: 0;
  font-size: 0.86rem;
}


.medical-disclaimer {
  margin: 0.45rem 0 0;
  font-size: 0.78rem;
  color: var(--muted);
}

.medical-caveat {
  margin: 0.35rem 0 0;
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.45;
}

.movie-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.56rem 0.62rem;
}

.movie-field {
  display: grid;
  gap: 0.22rem;
}

.movie-field-wide {
  grid-column: 1 / -1;
}

.movie-field label {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.64rem;
  letter-spacing: 0.02em;
}

.info-tip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1rem;
  height: 1rem;
  margin-left: 0.28rem;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.62rem;
  line-height: 1;
  color: var(--muted);
  background: var(--panel-alt);
  cursor: help;
  position: relative;
  vertical-align: middle;
}

.info-tip::after {
  content: attr(data-tip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 0.48rem);
  transform: translateX(-50%);
  min-width: 200px;
  max-width: 260px;
  padding: 0.4rem 0.48rem;
  border: 1px solid var(--line-soft);
  background: var(--panel);
  color: var(--text);
  font-size: 0.68rem;
  line-height: 1.38;
  font-family: "IBM Plex Sans", sans-serif;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.24);
  opacity: 0;
  pointer-events: none;
  transition: opacity 120ms ease;
  z-index: 30;
}

.info-tip:hover::after,
.info-tip:focus-visible::after {
  opacity: 1;
}

.movie-field input,
.movie-field select {
  width: 100%;
  background: var(--panel-alt);
  color: var(--text);
  border: 1px solid var(--line-soft);
  padding: 0.46rem 0.54rem;
  font-size: 0.88rem;
}

.movie-field.field-disabled {
  opacity: 0.62;
}

.movie-form-actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 0.58rem;
  flex-wrap: wrap;
}

.movie-result {
  border: 1px solid var(--line-soft);
  background: color-mix(in srgb, var(--panel-alt) 80%, transparent);
  padding: 0.72rem;
  display: grid;
  gap: 0.38rem;
}

.movie-result h3 {
  margin: 0;
  font-size: 1rem;
}

.movie-result-meta {
  margin: 0;
  display: flex;
  gap: 0.45rem 0.6rem;
  flex-wrap: wrap;
  font-size: 0.78rem;
  font-family: "IBM Plex Mono", monospace;
  color: var(--text);
}

.movie-result-genres,
.movie-result-overview {
  margin: 0;
}

.movie-alt-wrap {
  display: grid;
  gap: 0.36rem;
}

.movie-alt-wrap h3 {
  margin: 0;
  font-size: 0.95rem;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.62rem;
  margin-top: 0.62rem;
}

.stat-card {
  border: 1px solid var(--line-soft);
  background: color-mix(in srgb, var(--panel-alt) 82%, transparent);
  padding: 0.62rem;
  display: grid;
  gap: 0.35rem;
}

.stat-card h3 {
  margin: 0;
  font-size: 0.92rem;
}

.movie-alt-list {
  margin: 0;
  padding-left: 1rem;
  display: grid;
  gap: 0.22rem;
}

.achievement-panel {
  display: grid;
  gap: 0.85rem;
}

.achievement-text {
  margin: 0;
}

.achievement-image-wrap {
  margin: 0;
  border: 1px solid var(--line-soft);
  background: var(--panel-alt);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--line-soft) 35%, transparent);
  overflow: hidden;
}

.achievement-image {
  display: block;
  width: 100%;
  height: auto;
}

.fite-panel {
  display: grid;
  gap: 1rem;
}

.fite-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.fite-summary-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 0.85rem;
}

.fite-block {
  border: 1px solid var(--line-soft);
  background: color-mix(in srgb, var(--panel-alt) 82%, transparent);
  padding: 0.62rem;
}

.fite-block h2 {
  margin-bottom: 0.34rem;
  font-size: 0.95rem;
}

.fite-summary-grid .fite-block .impact-list li {
  font-size: 0.84rem;
  line-height: 1.42;
}

.fite-summary-grid .fite-block .impact-list {
  gap: 0.3rem;
  margin-top: 0.3rem;
}

.fite-stat-list li {
  font-size: 0.83rem;
  line-height: 1.32;
}

.fite-stat-list li strong {
  font-size: 0.88rem;
}

.fite-stat-list {
  gap: 0.42rem;
}

.fite-charts-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.fite-chart-status {
  margin: 0.45rem 0 0;
  font-size: 0.88rem;
}

.fite-charts-grid {
  margin-top: 0.7rem;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.7rem;
}

.fite-chart-card {
  margin: 0;
  border: 1px solid var(--line-soft);
  background: var(--panel);
  padding: 0.5rem;
  display: grid;
  gap: 0.45rem;
}

.fite-chart-image {
  width: 100%;
  height: auto;
  border: 1px solid color-mix(in srgb, var(--line-soft) 55%, transparent);
  background: color-mix(in srgb, var(--panel-alt) 75%, transparent);
}

.fite-chart-image[data-src] {
  display: none;
}

.fite-chart-card-main {
  padding: 0.65rem;
}

.fite-chart-card-main .fite-chart-image {
  width: 100%;
}

.fite-chart-image.is-missing {
  min-height: 190px;
}

.fite-chart-caption {
  font-size: 0.82rem;
}

.fite-chart-hint {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.66rem;
  color: var(--muted);
}

.fite-results-card {
  align-content: start;
}

.fite-results-title {
  margin: 0;
  font-size: 0.9rem;
}

.fite-table-wrap {
  overflow-x: auto;
}

.fite-metric-table {
  width: 100%;
  border-collapse: collapse;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.68rem;
}

.fite-metric-table th,
.fite-metric-table td {
  padding: 0.34rem 0.36rem;
  border-bottom: 1px solid color-mix(in srgb, var(--line-soft) 52%, transparent);
  text-align: right;
}

.fite-metric-table th:first-child,
.fite-metric-table td:first-child {
  text-align: left;
}

.fite-metric-table th {
  font-weight: 600;
}

.fite-pred-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.34rem;
}

.fite-pred-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
  font-size: 0.86rem;
}

.fite-pred-list strong {
  font-family: "IBM Plex Mono", monospace;
}

.powerbi-panel {
  display: grid;
  gap: 0.9rem;
}

.powerbi-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.72rem;
}

.powerbi-shot {
  margin: 0;
  border: 1px solid var(--line-soft);
  background: var(--panel);
  padding: 0.48rem;
  display: grid;
  gap: 0.36rem;
}

.powerbi-shot img {
  width: 100%;
  height: auto;
  display: block;
  border: 1px solid color-mix(in srgb, var(--line-soft) 60%, transparent);
  background: color-mix(in srgb, var(--panel-alt) 78%, transparent);
}

.powerbi-shot figcaption {
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.7rem;
  color: var(--text);
}

.skill-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 280ms ease, transform 280ms ease;
}

.skill-list li {
  text-align: center;
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.76rem;
  line-height: 1.45;
  padding: 0.64rem 0.5rem;
}

.reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 280ms ease, transform 280ms ease;
}

.reveal.is-visible,
.pixel-card.is-visible,
.skill-list.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.site-footer {
  padding: 1.45rem 0 1.9rem;
  border-top: 1px solid var(--line-soft);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
}

.site-footer p {
  margin: 0;
  text-align: center;
  color: var(--text);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.66rem;
}

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

  .fite-summary-grid {
    grid-template-columns: 1fr;
  }

  .powerbi-gallery {
    grid-template-columns: 1fr;
  }

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

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

  .card-grid .pixel-card {
    grid-template-columns: minmax(95px, 120px) minmax(190px, 1fr);
    gap: 0.3rem 0.78rem;
  }

  .card-grid .pixel-card .card-meta {
    grid-column: 1;
    grid-row: 1;
  }

  .card-grid .pixel-card h3 {
    grid-column: 2;
    grid-row: 1;
    font-size: 1.05rem;
  }

  .card-grid .pixel-card > p:not(.card-meta) {
    grid-column: 2;
    grid-row: 2;
    font-size: 0.88rem;
  }

  .card-grid .pixel-card .project-tags {
    grid-column: 2;
    grid-row: 3;
    margin-top: 0.16rem;
  }
}

@media (max-width: 860px) {
  .menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .nav {
    position: absolute;
    top: 73px;
    right: 4%;
    flex-direction: column;
    min-width: 190px;
    background: var(--panel);
    border: 1px solid var(--line-soft);
    padding: 0.6rem;
    opacity: 0;
    pointer-events: none;
    transform: scale(0.98);
    transform-origin: top right;
    transition: opacity 160ms ease, transform 160ms ease;
  }

  .nav.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: scale(1);
  }

  .section {
    padding: 2.8rem 0;
  }

  .hero {
    padding-top: 3.1rem;
  }

  .movie-form {
    grid-template-columns: 1fr;
  }

  .card-grid .pixel-card {
    display: block;
    padding: 0.9rem 0.95rem;
  }

  .card-grid .pixel-card h3 {
    margin: 0.12rem 0 0.26rem;
    font-size: 1.03rem;
    line-height: 1.28;
  }

  .card-grid .pixel-card > p:not(.card-meta) {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.52;
  }

  .card-grid .pixel-card .project-tags {
    margin-top: 0.46rem;
  }
}

