:root {
  --city-950: #06182b;
  --city-900: #071f37;
  --city-800: #0b3558;
  --blue: #0b5c9e;
  --blue-dark: #06182b;
  --cyan: #36c1e2;
  --gold: #f6b73c;
  --gold-dark: #7a4600;
  --ink: #0b2942;
  --muted: #5b7080;
  --muted-light: #c9d8e6;
  --line: #cbd9e4;
  --cloud: #06182b;
  --surface: #ffffff;
  --paper: #f6f9fc;
  --soft-blue: #e7f2f8;
  --shadow: 0 1.5rem 4rem rgb(0 12 28 / 22%);
  color: var(--ink);
  background: var(--cloud);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei",
    "Noto Sans CJK SC", "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    linear-gradient(rgb(255 255 255 / 2%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 2%) 1px, transparent 1px),
    radial-gradient(circle at 10% 8%, rgb(54 193 226 / 14%), transparent 28rem),
    radial-gradient(circle at 90% 12%, rgb(246 183 60 / 12%), transparent 25rem),
    var(--city-950);
  background-size: 64px 64px, 64px 64px, auto, auto, auto;
  color: #f7f4ec;
}

button,
input {
  font: inherit;
}

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

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

a {
  color: inherit;
}

[hidden] {
  display: none !important;
}

.skip-link {
  position: fixed;
  top: -5rem;
  left: 1rem;
  z-index: 20;
  padding: 0.8rem 1rem;
  border-radius: 999px;
  background: var(--blue-dark);
  color: #fff;
  text-decoration: none;
}

.skip-link:focus {
  top: 1rem;
}

.site-header {
  position: relative;
  z-index: 5;
  display: flex;
  width: min(1120px, calc(100% - 2rem));
  min-height: 5rem;
  margin: 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: .52rem;
  color: #fff;
  text-decoration: none;
}

.brand-link__symbol {
  display: block;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  background: url("/assets/brand/logo.png") -57px -10px / 156px 108px no-repeat;
  filter: drop-shadow(0 8px 18px rgb(0 0 0 / 28%));
}

.brand-link__copy {
  display: grid;
  justify-items: center;
  gap: .15rem;
  line-height: 1;
  text-align: center;
}

.brand-link__copy strong {
  font-size: 1rem;
  letter-spacing: .06em;
}

.brand-link__copy small {
  color: rgb(201 216 230 / 62%);
  font-size: .43rem;
  font-weight: 700;
  letter-spacing: .05em;
  transform: scaleX(.9);
  transform-origin: center top;
  white-space: nowrap;
}

.back-link,
.text-link {
  color: #f6c86e;
  font-weight: 750;
  text-underline-offset: 0.25em;
}

main {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

.intro-panel {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(18rem, 0.65fr);
  min-height: calc(100svh - 5rem);
  align-items: center;
  gap: clamp(1rem, 3vw, 2rem);
  padding: clamp(3.5rem, 9vw, 7rem) 0 clamp(4rem, 10vw, 8rem);
}

.intro-panel::before {
  content: "";
  position: absolute;
  z-index: -2;
  inset-block: 0;
  inset-inline: calc(50% - 50vw);
  background:
    linear-gradient(
      90deg,
      rgb(6 24 43 / 98%) 0%,
      rgb(6 24 43 / 94%) 34%,
      rgb(6 24 43 / 68%) 64%,
      rgb(6 24 43 / 30%) 100%
    ),
    url("/assets/stills/desktop/ai-compass.webp") center 42% / cover no-repeat;
}

.intro-panel::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: auto calc(50% - 50vw) 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  opacity: .65;
}

.intro-copy {
  max-width: 48rem;
}

.eyebrow,
.dimension-label {
  margin: 0 0 0.8rem;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

h1,
h2,
p {
  overflow-wrap: anywhere;
}

h1 {
  max-width: 13ch;
  margin: 0;
  font-size: clamp(2.6rem, 7vw, 5.5rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
  color: #fff;
}

.intro-lead {
  max-width: 43rem;
  margin: 1.5rem 0 0;
  color: var(--muted-light);
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.8;
}

.intro-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 2.25rem 0 0;
  padding: 0;
  list-style: none;
}

.intro-facts li {
  display: flex;
  min-width: 8.75rem;
  padding: 0.85rem 1rem;
  align-items: baseline;
  gap: 0.55rem;
  border: 1px solid rgb(246 183 60 / 28%);
  border-radius: 1rem;
  background: rgb(6 24 43 / 62%);
  backdrop-filter: blur(12px);
}

.intro-facts strong {
  color: var(--gold);
  font-size: 1.45rem;
}

.intro-facts span {
  color: var(--muted-light);
  font-size: 0.88rem;
}

.privacy-card {
  align-self: end;
  display: flex;
  gap: 1rem;
  padding: clamp(1.5rem, 4vw, 2.25rem);
  border: 1px solid rgb(246 183 60 / 32%);
  border-radius: 1.75rem;
  background:
    linear-gradient(145deg, rgb(6 24 43 / 88%), rgb(11 53 88 / 78%));
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.privacy-icon {
  display: grid;
  flex: 0 0 auto;
  width: 2.25rem;
  height: 2.25rem;
  place-items: center;
  border-radius: 50%;
  background: var(--gold);
  color: var(--city-950);
  font-weight: 900;
}

.privacy-card h2 {
  margin: 0;
  color: #fff;
  font-size: 1.12rem;
}

.privacy-card p {
  margin: 0.75rem 0 0;
  color: var(--muted-light);
  font-size: 0.92rem;
  line-height: 1.75;
}

.saved-card {
  grid-column: 1 / -1;
  display: flex;
  padding: 1.5rem;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  border: 1px solid rgb(54 193 226 / 30%);
  border-radius: 1.25rem;
  background: rgb(6 24 43 / 78%);
  color: #fff;
  backdrop-filter: blur(14px);
}

.saved-card h2 {
  margin: 0;
  font-size: 1.35rem;
}

.saved-card p:last-child {
  margin: 0.5rem 0 0;
  color: var(--muted-light);
}

.saved-actions,
.form-actions,
.result-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

.primary-button,
.secondary-button,
.text-button {
  min-height: 2.85rem;
  padding: 0.78rem 1.25rem;
  border-radius: 999px;
  font-weight: 800;
}

.primary-button {
  margin-top: 2rem;
  border: 1px solid var(--gold);
  background: var(--gold);
  box-shadow: 0 0.75rem 1.8rem rgb(246 183 60 / 24%);
  color: var(--city-950);
}

.secondary-button {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--blue-dark);
}

.text-button {
  border: 0;
  background: transparent;
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 0.25em;
}

.saved-card .text-button {
  color: #f6c86e;
}

.primary-button:hover {
  background: #ffb11a;
}

.primary-button:disabled:hover {
  background: var(--gold);
}

.secondary-button:hover {
  border-color: var(--blue);
}

button:focus-visible,
a:focus-visible,
input:focus-visible + .option-card {
  outline: 3px solid #0b5c9e;
  outline-offset: 4px;
}

.site-header a:focus-visible {
  outline-color: var(--gold);
}

.assessment-panel {
  position: relative;
  width: min(860px, 100%);
  min-height: 38rem;
  overflow: hidden;
  margin: 2rem auto 7rem;
  padding: clamp(1.25rem, 5vw, 3.5rem);
  border: 1px solid rgb(0 111 174 / 12%);
  border-radius: 2rem;
  background: var(--paper);
  box-shadow: var(--shadow);
  color: var(--ink);
}

.assessment-panel::before,
.results-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), #ffe0a0 72%, var(--cyan));
}

.assessment-panel .dimension-label,
.results-panel .eyebrow {
  color: var(--gold-dark);
}

.progress-block {
  margin-bottom: clamp(2.5rem, 7vw, 4.5rem);
}

.progress-copy {
  display: flex;
  margin-bottom: 0.75rem;
  justify-content: space-between;
  gap: 1rem;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 700;
}

progress {
  display: block;
  width: 100%;
  height: 0.5rem;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  background: #e8eff3;
  color: var(--blue);
}

progress::-webkit-progress-bar {
  border-radius: 999px;
  background: #e8eff3;
}

progress::-webkit-progress-value {
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold), #ffd77d 82%, var(--cyan));
}

progress::-moz-progress-bar {
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold), #ffd77d 82%, var(--cyan));
}

fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

legend {
  max-width: 22ch;
  margin: 0 0 2rem;
  padding: 0;
  font-size: clamp(1.75rem, 5vw, 3rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.035em;
}

.option-list {
  display: grid;
  gap: 0.75rem;
}

.option-wrap {
  position: relative;
}

.option-wrap input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.option-card {
  position: relative;
  display: flex;
  min-height: 4.25rem;
  padding: 1rem 3.25rem 1rem 1.1rem;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: #fbfdfe;
  color: var(--ink);
  line-height: 1.55;
  transition:
    border-color 160ms ease,
    background 160ms ease,
    transform 160ms ease;
}

.option-card::after {
  content: "";
  position: absolute;
  right: 1.1rem;
  width: 1.15rem;
  height: 1.15rem;
  border: 2px solid #a9bac4;
  border-radius: 50%;
  box-shadow: inset 0 0 0 0.25rem #fff;
}

.option-wrap input:checked + .option-card {
  border-color: #9a5b00;
  background: #fff7e3;
  font-weight: 750;
}

.option-wrap input:checked + .option-card::after {
  border-color: #9a5b00;
  background: var(--gold);
}

.form-message {
  margin: 1rem 0 0;
  padding: 0.8rem 1rem;
  border-left: 3px solid #b42318;
  border-radius: 0.5rem;
  background: #fff0ed;
  color: #7a271a;
}

.form-actions {
  margin-top: 2.25rem;
  justify-content: space-between;
}

.form-actions .primary-button,
.saved-actions .primary-button,
.result-actions .primary-button {
  margin-top: 0;
}

.results-panel {
  position: relative;
  overflow: hidden;
  margin: 2rem 0 6rem;
  padding: clamp(1.25rem, 5vw, 4rem);
  border: 1px solid rgb(0 111 174 / 12%);
  border-radius: 2rem;
  background: var(--paper);
  box-shadow: var(--shadow);
  color: var(--ink);
}

.results-header {
  display: flex;
  padding-bottom: 2.5rem;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2rem;
  border-bottom: 1px solid var(--line);
}

.results-header h1 {
  max-width: 14ch;
  color: var(--ink);
  font-size: clamp(2.25rem, 6vw, 4.5rem);
}

.results-header p:last-child {
  margin: 1rem 0 0;
  color: var(--muted);
}

.result-mark {
  display: grid;
  flex: 0 0 auto;
  width: 5.25rem;
  height: 5.25rem;
  place-content: center;
  border-radius: 1.4rem;
  border: 1px solid rgb(246 183 60 / 62%);
  background: var(--city-900);
  color: var(--gold);
  text-align: center;
  transform: rotate(3deg);
}

.result-mark span {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.result-mark strong {
  font-size: 2rem;
  line-height: 1;
}

.primary-result {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1.25rem;
  margin: 2.5rem 0 1.25rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: 1px solid rgb(246 183 60 / 48%);
  border-radius: 1.5rem;
  background:
    radial-gradient(circle at 88% 8%, rgb(246 183 60 / 16%), transparent 22rem),
    linear-gradient(145deg, var(--city-950), var(--city-800));
  color: #fff;
}

.primary-result__rank {
  display: grid;
  width: 3rem;
  height: 3rem;
  place-items: center;
  border: 1px solid var(--gold);
  border-radius: 50%;
  background: var(--gold);
  color: var(--city-950);
  font-weight: 900;
}

.primary-result h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.8rem);
}

.primary-result p {
  margin: 0.75rem 0 0;
  color: #dff1f7;
  line-height: 1.7;
}

.certificate-system {
  margin: 0.55rem 0 0 !important;
  color: inherit !important;
  font-size: 0.75rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  opacity: 0.82;
}

.score-line {
  display: flex;
  margin-top: 1.2rem;
  align-items: baseline;
  gap: 0.7rem;
}

.score-line strong {
  font-size: 2rem;
  color: var(--gold);
}

.score-line span {
  color: #dff1f7;
  font-size: 0.86rem;
}

.recommendation-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.recommendation-card {
  --path-accent: var(--blue);
  padding: 1.6rem;
  border: 1px solid var(--line);
  border-top: 0.35rem solid transparent;
  border-radius: 1.25rem;
  background:
    linear-gradient(#fbfdfe, #fbfdfe) padding-box,
    linear-gradient(90deg, var(--gold), var(--path-accent)) border-box;
}

.recommendation-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.recommendation-card__rank {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.recommendation-card h2 {
  margin: 0.4rem 0 0;
  font-size: 1.35rem;
}

.score-badge {
  flex: 0 0 auto;
  padding: 0.45rem 0.65rem;
  border-radius: 0.75rem;
  background: #fff1cd;
  color: var(--city-950);
  font-size: 0.78rem;
  font-weight: 800;
}

.recommendation-card > p {
  color: var(--muted);
  line-height: 1.7;
}

.reason-list {
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.reason-list li {
  position: relative;
  margin-top: 0.65rem;
  padding-left: 1.2rem;
  line-height: 1.6;
}

.reason-list li::before {
  content: "";
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--path-accent);
}

.certificate-label {
  margin-top: 1.3rem !important;
  color: var(--ink) !important;
  font-size: 0.8rem;
  font-weight: 800;
}

.certificate-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: 0.6rem 0 0;
  padding: 0;
  list-style: none;
}

.certificate-list li {
  padding: 0.38rem 0.6rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  font-size: 0.78rem;
}

.action-plan,
.method-card,
.disclaimer {
  margin-top: 1.25rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border-radius: 1.5rem;
}

.action-plan {
  position: relative;
  background: #fff8ea;
}

.action-plan h2,
.method-card h2,
.disclaimer h2 {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.action-plan ol {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
  counter-reset: action;
}

.action-plan ol::before {
  content: "";
  position: absolute;
  top: 1.55rem;
  right: 8%;
  left: 8%;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--gold), var(--cyan));
  opacity: .5;
}

.action-plan li {
  position: relative;
  counter-increment: action;
  padding-top: 3.8rem;
  border-top: 0;
  line-height: 1.65;
}

.action-plan li::before {
  content: "0" counter(action);
  position: absolute;
  top: .5rem;
  left: 0;
  display: grid;
  width: 2.2rem;
  height: 2.2rem;
  margin: 0;
  place-items: center;
  border: 3px solid #fff8ea;
  border-radius: 50%;
  background: var(--city-900);
  box-shadow: 0 0 0 2px var(--gold);
  color: var(--gold);
  font-size: .72rem;
  font-weight: 900;
}

.method-card {
  display: grid;
  grid-template-columns: minmax(12rem, 0.65fr) minmax(0, 1.35fr);
  gap: 2rem;
  border: 1px solid var(--line);
  background: #fff;
}

.method-card > p,
.disclaimer p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.disclaimer {
  border-left: 0.35rem solid var(--gold);
  background: var(--soft-blue);
}

.disclaimer p {
  margin-top: 0.75rem;
}

.contact-card {
  position: relative;
  margin-top: 1.25rem;
  padding: clamp(1.5rem, 4vw, 2.5rem);
  overflow: hidden;
  border: 1px solid rgb(11 92 158 / 24%);
  border-radius: 1.5rem;
  background:
    radial-gradient(circle at 100% 0, rgb(54 193 226 / 16%), transparent 22rem),
    #fff;
}

.contact-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 0.35rem;
  background: linear-gradient(var(--cyan), var(--blue), var(--gold));
}

.contact-card__intro {
  max-width: 46rem;
}

.contact-card h2,
.contact-card h3 {
  margin: 0;
  color: var(--ink);
}

.contact-card h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.contact-card h3 {
  font-size: 1.2rem;
}

.contact-card__intro > p:last-child,
.contact-declined p,
.contact-receipt p {
  margin: 0.75rem 0 0;
  color: var(--muted);
  line-height: 1.75;
}

.contact-form {
  margin-top: 1.75rem;
}

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

.contact-field label {
  display: block;
  margin-bottom: 0.55rem;
  color: var(--ink);
  font-size: 0.92rem;
  font-weight: 800;
}

.contact-field label span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 650;
}

.contact-field input {
  width: 100%;
  min-height: 3.15rem;
  padding: 0.75rem 0.9rem;
  border: 1px solid #9db5c5;
  border-radius: 0.85rem;
  background: #fbfdfe;
  color: var(--ink);
}

.contact-field input:hover {
  border-color: var(--blue);
}

.contact-field input:focus-visible,
.consent-row input:focus-visible {
  border-color: var(--blue);
  outline: 3px solid rgb(11 92 158 / 22%);
  outline-offset: 2px;
}

.contact-field input[aria-invalid="true"],
.consent-row input[aria-invalid="true"] {
  border-color: #b42318;
}

.field-help {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

.contact-honeypot {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.contact-disclosure {
  margin: 1.25rem 0 0;
  padding: 1rem 1.1rem;
  border-left: 3px solid var(--cyan);
  border-radius: 0.7rem;
  background: var(--soft-blue);
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.7;
}

.consent-row {
  display: flex;
  margin-top: 1.15rem;
  align-items: flex-start;
  gap: 0.75rem;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.65;
}

.consent-row input {
  flex: 0 0 auto;
  width: 1.15rem;
  height: 1.15rem;
  margin: 0.24rem 0 0;
  accent-color: var(--blue);
}

.contact-error {
  margin: 1rem 0 0;
  padding: 0.8rem 1rem;
  border-left: 3px solid #b42318;
  border-radius: 0.5rem;
  background: #fff0ed;
  color: #7a271a;
  line-height: 1.6;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  margin-top: 1.25rem;
  align-items: center;
  gap: 0.75rem;
}

.contact-actions .primary-button {
  margin-top: 0;
}

.contact-declined,
.contact-receipt {
  margin-top: 1.5rem;
  padding: 1.25rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--paper);
}

.contact-declined .text-button,
.contact-receipt .secondary-button {
  margin-top: 1rem;
}

.contact-status {
  min-height: 1.5em;
  margin: 1rem 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.contact-status--error {
  color: #7a271a;
  font-weight: 700;
}

.institution-contact {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 10rem;
  gap: 1.75rem;
  margin-top: 2rem;
  padding: 1.75rem;
  align-items: center;
  overflow: hidden;
  border: 1px solid rgb(246 183 60 / 28%);
  border-radius: 1.25rem;
  background:
    linear-gradient(rgb(255 255 255 / 4%) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 4%) 1px, transparent 1px),
    linear-gradient(125deg, var(--city-900), var(--city-800));
  background-size: 36px 36px, 36px 36px, auto;
  color: #fff;
}

.institution-contact .eyebrow {
  color: var(--gold);
}

.institution-contact h3 {
  max-width: 16ch;
  margin: 0.35rem 0 0;
  color: #fff;
  font-size: clamp(1.45rem, 3vw, 2rem);
  line-height: 1.2;
}

.institution-contact > div > p:last-of-type {
  margin: 0.65rem 0 0;
  color: var(--muted-light);
  line-height: 1.65;
}

.institution-contact__phone {
  display: inline-grid;
  gap: .15rem;
  margin-top: 1rem;
  padding: 0.75rem 1rem;
  border: 1px solid rgb(255 225 160 / 56%);
  border-radius: 0.8rem;
  background: linear-gradient(135deg, #f9c45e, var(--gold));
  box-shadow: 0 12px 24px rgb(0 0 0 / 18%);
  color: var(--city-950);
  text-decoration: none;
}

.institution-contact__phone span {
  font-size: .7rem;
  font-weight: 800;
  letter-spacing: .08em;
  opacity: .7;
}

.institution-contact__phone strong {
  font-size: 1.1rem;
  letter-spacing: .025em;
}

.institution-contact__wechat {
  display: grid;
  width: 10rem;
  margin: 0;
  justify-items: center;
  gap: 0.5rem;
  padding: .55rem;
  border-radius: .9rem;
  background: #fff;
  box-shadow: 0 14px 30px rgb(0 0 0 / 20%);
}

.institution-contact__wechat img {
  display: block;
  width: 8.9rem;
  height: auto;
  border-radius: 0.65rem;
}

.institution-contact__wechat figcaption {
  display: grid;
  gap: .12rem;
  color: var(--city-950);
  font-size: 0.75rem;
  text-align: center;
}

.institution-contact__wechat figcaption span {
  color: var(--muted);
  font-size: .68rem;
}

.result-actions {
  margin-top: 2rem;
}

.save-status {
  min-height: 1.5em;
  margin: 1rem 0 0;
  color: var(--muted);
}

.results-panel .text-link,
.results-panel .text-button {
  color: var(--blue);
}

.notice {
  max-width: 42rem;
  margin-top: 1rem;
  padding: 1rem;
  border-radius: 0.75rem;
  line-height: 1.6;
}

.error-notice {
  border: 1px solid #f2b8ae;
  background: #fff0ed;
  color: #7a271a;
}

.page-footer {
  display: flex;
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2rem 0;
  justify-content: space-between;
  gap: 2rem;
  border-top: 1px solid rgb(201 216 230 / 22%);
  color: var(--muted-light);
  font-size: 0.82rem;
}

.page-footer p {
  margin: 0;
}

@media (max-width: 760px) {
  .intro-panel {
    grid-template-columns: 1fr;
    padding-top: 2.5rem;
  }

  .privacy-card {
    align-self: auto;
  }

  .saved-card,
  .results-header,
  .page-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .assessment-panel,
  .results-panel {
    margin-top: 1rem;
    border-radius: 1.4rem;
  }

  .recommendation-list,
  .action-plan ol,
  .method-card,
  .contact-fields,
  .institution-contact {
    grid-template-columns: 1fr;
  }

  .institution-contact__wechat {
    width: min(100%, 18rem);
    grid-template-columns: 7.5rem minmax(0, 1fr);
    justify-items: stretch;
  }

  .institution-contact__wechat img {
    width: 7.5rem;
  }

  .institution-contact__wechat figcaption {
    align-content: center;
    text-align: left;
  }

  .result-mark {
    display: none;
  }

  .form-actions {
    gap: 0.6rem;
  }

  .form-actions button {
    flex: 1 1 auto;
  }

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

  .primary-result__rank {
    width: auto;
    height: auto;
    place-items: start;
    border: 0;
    background: transparent;
    color: var(--gold);
  }
}

@media (max-width: 860px) {
  main {
    width: min(1120px, calc(100% - 1rem));
  }

  .site-header {
    width: min(1120px, calc(100% - 1rem));
  }

  .intro-panel {
    min-height: calc(100svh - 5rem);
    padding-top: 2.5rem;
  }

  .intro-panel::before {
    background:
      linear-gradient(
        0deg,
        rgb(6 24 43 / 98%) 0%,
        rgb(6 24 43 / 92%) 50%,
        rgb(6 24 43 / 28%) 100%
      ),
      url("/assets/stills/mobile/ai-compass.webp") center 44% / cover no-repeat;
  }

  h1 {
    font-size: clamp(2.25rem, 11vw, 3.7rem);
  }

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

  .intro-facts li {
    min-width: 0;
    padding: .8rem;
    flex-direction: column;
    align-items: flex-start;
    gap: .2rem;
  }

  .recommendation-card__head {
    flex-wrap: wrap;
  }

  .action-plan ol::before {
    top: 1rem;
    bottom: 1rem;
    left: 1.05rem;
    width: 2px;
    height: auto;
  }

  .action-plan li {
    min-height: 4.5rem;
    padding: .35rem 0 1.5rem 3.25rem;
  }

  .action-plan li::before {
    top: 0;
    left: 0;
  }

  .result-actions > * {
    width: 100%;
    min-height: 3rem;
    justify-content: center;
    text-align: center;
  }

  .contact-actions > * {
    width: 100%;
    min-height: 3rem;
    text-align: center;
  }

  .page-footer {
    padding-bottom: calc(2rem + env(safe-area-inset-bottom));
  }
}

@media (hover: hover) {
  .option-wrap:hover .option-card {
    border-color: #94bcd2;
    transform: translateY(-1px);
  }
}

@media (forced-colors: active) {
  .option-wrap input:checked + .option-card {
    outline: 2px solid SelectedItem;
  }
}

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

  .option-card {
    transition: none;
  }
}

@media print {
  @page {
    margin: 14mm;
  }

  :root,
  body {
    background: #fff;
    color: #000;
  }

  .no-print,
  .skip-link,
  .intro-panel,
  .assessment-panel {
    display: none !important;
  }

  .intro-panel::before,
  .intro-panel::after,
  .assessment-panel::before,
  .results-panel::before,
  .action-plan ol::before {
    display: none !important;
  }

  main,
  .page-footer {
    width: 100%;
  }

  .results-panel:not([hidden]) {
    display: block !important;
    margin: 0;
    padding: 0;
    border: 0;
    box-shadow: none;
  }

  .results-panel[hidden] {
    display: none !important;
  }

  .results-header,
  .primary-result,
  .recommendation-card,
  .action-plan,
  .method-card,
  .disclaimer {
    break-inside: avoid;
    border-color: #777;
    background: #fff;
    box-shadow: none;
    color: #000;
  }

  .primary-result {
    border: 2px solid #000;
  }

  .result-mark,
  .primary-result__rank,
  .score-badge,
  .certificate-list li,
  .action-plan li::before {
    border-color: #000;
    background: #fff;
    box-shadow: none;
    color: #000;
  }

  .result-mark {
    transform: none;
  }

  .primary-result .score-line strong,
  .certificate-system,
  .results-panel .eyebrow {
    color: #000;
  }

  .reason-list li::before {
    background: #000;
  }

  .primary-result p,
  .primary-result .score-line span,
  .recommendation-card > p,
  .method-card > p,
  .disclaimer p,
  .results-header p:last-child {
    color: #222;
  }

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

  .page-footer {
    margin-top: 1.5rem;
    padding-top: 0.75rem;
    color: #222;
  }
}

/* Mobile adaptive layer */
html,
body {
  max-width: 100%;
  overflow-x: clip;
}

button,
a,
input,
label {
  touch-action: manipulation;
}

@supports not (overflow: clip) {
  html,
  body {
    overflow-x: hidden;
  }
}

@media (max-width: 430px) {
  main,
  .site-header,
  .page-footer {
    width: calc(100% - 1rem);
  }

  .site-header {
    min-height: 4rem;
  }

  .brand-link {
    gap: .3rem;
  }

  .brand-link__copy {
    gap: .12rem;
  }

  .brand-link__copy strong {
    font-size: .9rem;
  }

  .brand-link__copy small {
    display: block;
    font-size: .39rem;
    letter-spacing: .035em;
    opacity: .76;
    transform: scaleX(.88);
  }

  .site-header .back-link {
    min-height: 2.75rem;
    align-content: center;
  }

  .intro-panel {
    min-height: auto;
    padding: 2rem .5rem 3rem;
  }

  .intro-copy {
    min-width: 0;
  }

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

  .intro-facts li:last-child {
    grid-column: 1 / -1;
  }

  .intro-facts strong {
    font-size: .9rem;
  }

  .intro-facts span {
    font-size: .7rem;
  }

  .intro-actions,
  .intro-actions .primary-button {
    width: 100%;
  }

  .intro-actions .primary-button {
    min-height: 3.25rem;
    justify-content: center;
  }

  .privacy-card,
  .saved-card,
  .assessment-panel,
  .results-panel,
  .recommendation-card,
  .primary-result,
  .method-card,
  .action-plan,
  .institution-contact {
    border-radius: 1rem;
  }

  .assessment-panel,
  .results-panel {
    padding: 1rem;
  }

  .question-card legend {
    font-size: clamp(1.28rem, 7vw, 1.65rem);
  }

  .option-card {
    min-height: 3.75rem;
    padding: .9rem;
  }

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

  .form-actions button {
    width: 100%;
    min-height: 3rem;
    padding-inline: .6rem;
  }

  .contact-field input {
    min-height: 3rem;
    font-size: 1rem;
  }

  .institution-contact {
    padding: 1rem;
  }

  .institution-contact__wechat {
    width: 100%;
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .institution-contact__wechat img {
    width: min(15rem, 100%);
  }

  .institution-contact__wechat figcaption {
    text-align: center;
  }

  .page-footer {
    gap: .55rem;
    padding-bottom: calc(1.5rem + env(safe-area-inset-bottom));
  }
}

@media (orientation: landscape) and (max-height: 520px) {
  .intro-panel {
    min-height: auto;
    padding-block: 1.5rem 2.25rem;
  }

  .intro-panel::before {
    background-position: center 38%;
  }
}
