:root {
  --ink: #263746;
  --ink-2: #405362;
  --mist: #eaf2f4;
  --mist-2: #d6e6ea;
  --vermilion: #b74735;
  --vermilion-dark: #a94331;
  --washi: #f7f3eb;
  --washi-2: #eee7da;
  --gold: #b99455;
  --green: #55755f;
  --purple: #88749b;
  --white: #fffdf8;
  --line: rgba(38, 55, 70, 0.17);
  --line-strong: rgba(38, 55, 70, 0.34);
  --shadow-soft: 0 18px 48px rgba(38, 55, 70, 0.1);
  --shadow-lift: 0 22px 70px rgba(38, 55, 70, 0.16);
  --radius-shell: 32px;
  --radius-card: 20px;
  --radius-control: 14px;
  --page: min(1180px, calc(100vw - 48px));
  --font-sans: "Hiragino Sans", "Yu Gothic", "YuGothic", "Noto Sans JP", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --font-serif: "Yu Mincho", "Hiragino Mincho ProN", "Noto Serif JP", Georgia, serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  background: var(--washi);
  overflow-x: clip;
}

body {
  margin: 0;
  overflow-x: clip;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 8%, rgba(210, 92, 71, 0.08), transparent 25rem),
    radial-gradient(circle at 88% 24%, rgba(79, 125, 145, 0.11), transparent 30rem),
    var(--washi);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  pointer-events: none;
  opacity: 0.18;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140' viewBox='0 0 140 140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.72' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.11'/%3E%3C/svg%3E");
}

body.app-active {
  background: var(--washi);
}

body.app-active .site-header,
body.app-active .site-footer {
  display: none;
}

body[data-initial-type] #marketingView,
body[data-initial-type] > .site-header,
body[data-initial-type] > .site-footer {
  display: none;
}

body[data-page-kind="test"] #marketingView {
  display: none;
}

[hidden] {
  display: none !important;
}

img {
  display: block;
  height: auto;
  max-width: 100%;
}

h1,
h2,
h3 {
  text-wrap: balance;
}

.nowrap {
  white-space: nowrap;
}

.notranslate,
[translate="no"] {
  unicode-bidi: isolate;
}

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

button {
  color: inherit;
  font: inherit;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid rgba(210, 92, 71, 0.55);
  outline-offset: 4px;
}

.question-panel h1:focus,
.tie-shell h1:focus,
.result-headline h1:focus {
  outline: none;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 999;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--ink);
  color: white;
  transform: translateY(-150%);
  transition: transform 160ms ease;
}

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

.section-shell {
  width: var(--page);
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 30;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 34px;
  width: min(1320px, calc(100vw - 32px));
  margin: 14px auto 0;
  padding: 12px 14px 12px 20px;
  border: 1px solid rgba(38, 55, 70, 0.12);
  border-radius: 18px;
  background: rgba(247, 243, 235, 0.86);
  box-shadow: 0 8px 30px rgba(38, 55, 70, 0.05);
  backdrop-filter: blur(18px) saturate(120%);
}

.header-controls,
.quiz-top-actions,
.result-nav-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.sound-toggle {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.68);
  color: var(--ink-2);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
  white-space: nowrap;
  transition: color 160ms ease, background 160ms ease, border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.sound-toggle:hover {
  border-color: var(--ink);
  background: var(--white);
  transform: translateY(-1px);
}

.sound-toggle:active {
  transform: translateY(0);
}

.sound-toggle[aria-pressed="true"] {
  border-color: var(--ink);
  background: var(--ink);
  box-shadow: 0 7px 18px rgba(38, 55, 70, 0.14);
  color: white;
}

.sound-toggle[disabled] {
  cursor: not-allowed;
  opacity: 0.48;
  transform: none;
}

.sound-toggle-compact {
  min-height: 36px;
  padding-inline: 9px;
}

.sound-glyph {
  position: relative;
  display: inline-flex;
  width: 16px;
  height: 14px;
  align-items: center;
  justify-content: center;
  gap: 2px;
  flex: 0 0 16px;
}

.sound-glyph i {
  display: block;
  width: 2px;
  border-radius: 99px;
  background: currentColor;
  transform-origin: center;
}

.sound-glyph i:nth-child(1) { height: 5px; }
.sound-glyph i:nth-child(2) { height: 11px; }
.sound-glyph i:nth-child(3) { height: 7px; }

.sound-glyph::after {
  position: absolute;
  width: 18px;
  height: 2px;
  border-radius: 99px;
  background: currentColor;
  content: "";
  transform: rotate(-45deg);
  transition: opacity 140ms ease, transform 140ms ease;
}

.sound-toggle[aria-pressed="true"] .sound-glyph::after {
  opacity: 0;
  transform: rotate(-45deg) scaleX(0.35);
}

.sound-toggle[aria-pressed="true"] .sound-glyph i {
  animation: sound-level 820ms ease-in-out 2;
}

.sound-toggle[aria-pressed="true"] .sound-glyph i:nth-child(2) { animation-delay: 80ms; }
.sound-toggle[aria-pressed="true"] .sound-glyph i:nth-child(3) { animation-delay: 160ms; }

@keyframes sound-level {
  0%, 100% { transform: scaleY(0.62); }
  50% { transform: scaleY(1); }
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 12px;
  text-decoration: none;
}

.brand-word {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
}

.brand-word span {
  color: var(--vermilion);
}

.brand-sub {
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 3vw, 38px);
}

.site-nav a,
.site-footer a {
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-decoration: none;
}

.site-nav a:hover,
.site-footer a:hover {
  color: var(--vermilion);
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: var(--radius-control);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease, border-color 160ms ease;
}

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

.button:active {
  transform: translateY(0);
}

.button-small {
  min-height: 40px;
  padding-inline: 17px;
  font-size: 12px;
}

.button-large {
  min-height: 60px;
  padding-inline: 28px;
  border-radius: 17px;
  font-size: 15px;
}

.button-primary {
  background: var(--vermilion);
  box-shadow: 0 12px 28px rgba(210, 92, 71, 0.26);
  color: white;
}

.button-primary:hover {
  background: var(--vermilion-dark);
  box-shadow: 0 16px 36px rgba(210, 92, 71, 0.34);
}

.button-dark {
  background: var(--ink);
  color: white;
}

.button-dark:hover {
  box-shadow: 0 12px 25px rgba(38, 55, 70, 0.2);
}

.button-outline {
  border-color: var(--line-strong);
  background: transparent;
}

.button-outline:hover,
.button-ghost:hover {
  border-color: var(--ink);
  background: rgba(38, 55, 70, 0.05);
}

.button-ghost {
  min-height: 44px;
  padding-inline: 16px;
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.42);
}

.text-link,
.text-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  padding: 8px 0;
  border: 0;
  border-bottom: 1px solid currentColor;
  background: none;
  color: var(--ink);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
  text-decoration: none;
}

.text-link:hover,
.text-button:hover {
  color: var(--vermilion);
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--vermilion);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.13em;
  line-height: 1.3;
  text-transform: uppercase;
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(480px, 1.08fr);
  align-items: center;
  gap: clamp(42px, 6vw, 84px);
  min-height: calc(100svh - 86px);
  padding-block: clamp(72px, 10vw, 132px);
}

.hero-copy {
  position: relative;
  z-index: 2;
  min-width: 0;
}

.station-label {
  display: inline-grid;
  grid-template-columns: 34px 32px auto;
  align-items: center;
  margin-bottom: 38px;
  overflow: hidden;
  border: 1px solid var(--ink);
  border-radius: 8px;
  background: rgba(255, 253, 248, 0.72);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.station-label > * {
  display: grid;
  min-height: 30px;
  place-items: center;
}

.station-label span {
  background: var(--ink);
  color: white;
}

.station-label b {
  background: var(--vermilion);
  color: white;
}

.station-label i {
  padding-inline: 11px;
  font-family: Georgia, "Times New Roman", serif;
  font-style: normal;
}

.hero h1,
.section-heading h2,
.atlas-heading h2,
.final-cta h2,
.static-hero h1 {
  margin: 0;
  font-family: var(--font-serif);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.2;
}

.hero h1 {
  max-width: 650px;
  font-size: clamp(48px, 5.7vw, 80px);
}

.hero h1 em {
  color: var(--vermilion);
  font-style: normal;
}

.hero-lead {
  max-width: 570px;
  margin: 30px 0 0;
  color: var(--ink-2);
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.95;
}

.hero-facts {
  display: flex;
  gap: 0;
  margin-top: 34px;
}

.hero-facts span {
  min-width: 92px;
  padding: 0 22px;
  border-left: 1px solid var(--line-strong);
  color: var(--ink-2);
  font-size: 12px;
  letter-spacing: 0.04em;
}

.hero-facts span:first-child {
  padding-left: 0;
  border-left: 0;
}

.hero-facts b {
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-top: 38px;
}

.microcopy {
  max-width: 540px;
  margin: 22px 0 0;
  color: rgba(38, 55, 70, 0.74);
  font-size: 12px;
  line-height: 1.7;
}

.hero-share-proof {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 24px;
}

.hero-share-proof p {
  margin: 0;
  color: var(--ink-2);
  font-size: 12px;
  line-height: 1.65;
}

.hero-share-proof strong {
  color: var(--ink);
  font-size: 12px;
}

.hero-code-stack {
  display: flex;
  min-width: 104px;
}

.hero-code-stack span {
  display: grid;
  width: 44px;
  height: 44px;
  margin-right: -14px;
  place-items: center;
  border: 2px solid var(--washi);
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 5px 18px rgba(38, 55, 70, 0.16);
  color: white;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.hero-code-stack span:nth-child(2) { background: var(--vermilion); }
.hero-code-stack span:nth-child(3) { background: var(--green); }

.hero-visual {
  position: relative;
  min-width: 0;
  margin: 0;
}

.hero-visual::before,
.hero-visual::after {
  position: absolute;
  z-index: -1;
  border: 1px solid rgba(79, 125, 145, 0.32);
  border-radius: 50%;
  content: "";
}

.hero-visual::before {
  width: 360px;
  height: 360px;
  top: -82px;
  right: -82px;
  box-shadow: 0 0 0 28px rgba(79, 125, 145, 0.04), 0 0 0 62px rgba(79, 125, 145, 0.025);
}

.hero-visual::after {
  width: 130px;
  height: 130px;
  left: -38px;
  bottom: -28px;
  border-color: rgba(210, 92, 71, 0.35);
  box-shadow: 0 0 0 22px rgba(210, 92, 71, 0.04);
}

.hero-visual img {
  aspect-ratio: 1.12;
  width: 100%;
  border: 1px solid rgba(38, 55, 70, 0.12);
  border-radius: 48% 48% 24px 24px;
  box-shadow: var(--shadow-lift);
  object-fit: cover;
  object-position: center;
}

.hero-visual picture {
  display: block;
}

.hero-visual figcaption {
  position: absolute;
  right: 20px;
  bottom: 18px;
  left: 20px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 13px 15px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 12px;
  background: rgba(247, 243, 235, 0.86);
  backdrop-filter: blur(14px);
  font-size: 12px;
}

.hero-visual figcaption span {
  color: var(--vermilion);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.hero-visual figcaption strong {
  font-size: 12px;
}

.hero-visual figcaption i {
  color: var(--ink-2);
  font-size: 16px;
  font-style: normal;
  letter-spacing: 0.12em;
}

.axis-intro {
  padding-block: 110px 125px;
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(360px, 0.5fr);
  gap: 80px;
  align-items: end;
  margin-bottom: 62px;
}

.section-heading .eyebrow {
  grid-column: 1 / -1;
  margin-bottom: -46px;
}

.section-heading h2,
.atlas-heading h2,
.final-cta h2 {
  font-size: clamp(38px, 4.8vw, 64px);
}

.section-heading > p:last-child,
.atlas-heading > p:last-child,
.final-cta > p {
  margin: 0;
  color: var(--ink-2);
  line-height: 1.9;
}

.axis-route {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.axis-route::before {
  position: absolute;
  top: -42px;
  right: 12%;
  left: 12%;
  height: 1px;
  background: var(--line-strong);
  content: "";
}

.axis-card {
  position: relative;
  min-height: 220px;
  padding: 28px 30px 24px;
  overflow: hidden;
  border: 1px solid rgba(38, 55, 70, 0.13);
  border-radius: var(--radius-card);
  background: rgba(255, 253, 248, 0.58);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.axis-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

.axis-card::after {
  position: absolute;
  width: 190px;
  height: 190px;
  top: -80px;
  right: -60px;
  border: 1px solid currentColor;
  border-radius: 50%;
  box-shadow: 0 0 0 18px color-mix(in srgb, currentColor 7%, transparent), 0 0 0 42px color-mix(in srgb, currentColor 4%, transparent);
  content: "";
  opacity: 0.35;
}

.axis-sk { color: #4f7d91; background: linear-gradient(145deg, rgba(234, 242, 244, 0.92), rgba(255, 253, 248, 0.68)); }
.axis-wm { color: #5f8069; background: linear-gradient(145deg, rgba(237, 243, 237, 0.92), rgba(255, 253, 248, 0.68)); }
.axis-ht { color: #b96a50; background: linear-gradient(145deg, rgba(248, 236, 231, 0.92), rgba(255, 253, 248, 0.68)); }
.axis-dn { color: #88749b; background: linear-gradient(145deg, rgba(240, 236, 244, 0.92), rgba(255, 253, 248, 0.68)); }

.axis-number {
  position: absolute;
  top: 22px;
  right: 24px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.axis-card > p {
  margin: 0 0 24px;
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.axis-card h3 {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: clamp(23px, 2.5vw, 34px);
  font-weight: 600;
  letter-spacing: -0.03em;
}

.axis-card h3 span {
  color: currentColor;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
}

.axis-card h3 i {
  color: var(--line-strong);
  font-family: var(--font-sans);
  font-size: 16px;
  font-style: normal;
}

.axis-ends {
  display: flex;
  justify-content: space-between;
  margin-top: 38px;
  padding-top: 15px;
  border-top: 1px dashed currentColor;
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 700;
}

.how-section {
  padding-block: 85px 120px;
  border-top: 1px solid var(--line);
}

.section-heading.compact {
  display: block;
  margin-bottom: 54px;
}

.section-heading.compact .eyebrow {
  margin-bottom: 14px;
}

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

.how-list li {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 20px;
  min-height: 250px;
  padding: 30px;
  border-top: 1px solid var(--ink);
  border-bottom: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.how-list li:first-child {
  border-left: 0;
}

.how-list > li > span {
  color: var(--vermilion);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13px;
  font-weight: 800;
}

.how-list h3 {
  margin: 0 0 16px;
  font-family: var(--font-serif);
  font-size: 23px;
  font-weight: 600;
}

.how-list p {
  margin: 0;
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.9;
}

.situation-preview {
  position: relative;
  overflow: hidden;
  padding: 72px;
  border-radius: var(--radius-shell);
  background: var(--ink);
  color: white;
  box-shadow: var(--shadow-lift);
}

.situation-preview::before {
  position: absolute;
  top: -130px;
  right: -80px;
  width: 430px;
  height: 430px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  box-shadow: 0 0 0 55px rgba(255, 255, 255, 0.025), 0 0 0 110px rgba(255, 255, 255, 0.02);
  content: "";
  pointer-events: none;
}

.situation-preview-heading {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.7fr);
  gap: 70px;
  align-items: end;
}

.situation-preview .eyebrow {
  color: #f6aa97;
}

.situation-preview-heading h2 {
  max-width: 650px;
  margin: 10px 0 0;
  font-family: var(--font-serif);
  font-size: clamp(38px, 5vw, 62px);
  font-weight: 600;
  line-height: 1.28;
  letter-spacing: -0.04em;
}

.situation-preview-heading > p {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 14px;
  line-height: 1.95;
}

.situation-preview-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 54px;
}

.situation-preview-card {
  position: relative;
  display: grid;
  min-height: 242px;
  padding: 28px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.17);
  border-radius: 19px;
  background: rgba(255, 255, 255, 0.055);
  color: white;
  text-decoration: none;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.situation-preview-card::after {
  position: absolute;
  right: -48px;
  bottom: -70px;
  width: 190px;
  height: 190px;
  border: 1px solid currentColor;
  border-radius: 50%;
  opacity: 0.1;
  content: "";
}

.situation-preview-card:hover {
  border-color: rgba(255, 255, 255, 0.46);
  background: rgba(255, 255, 255, 0.1);
  transform: translateY(-4px);
}

.situation-card-index {
  color: #f6aa97;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.situation-preview-card strong {
  align-self: end;
  margin-top: 30px;
  font-family: var(--font-serif);
  font-size: clamp(22px, 2.5vw, 31px);
  font-weight: 600;
  line-height: 1.45;
}

.situation-preview-card p {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
}

.situation-preview-card i {
  position: absolute;
  top: 26px;
  right: 26px;
  color: rgba(255, 255, 255, 0.68);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 13px;
  font-style: normal;
  font-weight: 800;
}

.situation-preview-footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 30px 0 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: 13px;
}

.situation-preview-footer .text-link {
  color: white;
}

.atlas-section {
  padding-block: 130px;
}

.atlas-heading {
  display: grid;
  grid-template-columns: 150px minmax(0, 1.28fr) minmax(280px, 0.72fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: end;
  margin-bottom: 52px;
}

.atlas-heading .eyebrow {
  align-self: start;
  margin-top: 12px;
}

.atlas-heading h2 {
  max-width: 760px;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.atlas-heading > p:last-child {
  font-size: 14px;
}

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

.type-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 253, 248, 0.7);
  color: var(--ink);
  text-decoration: none;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.type-card:hover {
  border-color: var(--ink);
  box-shadow: 0 18px 46px rgba(38, 55, 70, 0.14);
  transform: translateY(-6px);
}

.type-card figure {
  position: relative;
  aspect-ratio: 4 / 5;
  margin: 0;
  overflow: hidden;
  background: var(--washi-2);
}

.type-card figure::after {
  position: absolute;
  inset: 45% 0 0;
  background: linear-gradient(transparent, rgba(27, 43, 55, 0.48));
  content: "";
  pointer-events: none;
}

.type-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.type-card:hover img {
  transform: scale(1.035);
}

.type-number,
.type-code {
  position: absolute;
  z-index: 1;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.type-number {
  top: 14px;
  right: 14px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 50%;
  background: rgba(247, 243, 235, 0.78);
  backdrop-filter: blur(8px);
  color: var(--ink);
  font-size: 12px;
}

.type-code {
  bottom: 14px;
  left: 16px;
  color: white;
  font-size: clamp(28px, 3.2vw, 44px);
  letter-spacing: -0.03em;
  line-height: 1;
}

.type-card > div {
  display: flex;
  min-height: 184px;
  flex: 1;
  flex-direction: column;
  padding: 18px 18px 16px;
}

.type-card h3 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.45;
}

.type-card p {
  display: -webkit-box;
  margin: 10px 0 16px;
  overflow: hidden;
  color: var(--ink-2);
  font-size: 12px;
  line-height: 1.75;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.type-card > div > span {
  margin-top: auto;
  color: var(--vermilion);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.atlas-footnote {
  margin: 30px 0 0;
  color: var(--ink-2);
  font-size: 12px;
  text-align: center;
}

.atlas-footnote span {
  color: var(--vermilion);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.trust-section {
  margin-block: 70px 130px;
  padding: 60px;
  border: 1px solid rgba(38, 55, 70, 0.13);
  border-radius: var(--radius-shell);
  background:
    linear-gradient(rgba(255, 253, 248, 0.72), rgba(255, 253, 248, 0.72)),
    repeating-linear-gradient(90deg, transparent 0 96px, rgba(38, 55, 70, 0.08) 97px),
    var(--mist);
}

.trust-section > div:first-child {
  display: flex;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 42px;
}

.trust-section h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(34px, 4.1vw, 54px);
  font-weight: 600;
}

.trust-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 30px;
}

.trust-grid article {
  min-height: 220px;
  padding: 25px;
  border: 1px solid rgba(38, 55, 70, 0.12);
  border-radius: 16px;
  background: rgba(247, 243, 235, 0.86);
}

.trust-grid article > span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--vermilion);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
}

.trust-grid h3 {
  margin: 27px 0 10px;
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
}

.trust-grid p {
  margin: 0;
  color: var(--ink-2);
  font-size: 12px;
  line-height: 1.8;
}

.final-cta {
  position: relative;
  display: grid;
  min-height: 490px;
  place-items: center;
  margin-bottom: 120px;
  padding: 70px 30px;
  overflow: hidden;
  border-radius: var(--radius-shell);
  background: var(--ink);
  color: white;
  text-align: center;
}

.final-cta > *:not(.weather-ring) {
  position: relative;
  z-index: 1;
}

.final-cta .eyebrow {
  margin-bottom: -30px;
  color: #f6aa97;
}

.final-cta p:not(.eyebrow) {
  margin-top: -32px;
  color: rgba(255, 255, 255, 0.7);
}

.weather-ring,
.result-weather {
  position: absolute;
  border: 1px solid rgba(234, 242, 244, 0.23);
  border-radius: 50%;
  box-shadow: 0 0 0 34px rgba(234, 242, 244, 0.05), 0 0 0 78px rgba(234, 242, 244, 0.035), 0 0 0 130px rgba(234, 242, 244, 0.02);
}

.weather-ring {
  width: 260px;
  height: 260px;
  top: 40px;
  right: 60px;
}

.site-footer {
  display: grid;
  grid-template-columns: 1fr 1.2fr auto;
  align-items: start;
  gap: 34px;
  width: var(--page);
  margin: 0 auto;
  padding: 45px 0 30px;
  border-top: 1px solid var(--ink);
}

.site-footer > p {
  margin: 0;
  color: var(--ink-2);
  font-size: 12px;
}

.site-footer nav {
  display: flex;
  gap: 20px;
}

.site-footer small {
  grid-column: 1 / -1;
  color: rgba(38, 55, 70, 0.74);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
  letter-spacing: 0.08em;
}

/* Quiz */
.app-view {
  min-height: 100svh;
  background:
    radial-gradient(circle at 76% 18%, rgba(79, 125, 145, 0.13), transparent 25rem),
    var(--washi);
}

.quiz-shell {
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: min(1040px, calc(100vw - 40px));
  min-height: 100svh;
  margin: 0 auto;
  padding: max(24px, env(safe-area-inset-top, 0px)) 0 max(30px, env(safe-area-inset-bottom, 0px));
}

.quiz-topline {
  display: grid;
  grid-template-columns: 46px 1fr auto;
  align-items: center;
  gap: 20px;
}

.quiz-top-actions {
  justify-content: flex-end;
}

.icon-button {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 253, 248, 0.65);
  cursor: pointer;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  transition: transform 160ms ease, border-color 160ms ease;
}

.icon-button:hover {
  border-color: var(--ink);
  transform: rotate(5deg);
}

.quiz-progress-copy {
  display: flex;
  justify-content: space-between;
  margin-bottom: 7px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.09em;
}

.quiz-progress-copy span:last-child {
  color: var(--ink-2);
  font-family: var(--font-sans);
  font-weight: 600;
}

.progress-track {
  height: 4px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(38, 55, 70, 0.12);
}

.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--vermilion);
  transition: width 300ms ease;
}

.progress-step-0 { width: 0% !important; }
.progress-step-1 { width: 4.1667% !important; }
.progress-step-2 { width: 8.3333% !important; }
.progress-step-3 { width: 12.5% !important; }
.progress-step-4 { width: 16.6667% !important; }
.progress-step-5 { width: 20.8333% !important; }
.progress-step-6 { width: 25% !important; }
.progress-step-7 { width: 29.1667% !important; }
.progress-step-8 { width: 33.3333% !important; }
.progress-step-9 { width: 37.5% !important; }
.progress-step-10 { width: 41.6667% !important; }
.progress-step-11 { width: 45.8333% !important; }
.progress-step-12 { width: 50% !important; }
.progress-step-13 { width: 54.1667% !important; }
.progress-step-14 { width: 58.3333% !important; }
.progress-step-15 { width: 62.5% !important; }
.progress-step-16 { width: 66.6667% !important; }
.progress-step-17 { width: 70.8333% !important; }
.progress-step-18 { width: 75% !important; }
.progress-step-19 { width: 79.1667% !important; }
.progress-step-20 { width: 83.3333% !important; }
.progress-step-21 { width: 87.5% !important; }
.progress-step-22 { width: 91.6667% !important; }
.progress-step-23 { width: 95.8333% !important; }
.progress-step-24 { width: 100% !important; }

.quiz-time {
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.question-panel {
  display: grid;
  align-content: center;
  width: min(780px, 100%);
  margin: 35px auto;
}

.question-panel > .eyebrow {
  color: var(--ink-2);
  text-align: center;
}

.question-panel h1,
.tie-shell h1,
.reveal-shell h1 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(30px, 4.2vw, 52px);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.55;
  text-align: center;
}

.answers {
  display: grid;
  gap: 8px;
  margin-top: 42px;
}

.answers[inert],
.tie-options[inert] {
  pointer-events: none;
}

.answer-button {
  position: relative;
  display: grid;
  grid-template-columns: 42px 1fr 26px;
  align-items: center;
  min-height: 62px;
  padding: 8px 18px 8px 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 253, 248, 0.62);
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
  text-align: left;
  transition: border-color 140ms ease, background 140ms ease, transform 140ms ease;
}

.answer-button:hover {
  border-color: var(--ink);
  background: var(--white);
  transform: translateX(4px);
}

.answer-button[aria-pressed="true"] {
  border-color: var(--vermilion);
  background: rgba(210, 92, 71, 0.08);
}

.answer-marker {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  color: var(--ink-2);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
}

.answer-button[aria-pressed="true"] .answer-marker {
  border-color: var(--vermilion);
  background: var(--vermilion);
  color: white;
}

.answer-button > i {
  color: var(--ink-2);
  font-style: normal;
  text-align: right;
}

.quiz-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 48px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.quiz-controls p {
  margin: 0;
  color: rgba(38, 55, 70, 0.74);
  font-size: 12px;
}

.quiz-controls .text-button[disabled] {
  opacity: 0.35;
  cursor: default;
}

.tie-shell {
  position: relative;
  display: flex;
  min-height: 100svh;
  max-width: 820px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.tie-sound-control {
  position: absolute;
  z-index: 2;
  top: max(22px, env(safe-area-inset-top, 0px));
  right: 0;
}

.tie-weather {
  position: absolute;
  inset: 8% 0 auto;
  height: 160px;
  opacity: 0.45;
}

.tie-weather span {
  position: absolute;
  border: 1px solid #4f7d91;
  border-radius: 50%;
}

.tie-weather span:nth-child(1) { width: 130px; height: 130px; left: 8%; top: 0; box-shadow: 0 0 0 20px rgba(79, 125, 145, 0.05); }
.tie-weather span:nth-child(2) { width: 70px; height: 70px; right: 18%; top: 45px; border-color: var(--vermilion); }
.tie-weather span:nth-child(3) { width: 9px; height: 9px; right: 8%; top: 16px; background: var(--gold); border: 0; box-shadow: -30px 30px 0 #4f7d91, -65px 8px 0 var(--vermilion); }

.tie-shell .eyebrow {
  position: relative;
}

.tie-lead {
  max-width: 600px;
  margin: 20px auto 36px;
  color: var(--ink-2);
  font-size: 13px;
}

.tie-options {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.tie-option {
  display: grid;
  min-height: 170px;
  place-items: center;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: rgba(255, 253, 248, 0.72);
  cursor: pointer;
  font-family: var(--font-serif);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.7;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.tie-option:hover {
  border-color: var(--vermilion);
  box-shadow: var(--shadow-soft);
  transform: translateY(-4px);
}

.reveal-shell {
  display: flex;
  min-height: 100svh;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.reveal-lines {
  display: grid;
  width: min(660px, 100%);
  gap: 10px;
  margin-top: 55px;
}

.reveal-line {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  align-items: center;
  min-height: 64px;
  padding: 8px 18px 8px 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 253, 248, 0.66);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 320ms ease, transform 320ms ease;
}

.reveal-line.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-line b {
  display: grid;
  align-self: stretch;
  place-items: center;
  border-radius: 9px;
  color: white;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 22px;
}

.axis-tone-sk { color: #4f7d91; }
.axis-tone-wm { color: #5f8069; }
.axis-tone-ht { color: #b96a50; }
.axis-tone-dn { color: #88749b; }

.code-letters .axis-tone-sk,
.reveal-line.axis-tone-sk b,
.axis-result.axis-tone-sk .axis-result-heading b { background: #4f7d91; }
.code-letters .axis-tone-wm,
.reveal-line.axis-tone-wm b,
.axis-result.axis-tone-wm .axis-result-heading b { background: #5f8069; }
.code-letters .axis-tone-ht,
.reveal-line.axis-tone-ht b,
.axis-result.axis-tone-ht .axis-result-heading b { background: #b96a50; }
.code-letters .axis-tone-dn,
.reveal-line.axis-tone-dn b,
.axis-result.axis-tone-dn .axis-result-heading b { background: #88749b; }

.reveal-line span {
  padding-inline: 16px;
  font-weight: 800;
}

.reveal-line i {
  color: var(--ink-2);
  font-size: 12px;
  font-style: normal;
}

/* Result */
.result-view {
  background:
    radial-gradient(circle at 90% 8%, rgba(210, 92, 71, 0.12), transparent 26rem),
    radial-gradient(circle at 8% 28%, rgba(79, 125, 145, 0.13), transparent 32rem),
    var(--washi);
}

.result-shell {
  width: min(1060px, calc(100vw - 40px));
  margin: 0 auto;
  padding: max(28px, env(safe-area-inset-top, 0px)) 0 max(75px, calc(env(safe-area-inset-bottom, 0px) + 36px));
}

.result-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.result-nav-actions {
  justify-content: flex-end;
}

.result-hero {
  display: grid;
  grid-template-columns: minmax(310px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(48px, 8vw, 90px);
  align-items: center;
  padding-block: 76px;
}

.result-code-card {
  position: relative;
  display: flex;
  aspect-ratio: 4 / 5;
  flex-direction: column;
  padding: 24px;
  overflow: hidden;
  border-radius: 28px;
  background: var(--ink);
  box-shadow: var(--shadow-lift);
  color: white;
}

.result-code-card::after {
  position: absolute;
  inset: 13px;
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, 0.48);
  border-radius: 20px;
  content: "";
  pointer-events: none;
}

.result-code-card > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.result-portrait-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(27, 43, 55, 0.14), rgba(27, 43, 55, 0.04) 36%, rgba(27, 43, 55, 0.88) 100%);
}

.result-code-card > *:not(img, .result-portrait-shade) {
  position: relative;
  z-index: 2;
}

.result-code-card > p,
.result-code-card > span {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-shadow: 0 1px 12px rgba(27, 43, 55, 0.4);
}

.result-code-card > strong {
  margin-top: auto;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(64px, 8vw, 100px);
  letter-spacing: -0.07em;
  line-height: 0.85;
  text-shadow: 0 3px 20px rgba(27, 43, 55, 0.45);
}

.result-code-card > span {
  margin-top: 14px;
}

.code-letters {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: 16px;
}

.code-letters span {
  display: grid;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 9px;
  color: white;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 20px;
  font-weight: 800;
}

.result-headline h1 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(44px, 6vw, 76px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.22;
}

.result-tagline {
  margin: 26px 0 0;
  color: var(--vermilion);
  font-family: var(--font-serif);
  font-size: clamp(18px, 2vw, 24px);
  font-weight: 600;
  line-height: 1.75;
}

.result-display-options {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.result-display-option {
  display: grid;
  gap: 6px;
}

.result-display-option > span {
  color: rgba(38, 55, 70, 0.74);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.tone-toggle,
.visual-toggle {
  display: inline-grid;
  grid-template-columns: repeat(2, 1fr);
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.6);
}

.tone-toggle button,
.visual-toggle button {
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

.tone-toggle button.active,
.visual-toggle button.active {
  background: var(--ink);
  color: white;
}

.tone-note {
  margin: 8px 0 0;
  color: rgba(38, 55, 70, 0.74);
  font-size: 12px;
}

.result-summary {
  margin: 26px 0 0;
  color: var(--ink-2);
  line-height: 1.95;
}

.result-action-deck {
  margin-top: 26px;
}

.result-action-deck > div {
  display: none;
}

body.result-from-link [data-result-audience="visitor"],
body.result-from-quiz [data-result-audience="owner"] {
  display: grid;
}

.result-action-visitor,
.result-action-owner {
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 253, 248, 0.7);
  box-shadow: 0 12px 32px rgba(38, 55, 70, 0.06);
}

.result-action-visitor p,
.result-action-owner p {
  display: grid;
  gap: 3px;
  margin: 0;
  line-height: 1.5;
}

.result-action-visitor p strong,
.result-action-owner p strong {
  font-family: var(--font-serif);
  font-size: 16px;
}

.result-action-visitor p span,
.result-action-owner p span {
  color: var(--ink-2);
  font-size: 12px;
}

.result-action-visitor .button {
  width: 100%;
}

.result-action-owner > div {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.result-action-owner .button {
  min-height: 48px;
  padding-inline: 14px;
  font-size: 12px;
}

.axis-results {
  display: grid;
  gap: 10px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: rgba(255, 253, 248, 0.58);
}

.axis-result {
  display: grid;
  grid-template-columns: 150px 1fr 135px;
  align-items: center;
  gap: 22px;
  min-height: 54px;
}

.axis-result-heading {
  display: flex;
  align-items: center;
  gap: 12px;
}

.axis-result-heading b {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  color: white;
  font-family: Georgia, "Times New Roman", serif;
}

.axis-result-heading span {
  font-size: 12px;
  font-weight: 800;
}

.axis-meter {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: 14px;
  border-radius: 99px;
  background: rgba(38, 55, 70, 0.09);
}

.axis-meter::before {
  position: absolute;
  z-index: 2;
  width: 2px;
  height: 22px;
  top: 50%;
  left: 50%;
  background: var(--washi);
  content: "";
  transform: translate(-50%, -50%);
}

.axis-meter-fill {
  position: absolute;
  height: 100%;
  border-radius: inherit;
  background: currentColor;
}

.axis-meter-fill.left { right: 50%; }
.axis-meter-fill.right { left: 50%; }

.meter-level-1 { width: 8%; }
.meter-level-2 { width: 8.3333%; }
.meter-level-3 { width: 12.5%; }
.meter-level-4 { width: 16.6667%; }
.meter-level-5 { width: 20.8333%; }
.meter-level-6 { width: 25%; }
.meter-level-7 { width: 29.1667%; }
.meter-level-8 { width: 33.3333%; }
.meter-level-9 { width: 37.5%; }
.meter-level-10 { width: 41.6667%; }
.meter-level-11 { width: 45.8333%; }
.meter-level-12 { width: 50%; }

.axis-meter-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 18px;
  color: var(--ink-2);
  font-size: 12px;
  font-weight: 700;
}

.axis-meter-labels i {
  font-family: Georgia, "Times New Roman", serif;
  font-style: normal;
  font-weight: 800;
}

.axis-band {
  justify-self: end;
  font-size: 12px;
  font-weight: 800;
  text-align: right;
}

.result-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 54px;
}

.detail-card {
  min-height: 235px;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  background: rgba(255, 253, 248, 0.6);
}

.detail-card > p {
  margin: 0;
  color: var(--vermilion);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.detail-card h2 {
  margin: 22px 0 16px;
  font-family: var(--font-serif);
  font-size: 25px;
  font-weight: 600;
}

.detail-card div {
  color: var(--ink-2);
  line-height: 1.9;
}

.detail-strength {
  background: var(--mist);
}

.detail-accident {
  grid-column: 1 / -1;
  min-height: auto;
  background: rgba(210, 92, 71, 0.08);
}

.share-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(330px, 0.88fr);
  gap: 38px;
  align-items: center;
  margin-top: 30px;
  padding: 30px;
  border-radius: 28px;
  background: var(--ink);
  color: white;
}

.share-preview {
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.2);
}

.share-preview img {
  aspect-ratio: 1200 / 630;
  width: 100%;
  object-fit: cover;
}

.share-preview figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 48px;
  padding: 9px 14px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
}

.share-preview figcaption span {
  color: #f6aa97;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  white-space: nowrap;
}

.share-preview figcaption b {
  font-weight: 700;
  text-align: right;
}

.share-content {
  min-width: 0;
}

.share-panel h2,
.feedback-panel h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 34px;
  font-weight: 600;
}

.share-panel p:not(.eyebrow) {
  margin: 14px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  line-height: 1.8;
}

.share-panel .eyebrow {
  color: #f6aa97;
}

.share-actions {
  display: block;
  margin-top: 24px;
}

.share-primary,
.share-x-primary {
  width: 100%;
  min-height: 56px;
  justify-content: space-between;
  border-color: white;
  background: white;
  color: var(--ink);
  font-size: 13px;
}

.share-primary:hover,
.share-x-primary:hover {
  border-color: #f38a73;
  background: #f38a73;
  color: var(--ink);
}

.share-more {
  margin-top: 8px;
}

.share-more > summary {
  display: none;
}

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

.share-secondary > .share-x-primary,
.image-save-menu {
  grid-column: 1 / -1;
}

.image-save-menu {
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
}

.image-save-menu > summary,
.share-more > summary {
  min-height: 48px;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  list-style: none;
}

.image-save-menu > summary {
  display: flex;
}

.image-save-menu > summary::after,
.share-more > summary::after {
  content: "+";
  font-family: Georgia, "Times New Roman", serif;
  font-size: 18px;
}

.image-save-menu[open] > summary::after,
.share-more[open] > summary::after {
  content: "−";
}

.image-save-menu summary::-webkit-details-marker,
.share-more summary::-webkit-details-marker {
  display: none;
}

.image-save-menu > div {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 0 8px 8px;
}

.image-save-menu .button {
  min-width: 0;
  padding-inline: 8px;
}

.share-panel .button-outline,
.share-panel .button-ghost {
  border-color: rgba(255, 255, 255, 0.24);
  color: white;
}

.share-panel .button-ghost {
  background: rgba(255, 255, 255, 0.06);
}

.share-panel .button-outline:hover,
.share-panel .button-ghost:hover {
  border-color: rgba(255, 255, 255, 0.65);
  background: rgba(255, 255, 255, 0.08);
}

.compare-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(330px, 1.18fr);
  gap: 30px 52px;
  margin-top: 72px;
  padding: 42px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background:
    linear-gradient(135deg, rgba(79, 125, 145, 0.1), transparent 44%),
    rgba(255, 253, 248, 0.68);
  box-shadow: var(--shadow-soft);
}

.compare-panel > *,
.compare-form,
.compare-form > div {
  min-width: 0;
}

.compare-intro h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(30px, 4vw, 45px);
  font-weight: 600;
  line-height: 1.35;
}

.compare-intro > p:not(.eyebrow) {
  margin: 18px 0 0;
  color: var(--ink-2);
  font-size: 12px;
  line-height: 1.85;
}

.compare-form {
  align-self: end;
}

.compare-form label {
  display: block;
  margin-bottom: 9px;
  font-size: 12px;
  font-weight: 800;
}

.compare-form > div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}

.compare-form select {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  min-height: 50px;
  padding: 0 42px 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  background: var(--white);
  color: var(--ink);
  font: 700 13px/1 var(--font-sans);
}

.compare-form > p {
  margin: 8px 0 0;
  color: rgba(38, 55, 70, 0.74);
  font-size: 12px;
}

.compare-output {
  grid-column: 1 / -1;
  padding: 32px;
  border-radius: 22px;
  background: var(--ink);
  color: white;
}

.compare-codes {
  display: flex;
  align-items: center;
  gap: 18px;
}

.compare-codes strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(42px, 6vw, 70px);
  letter-spacing: -0.055em;
  line-height: 1;
}

.compare-codes span {
  color: #f6aa97;
  font-family: var(--font-serif);
  font-size: 28px;
}

.compare-score {
  display: inline-flex;
  margin: 22px 0 0;
  padding: 5px 10px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  color: #f6aa97;
  font-size: 12px;
  font-weight: 800;
}

.compare-output h3 {
  margin: 16px 0 0;
  font-family: var(--font-serif);
  font-size: clamp(25px, 4vw, 38px);
  font-weight: 600;
}

.compare-card-preview {
  max-width: 760px;
  margin: 28px 0 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.22);
}

.compare-card-preview img {
  aspect-ratio: 1200 / 630;
  width: 100%;
  object-fit: cover;
}

.compare-card-preview figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 46px;
  padding: 8px 13px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
}

.compare-card-preview figcaption span {
  color: #f6aa97;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.compare-axis-list {
  display: grid;
  gap: 8px;
  margin-top: 28px;
}

.compare-axis {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 48px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
}

.compare-axis > span {
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
}

.compare-axis b {
  font-size: 12px;
  font-weight: 700;
}

.compare-axis b:last-child {
  text-align: right;
}

.compare-axis i {
  font-family: Georgia, "Times New Roman", serif;
  font-style: normal;
}

.compare-axis em {
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(246, 170, 151, 0.15);
  color: #ffc2b1;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.compare-axis.same em {
  background: rgba(158, 202, 171, 0.16);
  color: #b8ddc2;
}

.compare-advice {
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  line-height: 1.9;
}

.compare-actions {
  display: flex;
  gap: 10px;
  margin-top: 24px;
}

.compare-output .button-outline {
  border-color: rgba(255, 255, 255, 0.28);
  color: white;
}

.compare-invite {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.compare-invite p {
  display: grid;
  gap: 3px;
  margin: 0;
}

.compare-invite p strong {
  font-family: var(--font-serif);
  font-size: 18px;
}

.compare-invite p span {
  color: var(--ink-2);
  font-size: 12px;
}

.feedback-panel {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 20px 50px;
  align-items: center;
  margin-top: 14px;
  padding: 38px 46px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 253, 248, 0.55);
}

.feedback-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.feedback-actions button {
  min-height: 48px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--washi);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

.feedback-actions button:hover,
.feedback-actions button.active {
  border-color: var(--vermilion);
  background: rgba(210, 92, 71, 0.08);
}

.feedback-note {
  grid-column: 2;
  margin: 0;
  color: rgba(38, 55, 70, 0.74);
  font-size: 12px;
}

.result-footer-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 42px;
}

.toast {
  position: fixed;
  z-index: 100;
  right: 22px;
  bottom: max(22px, calc(env(safe-area-inset-bottom, 0px) + 12px));
  max-width: min(360px, calc(100vw - 44px));
  padding: 13px 18px;
  border-radius: 12px;
  background: var(--ink);
  box-shadow: var(--shadow-lift);
  color: white;
  font-size: 12px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity 180ms ease, transform 180ms ease;
}

.toast.visible {
  opacity: 1;
  transform: translateY(0);
}

.noscript-result {
  width: min(720px, calc(100vw - 40px));
  margin: 60px auto;
  padding: 40px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--white);
  text-align: center;
}

.noscript-result img {
  width: min(360px, 100%);
  margin: 0 auto 28px;
  border-radius: 20px;
}

.app-error {
  position: relative;
  z-index: 40;
  display: flex;
  width: min(760px, calc(100vw - 28px));
  align-items: center;
  gap: 12px 18px;
  margin: 24px auto;
  padding: 16px 18px;
  border: 1px solid rgba(183, 71, 53, 0.35);
  border-radius: 16px;
  background: #fff6ef;
  box-shadow: var(--shadow-soft);
  color: var(--ink);
  font-size: 12px;
}

.app-error strong {
  white-space: nowrap;
}

.app-error span {
  flex: 1;
  color: var(--ink-2);
}

.resume-dialog {
  width: min(500px, calc(100vw - 28px));
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--white);
  box-shadow: 0 28px 100px rgba(25, 38, 48, 0.3);
  color: var(--ink);
}

.resume-dialog::backdrop {
  background: rgba(25, 38, 48, 0.5);
  backdrop-filter: blur(7px);
}

.resume-dialog form {
  padding: 30px;
}

.resume-dialog h2 {
  margin: 4px 0 8px;
  font-family: var(--font-serif);
  font-size: 30px;
  font-weight: 600;
}

.resume-dialog form > p:not(.eyebrow) {
  margin: 0;
  color: var(--ink-2);
  font-size: 13px;
}

.resume-dialog form > div {
  display: grid;
  gap: 8px;
  margin: 24px 0 16px;
}

.static-result-fallback {
  width: min(960px, calc(100vw - 40px));
  margin: 0 auto;
  padding: 54px 0 90px;
}

.static-result-hero {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(36px, 7vw, 72px);
  align-items: center;
}

.static-result-hero img {
  width: 100%;
  border-radius: 26px;
  box-shadow: var(--shadow-lift);
}

.static-result-hero h1 {
  margin: 4px 0 10px;
  font-family: var(--font-serif);
  font-size: clamp(40px, 6vw, 68px);
  font-weight: 600;
  line-height: 1.35;
}

.static-result-hero > div > p:last-child {
  color: var(--ink-2);
}

.static-result-tagline {
  color: var(--vermilion) !important;
  font-weight: 800;
}

.static-result-axes {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 54px 0 0;
  padding: 0;
  list-style: none;
}

.static-result-axes li {
  display: grid;
  gap: 3px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 253, 248, 0.72);
}

.static-result-axes b {
  color: var(--vermilion);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 26px;
}

.static-result-axes span {
  color: var(--ink-2);
  font-size: 12px;
}

.static-result-axes strong {
  font-size: 13px;
}

.static-result-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 28px;
}

.static-result-detail {
  min-height: 180px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 253, 248, 0.76);
}

.static-result-detail:last-child {
  grid-column: 1 / -1;
  min-height: 0;
  background: rgba(183, 71, 53, 0.07);
}

.static-result-detail p {
  margin: 0;
  color: var(--vermilion);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.static-result-detail h2 {
  margin: 4px 0 12px;
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 600;
}

.static-result-detail div {
  color: var(--ink-2);
  font-size: 14px;
}

.static-result-action {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 28px 0 0;
}

.static-result-action > span {
  color: var(--ink-2);
  font-size: 12px;
}

.local-data-status {
  min-height: 1.5em;
  color: var(--green) !important;
  font-weight: 700;
}

/* Static pages */
.static-main {
  width: min(920px, calc(100vw - 40px));
  margin: 0 auto;
  padding: 95px 0 120px;
}

.static-hero {
  padding-bottom: 60px;
  border-bottom: 1px solid var(--ink);
}

.static-hero h1 {
  max-width: 760px;
  font-size: clamp(44px, 7vw, 82px);
}

.static-hero > p:last-child {
  max-width: 680px;
  margin: 25px 0 0;
  color: var(--ink-2);
  font-size: 17px;
}

.static-content {
  display: grid;
  gap: 55px;
  padding-top: 65px;
}

.static-content section {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 45px;
  padding-bottom: 55px;
  border-bottom: 1px solid var(--line);
}

.static-content h2 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 600;
}

.static-content h3 {
  margin: 28px 0 10px;
  font-size: 15px;
}

.static-content p,
.static-content li {
  color: var(--ink-2);
  font-size: 14px;
  line-height: 2;
}

.static-content p:first-child {
  margin-top: 0;
}

.static-content ul,
.static-content ol {
  margin: 0;
  padding-left: 1.3em;
}

.notice-box {
  padding: 22px 24px;
  border-left: 4px solid var(--vermilion);
  background: rgba(210, 92, 71, 0.07);
}

.back-home {
  display: inline-flex;
  margin-top: 55px;
}

.static-pair-result {
  margin-bottom: 70px;
  padding-bottom: 62px;
  border-bottom: 1px solid var(--ink);
}

.static-pair-result h1 {
  display: grid;
  gap: 4px;
  margin: 5px 0 20px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(44px, 8vw, 76px);
  line-height: 1;
}

.static-pair-result h1 small {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 600;
}

.static-pair-result > p:not(.eyebrow) {
  max-width: 720px;
  color: var(--ink-2);
}

.static-pair-result img {
  width: 100%;
  margin-top: 28px;
  border-radius: 22px;
  box-shadow: var(--shadow-lift);
}

/* Everyday situation editorial pages */
.static-site-header .site-nav a[aria-current="page"] {
  background: rgba(183, 71, 53, 0.09);
  color: var(--vermilion-dark);
}

.scene-index-page,
.scene-page {
  padding-top: 74px;
}

.scene-index-hero {
  padding: 78px 0 82px;
  border-bottom: 1px solid var(--ink);
}

.scene-index-hero h1 {
  max-width: 930px;
  margin: 10px 0 24px;
  font-family: var(--font-serif);
  font-size: clamp(54px, 8.5vw, 104px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.055em;
}

.scene-index-hero > p:not(.eyebrow) {
  max-width: 720px;
  color: var(--ink-2);
  font-size: 17px;
  line-height: 2;
}

.scene-index-route {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  margin-top: 46px;
}

.scene-index-route span {
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.6);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.scene-index-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding-block: 74px;
}

.scene-index-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding-bottom: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255, 253, 248, 0.68);
  color: var(--ink);
  text-decoration: none;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.scene-index-card:hover {
  border-color: var(--ink);
  box-shadow: var(--shadow-lift);
  transform: translateY(-5px);
}

.scene-index-card img {
  aspect-ratio: 1200 / 630;
  width: 100%;
  object-fit: cover;
}

.scene-index-card > :not(img) {
  margin-right: 28px;
  margin-left: 28px;
}

.scene-index-card .eyebrow {
  margin-top: 24px;
}

.scene-index-card h2 {
  margin-top: 9px;
  margin-bottom: 0;
  font-family: var(--font-serif);
  font-size: clamp(25px, 3vw, 36px);
  font-weight: 600;
  line-height: 1.45;
}

.scene-index-card p {
  flex: 1;
  margin-top: 14px;
  color: var(--ink-2);
  font-size: 13px;
}

.scene-index-card i {
  margin-top: 20px;
  color: var(--vermilion-dark);
  font-size: 13px;
  font-style: normal;
  font-weight: 800;
}

.scene-index-cta {
  margin-bottom: 110px;
  padding: 54px;
  border-radius: 28px;
  background: var(--ink);
  color: white;
}

.scene-index-cta h2 {
  max-width: 760px;
  margin: 8px 0 12px;
  font-family: var(--font-serif);
  font-size: clamp(32px, 4.5vw, 52px);
  font-weight: 600;
}

.scene-index-cta p:not(.eyebrow) {
  max-width: 720px;
  color: rgba(255, 255, 255, 0.75);
}

.scene-index-cta .button {
  margin-top: 18px;
  border-color: white;
  background: white;
  color: var(--ink);
}

.scene-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(480px, 1.18fr);
  gap: 54px;
  align-items: center;
  min-height: 620px;
  padding-block: 72px 96px;
}

.scene-hero h1 {
  margin: 11px 0 23px;
  font-family: var(--font-serif);
  font-size: clamp(44px, 6vw, 72px);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.05em;
}

.scene-lead {
  margin: 0;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 2;
}

.scene-quote {
  margin: 30px 0 0;
  padding: 20px 0 0 20px;
  border-top: 1px solid var(--line-strong);
  border-left: 4px solid var(--vermilion);
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.65;
}

.scene-hero figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--white);
  box-shadow: var(--shadow-lift);
}

.scene-hero figure img {
  aspect-ratio: 1200 / 630;
  width: 100%;
  object-fit: cover;
}

.scene-hero figcaption {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 11px 16px;
  color: var(--ink-2);
  font-size: 12px;
}

.scene-hero figcaption span {
  color: var(--vermilion-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.scene-question {
  display: grid;
  grid-template-columns: minmax(270px, 0.7fr) minmax(0, 1.3fr);
  gap: 68px;
  padding: 74px;
  border-radius: 30px;
  background: var(--ink);
  color: white;
}

.scene-question h2,
.scene-friction h2,
.scene-related h2,
.scene-conversion h2,
.scene-faq h2 {
  margin: 10px 0 16px;
  font-family: var(--font-serif);
  font-size: clamp(31px, 4vw, 48px);
  font-weight: 600;
  line-height: 1.4;
}

.scene-question > div:first-child > p:last-child {
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
}

.scene-question .eyebrow {
  color: #f6aa97;
}

.scene-choices {
  display: grid;
  gap: 10px;
  align-content: center;
}

.scene-choice {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 17px;
  background: rgba(255, 255, 255, 0.06);
}

.scene-choice summary {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 14px;
  align-items: center;
  min-height: 76px;
  padding: 12px 18px;
  cursor: pointer;
  list-style: none;
}

.scene-choice summary::-webkit-details-marker {
  display: none;
}

.scene-choice summary span {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: #f6aa97;
  color: var(--ink);
  font: 800 21px/1 Georgia, "Times New Roman", serif;
}

.scene-choice summary strong {
  font-size: 14px;
}

.scene-choice summary i {
  color: #f6aa97;
  font-size: 20px;
  font-style: normal;
}

.scene-choice[open] summary i {
  transform: rotate(45deg);
}

.scene-choice > div {
  padding: 0 20px 20px 76px;
}

.scene-choice h3 {
  margin: 0 0 6px;
  color: #f6aa97;
  font-size: 14px;
}

.scene-choice p {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
}

.scene-friction {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 70px;
  padding-block: 110px;
}

.scene-friction > div > p:not(.eyebrow) {
  color: var(--ink-2);
  font-size: 15px;
  line-height: 2.05;
}

.scene-friction aside {
  align-self: start;
  padding: 30px;
  border: 1px solid rgba(183, 71, 53, 0.24);
  border-radius: 21px;
  background: rgba(183, 71, 53, 0.08);
}

.scene-friction aside > span {
  color: var(--vermilion-dark);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.scene-friction aside h3 {
  margin: 14px 0 10px;
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 600;
}

.scene-friction aside p {
  margin: 0;
  color: var(--ink-2);
  font-size: 14px;
}

.scene-tips {
  padding: 75px 0 90px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.scene-tips > div:last-child {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.scene-tips article {
  min-height: 220px;
  padding: 27px;
  border-top: 1px solid var(--ink);
  border-left: 1px solid var(--line);
}

.scene-tips article:first-child {
  border-left: 0;
}

.scene-tips article > span {
  color: var(--vermilion-dark);
  font: 800 12px/1 Georgia, "Times New Roman", serif;
}

.scene-tips h3 {
  margin: 48px 0 12px;
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
}

.scene-tips article p {
  color: var(--ink-2);
  font-size: 13px;
}

.scene-related {
  display: grid;
  grid-template-columns: minmax(260px, 0.7fr) minmax(0, 1.3fr);
  gap: 58px;
  padding-block: 110px;
}

.scene-related > div:first-child > p:last-child {
  color: var(--ink-2);
  font-size: 13px;
}

.scene-related-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
}

.scene-related-grid a {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border-radius: 17px;
  background: var(--ink);
  color: white;
  text-decoration: none;
}

.scene-related-grid a::after {
  position: absolute;
  inset: 45% 0 0;
  background: linear-gradient(transparent, rgba(26, 40, 52, 0.9));
  content: "";
}

.scene-related-grid img {
  aspect-ratio: 4 / 5;
  width: 100%;
  object-fit: cover;
}

.scene-related-grid span,
.scene-related-grid strong {
  position: absolute;
  z-index: 1;
  bottom: 42px;
  left: 14px;
}

.scene-related-grid span {
  font: 800 23px/1 Georgia, "Times New Roman", serif;
}

.scene-related-grid strong {
  right: 12px;
  bottom: 15px;
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.scene-conversion {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 106px;
}

.scene-conversion > div {
  padding: 48px;
  border-radius: 26px;
  background: var(--mist);
}

.scene-conversion > div:first-child p:not(.eyebrow) {
  color: var(--ink-2);
}

.scene-conversion .button {
  margin-top: 17px;
}

.scene-conversion-share {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: var(--ink) !important;
  color: white;
}

.scene-conversion-share > span {
  color: #f6aa97;
  font-size: 12px;
  font-weight: 800;
}

.scene-conversion-share p {
  flex: 1;
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.75;
}

.scene-conversion-share .button {
  border-color: white;
  background: white;
  color: var(--ink);
}

.scene-faq {
  padding-bottom: 90px;
}

.scene-faq > div {
  margin-top: 30px;
  border-top: 1px solid var(--ink);
}

.scene-faq details {
  border-bottom: 1px solid var(--line);
}

.scene-faq summary {
  min-height: 68px;
  padding: 20px 34px 20px 0;
  cursor: pointer;
  font-size: 15px;
  font-weight: 800;
}

.scene-faq details div {
  max-width: 760px;
  padding: 0 0 22px;
  color: var(--ink-2);
}

.scene-faq details p {
  margin: 0;
}

.scene-next {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin-bottom: 110px;
}

.scene-next a {
  display: grid;
  grid-template-columns: 1fr auto;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: rgba(255, 253, 248, 0.65);
  text-decoration: none;
}

.scene-next span {
  color: var(--vermilion-dark);
  font-size: 12px;
  font-weight: 800;
}

.scene-next b {
  grid-column: 1 / -1;
  margin-top: 8px;
  font-family: var(--font-serif);
  font-size: 15px;
  font-weight: 600;
}

.scene-next i {
  grid-column: 2;
  grid-row: 1;
  font-style: normal;
}

/* Interactive atmosphere — lightweight, content-first motion */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.site-header {
  isolation: isolate;
  transition: margin-top 220ms ease, background 220ms ease, box-shadow 220ms ease, border-color 220ms ease;
}

.site-header.is-scrolled {
  margin-top: 8px;
  border-color: rgba(38, 55, 70, 0.18);
  background: rgba(247, 243, 235, 0.94);
  box-shadow: 0 14px 44px rgba(38, 55, 70, 0.1);
}

.site-nav {
  position: relative;
  isolation: isolate;
}

.site-nav a {
  position: relative;
  z-index: 1;
  padding: 7px 11px;
  border-radius: 999px;
  transition: color 160ms ease;
}

.site-nav-indicator {
  position: absolute;
  z-index: 0;
  top: 1px;
  left: 0;
  width: var(--nav-width, 0px);
  height: calc(100% - 2px);
  border: 1px solid rgba(38, 55, 70, 0.1);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.82);
  box-shadow: 0 6px 18px rgba(38, 55, 70, 0.07);
  opacity: 0;
  pointer-events: none;
  transform: translate3d(var(--nav-x, 0px), 0, 0);
  transition: width 240ms cubic-bezier(0.2, 0.8, 0.2, 1), transform 240ms cubic-bezier(0.2, 0.8, 0.2, 1), opacity 140ms ease;
}

.site-nav.is-indicator-visible .site-nav-indicator {
  opacity: 1;
}

.header-progress {
  position: absolute;
  z-index: 2;
  right: 16px;
  bottom: -1px;
  left: 16px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--vermilion), var(--gold) 46%, #4f7d91);
  pointer-events: none;
  transform: scaleX(var(--page-progress, 0));
  transform-origin: left center;
  transition: transform 80ms linear;
}

.hero-copy > * {
  animation: kuuki-rise-in 720ms both cubic-bezier(0.2, 0.72, 0.22, 1);
}

.hero-copy > :nth-child(2) { animation-delay: 60ms; }
.hero-copy > :nth-child(3) { animation-delay: 110ms; }
.hero-copy > :nth-child(4) { animation-delay: 170ms; }
.hero-copy > :nth-child(5) { animation-delay: 220ms; }
.hero-copy > :nth-child(6) { animation-delay: 270ms; }
.hero-copy > :nth-child(7) { animation-delay: 320ms; }
.hero-copy > :nth-child(8) { animation-delay: 370ms; }

@keyframes kuuki-rise-in {
  from {
    opacity: 0;
    filter: blur(7px);
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    filter: blur(0);
    transform: translateY(0);
  }
}

.hero h1 em {
  background-image: linear-gradient(90deg, rgba(183, 71, 53, 0.25), rgba(183, 71, 53, 0.76));
  background-position: 0 96%;
  background-repeat: no-repeat;
  background-size: 100% 0.08em;
}

.hero-visual {
  --air-x: 64%;
  --air-y: 38%;
  --hero-rx: 0deg;
  --hero-ry: 0deg;
  isolation: isolate;
  perspective: 1200px;
  transform-style: preserve-3d;
}

.hero-visual picture,
.hero-air-sensor {
  transform: perspective(1200px) rotateX(var(--hero-rx)) rotateY(var(--hero-ry));
  transform-style: preserve-3d;
  transition: transform 420ms cubic-bezier(0.2, 0.72, 0.2, 1);
}

.hero-visual picture {
  position: relative;
  z-index: 1;
}

.hero-air-sensor {
  position: absolute;
  z-index: 2;
  inset: 0;
  overflow: hidden;
  border-radius: 48% 48% 24px 24px;
  background:
    radial-gradient(circle 150px at var(--air-x) var(--air-y), rgba(255, 253, 248, 0.34), transparent 72%),
    radial-gradient(circle 85px at var(--air-x) var(--air-y), rgba(79, 125, 145, 0.15), transparent 74%);
  opacity: 0.38;
  pointer-events: none;
  transition: opacity 240ms ease, transform 420ms cubic-bezier(0.2, 0.72, 0.2, 1);
}

.hero-visual.is-air-active .hero-air-sensor {
  opacity: 1;
}

.air-sensor-ring,
.air-sensor-dot,
.air-sensor-label {
  position: absolute;
  top: var(--air-y);
  left: var(--air-x);
}

.air-sensor-ring {
  width: 86px;
  height: 86px;
  border: 1px solid rgba(38, 55, 70, 0.44);
  border-radius: 50%;
  box-shadow: 0 0 0 14px rgba(255, 253, 248, 0.12), inset 0 0 0 12px rgba(255, 253, 248, 0.08);
  transform: translate(-50%, -50%);
}

.air-sensor-ring::before,
.air-sensor-ring::after {
  position: absolute;
  top: 50%;
  left: 50%;
  background: rgba(38, 55, 70, 0.36);
  content: "";
  transform: translate(-50%, -50%);
}

.air-sensor-ring::before { width: 116px; height: 1px; }
.air-sensor-ring::after { width: 1px; height: 116px; }

.air-sensor-dot {
  width: 8px;
  height: 8px;
  border: 2px solid var(--white);
  border-radius: 50%;
  background: var(--vermilion);
  box-shadow: 0 3px 16px rgba(183, 71, 53, 0.48);
  transform: translate(-50%, -50%);
}

.air-sensor-label {
  padding: 5px 8px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 7px;
  background: rgba(247, 243, 235, 0.86);
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
  line-height: 1;
  transform: translate(18px, 18px);
}

.hero-visual figcaption {
  z-index: 4;
}

[data-depth-card] {
  --depth-rx: 0deg;
  --depth-ry: 0deg;
  --depth-x: 50%;
  --depth-y: 50%;
  --depth-lift: 0px;
  isolation: isolate;
  transform: perspective(900px) rotateX(var(--depth-rx)) rotateY(var(--depth-ry)) translateY(var(--depth-lift));
  transform-style: preserve-3d;
  transition: transform 320ms cubic-bezier(0.2, 0.72, 0.2, 1), box-shadow 240ms ease, opacity 240ms ease;
}

.axis-card:hover {
  --depth-lift: -7px;
  transform: perspective(900px) rotateX(var(--depth-rx)) rotateY(var(--depth-ry)) translateY(var(--depth-lift));
}

.axis-card::before {
  position: absolute;
  z-index: 0;
  inset: 0;
  background: radial-gradient(circle 150px at var(--depth-x) var(--depth-y), rgba(255, 255, 255, 0.68), transparent 72%);
  content: "";
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.axis-card.is-depth-active::before {
  opacity: 1;
}

.axis-card > * {
  position: relative;
  z-index: 1;
}

.atlas-lab {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  margin: 0 0 22px;
  padding: 14px 16px 14px 20px;
  border: 1px solid var(--line);
  border-radius: 19px;
  background: rgba(255, 253, 248, 0.62);
  box-shadow: 0 12px 34px rgba(38, 55, 70, 0.045);
  backdrop-filter: blur(12px);
}

.atlas-lab-copy {
  display: flex;
  min-width: 0;
  align-items: baseline;
  gap: 18px;
}

.atlas-lab-copy > span {
  flex: 0 0 auto;
  color: var(--vermilion);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.atlas-lab-copy p {
  margin: 0;
  color: var(--ink-2);
  font-size: 12px;
}

.atlas-look-toggle {
  --atlas-look-index: 0;
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(76px, 1fr));
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(238, 231, 218, 0.72);
  isolation: isolate;
}

.atlas-look-indicator {
  position: absolute;
  z-index: 0;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc((100% - 8px) / 3);
  border-radius: 999px;
  background: var(--ink);
  box-shadow: 0 8px 20px rgba(38, 55, 70, 0.2);
  transform: translateX(calc(var(--atlas-look-index) * 100%));
  transition: transform 330ms cubic-bezier(0.2, 0.82, 0.2, 1), background 220ms ease;
}

.atlas-look-toggle button {
  position: relative;
  z-index: 1;
  min-height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-2);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  transition: color 220ms ease;
}

.atlas-look-toggle button[aria-pressed="true"] {
  color: white;
}

.type-grid {
  perspective: 1400px;
}

.type-card {
  --depth-x: 50%;
  --depth-y: 40%;
  --type-scale: 1;
  position: relative;
  transform: scale(var(--type-scale));
  transform-origin: center;
  transition: border-color 220ms ease, box-shadow 260ms ease, transform 300ms cubic-bezier(0.2, 0.72, 0.2, 1), opacity 240ms ease, filter 240ms ease;
}

.type-card figure::before {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: radial-gradient(circle 170px at var(--depth-x) var(--depth-y), rgba(255, 253, 248, 0.3), transparent 74%);
  content: "";
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}

.type-card figure::after {
  z-index: 1;
}

.type-card.is-depth-active figure::before {
  opacity: 1;
}

.type-card img {
  filter: saturate(0.97) contrast(1.01);
  transition: opacity 240ms ease, filter 300ms ease, transform 600ms cubic-bezier(0.2, 0.7, 0.2, 1);
}

.type-card:hover img {
  filter: saturate(1.07) contrast(1.02);
}

.type-card.is-switching img {
  opacity: 0.12;
  filter: saturate(0.5) blur(2px);
  transform: scale(1.025);
}

.type-look-badge {
  position: absolute;
  z-index: 2;
  top: 14px;
  left: 14px;
  padding: 5px 8px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 999px;
  background: rgba(247, 243, 235, 0.8);
  backdrop-filter: blur(9px);
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
}

.type-card[data-look="male"] .type-look-badge::before,
.type-card[data-look="female"] .type-look-badge::before {
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 5px;
  border-radius: 50%;
  background: #4f7d91;
  content: "";
  vertical-align: 1px;
}

.type-card[data-look="female"] .type-look-badge::before {
  background: var(--vermilion);
}

@media (hover: hover) and (pointer: fine) {
  .type-grid:has(.type-card:hover) .type-card:not(:hover),
  .type-grid:has(.type-card:focus-visible) .type-card:not(:focus-visible) {
    --type-scale: 0.985;
    opacity: 0.76;
    filter: saturate(0.86);
  }

  .type-card:hover,
  .type-card:focus-visible {
    --type-scale: 1.018;
    z-index: 2;
  }
}

.magnetic-button {
  --magnetic-x: 0px;
  --magnetic-y: 0px;
  transform: translate3d(var(--magnetic-x), var(--magnetic-y), 0);
  will-change: transform;
}

.magnetic-button:hover {
  transform: translate3d(var(--magnetic-x), calc(var(--magnetic-y) - 2px), 0);
}

.result-code-card {
  --depth-rx: 0deg;
  --depth-ry: 0deg;
  transform: perspective(1000px) rotateX(var(--depth-rx)) rotateY(var(--depth-ry));
  transform-style: preserve-3d;
  transition: transform 420ms cubic-bezier(0.2, 0.72, 0.2, 1), box-shadow 260ms ease;
}

.result-code-card.is-depth-active {
  box-shadow: 0 32px 90px rgba(38, 55, 70, 0.24);
}

.result-code-card > img {
  transition: opacity 260ms ease, filter 300ms ease, transform 480ms cubic-bezier(0.2, 0.72, 0.2, 1);
}

.result-code-card.is-visual-switching > img {
  opacity: 0.18;
  filter: blur(3px) saturate(0.7);
  transform: scale(1.025);
}

.tone-toggle,
.visual-toggle {
  position: relative;
  isolation: isolate;
}

.tone-toggle::before,
.visual-toggle::before {
  position: absolute;
  z-index: 0;
  top: 4px;
  bottom: 4px;
  left: 4px;
  width: calc(50% - 4px);
  border-radius: 999px;
  background: var(--ink);
  box-shadow: 0 7px 16px rgba(38, 55, 70, 0.18);
  content: "";
  transform: translateX(0);
  transition: transform 280ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.tone-toggle[data-active="honne"]::before,
.visual-toggle[data-active="female"]::before {
  transform: translateX(100%);
}

.tone-toggle button,
.visual-toggle button {
  position: relative;
  z-index: 1;
  transition: color 200ms ease;
}

.tone-toggle button.active,
.visual-toggle button.active {
  background: transparent;
}

.axis-meter-fill {
  transform: scaleX(0);
  transition: transform 780ms cubic-bezier(0.2, 0.75, 0.2, 1);
}

.axis-meter-fill.left { transform-origin: right center; }
.axis-meter-fill.right { transform-origin: left center; }
.axis-results.is-meter-ready .axis-meter-fill { transform: scaleX(1); }

.weather-ring::before,
.weather-ring::after {
  position: absolute;
  border-radius: 50%;
  background: #f6aa97;
  box-shadow: 0 0 22px rgba(246, 170, 151, 0.5);
  content: "";
}

.weather-ring::before {
  width: 8px;
  height: 8px;
  top: 28px;
  left: 32px;
  animation: weather-drift 7s ease-in-out infinite alternate;
}

.weather-ring::after {
  width: 5px;
  height: 5px;
  right: 18px;
  bottom: 52px;
  background: #9ec5d3;
  animation: weather-drift 8.5s 500ms ease-in-out infinite alternate-reverse;
}

@keyframes weather-drift {
  to { transform: translate3d(18px, -12px, 0); }
}

html[data-experience="ready"] .reveal-block {
  opacity: 0.08;
  filter: blur(6px);
  transform: translateY(34px);
  transition: opacity 700ms ease, filter 800ms ease, transform 800ms cubic-bezier(0.2, 0.72, 0.2, 1);
}

html[data-experience="ready"] .reveal-block.is-visible {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}

html[data-experience="ready"] .type-card.reveal-block {
  transition-delay: calc(var(--reveal-order, 0) * 42ms);
}

@media (max-width: 1000px) {
  :root {
    --page: min(100% - 36px, 900px);
  }

  .site-nav {
    display: none;
  }

  .site-header {
    grid-template-columns: 1fr auto;
  }

  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding-top: 90px;
  }

  .hero-copy {
    max-width: 720px;
  }

  .hero-visual {
    width: min(720px, 100%);
    margin-inline: auto;
  }

  .hero-visual img {
    aspect-ratio: 16 / 9;
    border-radius: 26px;
  }

  .hero-air-sensor {
    border-radius: 26px;
  }

  .hero-visual::before {
    right: -10px;
  }

  .hero-visual::after {
    left: -6px;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .situation-preview-heading,
  .scene-hero,
  .scene-question,
  .scene-friction,
  .scene-related {
    grid-template-columns: 1fr;
  }

  .scene-hero {
    min-height: 0;
  }

  .scene-hero figure {
    width: min(820px, 100%);
  }

  .scene-related-grid {
    max-width: 760px;
  }

  .section-heading .eyebrow {
    margin-bottom: -8px;
  }

  .atlas-heading {
    grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
    gap: 24px 46px;
  }

  .atlas-heading .eyebrow {
    grid-column: 1 / -1;
    margin: 0;
  }

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

  .site-footer {
    grid-template-columns: 1fr 1fr;
  }

  .site-footer nav {
    grid-column: 1 / -1;
  }

  .result-hero {
    grid-template-columns: minmax(280px, 0.68fr) 1fr;
    gap: 45px;
  }

  .share-panel,
  .feedback-panel,
  .compare-panel {
    grid-template-columns: 1fr;
  }

  .compare-output,
  .compare-invite {
    grid-column: 1;
  }

  .feedback-note {
    grid-column: 1;
  }
}

@media (max-width: 760px) {
  .eyebrow,
  .microcopy,
  .hero-share-proof p,
  .axis-card > p,
  .axis-ends,
  .type-card > div > span,
  .quiz-progress-copy,
  .quiz-controls p,
  .tie-lead,
  .result-display-option > span,
  .tone-note,
  .axis-meter-labels,
  .axis-band,
  .share-preview figcaption,
  .share-panel p:not(.eyebrow),
  .compare-form > p,
  .compare-axis > span,
  .compare-axis em,
  .compare-invite p span,
  .feedback-note,
  .static-result-axes span,
  .static-result-detail p,
  .static-result-action > span {
    font-size: 13px;
  }

  :root {
    --page: calc(100vw - 28px);
    --radius-shell: 24px;
  }

  body {
    font-size: 15px;
  }

  .site-header {
    width: calc(100vw - 20px);
    margin-top: 10px;
    padding-left: 14px;
  }

  .header-controls {
    gap: 0;
  }

  .site-header .brand-sub,
  .site-header .button {
    display: none;
  }

  .hero {
    gap: 45px;
    padding-block: 70px 85px;
  }

  .station-label {
    margin-bottom: 28px;
  }

  .hero h1 {
    font-size: clamp(42px, 13vw, 64px);
  }

  .hero-lead {
    margin-top: 24px;
    font-size: 15px;
  }

  .hero-facts span {
    min-width: auto;
    padding-inline: 14px;
  }

  .hero-facts b {
    font-size: 19px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
  }

  .hero-actions .text-link {
    align-self: flex-start;
  }

  .hero-share-proof {
    align-items: flex-start;
  }

  .hero-visual figcaption {
    right: 10px;
    bottom: 10px;
    left: 10px;
  }

  .hero-visual figcaption span {
    display: none;
  }

  .hero-visual figcaption {
    grid-template-columns: 1fr auto;
  }

  .axis-intro,
  .how-section,
  .situation-preview,
  .atlas-section {
    padding-block: 82px;
  }

  .situation-preview {
    width: calc(100vw - 28px);
    padding-inline: 20px;
  }

  .situation-preview-heading {
    gap: 20px;
  }

  .situation-preview-heading h2 {
    font-size: 40px;
  }

  .situation-preview-grid,
  .scene-index-grid,
  .scene-conversion {
    grid-template-columns: 1fr;
  }

  .situation-preview-card {
    min-height: 220px;
  }

  .situation-preview-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .section-heading h2,
  .atlas-heading h2,
  .final-cta h2 {
    font-size: 40px;
  }

  .axis-route {
    grid-template-columns: 1fr;
  }

  .axis-route::before {
    display: none;
  }

  .axis-card {
    min-height: 198px;
    padding: 24px;
  }

  .axis-card h3 {
    font-size: 25px;
  }

  .how-list {
    grid-template-columns: 1fr;
  }

  .how-list li,
  .how-list li:first-child {
    min-height: 0;
    padding: 28px 8px;
    border-left: 0;
    border-bottom: 0;
  }

  .atlas-heading {
    grid-template-columns: 1fr;
    gap: 18px;
    margin-bottom: 34px;
  }

  .atlas-lab {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 16px;
  }

  .atlas-lab-copy {
    display: grid;
    gap: 3px;
  }

  .atlas-lab-copy p {
    font-size: 13px;
    line-height: 1.65;
  }

  .atlas-lab-copy > span,
  .atlas-look-toggle button {
    font-size: 13px;
  }

  .atlas-look-toggle {
    width: 100%;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .type-card {
    border-radius: 15px;
  }

  .type-card > div {
    min-height: 172px;
    padding: 14px 13px 13px;
  }

  .type-card h3 {
    font-size: 16px;
  }

  .type-card p {
    margin-block: 8px 12px;
    font-size: 12.5px;
    line-height: 1.7;
    -webkit-line-clamp: 3;
  }

  .type-code {
    bottom: 11px;
    left: 12px;
    font-size: clamp(28px, 10vw, 39px);
  }

  .type-number {
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
  }

  .type-look-badge {
    top: 10px;
    left: 10px;
    padding: 5px 7px;
  }

  .trust-section {
    margin-block: 45px 85px;
    padding: 30px 20px;
  }

  .trust-section > div:first-child {
    display: block;
  }

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

  .trust-grid article {
    min-height: 0;
  }

  .final-cta {
    min-height: 430px;
    margin-bottom: 70px;
  }

  .final-cta .eyebrow,
  .final-cta p:not(.eyebrow) {
    margin: 0;
  }

  .weather-ring {
    top: 30px;
    right: -10px;
  }

  .site-header .brand,
  .result-nav .brand,
  .site-footer a {
    display: flex;
    min-height: 44px;
    align-items: center;
  }

  .site-footer {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .site-footer nav {
    display: grid;
    grid-column: auto;
  }

  .site-footer small {
    grid-column: auto;
  }

  .quiz-shell {
    width: calc(100vw - 28px);
    padding-top: 14px;
  }

  .quiz-topline {
    grid-template-columns: 44px minmax(0, 1fr) auto;
    gap: 8px;
  }

  .quiz-time {
    display: none;
  }

  .quiz-top-actions {
    gap: 0;
  }

  .tie-sound-control {
    top: 14px;
  }

  .question-panel {
    margin-block: 22px;
  }

  .question-panel h1,
  .tie-shell h1,
  .reveal-shell h1 {
    font-size: 29px;
    line-height: 1.55;
  }

  .answers {
    margin-top: 30px;
  }

  .answer-button {
    min-height: 57px;
    padding-right: 12px;
    font-size: 13px;
  }

  .quiz-controls {
    padding-top: 14px;
  }

  .quiz-controls p {
    display: none;
  }

  .tie-options {
    grid-template-columns: 1fr;
  }

  .tie-option {
    min-height: 130px;
    padding: 24px;
    font-size: 17px;
  }

  .result-shell {
    width: calc(100vw - 28px);
    padding-top: 18px;
  }

  .result-hero {
    grid-template-columns: 1fr;
    gap: 45px;
    padding-block: 48px;
  }

  .result-code-card {
    aspect-ratio: 4 / 5;
    width: 100%;
  }

  .result-code-card > strong {
    font-size: 86px;
  }

  .axis-results {
    padding: 18px 14px;
  }

  .axis-result {
    grid-template-columns: 1fr auto;
    gap: 10px 16px;
    padding-block: 8px;
    border-bottom: 1px solid var(--line);
  }

  .axis-result:last-child {
    border-bottom: 0;
  }

  .axis-meter-wrap {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .axis-band {
    grid-column: 2;
    grid-row: 1;
  }

  .result-details {
    grid-template-columns: 1fr;
    margin-top: 45px;
  }

  .detail-card,
  .detail-accident {
    grid-column: 1;
    min-height: 0;
    padding: 26px;
  }

  .share-panel {
    gap: 30px;
    margin-top: 48px;
    padding: 18px;
  }

  .result-action-owner > div {
    grid-template-columns: 1fr;
  }

  .compare-panel {
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    margin-top: 48px;
    padding: 26px 20px;
  }

  .compare-output {
    padding: 26px 18px;
  }

  .compare-form > div {
    grid-template-columns: 1fr;
  }

  .compare-form .button {
    width: 100%;
  }

  .compare-codes {
    justify-content: center;
    gap: 10px;
  }

  .compare-codes strong {
    font-size: clamp(34px, 11vw, 46px);
  }

  .compare-codes span {
    font-size: 22px;
  }

  .compare-axis {
    grid-template-columns: 1fr auto;
    gap: 4px 12px;
    padding: 12px;
  }

  .compare-axis > span {
    grid-column: 1;
  }

  .compare-axis em {
    grid-column: 2;
    grid-row: 1;
  }

  .compare-axis b {
    grid-column: 1 / -1;
  }

  .compare-axis b:last-child {
    text-align: left;
  }

  .compare-actions,
  .compare-invite {
    align-items: stretch;
    flex-direction: column;
  }

  .compare-actions .button,
  .compare-invite .button {
    width: 100%;
  }

  .share-content {
    padding: 4px 4px 10px;
  }

  .share-preview figcaption {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  .share-preview figcaption b {
    text-align: left;
  }

  .compare-card-preview figcaption {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
    font-size: 13px;
  }

  .share-actions {
    display: block;
  }

  .share-more {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.04);
  }

  .share-more > summary {
    display: flex;
  }

  .share-secondary {
    padding: 0 8px 8px;
  }

  .app-error {
    align-items: flex-start;
    flex-direction: column;
  }

  .app-error strong {
    white-space: normal;
  }

  .static-result-fallback {
    width: calc(100vw - 28px);
    padding-top: max(24px, env(safe-area-inset-top, 0px));
  }

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

  .static-result-hero img {
    width: min(100%, 440px);
    margin-inline: auto;
  }

  .static-result-axes {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 36px;
  }

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

  .static-result-detail,
  .static-result-detail:last-child {
    grid-column: 1;
    min-height: 0;
  }

  .static-result-action {
    align-items: stretch;
    flex-direction: column;
  }

  .static-result-action > span {
    text-align: center;
  }

  .feedback-panel {
    gap: 24px;
    padding: 28px 22px;
  }

  .feedback-actions {
    grid-template-columns: 1fr;
  }

  .result-footer-actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 20px;
  }

  .static-main {
    padding-top: 70px;
  }

  .static-content section {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .scene-index-page,
  .scene-page {
    padding-top: 35px;
  }

  .scene-index-hero {
    padding-block: 55px 62px;
  }

  .scene-index-hero h1 {
    font-size: clamp(48px, 15vw, 68px);
  }

  .scene-index-hero > p:not(.eyebrow) {
    font-size: 15px;
  }

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

  .scene-index-grid {
    padding-block: 48px;
  }

  .scene-index-card > :not(img) {
    margin-right: 20px;
    margin-left: 20px;
  }

  .scene-index-cta {
    margin-bottom: 70px;
    padding: 30px 22px;
  }

  .scene-hero {
    gap: 34px;
    padding-block: 48px 62px;
  }

  .scene-hero h1 {
    font-size: clamp(38px, 12vw, 52px);
  }

  .scene-quote {
    font-size: 19px;
  }

  .scene-hero figcaption {
    align-items: flex-start;
    flex-direction: column;
    gap: 1px;
    font-size: 13px;
  }

  .scene-question {
    gap: 30px;
    padding: 34px 20px;
  }

  .scene-choice summary {
    grid-template-columns: 42px minmax(0, 1fr) auto;
    padding-inline: 13px;
  }

  .scene-choice > div {
    padding-left: 20px;
  }

  .scene-friction,
  .scene-related {
    gap: 34px;
    padding-block: 72px;
  }

  .scene-tips {
    padding-block: 60px;
  }

  .scene-tips > div:last-child {
    grid-template-columns: 1fr;
  }

  .scene-tips article,
  .scene-tips article:first-child {
    min-height: 0;
    padding: 26px 8px;
    border-left: 0;
  }

  .scene-tips h3 {
    margin-top: 26px;
  }

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

  .scene-conversion {
    margin-bottom: 72px;
  }

  .scene-conversion > div {
    padding: 32px 22px;
  }

  .scene-next {
    grid-template-columns: 1fr;
    margin-bottom: 72px;
  }

  .static-pair-result {
    margin-bottom: 48px;
    padding-bottom: 42px;
  }
}

@media (max-width: 390px) {
  .situation-preview-card {
    min-height: 238px;
    padding: 23px 18px;
  }

  .situation-preview-card i {
    top: 21px;
    right: 18px;
  }

  .scene-index-route {
    grid-template-columns: 1fr;
  }

  .scene-related-grid span {
    font-size: 20px;
  }

  .scene-related-grid strong {
    font-size: 12px;
  }

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

  .type-card {
    display: grid;
    grid-template-columns: minmax(126px, 0.44fr) minmax(0, 0.56fr);
  }

  .type-card > div {
    min-height: 0;
  }

  .type-card h3 {
    font-size: 17px;
  }

  .type-card p {
    font-size: 12.5px;
  }

  .atlas-look-toggle button {
    padding-inline: 6px;
  }

  .type-look-badge {
    font-size: 12px;
  }

  .share-secondary,
  .image-save-menu > div {
    grid-template-columns: 1fr;
  }

  .share-secondary > .share-x-primary,
  .image-save-menu {
    grid-column: 1;
  }

  .hero h1 {
    font-size: clamp(40px, 12vw, 45px);
  }

  .tone-toggle button,
  .visual-toggle button {
    padding-inline: 12px;
  }
}

@media (hover: none), (pointer: coarse) {
  .hero-air-sensor {
    display: none;
  }

  .hero-visual picture,
  [data-depth-card],
  .result-code-card {
    transform: none;
  }
}

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

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

  .hero-copy > *,
  html[data-experience="ready"] .reveal-block,
  html[data-experience="ready"] .reveal-block.is-visible {
    opacity: 1;
    filter: none;
    transform: none;
  }

  .hero-air-sensor {
    display: none;
  }

  .axis-meter-fill {
    transform: scaleX(1);
  }
}
