/* GriGsi homepage — experiment storytelling layer (index.html only) */

:root {
  --hx-ink: #f3efe8;
  --hx-ink-soft: rgba(243, 239, 232, 0.78);
  --hx-mute: rgba(243, 239, 232, 0.55);
  --hx-line: rgba(255, 255, 255, 0.14);
  --hx-accent: #ffc64b;
  --hx-accent-ink: #1a1520;
  --hx-human: #f08b83;
  --hx-ai: #a693ef;
  --hx-bg-deep: #0a0c14;
  --hx-bg-mid: #121528;
  --hx-max: 40rem;
  --hx-wide: 56rem;
  --hx-display: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --hx-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

body.ios-theme.page-experiment,
body.page-experiment {
  background:
    radial-gradient(90% 55% at 12% 0%, rgba(255, 198, 75, 0.1), transparent 48%),
    radial-gradient(70% 45% at 92% 8%, rgba(166, 147, 239, 0.14), transparent 46%),
    linear-gradient(180deg, var(--hx-bg-mid) 0%, var(--hx-bg-deep) 42%, #070910 100%) !important;
  color: var(--hx-ink) !important;
  font-family: var(--hx-sans);
  -webkit-font-smoothing: antialiased;
}

body.page-experiment .grigsi-top-bar.home-min-bar {
  background: rgba(8, 10, 18, 0.78) !important;
  border-bottom: 1px solid var(--hx-line) !important;
  backdrop-filter: blur(14px) saturate(1.1);
  -webkit-backdrop-filter: blur(14px) saturate(1.1);
}

body.page-experiment .grigsi-top-bar .logo {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

/* Kill ios-theme orange/yellow link wash on the dark story layer
   (style.css forces almost all <a> to --liquid-accent-1 / yellow). */
body.ios-theme.page-experiment .hx-story a,
body.ios-theme.page-experiment .hx-story a:visited {
  color: rgba(255, 255, 255, 0.92) !important;
  -webkit-text-fill-color: rgba(255, 255, 255, 0.92) !important;
}

body.ios-theme.page-experiment a.hx-btn--primary,
body.ios-theme.page-experiment a.hx-btn--primary:visited,
body.ios-theme.page-experiment a.hx-btn--primary:hover,
body.ios-theme.page-experiment a.hx-btn--primary:focus,
body.ios-theme.page-experiment a.hx-btn--primary:focus-visible,
body.ios-theme.page-experiment a.hx-btn--primary:active,
body.page-experiment .hx-hero__ctas a.hx-btn--primary,
body.page-experiment .hx-hero__ctas a.hx-btn--primary:visited,
body.page-experiment .hx-hero__ctas a.hx-btn--primary:hover,
body.page-experiment .hx-hero__ctas a.hx-btn--primary:focus,
body.page-experiment .hx-hero__ctas a.hx-btn--primary:active {
  background: #ffc64b !important;
  background-color: #ffc64b !important;
  color: #3d2860 !important;
  -webkit-text-fill-color: #3d2860 !important;
  text-shadow: none !important;
  filter: none !important;
}

body.ios-theme.page-experiment a.hx-btn--ghost,
body.ios-theme.page-experiment a.hx-btn--ghost:visited,
body.ios-theme.page-experiment a.hx-btn--ghost:hover {
  background: transparent !important;
  color: rgba(255, 255, 255, 0.92) !important;
  -webkit-text-fill-color: rgba(255, 255, 255, 0.92) !important;
}

body.ios-theme.page-experiment .hx-case__cta,
body.ios-theme.page-experiment footer a {
  color: rgba(255, 255, 255, 0.92) !important;
  -webkit-text-fill-color: rgba(255, 255, 255, 0.92) !important;
}

/* Extensions store overlay — dark labels on white (Opera was white-on-white) */
body.ios-theme.page-experiment #store-modal a.store-modal-link,
body.ios-theme.page-experiment #store-modal a.store-modal-link:visited,
body.ios-theme.page-experiment #store-modal a.store-modal-link:hover,
body.page-experiment #store-modal a.store-modal-link,
body.page-experiment #store-modal a.store-modal-link:visited,
body.page-experiment #store-modal a.store-modal-link:hover {
  color: #1c1c1e !important;
  -webkit-text-fill-color: #1c1c1e !important;
  background: #fff !important;
}
body.ios-theme.page-experiment #store-modal #store-modal-title,
body.ios-theme.page-experiment #store-modal > div:first-of-type > p,
body.page-experiment #store-modal #store-modal-title,
body.page-experiment #store-modal > div:first-of-type > p {
  color: #1c1c1e !important;
  -webkit-text-fill-color: #1c1c1e !important;
}
body.ios-theme.page-experiment #store-modal #store-modal-close,
body.page-experiment #store-modal #store-modal-close {
  color: #1c1c1e !important;
  -webkit-text-fill-color: #1c1c1e !important;
}
body.ios-theme.page-experiment #store-modal .fab.fa-opera,
body.page-experiment #store-modal .fab.fa-opera {
  color: #ff1b2d !important;
  -webkit-text-fill-color: #ff1b2d !important;
}
body.ios-theme.page-experiment #store-modal .fab.fa-chrome,
body.page-experiment #store-modal .fab.fa-chrome {
  color: #c48a12 !important;
  -webkit-text-fill-color: #c48a12 !important;
}
body.ios-theme.page-experiment #store-modal .fab.fa-firefox-browser,
body.page-experiment #store-modal .fab.fa-firefox-browser {
  color: #ff7139 !important;
  -webkit-text-fill-color: #ff7139 !important;
}

body.ios-theme.page-experiment .hx-special-banner,
body.ios-theme.page-experiment .hx-special-banner:visited,
body.ios-theme.page-experiment .hx-special-banner * {
  color: inherit;
  -webkit-text-fill-color: currentColor;
}
body.ios-theme.page-experiment .hx-special-banner__title {
  color: #1a1a2e !important;
  -webkit-text-fill-color: #1a1a2e !important;
}
body.ios-theme.page-experiment .hx-special-banner__lead {
  color: #565d74 !important;
  -webkit-text-fill-color: #565d74 !important;
}
body.ios-theme.page-experiment .hx-special-banner__label {
  color: #8a6d00 !important;
  -webkit-text-fill-color: #8a6d00 !important;
}
body.ios-theme.page-experiment .hx-special-banner__cta {
  color: #6a5acd !important;
  -webkit-text-fill-color: #6a5acd !important;
}

body.ios-theme.page-experiment .hx-hero__lead,
body.ios-theme.page-experiment .hx-kicker,
body.ios-theme.page-experiment .hx-case__from {
  color: rgba(255, 255, 255, 0.9) !important;
  -webkit-text-fill-color: rgba(255, 255, 255, 0.9) !important;
}

body.ios-theme.page-experiment .hx-kicker,
body.ios-theme.page-experiment .hx-case__from {
  color: rgba(243, 239, 232, 0.68) !important;
  -webkit-text-fill-color: rgba(243, 239, 232, 0.68) !important;
}

/* Homepage top bar: language only — no green nav pills / black wrap ribbon */
body.page-experiment > .grigsi-top-bar-spacer {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  overflow: hidden !important;
}

body.page-experiment .grigsi-top-bar .btn-nav {
  display: none !important;
}

body.page-experiment .grigsi-lang-btn {
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
  color: #fff !important;
  border-radius: 8px;
  padding: 6px 10px;
  font-weight: 700;
  font-size: 0.72rem;
  cursor: pointer;
}

body.page-experiment .grigsi-lang-btn.is-active,
body.page-experiment .grigsi-lang-btn.is-on {
  background: rgba(255, 255, 255, 0.92);
  color: #1a1520 !important;
  border-color: transparent;
}

/* —— Story shell —— */
.hx-story {
  color: var(--hx-ink);
  margin: 0;
  padding: 0;
}

.hx-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  margin: 0;
  padding: clamp(2rem, 7vw, 4.25rem) var(--page-gutter, 1.25rem) clamp(2.25rem, 6vw, 3.5rem);
  text-align: center;
  /* Continuous wash into next section — no hard black ribbon under hero */
  background: linear-gradient(180deg, #1a1430 0%, #221c3a 42%, #121528 100%);
}

.hx-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(90% 70% at 50% 100%, rgba(255, 198, 75, 0.08), transparent 55%),
    radial-gradient(70% 55% at 78% 10%, rgba(166, 147, 239, 0.16), transparent 52%);
}

.hx-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.16;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(180deg, #000 20%, transparent 88%);
}

.hx-hero__inner {
  max-width: 42rem;
  margin: 0 auto;
}

.hx-brand {
  margin: 0;
  font-family: var(--hx-display);
  font-weight: 600;
  font-size: clamp(3.4rem, 12vw, 5.75rem);
  line-height: 0.92;
  letter-spacing: -0.035em;
  color: #fff;
  animation: hx-rise 0.85s ease-out both;
}

.hx-hero__headline {
  margin: 1.35rem 0 0;
  font-family: var(--hx-display);
  font-weight: 560;
  font-size: clamp(1.35rem, 3.8vw, 2rem);
  line-height: 1.22;
  letter-spacing: -0.02em;
  color: #fff;
  animation: hx-rise 0.85s ease-out 0.08s both;
}

.hx-hero__lead {
  margin: 1.1rem auto 0;
  max-width: 32rem;
  font-size: clamp(1rem, 2.4vw, 1.12rem);
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  animation: hx-rise 0.85s ease-out 0.14s both;
}

.hx-hero__body {
  margin: 0.85rem auto 0;
  max-width: 34rem;
  font-size: clamp(0.95rem, 2.2vw, 1.05rem);
  line-height: 1.55;
  color: var(--hx-ink-soft);
  animation: hx-rise 0.85s ease-out 0.2s both;
}

.hx-hero__body + .hx-hero__body {
  margin-top: 0.45rem;
}

.hx-hero__ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  justify-content: center;
  margin-top: 1.75rem;
  animation: hx-rise 0.85s ease-out 0.28s both;
}

.hx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.72rem 1.15rem;
  font-family: var(--hx-sans);
  font-size: 0.9rem;
  font-weight: 650;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.hx-btn:hover {
  transform: translateY(-1px);
}

.hx-btn--primary,
.hx-btn--primary:visited {
  background: #ffc64b;
  color: #3d2860 !important;
  -webkit-text-fill-color: #3d2860 !important;
}

.hx-btn--primary:hover {
  filter: brightness(1.05);
  color: #3d2860 !important;
  -webkit-text-fill-color: #3d2860 !important;
}

.hx-btn--ghost,
.hx-btn--ghost:visited {
  background: transparent;
  color: rgba(255, 255, 255, 0.9) !important;
  border-color: rgba(255, 255, 255, 0.3);
}

.hx-btn--ghost:hover {
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff !important;
}

.hx-section {
  max-width: var(--hx-max);
  margin: 0 auto;
  padding: clamp(2.25rem, 6vw, 3.5rem) var(--page-gutter, 1.25rem) 0;
}

.hx-section--wide {
  max-width: var(--hx-wide);
}

.hx-kicker {
  margin: 0 0 0.65rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(243, 239, 232, 0.62);
}

.hx-heading {
  margin: 0;
  font-family: var(--hx-display);
  font-weight: 600;
  font-size: clamp(1.55rem, 4vw, 2.15rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #fff;
}

.hx-body {
  margin: 0.9rem 0 0;
  font-size: clamp(1rem, 2.3vw, 1.1rem);
  line-height: 1.55;
  color: var(--hx-ink-soft);
  max-width: 36rem;
}

.hx-body--strong {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 600;
}

/* Human + AI */
.hx-duo {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1rem 1.25rem;
  align-items: stretch;
  margin-top: 1.75rem;
}

.hx-duo__side {
  padding: 1.15rem 1.1rem;
  border: 1px solid var(--hx-line);
  background: rgba(255, 255, 255, 0.035);
}

.hx-duo__side h3 {
  margin: 0 0 0.85rem;
  font-size: 0.78rem;
  font-weight: 750;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hx-duo__side--human h3 { color: var(--hx-human); }
.hx-duo__side--ai h3 { color: var(--hx-ai); }

.hx-duo__side ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.hx-duo__side li {
  font-size: 0.95rem;
  color: var(--hx-ink-soft);
  padding-left: 0.9rem;
  position: relative;
}

.hx-duo__side li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.55;
}

.hx-duo__mid {
  display: flex;
  align-items: center;
  justify-content: center;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(243, 239, 232, 0.7);
}

.hx-duo__footnote {
  margin: 1.5rem 0 0;
  text-align: center;
  font-family: var(--hx-display);
  font-size: clamp(1.15rem, 3vw, 1.45rem);
  font-weight: 560;
  color: #fff;
}

.hx-duo__footnote--story {
  display: block;
  box-sizing: border-box;
  font-size: clamp(0.95rem, 2.2vw, 1.08rem);
  font-weight: 500;
  line-height: 1.55;
  width: min(44rem, 100%);
  max-width: 44rem;
  margin: 1.5rem auto 0;
  text-align: center;
}

.hx-duo__footnote--story p {
  margin: 0 auto 1.15em;
  max-width: 100%;
  text-align: center;
  text-wrap: pretty;
}

.hx-duo__footnote--story p:last-child {
  margin-bottom: 0;
}

.hx-duo__note {
  margin: 0.75rem auto 0;
  max-width: 34rem;
  text-align: center;
  font-size: 0.98rem;
  color: var(--hx-ink-soft);
}

@media (max-width: 720px) {
  .hx-duo {
    grid-template-columns: 1fr;
  }
  .hx-duo__mid {
    writing-mode: horizontal-tb;
    transform: none;
    padding: 0.35rem 0;
  }
}

/* Case studies */
.hx-cases {
  display: grid;
  gap: 1rem;
  margin-top: 1.75rem;
}

.hx-case {
  display: block;
  padding: 1.25rem 1.2rem 1.3rem;
  border: 1px solid var(--hx-line);
  background: rgba(255, 255, 255, 0.04);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.hx-case:hover,
.hx-case:focus-visible {
  border-color: rgba(255, 198, 75, 0.45);
  background: rgba(255, 198, 75, 0.06);
  transform: translateY(-2px);
  outline: none;
}

.hx-case--special {
  border-color: rgba(255, 198, 75, 0.35);
  background:
    linear-gradient(135deg, rgba(255, 198, 75, 0.1), transparent 55%),
    rgba(255, 255, 255, 0.04);
}

.hx-case__from {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(243, 239, 232, 0.62);
}

.hx-case__title {
  margin: 0.45rem 0 0;
  font-family: var(--hx-display);
  font-size: clamp(1.25rem, 3vw, 1.55rem);
  font-weight: 600;
  color: #fff;
}

.hx-case__lead {
  margin: 0.55rem 0 0;
  font-size: 0.98rem;
  line-height: 1.5;
  color: var(--hx-ink-soft);
}

.hx-case__path {
  margin: 0.7rem 0 0;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.72);
}

.hx-case__cta {
  display: inline-block;
  margin-top: 0.95rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: #fff;
}

@media (min-width: 800px) {
  .hx-cases {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hx-case--special,
  .hx-case--finale {
    grid-column: 1 / -1;
  }
}

/* Spare time */
.hx-spare {
  margin-top: clamp(2.5rem, 7vw, 4rem);
  padding: clamp(1.75rem, 4vw, 2.4rem) clamp(1.2rem, 3.5vw, 1.85rem);
  border: 1px solid rgba(255, 198, 75, 0.28);
  background:
    radial-gradient(80% 80% at 10% 0%, rgba(255, 198, 75, 0.1), transparent 55%),
    rgba(255, 255, 255, 0.03);
}

.hx-spare__negatives {
  list-style: none;
  margin: 1.35rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.55rem;
}

.hx-spare__negatives li {
  font-size: 1.02rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

.hx-spare__instead {
  margin: 1.5rem 0 0;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--hx-mute);
}

.hx-spare__formula {
  margin: 0.55rem 0 0;
  font-family: var(--hx-display);
  font-size: clamp(1.2rem, 3.2vw, 1.55rem);
  font-weight: 560;
  line-height: 1.35;
  color: #fff;
}

.hx-spare__close {
  margin: 1.25rem 0 0;
  font-size: 1rem;
  line-height: 1.55;
  color: var(--hx-ink-soft);
  max-width: 36rem;
}

/* Collaboration loop */
.hx-loop {
  margin-top: 1.6rem;
  display: grid;
  gap: 0.65rem;
}

.hx-loop__step {
  width: 100%;
  text-align: left;
  padding: 1rem 1.1rem;
  border: 1px solid var(--hx-line);
  background: rgba(255, 255, 255, 0.035);
  color: inherit;
  font: inherit;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.hx-loop__step:hover,
.hx-loop__step.is-active {
  border-color: rgba(255, 198, 75, 0.4);
  background: rgba(255, 198, 75, 0.07);
}

.hx-loop__who {
  display: block;
  font-size: 0.7rem;
  font-weight: 750;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
}

.hx-loop__step[data-who="human"] .hx-loop__who { color: var(--hx-human); }
.hx-loop__step[data-who="ai"] .hx-loop__who { color: var(--hx-ai); }
.hx-loop__step[data-who="result"] .hx-loop__who { color: rgba(243, 239, 232, 0.85); }

.hx-loop__text {
  margin: 0;
  font-size: 1.02rem;
  color: rgba(255, 255, 255, 0.92);
}

.hx-loop__arrow {
  text-align: center;
  color: var(--hx-mute);
  font-size: 0.85rem;
  letter-spacing: 0.05em;
}

.hx-loop__chain {
  margin: 1.35rem 0 0;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--hx-ink-soft);
  letter-spacing: 0.01em;
}

/* Non-linear path */
.hx-path {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 1.4rem;
}

.hx-path span {
  display: inline-flex;
  align-items: center;
  padding: 0.4rem 0.7rem;
  border: 1px solid var(--hx-line);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--hx-ink-soft);
}

.hx-path span.is-dim {
  opacity: 0.55;
  font-weight: 500;
}

/* Ecosystem / hub bridge */
.hx-ecosystem {
  margin-top: clamp(2.5rem, 7vw, 4rem);
  padding: clamp(1.75rem, 4vw, 2.5rem) var(--page-gutter, 1.25rem) 0.5rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, rgba(248, 247, 252, 0.96) 18%, #f7f6fb 100%);
  color: #1a1a2e;
  border-top: 1px solid var(--hx-line);
}

.hx-ecosystem__intro {
  max-width: var(--hx-wide);
  margin: 0 auto 1.5rem;
}

.hx-ecosystem .hx-heading {
  color: #1a1a2e;
}

.hx-ecosystem .hx-body {
  color: #565d74;
}

.hx-special-banner {
  max-width: var(--hx-wide);
  margin: 0 auto 1.5rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem 1.25rem;
  padding: 1.1rem 1.2rem;
  border: 1px solid rgba(166, 147, 239, 0.35);
  background: linear-gradient(120deg, #fff9eb 0%, #f3efff 55%, #fff 100%);
  text-decoration: none;
  color: inherit;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.hx-special-banner:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(42, 29, 69, 0.1);
}

.hx-special-banner__label {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8a6d00;
}

.hx-special-banner__title {
  margin: 0.25rem 0 0;
  font-family: var(--hx-display);
  font-size: clamp(1.2rem, 2.8vw, 1.45rem);
  font-weight: 650;
  color: #1a1a2e;
}

.hx-special-banner__lead {
  margin: 0.35rem 0 0;
  font-size: 0.95rem;
  color: #565d74;
  max-width: 36rem;
}

.hx-special-banner__cta {
  font-weight: 750;
  color: #6a5acd;
  white-space: nowrap;
}

body.page-experiment .home-hub-shell {
  max-width: var(--hx-wide);
  margin: 0 auto;
  padding: 0 var(--page-gutter, 1.25rem) clamp(2rem, 5vw, 3rem);
}

/* Who / open / contact */
.hx-who,
.hx-open,
.hx-contact {
  max-width: var(--hx-max);
  margin: 0 auto;
  padding: clamp(2.5rem, 7vw, 3.75rem) var(--page-gutter, 1.25rem) 0;
}

.hx-who__card,
.hx-open__card {
  margin-top: 1.25rem;
  padding: clamp(1.25rem, 3.5vw, 1.75rem);
  border: 1px solid var(--hx-line);
  background: rgba(255, 255, 255, 0.04);
}

.hx-who__card p,
.hx-open__card p {
  margin: 0 0 0.9rem;
  font-size: clamp(0.98rem, 2.2vw, 1.08rem);
  line-height: 1.62;
  color: var(--hx-ink-soft);
}

.hx-who__card p:last-child,
.hx-open__card p:last-child {
  margin-bottom: 0;
}

.hx-who__emphasis {
  color: #fff !important;
  font-weight: 600;
}

.hx-open__question {
  margin-top: 1.35rem !important;
  font-family: var(--hx-display) !important;
  font-size: clamp(1.2rem, 3.2vw, 1.55rem) !important;
  font-weight: 560 !important;
  line-height: 1.35 !important;
  color: #fff !important;
}

.hx-contact__heading {
  margin: 0;
  font-family: var(--hx-display);
  font-weight: 600;
  font-size: clamp(1.45rem, 3.6vw, 1.95rem);
  color: #fff;
  text-align: center;
}

.hx-contact__invite {
  margin: 0 auto;
  max-width: 36rem;
  text-align: center;
  font-family: var(--hx-body, inherit);
  font-size: clamp(1.05rem, 2.4vw, 1.2rem);
  font-weight: 450;
  line-height: 1.55;
  color: rgba(243, 239, 232, 0.92);
  text-wrap: pretty;
}

.hx-contact__pulse-arrow {
  margin: 1.15rem 0 1.35rem;
  text-align: center;
  line-height: 1;
}

.hx-contact__pulse-arrow__glyph {
  display: inline-block;
  font-size: clamp(1.65rem, 4.5vw, 2.1rem);
  font-weight: 500;
  color: #ffc64b;
  animation: hx-contact-arrow-pulse 1.55s ease-in-out infinite;
  will-change: transform, opacity;
}

@keyframes hx-contact-arrow-pulse {
  0%, 100% {
    transform: translateY(0);
    opacity: 0.55;
  }
  50% {
    transform: translateY(0.42rem);
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hx-contact__pulse-arrow__glyph {
    animation: none;
    opacity: 0.9;
  }
}

.hx-open__line--punch {
  margin-top: 0.95rem;
  color: #fff;
  font-weight: 560;
}

.hx-contact__lead {
  margin: 0.75rem auto 1.25rem;
  text-align: center;
  max-width: 32rem;
  color: var(--hx-ink-soft);
  font-size: 1rem;
}

.hx-contact .contact-form {
  display: grid;
  gap: 0.75rem;
  max-width: 28rem;
  margin: 0 auto;
}

.hx-contact .contact-select,
.hx-contact .contact-form input,
.hx-contact .contact-form textarea,
.hx-contact .contact-input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--hx-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06) !important;
  color: #fff !important;
  font-family: var(--hx-sans);
  font-size: 0.95rem;
}

.hx-contact .contact-select option {
  background: #121528;
  color: #fff;
}

.hx-contact .contact-form input::placeholder,
.hx-contact .contact-form textarea::placeholder {
  color: rgba(243, 239, 232, 0.45);
}

.hx-contact .contact-message-hint {
  margin: 0;
  font-size: 0.82rem;
  color: var(--hx-mute);
  text-align: center;
}

.hx-contact .btn.btn-primary,
.hx-contact button[type="submit"] {
  margin-top: 0.15rem;
  padding: 0.75rem 1.15rem;
  border: none;
  border-radius: 8px;
  background: var(--hx-accent) !important;
  color: var(--hx-accent-ink) !important;
  font-family: var(--hx-sans);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
}

.hx-contact .contact-form-status {
  margin: 0;
  font-size: 0.9rem;
  text-align: center;
}

.hx-contact .contact-form-status--ok { color: #8fdfb0; }
.hx-contact .contact-form-status--err { color: #f08b83; }

body.page-experiment footer {
  margin-top: clamp(2.5rem, 7vw, 4rem);
  border-top: 1px solid var(--hx-line);
  background: transparent;
  color: var(--hx-mute);
}

body.page-experiment footer a {
  color: rgba(255, 255, 255, 0.88);
}

@keyframes hx-rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  .hx-brand,
  .hx-hero__headline,
  .hx-hero__lead,
  .hx-hero__body,
  .hx-hero__ctas {
    animation: none;
  }
  .hx-case:hover,
  .hx-special-banner:hover,
  .hx-btn:hover {
    transform: none;
  }
}

/* —— Refinement: tighter evidence-first story —— */
.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

.hx-section {
  padding-top: clamp(1.5rem, 4vw, 2.35rem);
}

.hx-hero__body { display: none; } /* removed from hero in HTML; guard if cached */

.hx-human-early {
  text-align: center;
  max-width: 34rem;
}

.hx-human-early__line {
  margin: 0;
  font-family: var(--hx-display);
  font-size: clamp(1.25rem, 3.4vw, 1.65rem);
  font-weight: 560;
  color: #fff;
  line-height: 1.3;
}

.hx-human-early__line--strong {
  margin-top: 0.35rem;
}

.hx-human-early__body {
  margin: 0.85rem auto 0;
  font-size: 1.02rem;
  line-height: 1.55;
  color: var(--hx-ink-soft);
  max-width: 32rem;
}

.hx-duo--compact {
  margin-top: 1.15rem;
}

.hx-duo--compact .hx-duo__mid {
  writing-mode: horizontal-tb;
  transform: none;
  font-size: 1.5rem;
  font-weight: 700;
  color: rgba(255,255,255,0.55);
}

.hx-duo__result {
  margin: 1.25rem 0 0;
  text-align: center;
  font-family: var(--hx-display);
  font-size: clamp(1.1rem, 2.8vw, 1.35rem);
  font-weight: 560;
  color: #fff;
}

.hx-duo__eq {
  display: inline-block;
  margin-right: 0.35rem;
  opacity: 0.65;
}

.hx-body--tight {
  margin-top: 0.55rem;
  max-width: 30rem;
}

.hx-cases--evidence {
  margin-top: 1.25rem;
}

.hx-case--evidence {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  min-height: 0;
}

.hx-case__icon {
  width: 40px;
  height: 40px;
  object-fit: contain;
  margin-bottom: 0.25rem;
  opacity: 0.95;
}

.hx-case--evidence .hx-case__title {
  margin: 0;
}

.hx-case__step {
  margin: 0.2rem 0 0;
  font-size: 0.92rem;
  line-height: 1.45;
  color: var(--hx-ink-soft);
}

.hx-case__step span:first-child {
  display: block;
  font-size: 0.68rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(243, 239, 232, 0.55);
  margin-bottom: 0.15rem;
}

.hx-case__flow {
  margin: 0.15rem 0;
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  color: rgba(255, 255, 255, 0.45);
}

.hx-loop--compact .hx-loop__step {
  padding: 0.75rem 0.95rem;
}

.hx-spare--tight {
  padding: clamp(1.35rem, 3.5vw, 1.85rem) clamp(1.1rem, 3vw, 1.5rem);
}

.hx-spare--tight .hx-spare__formula {
  margin-top: 1.1rem;
}

.hx-who__card--tight p {
  margin-bottom: 0.7rem;
}

.hx-who__contrast {
  margin-top: 1rem !important;
  padding-top: 0.85rem;
  border-top: 1px solid var(--hx-line);
  font-family: var(--hx-display);
  font-size: clamp(1.02rem, 2.5vw, 1.18rem) !important;
  font-weight: 560 !important;
  color: #fff !important;
  line-height: 1.4 !important;
}

.hx-open {
  text-align: center;
}

.hx-open__question--hero {
  margin: 1.25rem auto 0 !important;
  max-width: 22em;
  font-family: var(--hx-display) !important;
  font-size: clamp(1.55rem, 4.8vw, 2.35rem) !important;
  font-weight: 560 !important;
  line-height: 1.22 !important;
  color: #fff !important;
  text-wrap: balance;
}

.hx-open__sub {
  margin: 0.9rem auto 0;
  max-width: 32rem;
  font-size: 0.98rem;
  color: var(--hx-ink-soft);
  line-height: 1.5;
}

body.ios-theme.page-experiment .hx-case--evidence {
  color: rgba(255,255,255,0.92) !important;
  -webkit-text-fill-color: rgba(255,255,255,0.92) !important;
}
body.ios-theme.page-experiment .hx-case--evidence .hx-case__title {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}
body.ios-theme.page-experiment .hx-case--evidence .hx-case__cta {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

/* —— Final corrections: bigger previews + dialogue + compact path —— */
.hx-heading--sm {
  font-size: clamp(1.25rem, 3.2vw, 1.55rem);
}

.hx-experiment-bridge {
  padding-top: 0.15rem;
  padding-bottom: clamp(0.6rem, 2vw, 1rem);
  text-align: center;
}

.hx-experiment-bridge__line {
  margin: 0 auto;
  max-width: 28em;
  font-family: var(--hx-display);
  font-size: clamp(1.15rem, 3.2vw, 1.55rem);
  font-weight: 520;
  line-height: 1.35;
  color: var(--hx-ink);
}

.hx-results .hx-heading {
  margin-bottom: 0.25rem;
}

.hx-cases--evidence {
  margin-top: 1.6rem;
  gap: 1.5rem;
}

@media (min-width: 900px) {
  .hx-cases--evidence {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.65rem;
  }
}

.hx-case--evidence {
  padding: 0;
  gap: 0;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.02));
}

.hx-case__window {
  width: 100%;
  margin: 0;
  border: 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  background: #090b12;
  overflow: hidden;
  box-shadow: none;
}

.hx-case__chrome {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.42rem 0.65rem;
  background: rgba(255,255,255,0.04);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.hx-case__chrome span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,0.22);
}

.hx-case__chrome span:nth-child(1) { background: #ff7b72; }
.hx-case__chrome span:nth-child(2) { background: #ffc64b; }
.hx-case__chrome span:nth-child(3) { background: #6bd68a; }

.hx-case__visual {
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: #0c0a12;
  overflow: hidden;
  aspect-ratio: 16 / 9.2;
  min-height: 210px;
  position: relative;
}

.hx-case__visual img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.4s ease;
}

.hx-case__visual--split {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
}

.hx-case__visual--split > img:first-child {
  border-right: 1px solid rgba(255,255,255,0.1);
}

.hx-case__output {
  object-fit: cover;
  object-position: center;
  background: #11131c;
}

.hx-case--evidence:hover .hx-case__visual img,
.hx-case--evidence:focus-visible .hx-case__visual img {
  transform: scale(1.03);
}

.hx-case__flow {
  margin: 0;
  padding: 0.55rem 0.85rem 0.6rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: lowercase;
  color: rgba(255, 198, 75, 0.92) !important;
  -webkit-text-fill-color: rgba(255, 198, 75, 0.92) !important;
  background: rgba(0, 0, 0, 0.42);
  border-top: 1px solid rgba(255,255,255,0.08);
}

.hx-case--evidence .hx-case__title,
.hx-case--evidence .hx-case__from,
.hx-case--evidence .hx-case__step,
.hx-case--evidence .hx-case__cta {
  margin-left: 0.9rem;
  margin-right: 0.9rem;
}

.hx-case--evidence .hx-case__title {
  margin-top: 0.85rem;
  margin-bottom: 0;
  font-size: clamp(1.2rem, 2.8vw, 1.45rem);
}

.hx-case--evidence .hx-case__from {
  margin-top: 0.35rem;
}

.hx-case--evidence .hx-case__step {
  display: grid;
  grid-template-columns: 8.2rem 1fr;
  gap: 0.25rem 0.55rem;
  margin-top: 0.45rem;
  font-size: 0.82rem;
  line-height: 1.35;
  color: rgba(243, 239, 232, 0.78) !important;
  -webkit-text-fill-color: rgba(243, 239, 232, 0.78) !important;
}

.hx-case--evidence .hx-case__step span:first-child {
  display: block;
  font-size: 0.6rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: rgba(255,198,75,0.9) !important;
  -webkit-text-fill-color: rgba(255,198,75,0.9) !important;
  padding-top: 0.15rem;
}

.hx-case--evidence .hx-case__step--mid span:first-child {
  color: rgba(166, 147, 239, 0.95) !important;
  -webkit-text-fill-color: rgba(166, 147, 239, 0.95) !important;
}

.hx-case--evidence .hx-case__step:last-of-type span:first-child {
  color: rgba(120, 220, 160, 0.95) !important;
  -webkit-text-fill-color: rgba(120, 220, 160, 0.95) !important;
}

.hx-case--evidence .hx-case__cta {
  margin-top: 0.7rem;
  margin-bottom: 1rem;
  font-size: 0.88rem;
}

/* Dialogue collaboration */
.hx-dialogue {
  margin: 1.35rem auto 0;
  max-width: 34rem;
  display: grid;
  gap: 0.7rem;
}

.hx-dialogue__row {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: 0.65rem;
  align-items: start;
}

.hx-dialogue__row--ai {
  grid-template-columns: 1fr 4.5rem;
}

.hx-dialogue__row--ai .hx-dialogue__who {
  order: 2;
  text-align: right;
}

.hx-dialogue__row--ai .hx-dialogue__bubble {
  order: 1;
  margin-left: auto;
  background: rgba(166, 147, 239, 0.14);
  border-color: rgba(166, 147, 239, 0.35);
}

.hx-dialogue__row--human .hx-dialogue__bubble {
  background: rgba(240, 139, 131, 0.12);
  border-color: rgba(240, 139, 131, 0.32);
}

.hx-dialogue__row--result {
  grid-template-columns: 1fr;
  justify-items: center;
  margin-top: 0.35rem;
  text-align: center;
}

.hx-dialogue__who {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  padding-top: 0.7rem;
}

.hx-dialogue__row--human .hx-dialogue__who { color: var(--hx-human); }
.hx-dialogue__row--ai .hx-dialogue__who { color: var(--hx-ai); }
.hx-dialogue__row--result .hx-dialogue__who {
  color: rgba(243, 239, 232, 0.7);
  padding-top: 0;
  margin-bottom: 0.35rem;
}

.hx-dialogue__bubble {
  margin: 0;
  padding: 0.75rem 0.95rem;
  border: 1px solid var(--hx-line);
  font-size: 0.98rem;
  line-height: 1.4;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  max-width: 22rem;
}

.hx-dialogue__bubble--result {
  max-width: 18rem;
  background: rgba(255, 198, 75, 0.12);
  border-color: rgba(255, 198, 75, 0.4);
  font-weight: 650;
  text-align: center;
}

/* Compact path — do not compete with Results */
.hx-path-mini {
  padding-top: clamp(0.9rem, 2.5vw, 1.25rem);
  padding-bottom: clamp(0.9rem, 2.5vw, 1.25rem);
  text-align: center;
  opacity: 0.92;
}

.hx-path-mini__line {
  margin: 0 auto;
  max-width: 28rem;
  font-size: 0.98rem;
  color: var(--hx-ink-soft);
}

.hx-path-mini__line--strong {
  margin-top: 0.35rem;
  font-weight: 650;
  color: #fff;
}

.hx-path-mini .hx-path {
  margin-top: 0.75rem;
  justify-content: center;
}

.hx-spare--tight {
  text-align: center;
}

.hx-spare--tight .hx-heading {
  font-size: clamp(1.55rem, 4vw, 2.1rem);
}

.hx-spare--tight .hx-spare__formula {
  margin-top: 1.35rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 198, 75, 0.22);
}

.hx-open {
  padding-top: clamp(2.75rem, 8vw, 4.5rem);
  padding-bottom: clamp(2.75rem, 8vw, 4.5rem);
  text-align: center;
}

.hx-open__question--hero {
  margin: 1.85rem auto 0 !important;
  max-width: 18em;
  font-family: var(--hx-display) !important;
  font-size: clamp(1.75rem, 5.6vw, 2.75rem) !important;
  font-weight: 650 !important;
  line-height: 1.16 !important;
  color: #fff !important;
  text-wrap: balance;
}

.hx-open__line {
  margin: 0.85rem auto 0;
  text-align: center;
  color: var(--hx-ink-soft);
  font-size: 1.02rem;
}

.hx-duo__footnote {
  margin-top: 1.1rem;
  text-align: center;
  font-family: var(--hx-display);
  font-size: clamp(1.05rem, 2.6vw, 1.25rem);
  font-weight: 560;
  color: #fff;
}

@media (max-width: 720px) {
  .hx-case__visual {
    aspect-ratio: 16 / 11;
    min-height: 180px;
  }
  .hx-case__visual--split {
    grid-template-columns: 1fr;
  }
  .hx-case__visual--split > img:first-child {
    border-right: 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    max-height: 150px;
  }
  .hx-case__output {
    max-height: 110px;
  }
  .hx-case--evidence .hx-case__step {
    grid-template-columns: 1fr;
    gap: 0.1rem;
  }
  .hx-dialogue__row,
  .hx-dialogue__row--ai {
    grid-template-columns: 1fr;
  }
  .hx-dialogue__row--ai .hx-dialogue__who,
  .hx-dialogue__row--human .hx-dialogue__who {
    order: 0;
    text-align: left;
    padding-top: 0;
  }
  .hx-dialogue__row--ai .hx-dialogue__bubble {
    margin-left: 0;
  }
}

/* —— Final refinement: collaboration key + evidence hub —— */
.hx-duo__key {
  margin: 1.35rem auto 0;
  max-width: 22em;
  text-align: center;
  font-family: var(--hx-display);
  font-size: clamp(1.25rem, 3.4vw, 1.7rem);
  font-weight: 560;
  line-height: 1.35;
  color: #fff;
  text-wrap: balance;
}

.hx-duo__key--thesis {
  margin-top: 1.85rem;
  max-width: 24em;
  padding: 1.15rem 1.25rem 1.2rem;
  font-size: clamp(1.45rem, 4.2vw, 2.05rem);
  font-weight: 600;
  line-height: 1.28;
  letter-spacing: -0.02em;
  border-top: 1px solid rgba(255, 198, 75, 0.35);
  border-bottom: 1px solid rgba(255, 198, 75, 0.35);
  background: linear-gradient(180deg, rgba(255, 198, 75, 0.06), transparent 70%);
}

.hx-duo__thesis-support {
  margin: 0.85rem auto 0;
  max-width: 28em;
  text-align: center;
  font-size: clamp(0.95rem, 2.2vw, 1.05rem);
  line-height: 1.45;
  color: var(--hx-ink-soft);
  text-wrap: balance;
}

.hx-duo__footnote {
  margin-bottom: 0;
  opacity: 0.9;
}

#human-ai {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

#human-ai .hx-duo {
  width: 100%;
}

#human-ai .hx-duo__footnote.hx-duo__footnote--story {
  display: block;
  width: min(44rem, 100%);
  max-width: 44rem;
  margin: 1.5rem auto 0;
  text-align: center;
}

.hx-results__bridge {
  margin: 0.7rem 0 0;
  max-width: 34rem;
  font-size: clamp(1rem, 2.3vw, 1.08rem);
  line-height: 1.45;
  color: var(--hx-ink-soft);
}

.hx-dialogue__note {
  margin: 1.25rem auto 0;
  max-width: 32rem;
  text-align: center;
  font-size: 0.98rem;
  line-height: 1.5;
  color: var(--hx-ink-soft);
  text-wrap: balance;
}

.hx-self-funded {
  font-style: normal;
  font-weight: 700;
  color: #fff;
  border-bottom: 1px solid rgba(255, 198, 75, 0.55);
  padding-bottom: 0.05em;
}

.hx-path--vertical {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.15rem;
  margin-top: 1.15rem;
}

.hx-path--vertical > span[role="listitem"],
.hx-path--vertical > span.is-dim {
  display: block;
  min-width: 11.5rem;
  text-align: center;
  padding: 0.48rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.03);
  color: rgba(255, 255, 255, 0.88);
}

.hx-path--vertical > span.is-dim {
  opacity: 0.62;
  font-weight: 600;
  border-style: dashed;
}

.hx-path__arrow {
  display: block;
  border: 0 !important;
  background: transparent !important;
  padding: 0.05rem 0 !important;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: rgba(255, 198, 75, 0.75);
  line-height: 1;
}

.hx-path-mini .hx-path--vertical {
  justify-content: center;
}

.hx-ecosystem--evidence {
  margin-top: clamp(2rem, 5vw, 3rem);
}

.hx-ecosystem--evidence .hx-ecosystem__intro {
  text-align: center;
  margin-bottom: 1.15rem;
}

.hx-ecosystem--evidence .hx-heading {
  margin-bottom: 0.55rem;
}

.hx-ecosystem__evidence-label {
  margin: 0.85rem 0 0.35rem;
  color: #8a6d00;
  letter-spacing: 0.16em;
}

.hx-ecosystem--evidence .hx-kicker {
  letter-spacing: 0.14em;
}

.hx-ecosystem--evidence .hx-body {
  margin-left: auto;
  margin-right: auto;
}

.hx-body--soft {
  margin-top: 0.55rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: #6b7288;
  max-width: 32rem;
}

.hx-ecosystem--evidence .home-hub-tiles {
  opacity: 0.98;
}

.hx-ecosystem--evidence .home-hub-all__link {
  font-size: 0.95rem;
  font-weight: 650;
  opacity: 0.9;
}

/* Evidence cards — less SaaS-ad, quieter CTA */
.hx-case--evidence {
  position: relative;
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.025);
  box-shadow: none;
}

.hx-case--evidence:hover,
.hx-case--evidence:focus-visible {
  transform: none;
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: none;
}

.hx-case--evidence .hx-case__chrome {
  opacity: 0.55;
}

.hx-case--evidence .hx-case__flow {
  font-weight: 600;
  letter-spacing: 0.03em;
  color: rgba(243, 239, 232, 0.55) !important;
  -webkit-text-fill-color: rgba(243, 239, 232, 0.55) !important;
  background: rgba(0, 0, 0, 0.28);
}

.hx-case--evidence .hx-case__title {
  font-weight: 600;
  letter-spacing: -0.01em;
}

.hx-case--evidence .hx-case__cta {
  margin-top: 0.55rem;
  margin-bottom: 0.9rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  opacity: 0.72;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  text-decoration-color: rgba(255, 255, 255, 0.28);
}

.hx-case--evidence:hover .hx-case__cta,
.hx-case--evidence:focus-visible .hx-case__cta {
  opacity: 0.95;
}

.hx-case__step--problem {
  align-items: start;
}

.hx-open__bridge {
  margin: 1.35rem auto 0;
  max-width: 28rem;
  font-size: 1.05rem;
  color: var(--hx-ink-soft);
}

.hx-open__arrow {
  margin: 0.55rem 0 0;
  font-size: 1.1rem;
  color: rgba(255, 198, 75, 0.75);
  line-height: 1;
}

body.ios-theme.page-experiment .hx-duo__key,
body.ios-theme.page-experiment .hx-duo__key--thesis {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

body.ios-theme.page-experiment .hx-self-funded {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

body.ios-theme.page-experiment .hx-duo__thesis-support,
body.ios-theme.page-experiment .hx-results__bridge,
body.ios-theme.page-experiment .hx-dialogue__note,
body.ios-theme.page-experiment .hx-open__bridge {
  color: rgba(243, 239, 232, 0.78) !important;
  -webkit-text-fill-color: rgba(243, 239, 232, 0.78) !important;
}

body.ios-theme.page-experiment .hx-case--evidence .hx-case__cta {
  opacity: 0.75;
}

/* —— Story hierarchy: big idea → space → human story → result —— */
.hx-hero__who {
  margin: 1.85rem auto 0;
  max-width: 34rem;
}

.hx-hero__who-kicker {
  margin-bottom: 0.85rem;
}

.hx-hero .hx-human-early__line {
  font-size: clamp(0.72rem, 1.8vw, 0.95rem);
  line-height: 1.5;
  font-weight: 500;
}

.hx-hero__who-body {
  margin: 0.85rem auto 0;
  font-size: clamp(1rem, 2.3vw, 1.12rem);
  line-height: 1.55;
  color: var(--hx-ink-soft);
  text-wrap: balance;
}

.hx-hero__who-body--now {
  color: #fff;
  font-weight: 560;
}

.hx-heading--mantra {
  display: grid;
  gap: 0.28rem;
  text-align: center;
  font-size: clamp(1.35rem, 3.6vw, 1.95rem);
}

.hx-heading--mantra span {
  display: block;
}

.hx-heading--mantra span:nth-child(odd) { color: var(--hx-human); }
.hx-heading--mantra span:nth-child(even) { color: var(--hx-ai); }

.hx-results__bridge--lead {
  margin-top: 1.15rem;
  font-family: var(--hx-display);
  font-size: clamp(1.2rem, 3.2vw, 1.65rem);
  font-weight: 600;
  line-height: 1.25;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  max-width: 22em;
}

.hx-body--center {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.hx-thread {
  list-style: none;
  margin: 1.35rem auto 0;
  padding: 0;
  max-width: 34rem;
  display: grid;
  gap: 0.7rem;
}

.hx-thread__row {
  display: grid;
  grid-template-columns: 8.6rem 1fr;
  gap: 0.85rem;
  align-items: baseline;
  margin: 0;
  padding: 0.15rem 0;
  border-bottom: 1px solid var(--hx-line);
}

.hx-thread__name {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fff;
}

.hx-thread__row span:last-child {
  color: var(--hx-ink-soft);
  font-size: 1.02rem;
  line-height: 1.4;
}

.hx-thread__key {
  margin: 1.65rem auto 0;
  max-width: 20em;
  text-align: center;
  font-family: var(--hx-display);
  font-size: clamp(1.35rem, 3.8vw, 1.85rem);
  font-weight: 650;
  line-height: 1.2;
  color: #fff;
  text-wrap: balance;
}

.hx-thread__key--accent {
  margin-top: 0.45rem;
  color: var(--hx-accent);
}

.hx-contact__note {
  margin: 1rem auto 0;
  text-align: center;
  color: var(--hx-ink-soft);
  font-size: 0.98rem;
}

@media (max-width: 640px) {
  .hx-thread__row {
    grid-template-columns: 1fr;
    gap: 0.2rem;
    padding-bottom: 0.65rem;
  }
}

body.ios-theme.page-experiment .hx-results__bridge--lead {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

body.ios-theme.page-experiment .hx-hero__who-body--now,
body.ios-theme.page-experiment .hx-thread__key,
body.ios-theme.page-experiment .hx-heading--mantra {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

body.ios-theme.page-experiment .hx-heading--mantra span:nth-child(odd) {
  color: var(--hx-human) !important;
  -webkit-text-fill-color: var(--hx-human) !important;
}

body.ios-theme.page-experiment .hx-heading--mantra span:nth-child(even) {
  color: var(--hx-ai) !important;
  -webkit-text-fill-color: var(--hx-ai) !important;
}

body.ios-theme.page-experiment .hx-thread__key--accent {
  color: var(--hx-accent) !important;
  -webkit-text-fill-color: var(--hx-accent) !important;
}

body.ios-theme.page-experiment .hx-contact__note {
  color: rgba(243, 239, 232, 0.78) !important;
  -webkit-text-fill-color: rgba(243, 239, 232, 0.78) !important;
}

/* Copy hierarchy: asked-AI line + next-experiment card */
.hx-case--evidence .hx-case__ask {
  margin: 0.55rem 0.9rem 0;
  font-size: 0.92rem;
  font-weight: 650;
  line-height: 1.35;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

.hx-case__badge {
  margin: 0.75rem 0.9rem 0.15rem;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 198, 75, 0.95) !important;
  -webkit-text-fill-color: rgba(255, 198, 75, 0.95) !important;
}

.hx-case--next {
  border-color: rgba(255, 198, 75, 0.32);
}

@media (min-width: 900px) {
  .hx-cases--evidence .hx-case--next,
  .hx-cases--evidence .hx-case--finale {
    grid-column: 1 / -1;
  }
}

.hx-case--finale {
  border-color: rgba(255, 198, 75, 0.28);
  background:
    linear-gradient(180deg, rgba(255, 198, 75, 0.07), rgba(255, 255, 255, 0.02) 42%);
}

.hx-case--finale .hx-case__visual--fn {
  aspect-ratio: 2.05 / 1;
  min-height: 280px;
  background: #0b1220;
}

.hx-fn-preview {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: 0.7rem 0.85rem 0.8rem;
  gap: 0.55rem;
  box-sizing: border-box;
}

.hx-fn-modes {
  display: flex;
  gap: 0.4rem;
  flex-shrink: 0;
}

.hx-fn-modes span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.32rem 0.75rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: rgba(148, 163, 184, 0.95);
  background: rgba(15, 23, 42, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.hx-fn-modes span.is-on {
  color: #fff;
  background: #2563eb;
  border-color: transparent;
}

.hx-fn-screen {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  border-radius: 12px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 70% 20%, rgba(37, 99, 235, 0.22), transparent 46%),
    linear-gradient(180deg, #111827 0%, #020617 100%);
  border: 1px solid rgba(148, 163, 184, 0.16);
}

.hx-fn-stage-title {
  position: absolute;
  left: 50%;
  top: 42%;
  transform: translate(-50%, -50%);
  margin: 0;
  font-family: var(--hx-display);
  font-size: clamp(1.35rem, 3.6vw, 2.15rem);
  font-weight: 620;
  letter-spacing: -0.02em;
  color: rgba(241, 245, 249, 0.92);
  text-wrap: balance;
  text-align: center;
}

.hx-fn-host {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, #1e293b, #0f172a);
  border: 2px solid rgba(134, 239, 172, 0.45);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  z-index: 2;
}

.hx-fn-host-ring {
  position: absolute;
  inset: -5px;
  border-radius: 50%;
  border: 1px solid rgba(134, 239, 172, 0.28);
}

.hx-fn-face {
  width: 58px;
  height: 58px;
}

.hx-fn-face-bg { fill: #1e293b; }
.hx-fn-eye { fill: #86efac; }
.hx-fn-mouth {
  fill: #334155;
  stroke: #86efac;
  stroke-width: 1.5;
}

.hx-fn-lt {
  position: absolute;
  left: 12px;
  right: 96px;
  bottom: 12px;
  padding: 0.55rem 0.75rem 0.6rem;
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(15, 23, 42, 0.92), rgba(15, 23, 42, 0.55));
  border-left: 3px solid #2563eb;
}

.hx-fn-lt span {
  display: block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #93c5fd;
}

.hx-fn-lt p {
  margin: 0.2rem 0 0;
  font-size: 0.92rem;
  font-weight: 700;
  color: #fff;
}

.hx-case--finale .hx-case__title {
  font-size: clamp(1.35rem, 3vw, 1.7rem);
}

@media (min-width: 900px) {
  .hx-case--finale .hx-case__visual--fn {
    aspect-ratio: 2.2 / 1;
    min-height: 340px;
  }
  .hx-fn-host {
    width: 88px;
    height: 88px;
    top: 16px;
    right: 16px;
  }
  .hx-fn-face {
    width: 72px;
    height: 72px;
  }
  .hx-fn-lt {
    left: 16px;
    right: 120px;
    padding: 0.65rem 0.9rem 0.7rem;
  }
  .hx-fn-lt p {
    font-size: 1.05rem;
  }
  .hx-case--finale .hx-case__steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.35rem 1.15rem;
    margin: 0.55rem 0.9rem 0;
    width: calc(100% - 1.8rem);
  }
  .hx-case--finale .hx-case__steps .hx-case__step {
    margin-left: 0;
    margin-right: 0;
    grid-template-columns: 1fr;
    align-content: start;
  }
}

@media (max-width: 720px) {
  .hx-case--finale .hx-case__visual--fn {
    aspect-ratio: 16 / 10.5;
    min-height: 220px;
  }
  .hx-fn-host {
    width: 56px;
    height: 56px;
  }
  .hx-fn-face {
    width: 46px;
    height: 46px;
  }
  .hx-fn-lt {
    right: 78px;
  }
}

body.ios-theme.page-experiment a.hx-case .hx-fn-preview,
body.ios-theme.page-experiment a.hx-case .hx-fn-preview * {
  pointer-events: none;
}

body.ios-theme.page-experiment .hx-fn-stage-title,
body.ios-theme.page-experiment .hx-fn-lt p {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

body.ios-theme.page-experiment .hx-fn-lt span {
  color: #93c5fd !important;
  -webkit-text-fill-color: #93c5fd !important;
}

.hx-case--next .hx-case__flow {
  text-transform: none;
  letter-spacing: 0.05em;
}

.hx-dialogue__bubble {
  line-height: 1.45;
}

.hx-results__bridge--lead {
  font-weight: 650;
  color: #fff;
}

.hx-case__stepno {
  position: absolute;
  top: 0.55rem;
  right: 0.7rem;
  z-index: 2;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  color: rgba(255, 198, 75, 0.7);
}

.hx-steps {
  margin: 1.6rem auto 0.35rem;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: rgba(255, 198, 75, 0.72);
}

.hx-steps__note {
  margin: 0 auto 0.4rem;
  text-align: center;
  max-width: 40rem;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--hx-ink-soft);
}

.hx-dialogue__row--both .hx-dialogue__who {
  color: var(--hx-accent);
}

.hx-case--wip .hx-case__badge {
  text-transform: none;
  letter-spacing: 0.04em;
  font-size: 0.78rem;
  font-weight: 650;
}

body.ios-theme.page-experiment .hx-case__stepno,
body.ios-theme.page-experiment .hx-steps {
  color: rgba(255, 198, 75, 0.72) !important;
  -webkit-text-fill-color: rgba(255, 198, 75, 0.72) !important;
}

body.ios-theme.page-experiment .hx-steps__note {
  color: rgba(243, 239, 232, 0.78) !important;
  -webkit-text-fill-color: rgba(243, 239, 232, 0.78) !important;
}

/* Original extension Sentinel menu (confirm.html + style.css) — not a fake interstitial */
.hx-case__visual--ext {
  background: #f2f2f7 !important;
  overflow: hidden;
  min-height: 250px;
  aspect-ratio: 16 / 10.2;
}

.hx-ext-stage {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
  height: 100%;
  padding: 10px 8px;
  font-family: Arial, Helvetica, sans-serif !important;
  pointer-events: none;
  overflow: hidden;
}

.hx-ext-stage,
.hx-ext-stage * {
  font-family: Arial, Helvetica, sans-serif !important;
}

.hx-ext-slot {
  position: relative;
  width: 178px;
  height: 230px;
  flex: 0 0 178px;
  overflow: visible;
}

.hx-ext-menu {
  position: absolute;
  left: 50%;
  top: 50%;
  box-sizing: border-box;
  width: 360px;
  text-align: center;
  background: #fff;
  color: #000;
  border-radius: 16px;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.3);
  padding: 24px;
  transform: translate(-50%, -50%) scale(0.48);
  transform-origin: center center;
  margin: 0;
}

.hx-ext-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  background: #83819B;
  border-radius: 50%;
  font-weight: bold;
  font-size: 18px;
  line-height: 32px;
  color: #000 !important;
  -webkit-text-fill-color: #000 !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.hx-ext-title {
  font-size: 28px;
  font-weight: 700;
  margin: 0 0 6px;
  color: #A693EF !important;
  -webkit-text-fill-color: #A693EF !important;
  line-height: 1.2;
}

.hx-ext-sub {
  font-size: 16px;
  margin: 0 0 10px;
  opacity: 0.85;
  color: #000 !important;
  -webkit-text-fill-color: #000 !important;
}

.hx-ext-value {
  font-size: 28px;
  font-weight: 700;
  margin: 10px 0;
  color: #F08B83 !important;
  -webkit-text-fill-color: #F08B83 !important;
  word-break: break-word;
}

.hx-ext-similar {
  width: 100%;
  box-sizing: border-box;
  background: #f9f9f9;
  padding: 12px;
  border-radius: 8px;
  margin: 0 0 16px;
  border: 1px solid #e2e2e2;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hx-ext-similar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.hx-ext-similar-pct {
  font-size: 16px;
  opacity: 0.85;
  margin-bottom: 4px;
  font-style: italic;
  color: #555 !important;
  -webkit-text-fill-color: #555 !important;
  line-height: 1.3;
}

.hx-ext-similar-link {
  font-size: 22px;
  font-weight: bold;
  font-style: normal;
  color: #4FC0E6 !important;
  -webkit-text-fill-color: #4FC0E6 !important;
  text-decoration: underline;
}

.hx-ext-buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 12px;
  width: 100%;
}

.hx-ext-btn {
  display: block;
  box-sizing: border-box;
  padding: 12px;
  font-size: 16px;
  font-weight: 600;
  border-radius: 8px;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.hx-ext-btn--yes {
  background: #ACF07F;
  border: 1px solid #8BC76B;
}

.hx-ext-btn--no {
  background: #F08B83;
  border: 1px solid #FF7062;
}

.hx-ext-btn--opt {
  background: #83819B;
  border: 1px solid #83819B;
  color: #000 !important;
  -webkit-text-fill-color: #000 !important;
}

body.ios-theme.page-experiment a.hx-case .hx-ext-stage,
body.ios-theme.page-experiment a.hx-case .hx-ext-stage * {
  text-shadow: none;
}

body.ios-theme.page-experiment a.hx-case .hx-ext-title {
  color: #A693EF !important;
  -webkit-text-fill-color: #A693EF !important;
}

body.ios-theme.page-experiment a.hx-case .hx-ext-sub,
body.ios-theme.page-experiment a.hx-case .hx-ext-close,
body.ios-theme.page-experiment a.hx-case .hx-ext-btn--opt {
  color: #000 !important;
  -webkit-text-fill-color: #000 !important;
}

body.ios-theme.page-experiment a.hx-case .hx-ext-value {
  color: #F08B83 !important;
  -webkit-text-fill-color: #F08B83 !important;
}

body.ios-theme.page-experiment a.hx-case .hx-ext-similar-pct {
  color: #555 !important;
  -webkit-text-fill-color: #555 !important;
}

body.ios-theme.page-experiment a.hx-case .hx-ext-similar-link {
  color: #4FC0E6 !important;
  -webkit-text-fill-color: #4FC0E6 !important;
}

body.ios-theme.page-experiment a.hx-case .hx-ext-btn--yes,
body.ios-theme.page-experiment a.hx-case .hx-ext-btn--no {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

@media (max-width: 720px) {
  .hx-case__visual--ext {
    min-height: 210px;
  }
  .hx-ext-stage {
    gap: 8px;
  }
  .hx-ext-slot {
    width: 148px;
    height: 195px;
    flex-basis: 148px;
  }
  .hx-ext-menu {
    transform: translate(-50%, -50%) scale(0.40);
  }
}
