@charset "UTF-8";
:root {
  color-scheme: dark;
  --ink: #f1e9d7;
  --teal: #e3b94f;
  --muted: #ada58f;
  --mist: #151410;
  --paper: #211f1a;
  --gold: #e3b94f;
  --line: #403b2e;
  --display: 'Songti SC', 'STSong', 'SimSun', serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--mist);
  color: var(--ink);
  font:
    14px/1.6 -apple-system,
    BlinkMacSystemFont,
    'PingFang SC',
    'Microsoft YaHei',
    sans-serif;
  -webkit-font-smoothing: antialiased;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
  border: 0;
}
button {
  transition:
    background 0.15s,
    border-color 0.15s,
    box-shadow 0.15s;
}
button:hover {
  filter: brightness(0.97);
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid #e3b94f;
  outline-offset: 4px;
}
input,
select {
  min-width: 0;
}
h1,
h2,
h3,
p {
  margin: 0;
}
em {
  font-style: normal;
  color: var(--teal);
}
.header {
  max-width: 1328px;
  margin: 0 auto;
  padding: 30px 48px;
  display: flex;
  align-items: center;
  gap: 30px;
}
.brand {
  text-decoration: none;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 46px;
  background: var(--ink);
  color: #211f1a;
  border-radius: 13px 13px 4px 13px;
  font: 29px var(--display);
}
.brand-name {
  font: 600 26px/1.05 var(--display);
  letter-spacing: 5px;
}
.brand-name > span {
  display: block;
  margin-top: 6px;
  font: 8px/1.1 sans-serif;
  letter-spacing: 4px;
}
.header-caption {
  color: var(--muted);
  font-size: 12px;
  border-left: 1px solid #403b2e;
  padding-left: 25px;
  letter-spacing: 1px;
}
.about-button {
  margin-left: auto;
  background: none;
  color: var(--ink);
  font-size: 13px;
  padding: 10px 0 10px 20px;
}
.about-button span {
  color: var(--teal);
  font-size: 18px;
  margin-right: 7px;
  vertical-align: -1px;
}
.home-layout {
  max-width: 1150px;
  margin: 32px auto 66px;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 545px;
  align-items: start;
  gap: 58px;
}
.intro {
  padding: 28px 0 0 12px;
  position: relative;
}
.intro-eyebrow {
  color: var(--teal);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 3px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.intro-eyebrow > span {
  height: 5px;
  width: 5px;
  background: var(--teal);
  border-radius: 50%;
}
.intro h1 {
  font: 500 51px/1.5 var(--display);
  letter-spacing: 2px;
  margin-top: 25px;
}
.intro h1 em {
  display: inline-block;
  font-size: 59px;
}
.intro-description {
  margin-top: 23px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.95;
  letter-spacing: 0.5px;
}
.compass-scene {
  height: 322px;
  width: 362px;
  margin: 16px 0 0 12px;
  position: relative;
  display: grid;
  place-items: center;
}
.compass {
  position: relative;
  width: 244px;
  height: 244px;
  border: 1px solid #403b2e;
  border-radius: 50%;
  background: radial-gradient(circle, #342c1b 0 32%, #342c1b 65%, #342c1b);
  box-shadow:
    0 10px 45px #00000020,
    inset 0 0 0 5px #e3b94f30;
  transform: rotate(-8deg);
}
.compass-ticks {
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  background: repeating-conic-gradient(
    from 0deg,
    #e3b94f30 0deg 1deg,
    transparent 1deg 6deg
  );
  mask-image: radial-gradient(
    circle,
    transparent 67%,
    black 67% 70%,
    transparent 70%
  );
}
.compass-inner {
  position: absolute;
  inset: 41px;
  border: 1px solid #403b2e;
  border-radius: 50%;
}
.compass-inner::before {
  content: '';
  position: absolute;
  inset: 12px;
  border: 1px dashed #403b2e;
  border-radius: 50%;
}
.direction {
  position: absolute;
  color: var(--ink);
  font: 15px var(--display);
  display: flex;
  align-items: center;
  gap: 5px;
}
.direction small {
  color: var(--muted);
  font: 9px sans-serif;
}
.north {
  top: 23px;
  left: 103px;
}
.south {
  bottom: 23px;
  left: 103px;
}
.east {
  right: 23px;
  top: 101px;
  flex-direction: column;
}
.west {
  left: 23px;
  top: 101px;
  flex-direction: column;
}
.diagonal {
  position: absolute;
  color: #ada58f;
  font: 10px var(--display);
}
.ne {
  top: 64px;
  right: 64px;
}
.nw {
  top: 64px;
  left: 64px;
}
.se {
  bottom: 64px;
  right: 64px;
}
.sw {
  bottom: 64px;
  left: 64px;
}
.compass-cross {
  position: absolute;
  background: #403b2e;
}
.horizontal {
  width: 122px;
  height: 1px;
  left: 60px;
  top: 120px;
}
.vertical {
  width: 1px;
  height: 122px;
  left: 120px;
  top: 60px;
}
.compass-needle {
  position: absolute;
  height: 144px;
  width: 40px;
  top: 49px;
  left: 101px;
  background: linear-gradient(90deg, #e3b94f 50%, #e3b94f 50%);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  transform: rotate(39deg);
}
.compass-needle::after {
  content: '';
  position: absolute;
  bottom: 0;
  height: 50%;
  width: 100%;
  background: linear-gradient(90deg, #403b2e 50%, #403b2e 50%);
}
.compass-hub {
  position: absolute;
  top: 105px;
  left: 105px;
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border: 1px solid #403b2e;
  border-radius: 50%;
  color: var(--teal);
  background: var(--mist);
  font: 16px var(--display);
  transform: rotate(8deg);
}
.orbit {
  position: absolute;
  border: 1px solid #403b2e;
  border-radius: 50%;
  width: 312px;
  height: 312px;
}
.orbit-one {
  transform: rotate(28deg) scaleY(0.8);
  border-style: dashed;
  opacity: 0.65;
}
.orbit-two {
  transform: rotate(-25deg) scaleY(0.88);
  opacity: 0.4;
}
.orbit-dot {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  right: 49px;
  top: 63px;
  box-shadow: 0 0 0 5px #e3b94f30;
}
.compass-coordinate {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  color: #ada58f;
  text-align: center;
  font-size: 10px;
  letter-spacing: 3px;
}
.intro-bottom {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  margin: 30px 0 0 6px;
}
.intro-line {
  background: var(--gold);
  width: 22px;
  height: 1px;
  margin-top: 9px;
}
.intro-bottom p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.9;
  letter-spacing: 1px;
}
.form-card {
  background: var(--paper);
  border: 1px solid #403b2e;
  border-radius: 20px;
  box-shadow: 0 12px 50px #00000020;
  padding: 34px 38px 25px;
}
.steps {
  margin: 0 0 30px;
  padding: 0 0 28px;
  border-bottom: 1px solid #403b2e;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}
.steps li {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #ada58f;
  font-size: 12px;
  position: relative;
  white-space: nowrap;
}
.steps li:not(:last-child)::after {
  content: '';
  width: 23px;
  height: 1px;
  background: #403b2e;
  margin-left: 7px;
}
.steps li > span {
  height: 24px;
  width: 24px;
  border: 1px solid var(--line);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-family: monospace;
}
.steps li.active {
  color: var(--teal);
  font-weight: 500;
}
.steps li.active > span {
  background: var(--teal);
  color: #211f1a;
  border-color: var(--teal);
}
.steps li.done > span {
  color: var(--teal);
  background: #38301e;
  border-color: #38301e;
}
.section-kicker {
  font-size: 9px;
  color: #ada58f;
  letter-spacing: 2px;
  margin-bottom: 9px;
}
h2 {
  font-size: 23px;
  font-weight: 600;
  line-height: 1.5;
  letter-spacing: 0.3px;
}
#step-title:focus {
  outline: none;
}
.form-description {
  color: var(--muted);
  margin-top: 8px;
  font-size: 12px;
}
.segmented {
  display: flex;
  padding: 4px;
  background: #2b281f;
  border-radius: 9px;
  margin: 26px 0 23px;
}
.segmented button {
  width: 50%;
  padding: 10px 6px;
  border-radius: 6px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
}
.segmented button.active {
  background: #211f1a;
  box-shadow: 0 2px 5px #00000020;
  color: var(--ink);
}
.field {
  margin-top: 23px;
}
.fields-pair {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 16px;
}
.fields-pair .field {
  margin-top: 0;
}
label:not(.switch-row, .consent),
legend {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink);
  display: block;
  margin-bottom: 10px;
}
label > span:not(.switch-track),
legend > span {
  color: #ada58f;
  font-size: 10px;
  font-weight: 400;
  margin-left: 7px;
}
input:not([type='checkbox']),
select {
  width: 100%;
  height: 48px;
  border: 1px solid #403b2e;
  border-radius: 8px;
  padding: 0 13px;
  color: var(--ink);
  background: #211f1a;
  font-size: 13px;
  outline-offset: 2px;
}
input::placeholder {
  color: #ada58f;
}
input::-webkit-calendar-picker-indicator {
  opacity: 0.5;
  cursor: pointer;
}
select {
  appearance: none;
  padding-right: 35px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='m3 4.5 3 3 3-3' fill='none' stroke='%23ADA58F' stroke-width='1.3'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 15px center;
}
.info-note {
  background: #2b281f;
  border-radius: 8px;
  padding: 13px 14px;
  display: flex;
  gap: 10px;
  margin-top: 17px;
  color: #ada58f;
  font-size: 11px;
  line-height: 1.85;
}
.info-note > span {
  flex-shrink: 0;
  color: #ada58f;
  font-size: 13px;
}
.field-help {
  color: var(--muted);
  font-size: 11px;
  margin-top: 8px;
  line-height: 1.8;
}
.text-button {
  color: var(--teal);
  background: transparent;
  padding: 7px 0;
  font-size: 12px;
}
.text-button span {
  margin-left: 7px;
}
.example-button {
  margin-top: 16px;
  font-size: 11px;
}
.form-actions {
  display: flex;
  gap: 12px;
  margin-top: 23px;
}
.primary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  background: var(--teal);
  color: #211f1a;
  font-size: 13px;
  font-weight: 500;
  border-radius: 9px;
  min-height: 49px;
  padding: 14px 20px;
}
.primary:hover {
  background: #e3b94f;
}
.primary > span {
  font-size: 18px;
  font-weight: 400;
}
.form-actions .primary {
  flex: 1;
}
.secondary {
  background: #2b281f;
  color: var(--teal);
  border: 1px solid #403b2e;
  border-radius: 9px;
  padding: 12px 18px;
  font-size: 12px;
  min-height: 46px;
}
.privacy-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: #ada58f;
  font-size: 10px;
  margin-top: 19px;
}
.privacy-foot i {
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: #403b2e;
}
.lock-icon {
  width: 8px;
  height: 7px;
  border: 1px solid #403b2e;
  border-radius: 2px;
  position: relative;
  margin-right: 1px;
}
.lock-icon::before {
  content: '';
  position: absolute;
  border: 1px solid #403b2e;
  width: 4px;
  height: 5px;
  border-radius: 4px 4px 0 0;
  top: -5px;
  left: 1px;
}
.form-outside {
  text-align: center;
  color: #ada58f;
  font-size: 10px;
  margin-top: 18px;
  letter-spacing: 0.3px;
}
.footer {
  max-width: 1232px;
  margin: 0 auto;
  padding: 23px 30px 28px;
  border-top: 1px solid #403b2e;
  color: #ada58f;
  font-size: 10px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  letter-spacing: 0.5px;
}
.footer i {
  font-style: normal;
  padding: 0 8px;
}
fieldset {
  margin: 23px 0 0;
  padding: 0;
  border: 0;
  min-width: 0;
}
legend {
  padding: 0;
}
.cost-choices {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.choice {
  display: flex;
  flex-direction: column;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 13px 12px;
  background: #211f1a;
  color: var(--ink);
  position: relative;
}
.choice strong {
  font-size: 12px;
  font-weight: 500;
}
.choice small {
  margin-top: 8px;
  font-size: 10px;
  color: var(--muted);
  line-height: 1.75;
}
.choice-indicator {
  color: #ada58f;
  font-size: 11px;
  margin-bottom: 5px;
}
.choice.active {
  border-color: var(--teal);
  background: #38301e;
}
.choice.active .choice-indicator {
  color: var(--teal);
}
.chips {
  display: flex;
  gap: 10px;
}
.chip {
  flex: 1;
  font-size: 12px;
  border: 1px solid var(--line);
  background: #211f1a;
  color: var(--muted);
  border-radius: 8px;
  padding: 11px 6px;
}
.chip.active {
  border-color: var(--teal);
  color: var(--teal);
  background: #38301e;
}
.review-box {
  background: #2b281f;
  padding: 15px 18px;
  border-radius: 9px;
  margin: 22px 0 0;
}
.review-box > div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  font-size: 12px;
  padding: 5px 0;
}
.review-box dt {
  color: var(--muted);
  flex-shrink: 0;
}
.review-box dd {
  margin: 0;
  text-align: right;
  overflow-wrap: anywhere;
}
.switch-row {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 21px 0;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}
.switch-row > span:first-child {
  margin: 0;
}
.switch-row strong {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink);
}
.switch-row small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 6px;
}
.switch-row input {
  position: absolute;
  right: 0;
  width: 40px;
  height: 24px;
  opacity: 0;
}
.switch-track {
  width: 38px;
  height: 22px;
  background: #403b2e;
  border-radius: 20px;
  position: relative;
  pointer-events: none;
}
.switch-track::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  height: 16px;
  width: 16px;
  background: #211f1a;
  border-radius: 50%;
  transition: transform 0.2s;
}
.switch-row input:checked + .switch-track {
  background: var(--teal);
}
.switch-row input:checked + .switch-track::after {
  transform: translateX(16px);
}
.switch-row input:focus-visible + .switch-track {
  outline: 3px solid #e3b94f;
  outline-offset: 4px;
}
.elements {
  display: flex;
  gap: 12px;
}
.element {
  flex: 1;
  background: #211f1a;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 10px;
  font: 24px var(--display);
  position: relative;
  min-height: 49px;
}
.element.active {
  border-color: currentColor;
  background: #38301e;
}
.element small {
  position: absolute;
  right: 5px;
  top: 3px;
  font: 10px sans-serif;
}
.element-0 {
  color: #9cb982;
}
.element-1 {
  color: #df9676;
}
.element-2 {
  color: #d4b16b;
}
.element-3 {
  color: #b7b5af;
}
.element-4 {
  color: #97b6c1;
}
.consent {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 17px;
  cursor: pointer;
}
.consent input {
  accent-color: var(--teal);
  margin: 4px 0 0;
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}
.consent > span {
  margin: 0 !important;
  font-size: 11px !important;
  color: var(--muted);
  line-height: 1.85;
}
.error {
  background: #442b24;
  color: #f0b097;
  font-size: 12px;
  line-height: 1.7;
  padding: 12px 14px;
  border-radius: 7px;
  margin-top: 15px;
}
.hidden {
  display: none;
}
.report {
  max-width: 1090px;
  margin: 26px auto 65px;
  padding: 0 30px;
}
.report-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 32px;
}
.report-heading h1 {
  font: 500 38px/1.5 var(--display);
  margin: 7px 0;
}
.report-heading p {
  font-size: 13px;
  color: var(--muted);
  margin-top: 10px;
}
.report-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 32px;
  align-items: start;
}
.report-aside {
  position: sticky;
  top: 24px;
}
.profile-card {
  background: #211f1a;
  border: 1px solid #403b2e;
  padding: 24px;
  border-radius: 16px;
}
.profile-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 500;
}
.badge {
  display: inline-block;
  padding: 3px 8px;
  background: #38301e;
  color: var(--teal);
  border-radius: 5px;
  font:
    10px/1.7 -apple-system,
    BlinkMacSystemFont,
    'PingFang SC',
    sans-serif;
  white-space: nowrap;
}
.pillars {
  display: flex;
  gap: 8px;
  margin: 22px 0;
}
.pillar {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  border-radius: 8px;
  padding: 12px 0;
  background: #2b281f;
}
.pillar.active {
  background: #38301e;
}
.pillar > span {
  font-size: 10px;
  color: var(--muted);
}
.pillar > strong {
  font: 23px var(--display);
}
.pillar small {
  font-size: 10px;
  color: var(--muted);
}
.element-bars {
  display: flex;
  gap: 19px;
  padding: 0 8px;
  margin-bottom: 22px;
}
.bar-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  text-align: center;
  font-size: 10px;
}
.bar-column b {
  font-weight: 400;
  margin-top: 6px;
}
.bar-track {
  height: 66px;
  background: #2b281f;
  position: relative;
  margin-top: 8px;
  border-radius: 3px;
  overflow: hidden;
}
.bar-track > div {
  position: absolute;
  bottom: 0;
  width: 100%;
  background: currentColor;
  opacity: 0.7;
  border-radius: 3px;
}
.useful-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 12px;
}
.useful-row strong {
  font: 18px var(--display);
  color: var(--teal);
}
.profile-card .field-help {
  margin-top: 13px;
  font-size: 10px;
}
.calculation-note {
  font-size: 9px;
  color: #ada58f;
  line-height: 1.8;
  border-top: 1px solid #403b2e;
  padding-top: 14px;
  margin-top: 15px;
}
.report-source {
  padding: 24px;
}
.small-heading {
  font-size: 12px;
  font-weight: 500;
}
.report-source p {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.9;
  margin: 9px 0 5px;
}
.result-tabs {
  display: flex;
  gap: 30px;
  border-bottom: 1px solid #403b2e;
  margin-bottom: 25px;
}
.result-tabs button {
  background: none;
  color: var(--muted);
  padding: 11px 3px 16px;
  border-bottom: 2px solid transparent;
  font-size: 14px;
}
.result-tabs button.active {
  color: var(--teal);
  border-color: var(--teal);
  font-weight: 500;
}
.result-section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}
.result-section-heading h2 {
  font-size: 21px;
}
.result-section-heading p {
  color: var(--muted);
  font-size: 11px;
  margin-top: 6px;
}
.result-count {
  font-size: 10px;
  color: var(--muted);
  border: 1px solid #403b2e;
  padding: 4px 8px;
  border-radius: 6px;
  white-space: nowrap;
}
.score-note {
  font-size: 10px;
  color: #ada58f;
  margin: 13px 0 17px;
}
.city-card {
  padding: 23px 24px 15px;
  background: #211f1a;
  border: 1px solid #403b2e;
  border-radius: 13px;
  display: flex;
  gap: 21px;
  margin-bottom: 14px;
}
.city-card.first {
  border-color: #403b2e;
  background: linear-gradient(115deg, #211f1a 75%, #38301e);
}
.city-rank {
  font: 15px monospace;
  color: #ada58f;
  padding-top: 6px;
}
.city-card.first .city-rank {
  color: var(--teal);
}
.city-content {
  flex: 1;
  min-width: 0;
}
.city-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.city-name-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.city-name-row h3 {
  font: 600 28px var(--display);
}
.city-region {
  font-size: 10px;
  color: var(--muted);
  display: block;
  margin-top: 7px;
}
.city-region > span {
  margin: 0 4px;
}
.city-score {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}
.city-score strong {
  font:
    31px/1.1 ui-monospace,
    'SFMono-Regular',
    monospace;
  letter-spacing: -2px;
  color: var(--teal);
}
.city-score > span {
  color: #ada58f;
  font-size: 9px;
  margin-top: 4px;
}
.city-tagline {
  font-size: 13px;
  margin-top: 16px;
}
.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 12px 0 16px;
}
.tags span {
  color: #ada58f;
  background: #2b281f;
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 4px;
}
.city-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid #403b2e;
  padding-top: 8px;
}
.city-bottom > span {
  font-size: 10px;
  color: var(--muted);
}
.city-bottom i {
  font-style: normal;
  margin: 0 5px;
}
.city-bottom .text-button {
  font-size: 11px;
}
.wide {
  width: 100%;
  justify-content: center;
}
.current-note {
  font-size: 11px;
  color: var(--muted);
  margin-top: 14px;
  line-height: 1.8;
}
.method-note {
  margin: 30px 0 24px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 10px;
  color: var(--muted);
  line-height: 1.9;
}
.method-note strong {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink);
}
.method-note p {
  margin-top: 9px;
}
.report-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}
.report-actions .primary {
  min-width: 200px;
}
.report-actions small {
  font-size: 10px;
  color: var(--muted);
}
.industry-card {
  background: #211f1a;
  border: 1px solid #403b2e;
  border-radius: 13px;
  padding: 24px;
  margin: 16px 0;
}
.industry-top {
  display: flex;
  align-items: center;
  gap: 14px;
}
.industry-icon {
  height: 43px;
  width: 43px;
  background: #38301e;
  color: var(--teal);
  border-radius: 10px;
  display: grid;
  place-items: center;
  font: 24px var(--display);
  flex-shrink: 0;
}
.industry-top h3 {
  font-size: 17px;
  font-weight: 500;
}
.industry-top p {
  font-size: 10px;
  color: var(--muted);
  margin-top: 3px;
}
.industry-score {
  margin-left: auto;
  font: 24px monospace;
  color: var(--teal);
}
.industry-score small {
  font: 10px sans-serif;
  margin-left: 4px;
}
.roles {
  font-size: 12px;
  margin: 19px 0 10px;
}
.industry-details {
  margin: 16px 0;
  font-size: 11px;
  line-height: 1.9;
}
.industry-details > div {
  display: grid;
  grid-template-columns: 65px 1fr;
  gap: 12px;
  margin-top: 10px;
}
.industry-details dt {
  color: var(--ink);
}
.industry-details dd {
  color: var(--muted);
  margin: 0;
}
.action-note {
  background: #2b281f;
  border-left: 2px solid #403b2e;
  padding: 13px 16px;
  font-size: 11px;
  color: #ada58f;
  line-height: 1.9;
  margin-top: 20px;
}
.action-note strong {
  font-weight: 500;
  font-size: 11px;
  color: var(--ink);
}
.action-note p {
  margin-top: 5px;
}
.cycle-card {
  background: #211f1a;
  border: 1px solid #403b2e;
  border-radius: 13px;
  padding: 24px;
  margin: 22px 0;
}
.cycle-meta {
  color: var(--muted);
  font-size: 11px;
}
.cycle {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.cycle-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.cycle h3 {
  font: 30px var(--display);
}
.cycle p {
  font-size: 13px;
}
.cycle small {
  font-size: 11px;
  color: var(--muted);
}
.empty-symbol {
  font-size: 35px;
  color: #ada58f;
  margin-bottom: 14px;
}
.cycle-card > h3 {
  font-size: 18px;
  font-weight: 500;
}
dialog {
  color: var(--ink);
  background: #211f1a;
  border: 1px solid #403b2e;
  border-radius: 18px;
  width: min(550px, calc(100% - 32px));
  padding: 25px;
  max-height: calc(100dvh - 50px);
  box-shadow: 0 25px 100px #000000aa;
}
dialog::backdrop {
  background: #000000aa;
  backdrop-filter: blur(4px);
}
.dialog-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-bottom: 19px;
}
.dialog-heading h2 {
  font: 600 24px var(--display);
}
.close {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #2b281f;
  color: var(--muted);
  font-size: 23px;
  line-height: 1;
  flex-shrink: 0;
}
.dialog-body {
  overflow-y: auto;
  max-height: 60dvh;
  padding-right: 5px;
  font-size: 12px;
  line-height: 1.9;
}
.dialog-body > p {
  color: var(--muted);
  margin-bottom: 12px;
}
.dialog-body > h3 {
  font-size: 14px;
  font-weight: 500;
  margin: 22px 0 10px;
}
.dialog-body + .primary {
  margin-top: 20px;
}
.breakdowns {
  margin: 20px 0;
}
.breakdown {
  margin-bottom: 17px;
}
.breakdown > div:first-child {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.breakdown strong {
  font-size: 12px;
  font-weight: 500;
}
.breakdown span {
  font-size: 10px;
  color: var(--muted);
}
.breakdown-track {
  height: 6px;
  border-radius: 4px;
  overflow: hidden;
  background: #2b281f;
  margin-top: 7px;
}
.breakdown-track > div {
  height: 100%;
  background: var(--teal);
}
#toast {
  position: fixed;
  left: 50%;
  bottom: 35px;
  transform: translate(-50%, 10px);
  background: var(--ink);
  color: #211f1a;
  border-radius: 9px;
  box-shadow: 0 8px 30px #00000020;
  padding: 11px 20px;
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.2s,
    transform 0.2s;
  z-index: 10;
  text-align: center;
  width: max-content;
  max-width: calc(100% - 40px);
}
#toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
@media (min-width: 1450px) {
  .home-layout {
    margin-top: 52px;
    margin-bottom: 80px;
    gap: 86px;
    grid-template-columns: 1fr 560px;
    max-width: 1200px;
  }
  .form-card {
    padding: 38px 41px 29px;
  }
  .intro {
    padding-top: 33px;
  }
}
@media (max-width: 1050px) {
  .home-layout {
    grid-template-columns: 1fr 490px;
    gap: 25px;
    padding: 0 35px;
  }
  .intro h1 {
    font-size: 39px;
  }
  .intro h1 em {
    font-size: 49px;
  }
  .compass-scene {
    width: 290px;
    margin-left: -6px;
    transform: scale(0.9);
    transform-origin: left center;
  }
  .form-card {
    padding: 28px;
  }
  .steps li:not(:last-child)::after {
    width: 20px;
    margin-left: 3px;
  }
  .report-layout {
    grid-template-columns: 270px 1fr;
    gap: 24px;
  }
}
@media (max-width: 850px) {
  .header {
    padding: 23px 28px;
  }
  .home-layout {
    max-width: 620px;
    display: block;
    margin: 8px auto 36px;
    padding: 0 25px;
  }
  .intro {
    padding: 0 4px 30px;
  }
  .intro h1 {
    font-size: 34px;
    margin-top: 14px;
    line-height: 1.45;
  }
  .intro h1 em {
    font-size: 38px;
  }
  .intro h1 br {
    display: none;
  }
  .intro-description {
    margin-top: 12px;
    font-size: 12px;
  }
  .intro-description br {
    display: none;
  }
  .intro-eyebrow {
    font-size: 10px;
    letter-spacing: 2px;
  }
  .compass-scene,
  .intro-bottom {
    display: none;
  }
  .form-card {
    padding: 28px 32px 25px;
  }
  .report-layout {
    grid-template-columns: 1fr;
  }
  .report-aside {
    position: static;
  }
  .profile-card {
    padding: 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 26px;
  }
  .profile-title,
  .useful-row,
  .profile-card > p {
    grid-column: 1 / -1;
  }
  .pillars {
    margin-bottom: 20px;
  }
  .element-bars {
    margin-top: 22px;
    margin-bottom: 20px;
    padding: 0;
  }
  .bar-track {
    height: 50px;
  }
  .report-source {
    display: none;
  }
  .report-heading h1 {
    font-size: 32px;
  }
  .report-heading .secondary {
    flex-shrink: 0;
  }
  .footer {
    margin: 0 25px;
    padding: 20px 0;
  }
  .footer > span:last-child {
    display: none;
  }
}
@media (max-width: 480px) {
  .header {
    padding: 20px 21px;
    gap: 15px;
  }
  .brand-mark {
    width: 36px;
    height: 38px;
    font-size: 24px;
    border-radius: 10px 10px 3px 10px;
  }
  .brand-name {
    font-size: 24px;
    letter-spacing: 4px;
  }
  .brand-name > span {
    font-size: 7px;
    letter-spacing: 3.6px;
  }
  .header-caption {
    display: none;
  }
  .about-button {
    font-size: 11px;
  }
  .home-layout {
    padding: 0 18px;
    margin-top: 8px;
  }
  .intro {
    padding: 10px 5px 26px;
  }
  .intro h1 {
    font-size: 29px;
    letter-spacing: 1px;
  }
  .intro h1 em {
    font-size: 32px;
  }
  .intro-description {
    font-size: 11px;
  }
  .form-card {
    border-radius: 15px;
    padding: 23px 21px;
  }
  .steps {
    padding-bottom: 24px;
    margin-bottom: 23px;
    gap: 5px;
  }
  .steps li {
    font-size: 11px;
    gap: 6px;
  }
  .steps li > span {
    width: 21px;
    height: 21px;
    font-size: 10px;
  }
  .steps li:not(:last-child)::after {
    width: 11px;
    margin-left: 4px;
  }
  h2 {
    font-size: 21px;
  }
  .section-kicker {
    font-size: 8px;
  }
  .form-description {
    font-size: 11px;
  }
  .fields-pair {
    grid-template-columns: 1.1fr 1fr;
    gap: 11px;
  }
  label > span {
    display: inline;
    font-size: 9px !important;
    margin-left: 4px !important;
  }
  input:not([type='checkbox']),
  select {
    font-size: 13px;
    padding-left: 10px;
  }
  .form-actions .primary {
    font-size: 12px;
    padding: 13px 14px;
  }
  .cost-choices {
    gap: 7px;
  }
  .choice {
    padding: 10px 8px;
  }
  .choice small {
    font-size: 9px;
  }
  .chip {
    font-size: 11px;
  }
  .elements {
    gap: 10px;
  }
  .review-box {
    padding: 12px;
  }
  .review-box > div {
    font-size: 11px;
    gap: 12px;
  }
  .report {
    padding: 0 18px;
    margin-top: 18px;
  }
  .report-heading {
    display: block;
    margin-bottom: 22px;
  }
  .report-heading h1 {
    font-size: 29px;
  }
  .report-heading p {
    font-size: 11px;
  }
  .report-heading .secondary {
    margin-top: 17px;
    padding: 8px 13px;
    min-height: 36px;
    font-size: 11px;
  }
  .profile-card {
    padding: 21px;
    column-gap: 15px;
  }
  .pillars {
    gap: 5px;
  }
  .pillar {
    padding: 11px 3px;
  }
  .pillar strong {
    font-size: 19px;
  }
  .element-bars {
    gap: 9px;
  }
  .bar-column {
    font-size: 9px;
  }
  .bar-track {
    height: 45px;
  }
  .result-tabs {
    justify-content: space-between;
    gap: 20px;
  }
  .result-tabs button {
    font-size: 13px;
  }
  .result-section-heading h2 {
    font-size: 20px;
  }
  .result-section-heading p {
    font-size: 10px;
  }
  .city-card {
    padding: 19px 18px 12px;
    gap: 12px;
  }
  .city-rank {
    font-size: 12px;
  }
  .city-name-row h3 {
    font-size: 26px;
  }
  .city-name-row {
    gap: 8px;
  }
  .city-tagline {
    font-size: 12px;
  }
  .tags {
    gap: 5px;
  }
  .tags span {
    font-size: 9px;
    padding: 3px 6px;
  }
  .city-bottom > span {
    font-size: 9px;
  }
  .city-bottom .text-button {
    font-size: 10px;
  }
  .city-score strong {
    font-size: 28px;
  }
  .city-score > span {
    font-size: 8px;
  }
  .result-count {
    font-size: 9px;
    padding: 3px 6px;
  }
  .report-actions {
    flex-direction: column;
    gap: 11px;
    align-items: stretch;
  }
  .report-actions small {
    text-align: center;
  }
  .report-actions .primary {
    justify-content: space-between;
  }
  .industry-card {
    padding: 20px;
  }
  .industry-top h3 {
    font-size: 16px;
  }
  .industry-top {
    gap: 10px;
  }
  .industry-icon {
    height: 38px;
    width: 38px;
    font-size: 21px;
  }
  .industry-score {
    font-size: 21px;
  }
  .footer {
    font-size: 9px;
  }
  .info-note {
    font-size: 10px;
  }
  .consent > span {
    font-size: 10px !important;
  }
}
@media (max-width: 350px) {
  .form-card {
    padding: 20px 16px;
  }
  .steps li {
    gap: 4px;
    font-size: 10px;
  }
  .steps li:not(:last-child)::after {
    width: 7px;
    margin-left: 2px;
  }
  .fields-pair {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .intro h1 {
    font-size: 25px;
  }
  .intro h1 em {
    font-size: 28px;
  }
  .profile-card {
    display: block;
  }
  .element-bars {
    margin-top: 12px;
  }
  .bar-track {
    height: 45px;
  }
  .city-card {
    padding: 17px 13px;
    gap: 9px;
  }
}
.birth-details {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}
.profile-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 18px 22px;
  cursor: pointer;
  list-style: none;
  font-size: 14px;
  min-height: 56px;
}
.profile-summary::-webkit-details-marker {
  display: none;
}
.profile-summary-hint {
  color: var(--teal);
  font-size: 12px;
}
.profile-summary-hint > span {
  display: inline-block;
  margin-left: 8px;
}
.birth-details[open] .profile-summary-hint > span {
  transform: rotate(180deg);
}
.birth-details[open] .profile-summary {
  border-bottom: 1px solid var(--line);
}
.birth-details .profile-card {
  border: 0;
  border-radius: 0;
}
.profile-summary:focus-visible {
  outline: 3px solid #e3b94f;
  outline-offset: -4px;
}
.summary-text {
  width: 100%;
  min-height: 230px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font:
    16px/1.8 -apple-system,
    BlinkMacSystemFont,
    'PingFang SC',
    sans-serif;
  color: var(--ink);
  resize: vertical;
  background: #2b281f;
}
.form-card {
  scroll-margin-top: 20px;
}
.report-heading h1 em {
  display: inline-block;
}

@media (max-width: 850px) {
  body {
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
    -webkit-text-size-adjust: 100%;
  }
  .header {
    padding-top: max(20px, env(safe-area-inset-top));
  }
  .home-layout {
    max-width: 640px;
  }
  .intro-description,
  .form-description,
  .field-help,
  .info-note,
  .city-tagline,
  .roles,
  .dialog-body,
  .dialog-body > h3,
  .industry-details,
  .action-note,
  .cycle p,
  .current-note {
    font-size: 14px;
    line-height: 1.8;
  }
  .intro {
    padding-bottom: 24px;
  }
  .intro-description {
    margin-top: 12px;
  }
  .section-kicker {
    font-size: 10px;
  }
  label:not(.switch-row, .consent),
  legend {
    font-size: 14px;
  }
  label > span:not(.switch-track),
  legend > span {
    font-size: 12px !important;
  }
  input:not([type='checkbox']),
  select {
    font-size: 16px;
    height: 52px;
    border-radius: 10px;
  }
  .fields-pair {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }
  .primary,
  .secondary,
  .segmented button,
  .chip {
    min-height: 48px;
    font-size: 14px;
  }
  .form-actions .primary {
    font-size: 14px;
    line-height: 1.6;
  }
  .form-actions {
    gap: 10px;
  }
  .form-actions .secondary {
    padding: 12px;
    flex-shrink: 0;
  }
  .text-button,
  .about-button {
    min-height: 44px;
    font-size: 13px;
  }
  .steps li {
    font-size: 12px;
  }
  .steps li:not(:last-child)::after {
    display: none;
  }
  .steps li > span {
    width: 24px;
    height: 24px;
  }
  .form-card {
    padding: 24px;
  }
  .cost-choices {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .choice {
    min-height: 70px;
    padding: 13px 16px 13px 41px;
  }
  .choice strong {
    font-size: 14px;
  }
  .choice small {
    margin-top: 4px;
    font-size: 12px;
  }
  .choice-indicator {
    position: absolute;
    top: 23px;
    left: 16px;
    font-size: 13px;
  }
  .chip {
    font-size: 13px;
  }
  .element {
    min-height: 50px;
  }
  .switch-row {
    min-height: 78px;
  }
  .switch-row strong {
    font-size: 14px;
  }
  .switch-row small {
    font-size: 12px;
  }
  .switch-row input {
    width: 48px;
    height: 48px;
    z-index: 1;
  }
  .consent {
    padding: 8px 0;
  }
  .consent input {
    width: 20px;
    height: 20px;
  }
  .consent > span {
    font-size: 13px !important;
  }
  .review-box > div {
    font-size: 13px;
  }
  .privacy-foot,
  .form-outside {
    font-size: 11px;
  }
  .error {
    font-size: 14px;
  }
  .report-heading p {
    font-size: 14px;
  }
  .report-heading .secondary {
    min-height: 44px;
    font-size: 13px;
  }
  .report-layout {
    gap: 16px;
  }
  .profile-card {
    display: block;
  }
  .pillars {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .pillar strong {
    font-size: 24px;
    white-space: nowrap;
  }
  .pillar > span,
  .pillar small {
    font-size: 12px;
  }
  .profile-card .field-help {
    font-size: 13px;
  }
  .calculation-note {
    font-size: 12px;
  }
  .element-bars {
    margin-top: 22px;
    gap: 20px;
  }
  .bar-column {
    font-size: 12px;
  }
  .bar-track {
    height: 65px;
  }
  .result-tabs {
    position: sticky;
    top: 0;
    z-index: 2;
    margin-bottom: 22px;
    padding-top: 6px;
    background: var(--mist);
    gap: 8px;
  }
  .result-tabs button {
    flex: 1;
    min-height: 52px;
    padding: 14px 5px;
    font-size: 15px;
  }
  .result-section-heading p,
  .score-note {
    font-size: 12px;
  }
  .city-region,
  .city-bottom > span,
  .tags span {
    font-size: 12px;
  }
  .city-score > span {
    font-size: 10px;
  }
  .city-bottom .text-button {
    font-size: 13px;
    min-height: 44px;
  }
  .city-card {
    padding: 20px 18px 12px;
    gap: 12px;
  }
  .city-name-row {
    flex-wrap: wrap;
    gap: 6px;
  }
  .badge,
  .result-count {
    font-size: 11px;
  }
  .city-top {
    gap: 12px;
  }
  .city-score {
    flex-shrink: 0;
  }
  .industry-top h3 {
    font-size: 17px;
  }
  .industry-top p {
    font-size: 12px;
  }
  .action-note strong {
    font-size: 13px;
  }
  .cycle small,
  .cycle-meta,
  .method-note,
  .report-actions small {
    font-size: 12px;
  }
  .method-note strong {
    font-size: 14px;
  }
  .report-actions .primary {
    min-height: 52px;
  }
  dialog {
    width: 100%;
    max-width: 100%;
    max-height: 90vh;
    max-height: 90dvh;
    margin: auto 0 0;
    padding: 22px 22px max(22px, env(safe-area-inset-bottom));
    border-radius: 22px 22px 0 0;
  }
  .dialog-heading h2 {
    font-size: 23px;
  }
  .close {
    width: 44px;
    height: 44px;
  }
  .dialog-body {
    max-height: 56vh;
    max-height: 56dvh;
    overscroll-behavior: contain;
  }
  .breakdown strong,
  .breakdown span {
    font-size: 12px;
  }
  .footer {
    padding-bottom: max(24px, env(safe-area-inset-bottom));
  }
  #toast {
    bottom: max(24px, env(safe-area-inset-bottom));
    font-size: 13px;
  }
}
@media (max-width: 350px) {
  .form-card {
    padding: 20px 16px;
  }
  .home-layout,
  .report {
    padding-left: 14px;
    padding-right: 14px;
  }
  .chips {
    gap: 6px;
  }
  .chip {
    font-size: 12px;
  }
  .review-box > div {
    font-size: 12px;
  }
  .city-card {
    padding: 18px 13px 10px;
    gap: 9px;
  }
  .city-bottom {
    flex-wrap: wrap;
    column-gap: 10px;
  }
  .city-bottom .text-button {
    margin-left: auto;
  }
  .industry-top {
    flex-wrap: wrap;
  }
  .dialog-heading h2 {
    font-size: 21px;
  }
}
.brand-mark,
.primary,
.steps li.active > span {
  background: var(--teal);
  color: #151410;
}
.primary:hover {
  background: #f2cb65;
}
.segmented button.active {
  background: #e3b94f;
  color: #151410;
}
.compass {
  background: radial-gradient(circle, #e5c574 0 32%, #c6a34e 65%, #e3bf61);
  border-color: #e3b94f;
  box-shadow:
    0 12px 70px #e3b94f12,
    inset 0 0 0 5px #15141033;
}
.compass .direction,
.compass .direction small,
.compass .diagonal {
  color: #211b0d;
}
.compass-inner {
  border-color: #6c561d;
}
.compass-inner::before {
  border-color: #6c561d66;
}
.compass-ticks {
  background: repeating-conic-gradient(
    from 0deg,
    #211b0d 0deg 1deg,
    transparent 1deg 6deg
  );
}
.compass-cross {
  background: #7d642a;
}
.compass-needle {
  background: linear-gradient(90deg, #151410 50%, #413a27 50%);
}
.compass-needle::after {
  background: linear-gradient(90deg, #ae842f 50%, #f1d693 50%);
}
.compass-hub {
  border-color: #151410;
  background: #151410;
  color: #e3b94f;
}
.city-card.first {
  background: linear-gradient(120deg, #29251a, #211f1a);
  border-color: #8b7438;
}
.profile-card,
.form-card,
.industry-card,
.cycle-card,
.city-card {
  box-shadow: 0 10px 35px #00000012;
}
.weight-control {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #29251b;
}
.weight-control legend {
  padding: 0 7px;
}
.weight-values {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}
.weight-values > div {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.weight-values > div:last-child {
  text-align: right;
}
.weight-values span {
  font-size: 12px;
  color: var(--muted);
}
.weight-values strong {
  font:
    30px ui-monospace,
    monospace;
  color: var(--ink);
}
.weight-values > div:last-child strong {
  color: var(--teal);
}
.range-label {
  margin-top: 20px;
}
input[type='range'] {
  width: 100%;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  accent-color: #e3b94f;
  cursor: pointer;
}
.range-endpoints {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 11px;
  color: var(--muted);
}
input::-webkit-calendar-picker-indicator {
  opacity: 0.85;
}
@media (max-width: 850px) {
  .weight-control {
    padding: 18px 14px;
  }
  .weight-values span,
  .range-endpoints {
    font-size: 12px;
  }
  .weight-control legend > span {
    display: block;
    margin-left: 0;
  }
}
/* Aceternity-inspired surfaces; GSAP owns all entrance and ambient timelines. */
:root {
  --motion-fast: 160ms;
  --motion-normal: 240ms;
  --motion-ease: cubic-bezier(0.22, 1, 0.36, 1);
}
.compass-glow {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(ellipse, #e3b94f24, transparent 68%);
  pointer-events: none;
}
.compass-needle {
  transform-origin: 50% 50%;
}
.orbit,
.compass-coordinate {
  pointer-events: none;
}
.orbit-one .orbit-dot {
  top: calc(50% - 3px);
  right: -3px;
}
.primary,
.secondary,
.choice,
.chip,
.element,
.segmented button,
.result-tabs button,
.text-button,
.about-button,
.close {
  transition:
    color var(--motion-fast) ease,
    background-color var(--motion-fast) ease,
    border-color var(--motion-fast) ease,
    translate var(--motion-normal) var(--motion-ease),
    scale var(--motion-fast) var(--motion-ease),
    box-shadow var(--motion-normal) ease;
}
.city-card,
.industry-card {
  transition:
    translate var(--motion-normal) var(--motion-ease),
    border-color var(--motion-normal) ease,
    box-shadow var(--motion-normal) ease;
}
.primary > span,
.text-button > span,
.profile-summary-hint > span {
  transition: transform var(--motion-normal) var(--motion-ease);
}
input:not([type='checkbox']),
select,
.switch-track {
  transition:
    border-color var(--motion-fast) ease,
    background-color var(--motion-fast) ease,
    box-shadow var(--motion-fast) ease;
}
.switch-track::after {
  transition: transform var(--motion-normal) var(--motion-ease);
}
.result-tabs {
  position: relative;
}
.result-tabs::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: var(--tab-width, 0px);
  transform: translateX(var(--tab-x, 0px));
  background: var(--teal);
  border-radius: 2px;
  pointer-events: none;
}
.result-tabs button.active {
  border-bottom-color: transparent;
}
dialog::backdrop {
  background: rgb(0 0 0 / calc(var(--backdrop-opacity, 1) * 0.66));
}
#toast {
  transition:
    opacity 180ms ease,
    transform 240ms var(--motion-ease);
}
@media (hover: hover) and (pointer: fine) {
  .primary:hover,
  .secondary:hover {
    translate: 0 -2px;
    box-shadow: 0 6px 20px #e3b94f18;
  }
  .primary:hover > span,
  .text-button:hover > span {
    transform: translateX(3px);
  }
  .city-card:hover,
  .industry-card:hover {
    translate: 0 -2px;
    border-color: #e3b94f88;
    box-shadow: 0 12px 30px #00000030;
  }
  .choice:hover,
  .chip:hover,
  .element:hover {
    border-color: var(--gold);
    translate: 0 -1px;
  }
  .text-button:hover,
  .about-button:hover {
    color: #f2cb65;
  }
}
.primary:active,
.secondary:active,
.choice:active,
.chip:active,
.element:active,
.close:active {
  translate: 0 0;
  scale: 0.985;
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  button,
  .city-card,
  .industry-card {
    translate: none !important;
    scale: none !important;
  }
  .primary > span,
  .text-button > span {
    transform: none !important;
  }
}

/* The portal shares the exploration page palette and display typography. */
.portal-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.portal-page .header {
  width: 100%;
}
.portal-header-note {
  margin-left: auto;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 2px;
}
.portal-main {
  width: min(1200px, 100%);
  margin: 0 auto;
  padding: 28px 32px 30px;
  flex: 1;
}
.portal-intro {
  text-align: center;
  padding: 0 0 48px;
}
.portal-seal {
  display: grid;
  place-items: center;
  width: 64px;
  height: 64px;
  margin: 0 auto 24px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  outline: 1px solid var(--line);
  outline-offset: 7px;
  color: var(--gold);
  font: 32px var(--display);
}
.portal-eyebrow {
  color: var(--muted);
  font-size: 11px;
  letter-spacing: 4px;
}
.portal-intro h1 {
  margin-top: 16px;
  font: 500 clamp(30px, 3.5vw, 46px) / 1.5 var(--display);
  letter-spacing: 2px;
}
.portal-description {
  margin-top: 14px;
  color: var(--muted);
}
.portal-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.portal-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 26px 24px 16px;
  color: var(--ink);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  text-decoration: none;
}
.portal-card-active {
  border-color: var(--gold);
  background: linear-gradient(145deg, #38301e, var(--paper) 72%);
  transition:
    transform 0.2s,
    box-shadow 0.2s;
}
.portal-card-active:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 32px #0003;
}
.portal-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 30px;
}
.portal-symbol {
  width: 58px;
  height: 58px;
  flex-shrink: 0;
  color: var(--muted);
}
.portal-card-active .portal-symbol,
.portal-card-active .portal-status,
.portal-card-active .portal-card-bottom {
  color: var(--gold);
}
.portal-status {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 3px 9px;
  color: var(--muted);
  font-size: 10px;
  white-space: nowrap;
}
.portal-card h2 {
  font: 500 36px/1.2 var(--display);
  letter-spacing: 5px;
}
.portal-purpose {
  margin: 12px 0 20px -7px;
  color: var(--gold);
  font-size: 15px;
  letter-spacing: 2px;
}
.portal-card-description {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.9;
  margin-bottom: 26px;
}
.portal-card-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding-top: 14px;
  color: var(--muted);
  font-size: 12px;
}
.portal-card-bottom > span:last-child {
  font-size: 22px;
  line-height: 1;
}
.portal-note {
  margin-top: 30px;
  text-align: center;
  color: var(--muted);
  font-size: 11px;
}
.portal-page .footer {
  width: calc(100% - 50px);
  margin: 0 auto;
}
@media (max-width: 1000px) {
  .portal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .portal-header-note {
    display: none;
  }
  .portal-main {
    padding: 24px 20px;
  }
  .portal-intro {
    padding-bottom: 32px;
  }
  .portal-intro h1 em {
    display: block;
  }
  .portal-description {
    font-size: 12px;
  }
  .portal-grid {
    gap: 12px;
  }
  .portal-card {
    padding: 18px 14px 14px;
    border-radius: 12px;
  }
  .portal-card-top {
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
  }
  .portal-symbol {
    width: 46px;
    height: 46px;
  }
  .portal-card h2 {
    font-size: 30px;
  }
  .portal-purpose {
    font-size: 13px;
    letter-spacing: 1px;
    margin-bottom: 14px;
  }
  .portal-card-description {
    font-size: 11px;
    margin-bottom: 20px;
  }
  .portal-card-description br {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .portal-card-active {
    transition: none;
  }
  .portal-card-active:hover {
    transform: none;
  }
}

.current-city-card {
  border-color: var(--teal);
}
.current-city-section {
  margin-bottom: 32px;
}
.current-city-factors {
  margin-top: 20px;
}
.current-city-factor {
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.current-city-factor > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 12px;
  font-size: 13px;
}
.current-city-factor span {
  color: var(--teal);
}
.current-city-factor p {
  margin: 7px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.8;
}
