:root {
  color-scheme: light;
  --ink: #0b1828;
  --ink-soft: #34465b;
  --navy: #0d2847;
  --navy-2: #14385f;
  --teal: #0b8f87;
  --teal-dark: #08746e;
  --mint: #dff5ef;
  --mint-2: #effaf7;
  --coral: #f67667;
  --coral-soft: #fff0ed;
  --amber: #e9a928;
  --amber-soft: #fff7df;
  --red: #d94d57;
  --red-soft: #ffedf0;
  --blue-soft: #eaf2fb;
  --paper: #f4f7fb;
  --white: #ffffff;
  --line: #dce5ee;
  --line-strong: #c6d2df;
  --shadow-sm: 0 2px 10px rgba(13, 40, 71, 0.06);
  --shadow-md: 0 16px 44px rgba(13, 40, 71, 0.11);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 30px;
  --content: 1180px;
  --font-sans: "Aptos", "Segoe UI Variable", "Segoe UI", system-ui, sans-serif;
  --font-display: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--paper);
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 92% 2%, rgba(11, 143, 135, 0.09), transparent 27rem),
    var(--paper);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

button,
input {
  font: inherit;
}

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

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(11, 143, 135, 0.3);
  outline-offset: 3px;
}

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

.skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 1000;
  transform: translateY(-180%);
  padding: 0.7rem 1rem;
  border-radius: 999px;
  color: var(--white);
  background: var(--navy);
  transition: transform 160ms ease;
}

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(220, 229, 238, 0.9);
  background: rgba(244, 247, 251, 0.9);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: min(calc(100% - 2rem), var(--content));
  min-height: 76px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  min-width: max-content;
}

.brand-mark {
  position: relative;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 13px;
  color: var(--white);
  background: var(--navy);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  font-weight: 800;
  letter-spacing: -0.06em;
}

.brand-mark::after {
  content: "";
  position: absolute;
  right: -10px;
  bottom: -12px;
  width: 28px;
  height: 28px;
  border: 7px solid var(--coral);
  border-radius: 50%;
}

.brand-copy {
  display: grid;
  line-height: 1.1;
}

.brand-copy strong {
  font-size: 0.93rem;
  letter-spacing: 0.08em;
}

.brand-copy span {
  margin-top: 0.28rem;
  color: var(--ink-soft);
  font-size: 0.75rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.site-nav a {
  padding: 0.64rem 0.86rem;
  border-radius: 999px;
  color: var(--ink-soft);
  font-size: 0.91rem;
  font-weight: 650;
  transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}

.site-nav a:hover {
  color: var(--ink);
  background: var(--white);
  transform: translateY(-1px);
}

.site-nav a[aria-current="page"] {
  color: var(--white);
  background: var(--navy);
  box-shadow: var(--shadow-sm);
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 13px;
  color: var(--navy);
  background: var(--white);
  cursor: pointer;
}

.menu-button span,
.menu-button::before,
.menu-button::after {
  content: "";
  display: block;
  width: 19px;
  height: 2px;
  margin: 4px auto;
  border-radius: 99px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.menu-button[aria-expanded="true"] span {
  opacity: 0;
}

.menu-button[aria-expanded="true"]::before {
  transform: translateY(6px) rotate(45deg);
}

.menu-button[aria-expanded="true"]::after {
  transform: translateY(-6px) rotate(-45deg);
}

.page-shell {
  width: min(calc(100% - 2rem), var(--content));
  margin-inline: auto;
  padding: 3.2rem 0 5.5rem;
}

.page-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 2rem;
  margin-bottom: 2.1rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 0.65rem;
  color: var(--teal-dark);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.eyebrow::before {
  content: "";
  width: 24px;
  height: 2px;
  border-radius: 99px;
  background: var(--teal);
}

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

h1,
h2 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.035em;
}

h1 {
  max-width: 770px;
  margin-bottom: 0.7rem;
  font-size: clamp(2.5rem, 5vw, 4.65rem);
  line-height: 0.99;
}

.page-intro .lede {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: clamp(1rem, 1.7vw, 1.16rem);
}

.status-chip {
  min-width: max-content;
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.62rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  background: rgba(255, 255, 255, 0.75);
  font-size: 0.82rem;
  font-weight: 700;
  box-shadow: var(--shadow-sm);
}

.status-chip::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 0 4px rgba(233, 169, 40, 0.14);
}

.status-chip.ready::before {
  background: var(--teal);
  box-shadow: 0 0 0 4px rgba(11, 143, 135, 0.14);
}

.status-chip.error::before {
  background: var(--red);
  box-shadow: 0 0 0 4px rgba(217, 77, 87, 0.13);
}

.studio-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  align-items: stretch;
  gap: 1.25rem;
}

.card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: var(--shadow-sm);
}

.input-card {
  padding: clamp(1.25rem, 3vw, 2rem);
}

.card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.35rem;
}

.card-heading h2,
.section-heading h2 {
  margin-bottom: 0.3rem;
  font-size: clamp(1.55rem, 2.6vw, 2.2rem);
  line-height: 1.08;
}

.card-heading p,
.section-heading p {
  margin-bottom: 0;
  color: var(--ink-soft);
}

.step-badge {
  min-width: max-content;
  padding: 0.38rem 0.7rem;
  border-radius: 999px;
  color: var(--teal-dark);
  background: var(--mint);
  font-size: 0.78rem;
  font-weight: 800;
}

.profiles {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.35rem;
}

.profile-button {
  min-height: 40px;
  padding: 0.48rem 0.78rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  background: var(--white);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 720;
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
}

.profile-button:hover,
.profile-button.active {
  border-color: rgba(11, 143, 135, 0.5);
  color: var(--teal-dark);
  background: var(--mint-2);
}

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

.field {
  display: grid;
  gap: 0.42rem;
}

.field-label {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 740;
}

.field-label small {
  color: #74859a;
  font-size: 0.72rem;
  font-weight: 650;
}

.input-wrap {
  position: relative;
}

.input-wrap input {
  width: 100%;
  min-height: 52px;
  padding: 0.74rem 3.5rem 0.74rem 0.85rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--ink);
  background: var(--paper);
  font-size: 1rem;
  font-weight: 700;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.input-wrap input:hover {
  border-color: #a9bacb;
}

.input-wrap input:focus {
  border-color: var(--teal);
  outline: none;
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(11, 143, 135, 0.1);
}

.input-wrap input:invalid:not(:placeholder-shown) {
  border-color: var(--red);
}

.unit {
  position: absolute;
  top: 50%;
  right: 0.8rem;
  transform: translateY(-50%);
  color: #728297;
  font-size: 0.72rem;
  font-weight: 740;
  pointer-events: none;
}

.field-note {
  min-height: 1.1rem;
  color: #718197;
  font-size: 0.73rem;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.72rem 1rem;
  border: 1px solid transparent;
  border-radius: 13px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 800;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.button:hover:not(:disabled) {
  transform: translateY(-2px);
}

.button-primary {
  flex: 1;
  color: var(--white);
  background: var(--navy);
  box-shadow: 0 12px 24px rgba(13, 40, 71, 0.18);
}

.button-primary:hover:not(:disabled) {
  background: var(--navy-2);
  box-shadow: 0 15px 28px rgba(13, 40, 71, 0.22);
}

.button-secondary {
  color: var(--ink-soft);
  border-color: var(--line);
  background: var(--white);
}

.button:disabled {
  opacity: 0.55;
  cursor: wait;
}

.button-icon {
  font-size: 1.12rem;
  line-height: 1;
}

.result-card {
  position: relative;
  min-height: 100%;
  overflow: hidden;
  color: var(--white);
  border: 0;
  background:
    radial-gradient(circle at 95% 5%, rgba(255, 255, 255, 0.13), transparent 14rem),
    linear-gradient(150deg, #102e4f 0%, #0b1c30 70%);
  box-shadow: var(--shadow-md);
}

.result-card::before {
  content: "";
  position: absolute;
  top: -80px;
  right: -70px;
  width: 230px;
  height: 230px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 50%;
  box-shadow:
    0 0 0 34px rgba(255, 255, 255, 0.035),
    0 0 0 72px rgba(255, 255, 255, 0.025);
}

.result-inner {
  position: relative;
  z-index: 1;
  min-height: 100%;
  display: flex;
  flex-direction: column;
  padding: clamp(1.35rem, 3vw, 2rem);
}

.result-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.privacy-note {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.privacy-note svg {
  width: 14px;
  height: 14px;
}

.result-summary {
  display: grid;
  grid-template-columns: 136px minmax(0, 1fr);
  align-items: center;
  gap: 1.2rem;
  margin: 2rem 0 1.5rem;
}

.risk-ring {
  --progress: 0deg;
  --ring-color: rgba(255, 255, 255, 0.32);
  width: 136px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: conic-gradient(var(--ring-color) var(--progress), rgba(255, 255, 255, 0.09) 0);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

.risk-ring::before {
  content: "";
  grid-area: 1 / 1;
  width: 106px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #102842;
  box-shadow: inset 0 0 22px rgba(0, 0, 0, 0.18);
}

.risk-ring-copy {
  position: relative;
  z-index: 1;
  grid-area: 1 / 1;
  display: grid;
  place-items: center;
  line-height: 1.05;
}

.risk-ring-copy strong {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
}

.risk-ring-copy span {
  margin-top: 0.2rem;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.risk-copy h2 {
  margin-bottom: 0.45rem;
  color: var(--white);
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 4vw, 2.65rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
}

.risk-copy p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.89rem;
}

.probability-list {
  display: grid;
  gap: 0.85rem;
  padding: 1.05rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.045);
}

.probability-row {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) 42px;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.78rem;
  font-weight: 700;
}

.probability-track {
  height: 7px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.11);
}

.probability-fill {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: var(--mint);
  transition: width 520ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.probability-row[data-risk="mid"] .probability-fill {
  background: var(--amber);
}

.probability-row[data-risk="high"] .probability-fill {
  background: var(--coral);
}

.probability-value {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.explanation-box {
  margin-top: 1rem;
  padding: 1rem 1.05rem;
  border-radius: 16px;
  color: rgba(255, 255, 255, 0.82);
  background: rgba(11, 143, 135, 0.13);
}

.explanation-box h3 {
  margin-bottom: 0.6rem;
  color: var(--white);
  font-size: 0.83rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.influence-list li {
  display: grid;
  grid-template-columns: minmax(92px, 1fr) 1.4fr auto;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.78rem;
}

.mini-track {
  height: 5px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.11);
}

.mini-fill {
  height: 100%;
  border-radius: inherit;
  background: #6fd1c8;
}

.result-disclaimer {
  margin: auto 0 0;
  padding-top: 1.2rem;
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.74rem;
}

.insight-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.25rem;
}

.insight-card {
  padding: 1.2rem;
}

.insight-card strong {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--navy);
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
}

.insight-card span {
  color: var(--ink-soft);
  font-size: 0.84rem;
}

.comparison-panel {
  margin-top: 1.25rem;
  padding: clamp(1.2rem, 3vw, 1.8rem);
}

.comparison-empty {
  padding: 1.6rem;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--ink-soft);
  text-align: center;
}

.comparison-table-wrap,
.data-table-wrap {
  overflow-x: auto;
}

.comparison-table,
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.86rem;
}

.comparison-table th,
.comparison-table td,
.data-table th,
.data-table td {
  padding: 0.75rem 0.7rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
}

.comparison-table th,
.data-table th {
  color: #6b7b8f;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.risk-pill {
  display: inline-flex;
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
}

.risk-pill.low {
  color: var(--teal-dark);
  background: var(--mint);
}

.risk-pill.mid {
  color: #8b6414;
  background: var(--amber-soft);
}

.risk-pill.high {
  color: #a43c46;
  background: var(--red-soft);
}

.section {
  margin-top: 4.5rem;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 1.5rem;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.metric-card {
  position: relative;
  min-height: 172px;
  padding: 1.35rem;
  overflow: hidden;
}

.metric-card::after {
  content: "";
  position: absolute;
  right: -30px;
  bottom: -48px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: var(--blue-soft);
}

.metric-card:nth-child(2)::after {
  background: var(--mint);
}

.metric-card:nth-child(3)::after {
  background: var(--amber-soft);
}

.metric-card:nth-child(4)::after {
  background: var(--coral-soft);
}

.metric-label {
  position: relative;
  z-index: 1;
  color: #718197;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.metric-value {
  position: relative;
  z-index: 1;
  display: block;
  margin: 0.42rem 0 0.2rem;
  color: var(--navy);
  font-family: var(--font-display);
  font-size: 2.35rem;
  font-weight: 600;
  line-height: 1;
}

.metric-note {
  position: relative;
  z-index: 1;
  color: var(--ink-soft);
  font-size: 0.78rem;
}

.results-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 1.25rem;
}

.panel {
  padding: clamp(1.3rem, 3vw, 2rem);
}

.panel-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.panel-title h2,
.panel-title h3 {
  margin-bottom: 0.25rem;
  color: var(--navy);
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.panel-title p {
  max-width: 560px;
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 0.86rem;
}

.bar-chart {
  display: grid;
  gap: 0.85rem;
}

.bar-row {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) 54px;
  align-items: center;
  gap: 0.8rem;
  font-size: 0.8rem;
  font-weight: 700;
}

.bar-row.highlight {
  color: var(--teal-dark);
}

.bar-track {
  position: relative;
  height: 10px;
  overflow: hidden;
  border-radius: 99px;
  background: #e9eef4;
}

.bar-fill {
  width: var(--value);
  height: 100%;
  border-radius: inherit;
  background: #8ea1b6;
}

.bar-row.highlight .bar-fill {
  background: linear-gradient(90deg, var(--teal), #42b9af);
}

.bar-value {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.confusion-wrap {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 0.65rem;
  align-items: center;
}

.axis-y {
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  color: #718197;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.confusion-content {
  display: grid;
  gap: 0.6rem;
}

.axis-x {
  color: #718197;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-align: center;
  text-transform: uppercase;
}

.confusion-grid {
  display: grid;
  grid-template-columns: 72px repeat(3, minmax(66px, 1fr));
  gap: 5px;
}

.confusion-label,
.confusion-cell {
  min-height: 58px;
  display: grid;
  place-items: center;
  border-radius: 10px;
}

.confusion-label {
  color: #64758a;
  font-size: 0.74rem;
  font-weight: 800;
}

.confusion-cell {
  color: var(--navy);
  background: var(--blue-soft);
  font-variant-numeric: tabular-nums;
}

.confusion-cell strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.45rem;
  font-weight: 600;
  line-height: 1;
}

.confusion-cell small {
  margin-top: 0.2rem;
  color: #63758a;
  font-size: 0.64rem;
}

.confusion-cell.correct {
  color: #075f5a;
  background: var(--mint);
}

.confusion-cell.weak {
  color: #8b6414;
  background: var(--amber-soft);
}

.class-recall {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
  margin-top: 1.25rem;
}

.recall-card {
  padding: 0.85rem;
  border-radius: 12px;
  background: var(--paper);
}

.recall-card span {
  display: block;
  color: #718197;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.recall-card strong {
  display: block;
  margin-top: 0.3rem;
  color: var(--navy);
  font-size: 1.25rem;
}

.benchmark-compare {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: stretch;
  overflow: hidden;
}

.benchmark-side {
  padding: clamp(1.4rem, 3vw, 2rem);
}

.benchmark-side strong {
  display: block;
  margin: 0.4rem 0 0.55rem;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 600;
  line-height: 1;
}

.benchmark-side p {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 0.85rem;
}

.benchmark-side.verified {
  color: var(--navy);
  background: var(--mint-2);
}

.benchmark-side.legacy {
  color: #7c5310;
  background: var(--amber-soft);
}

.benchmark-divider {
  display: grid;
  place-items: center;
  padding: 0 0.8rem;
  color: #718197;
  background: var(--white);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.feature-row {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) 58px;
  align-items: center;
  gap: 0.7rem;
  font-size: 0.8rem;
  font-weight: 700;
}

.feature-track {
  height: 8px;
  overflow: hidden;
  border-radius: 99px;
  background: #e9eef4;
}

.feature-fill {
  width: var(--value);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--navy-2), var(--teal));
}

.audit-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.audit-card {
  padding: 1.25rem;
}

.audit-card .number {
  display: block;
  color: var(--navy);
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 600;
  line-height: 1;
}

.audit-card .label {
  display: block;
  margin-top: 0.5rem;
  color: var(--ink-soft);
  font-size: 0.8rem;
}

.pipeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 0.75rem;
}

.pipeline::before {
  content: "";
  position: absolute;
  top: 33px;
  left: 7%;
  right: 7%;
  height: 2px;
  background: linear-gradient(90deg, var(--teal), var(--navy-2));
}

.pipeline-step {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  text-align: center;
}

.pipeline-node {
  width: 66px;
  height: 66px;
  display: grid;
  place-items: center;
  border: 6px solid var(--paper);
  border-radius: 50%;
  color: var(--white);
  background: var(--navy);
  box-shadow: 0 0 0 1px var(--line-strong);
  font-weight: 850;
}

.pipeline-step:nth-child(2n) .pipeline-node {
  background: var(--teal-dark);
}

.pipeline-step h3 {
  margin: 0.7rem 0 0.25rem;
  font-size: 0.84rem;
}

.pipeline-step p {
  margin-bottom: 0;
  color: #6e7f94;
  font-size: 0.7rem;
  line-height: 1.4;
}

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

.method-card {
  padding: 1.3rem;
}

.method-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
  border-radius: 12px;
  color: var(--teal-dark);
  background: var(--mint);
  font-weight: 900;
}

.method-card h3 {
  margin-bottom: 0.4rem;
  color: var(--navy);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
}

.method-card p {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 0.84rem;
}

.feature-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.feature-chip {
  padding: 0.48rem 0.72rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-soft);
  background: var(--white);
  font-size: 0.78rem;
  font-weight: 720;
}

.feature-chip.raw {
  color: var(--teal-dark);
  border-color: rgba(11, 143, 135, 0.26);
  background: var(--mint-2);
}

.profile-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 1.25rem;
}

.profile-main {
  position: relative;
  overflow: hidden;
  padding: clamp(1.6rem, 4vw, 3rem);
  color: var(--white);
  border: 0;
  background: linear-gradient(145deg, var(--navy) 0%, #0a1c31 100%);
  box-shadow: var(--shadow-md);
}

.profile-main::after {
  content: "CSC / 2022 / 81014";
  position: absolute;
  right: -1.4rem;
  bottom: 1.5rem;
  color: rgba(255, 255, 255, 0.045);
  font-family: var(--font-display);
  font-size: clamp(3.4rem, 8vw, 7rem);
  white-space: nowrap;
}

.profile-main > * {
  position: relative;
  z-index: 1;
}

.profile-main h2 {
  max-width: 720px;
  margin-bottom: 1.1rem;
  color: var(--white);
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.8rem);
  font-weight: 600;
  line-height: 1.02;
  letter-spacing: -0.04em;
}

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

.identity-item span {
  display: block;
  color: rgba(255, 255, 255, 0.54);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.identity-item strong {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.92rem;
}

.profile-side {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 1.25rem;
}

.quote-card,
.scope-card {
  padding: 1.5rem;
}

.quote-card {
  color: var(--navy);
  background: var(--mint);
}

.quote-card blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.3rem;
  line-height: 1.25;
}

.quote-card cite {
  display: block;
  margin-top: 1rem;
  color: var(--teal-dark);
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.scope-card {
  background: var(--coral-soft);
}

.scope-card h3 {
  margin-bottom: 0.45rem;
  color: #8f3942;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
}

.scope-card p {
  margin-bottom: 0;
  color: #6e464b;
  font-size: 0.84rem;
}

.objective-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  counter-reset: objective;
}

.objective-card {
  position: relative;
  min-height: 220px;
  padding: 1.35rem;
  counter-increment: objective;
}

.objective-card::before {
  content: "0" counter(objective);
  display: block;
  margin-bottom: 2rem;
  color: var(--teal);
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 600;
}

.objective-card h3 {
  margin-bottom: 0.45rem;
  color: var(--navy);
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
}

.objective-card p {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 0.84rem;
}

.split-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.list-card {
  padding: 1.4rem;
}

.list-card h3 {
  margin-bottom: 0.85rem;
  color: var(--navy);
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
}

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

.clean-list li {
  position: relative;
  padding-left: 1.4rem;
  color: var(--ink-soft);
  font-size: 0.86rem;
}

.clean-list li::before {
  content: "";
  position: absolute;
  top: 0.55rem;
  left: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--teal);
}

.list-card.limitations .clean-list li::before {
  background: var(--coral);
}

.callout {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1rem;
  padding: 1.25rem;
  border: 1px solid rgba(233, 169, 40, 0.26);
  border-radius: var(--radius-md);
  background: var(--amber-soft);
}

.callout-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: #7f5b14;
  background: rgba(233, 169, 40, 0.2);
  font-weight: 900;
}

.callout h3 {
  margin-bottom: 0.25rem;
  color: #6f4f10;
  font-size: 1rem;
}

.callout p {
  margin-bottom: 0;
  color: #725b2d;
  font-size: 0.84rem;
}

.source-link {
  color: var(--teal-dark);
  font-weight: 760;
  text-decoration: underline;
  text-decoration-color: rgba(11, 143, 135, 0.35);
  text-underline-offset: 3px;
}

.site-footer {
  border-top: 1px solid var(--line);
  background: var(--white);
}

.footer-inner {
  width: min(calc(100% - 2rem), var(--content));
  min-height: 120px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding-block: 1.6rem;
}

.footer-copy {
  color: var(--ink-soft);
  font-size: 0.78rem;
}

.footer-copy strong {
  display: block;
  margin-bottom: 0.2rem;
  color: var(--navy);
  font-size: 0.9rem;
}

.footer-meta {
  max-width: 470px;
  color: #718197;
  font-size: 0.73rem;
  text-align: right;
}

.loading-shimmer {
  position: relative;
  overflow: hidden;
}

.loading-shimmer::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.16), transparent);
  animation: shimmer 1.4s infinite;
}

@keyframes shimmer {
  100% {
    transform: translateX(100%);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 980px) {
  .menu-button {
    display: block;
  }

  .site-nav {
    position: fixed;
    top: 68px;
    left: 1rem;
    right: 1rem;
    display: grid;
    padding: 0.7rem;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-md);
    transform: translateY(-12px) scale(0.98);
    transform-origin: top;
    opacity: 0;
    pointer-events: none;
    transition: transform 180ms ease, opacity 180ms ease;
  }

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

  .site-nav a {
    border-radius: 11px;
  }

  .studio-grid,
  .results-grid,
  .profile-hero {
    grid-template-columns: 1fr;
  }

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

  .pipeline {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.4rem 0.75rem;
  }

  .pipeline::before {
    display: none;
  }

  .objective-list,
  .method-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .header-inner {
    min-height: 68px;
  }

  .brand-copy span {
    display: none;
  }

  .page-shell {
    padding-top: 2.3rem;
  }

  .page-intro {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 1rem;
  }

  h1 {
    font-size: clamp(2.3rem, 11vw, 3.6rem);
  }

  .form-grid,
  .insight-strip,
  .metric-grid,
  .audit-grid,
  .feature-grid,
  .method-grid,
  .objective-list,
  .split-list {
    grid-template-columns: 1fr;
  }

  .result-summary {
    grid-template-columns: 112px minmax(0, 1fr);
  }

  .risk-ring {
    width: 112px;
  }

  .risk-ring::before {
    width: 86px;
  }

  .risk-ring-copy strong {
    font-size: 1.6rem;
  }

  .result-card {
    min-height: 640px;
  }

  .benchmark-compare {
    grid-template-columns: 1fr;
  }

  .benchmark-divider {
    padding: 0.55rem;
  }

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

  .confusion-grid {
    grid-template-columns: 58px repeat(3, minmax(54px, 1fr));
  }

  .confusion-label,
  .confusion-cell {
    min-height: 52px;
  }

  .class-recall,
  .identity-list {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.75rem;
  }

  .footer-meta {
    text-align: left;
  }
}

@media (max-width: 440px) {
  .page-shell,
  .header-inner,
  .footer-inner {
    width: min(calc(100% - 1.25rem), var(--content));
  }

  .brand-mark {
    width: 38px;
    height: 38px;
  }

  .form-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .probability-row {
    grid-template-columns: 62px minmax(0, 1fr) 40px;
  }

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

  .risk-ring {
    width: 124px;
  }

  .risk-ring::before {
    width: 96px;
  }

  .influence-list li {
    grid-template-columns: 90px minmax(0, 1fr);
  }

  .influence-list li > :last-child {
    display: none;
  }

  .bar-row,
  .feature-row {
    grid-template-columns: 92px minmax(0, 1fr) 48px;
  }
}
