/* =====================================================
   MHXK Visual Journal · Original responsive stylesheet
   Sections: foundation / header / hero / cards / editorial / article
   ===================================================== */
:root {
  color-scheme: dark;
  --navy: #09122b;
  --navy-2: #111d3d;
  --ink: #1e2848;
  --muted: #677392;
  --paper: #f5f7ff;
  --cyan: #58e0ed;
  --purple: #7b63ef;
  --pink: #d8b7f7;
  --border: #e2e7f5;
  --width: 1180px;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  color: var(--ink);
  background: #fff;
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
  line-height: 1.75;
}

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

a:focus-visible, summary:focus-visible {
  outline: 3px solid var(--cyan);
  outline-offset: 4px;
}

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

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

.wrap {
  width: min(calc(100% - 48px), var(--width));
  margin-inline: auto;
}

.skip-link {
  position: absolute;
  z-index: 999;
  left: 12px;
  top: -90px;
  padding: 8px 16px;
  background: #fff;
}

.skip-link:focus {
  top: 12px;
}
/* Header */
.site-header {
  background: var(--navy);
  color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.12);
}

.nav-wrap {
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
  line-height: 1.15;
}

.brand-mark {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  color: #102044;
  font-size: 28px;
  background: linear-gradient(135deg, #85ecf9, #d4b8fc);
}

.brand strong, .brand small {
  display: block;
}

.brand strong {
  font-size: 19px;
  letter-spacing: .6px;
}

.brand small {
  margin-top: 5px;
  font-size: 11px;
  font-weight: 400;
  color: #aebee6;
  letter-spacing: 2px;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: clamp(12px,2vw,27px);
}

.nav a {
  padding: 10px 0;
  font-size: 14px;
  white-space: nowrap;
  color: #d8e3fc;
  transition: color .2s ease;
}

.nav a:hover {
  color: var(--cyan);
}
/* Hero */
.hero {
  position: relative;
  min-height: 610px;
  background: #0a1331;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: linear-gradient(90deg, rgba(5,12,34,.96) 0%, rgba(5,12,34,.89) 28%, rgba(8,14,42,.52) 60%, rgba(6,14,40,.15) 100%), url('images/cosmos-1.webp');
  background-position: center, center;
  background-size: cover;
}

.hero::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 170px;
  z-index: -1;
  background: linear-gradient(transparent, rgba(8,12,29,.9));
}

.hero-inner {
  min-height: 610px;
  display: flex;
  align-items: center;
  padding-block: 88px 120px;
}

.hero-copy {
  width: min(690px, 100%);
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #a4f5ff;
  font-size: 11px;
  letter-spacing: 2.5px;
  font-weight: 700;
}

.light-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #78e9f6;
  box-shadow: 0 0 20px #74eaff;
}

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

.hero h1 {
  margin: 24px 0 20px;
  font-size: clamp(31px, 3.45vw, 48px);
  line-height: 1.34;
  letter-spacing: -.5px;
  font-weight: 800;
  text-wrap: pretty;
}

.hero h1 span {
  display: block;
  margin-top: 13px;
  font-size: .68em;
  font-weight: 600;
  color: #d4cbff;
  letter-spacing: 0;
}

.hero-copy > p {
  max-width: 590px;
  font-size: 17px;
  color: #cbd8f3;
  line-height: 1.95;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.btn {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 47px;
  padding: 10px 23px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-weight: 700;
  font-size: 14px;
}

.btn-primary {
  background: linear-gradient(120deg, #74ebf2, #aaacff);
  color: #0e2142;
  box-shadow: 0 12px 40px rgba(82,169,229,.17);
}

.btn-ghost {
  border-color: rgba(255,255,255,.38);
  color: #fff;
  background: rgba(255,255,255,.07);
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 35px;
}

.hero-tags span {
  padding: 5px 12px;
  border: 1px solid rgba(195,219,255,.2);
  border-radius: 50px;
  color: #bed0f7;
  font-size: 12px;
}

.hero-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg,#58e0ed,#8766ed,#db8ed7);
}
/* Feature strip */
.feature-strip {
  position: relative;
  background: #111c3b;
  color: #fff;
}

.feature-strip-grid {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
}

.feature-strip-grid > div {
  min-height: 100px;
  display: grid;
  grid-template-columns: 44px 1fr;
  align-content: center;
  gap: 0 13px;
  padding: 20px 18px;
  border-right: 1px solid rgba(255,255,255,.1);
}

.feature-strip-grid > div:first-child {
  border-left: 1px solid rgba(255,255,255,.1);
}

.strip-icon {
  grid-row: span 2;
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  border: 1px solid #516081;
  border-radius: 12px;
  color: #9fdcfb;
  font-size: 26px;
}

.feature-strip-grid strong {
  font-size: 15px;
}

.feature-strip-grid small {
  font-size: 12px;
  color: #96a9cf;
}
/* Content sections */
.section {
  padding: 96px 0;
}

.eyebrow {
  color: #6e57cf;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2.2px;
  text-transform: uppercase;
}

.section-heading {
  margin: 12px 0 18px;
  font-size: clamp(27px,3vw,39px);
  line-height: 1.36;
  letter-spacing: -.5px;
}

.section-heading span {
  color: #7567dd;
}

.intro-section {
  background: #fff;
}

.intro-layout {
  display: grid;
  grid-template-columns: .83fr 1.17fr;
  gap: clamp(30px,5vw,75px);
  align-items: center;
}

.intro-text {
  max-width: 480px;
  font-size: 16px;
  color: var(--muted);
  line-height: 2.1;
}

.text-link {
  display: inline-block;
  color: #5644b9;
  margin-top: 12px;
  font-size: 14px;
  font-weight: 800;
}

.text-link:hover {
  text-decoration: underline;
}

.intro-visual {
  margin: 0;
}

.intro-visual img {
  width: 100%;
  aspect-ratio: 1.6;
  object-fit: cover;
  border-radius: 24px;
  box-shadow: 0 25px 65px #11204424;
}

.intro-visual figcaption {
  padding-top: 10px;
  text-align: right;
  font-size: 12px;
  color: #8791a5;
}

.articles-section {
  background: var(--paper);
}

.section-topline {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 32px;
}

.section-topline .section-heading {
  margin-bottom: 0;
}

.section-topline > p {
  max-width: 310px;
  color: var(--muted);
  margin: 0 0 4px;
  font-size: 14px;
}

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

.story-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 17px;
  transition: transform .2s,box-shadow .2s;
}

.story-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 35px #35467a18;
}

.story-image {
  display: block;
  background: #161d43;
  overflow: hidden;
}

.story-image img {
  width: 100%;
  aspect-ratio: 1.45;
  object-fit: cover;
  transition: transform .4s;
}

.story-card:hover img {
  transform: scale(1.045);
}

.story-body {
  padding: 20px 19px 22px;
}

.story-body .eyebrow {
  font-size: 10px;
  letter-spacing: 1px;
}

.story-body h3 {
  margin: 9px 0;
  min-height: 58px;
  font-size: 17px;
  line-height: 1.7;
}

.story-body p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.85;
  min-height: 74px;
}

.story-body .text-link {
  margin-top: 15px;
}
/* Timeline */
.process-section {
  background: #101b38;
  color: #fff;
}

.process-layout {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 90px;
  align-items: start;
}

.process-layout .eyebrow {
  color: #7ce6ef;
}

.process-layout .section-heading span {
  color: #a3aafa;
}

.process-layout > div > p {
  color: #afbddc;
  line-height: 2;
  margin-bottom: 30px;
}

.process-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.process-list li {
  display: flex;
  gap: 20px;
  padding: 14px 0 18px;
  border-bottom: 1px solid #344265;
}

.process-list b {
  font-size: 26px;
  line-height: 1.3;
  color: #78ddea;
  font-weight: 400;
  font-family: Georgia,serif;
}

.process-list strong {
  font-size: 17px;
}

.process-list p {
  margin: 2px 0 0;
  color: #b3bfdb;
  font-size: 13px;
}
/* FAQ */
.faq-section {
  background: #fff;
}

.faq-layout {
  display: grid;
  grid-template-columns: .75fr 1.25fr;
  gap: 75px;
}

.faq-layout > div > p {
  color: var(--muted);
}

.faq-items details {
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}

.faq-items summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 16px;
  padding-right: 14px;
}

.faq-items details p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.9;
  margin: 12px 0 0;
}
/* Footer */
.site-footer {
  background: #090f25;
  color: #b2bdd6;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr;
  gap: 60px;
  padding-block: 55px;
}

.footer-grid > div {
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  gap: 11px;
  font-size: 13px;
}

.footer-grid strong {
  color: #fff;
  font-size: 15px;
}

.footer-grid .footer-name {
  font-size: 20px;
}

.footer-grid p {
  max-width: 420px;
  line-height: 2;
}

.footer-grid a:hover {
  color: #7be4ed;
}
/* Article layouts */
.article-main {
  background: #f7f9ff;
  min-height: 80vh;
  padding-block: 30px 90px;
}

.breadcrumbs {
  display: flex;
  gap: 12px;
  color: #677592;
  margin-bottom: 22px;
  font-size: 13px;
}

.article-shell {
  display: grid;
  grid-template-columns: minmax(0,1fr) 290px;
  gap: 28px;
  align-items: start;
}

.article {
  min-width: 0;
  border-radius: 22px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 8px 35px #253d6810;
}

.article-header {
  padding: 45px 54px 24px;
}

.article-header h1 {
  margin: 16px 0;
  font-size: clamp(27px,2.8vw,39px);
  line-height: 1.45;
}

.article-lead {
  font-size: 17px;
  line-height: 2;
  color: #61708c;
}

.article-meta {
  font-size: 12px;
  color: #8894a9;
}

.article-cover {
  margin: 0 54px;
}

.article-cover img {
  width: 100%;
  aspect-ratio: 1.65;
  object-fit: cover;
  border-radius: 16px;
}

.article-cover figcaption {
  margin-top: 8px;
  font-size: 12px;
  color: #8690a8;
}

.article-content {
  padding: 20px 54px 62px;
  font-size: 16px;
  line-height: 2.12;
}

.article-content > p, .article-content section p {
  color: #485671;
}

.article-content section {
  margin-top: 38px;
}

.article-content h2 {
  margin: 0 0 20px;
  padding-left: 15px;
  border-left: 4px solid #746cec;
  font-size: 23px;
  line-height: 1.5;
}

.article-sidebar {
  display: grid;
  gap: 20px;
}

.sidebar-panel {
  background: #fff;
  border-radius: 16px;
  padding: 24px;
}

.sidebar-panel h2 {
  font-size: 19px;
  margin: 8px 0 18px;
}

.sidebar-panel a {
  display: flex;
  gap: 10px;
  padding: 14px 0;
  border-top: 1px solid var(--border);
  font-size: 13px;
  line-height: 1.6;
}

.sidebar-panel a span {
  color: #6855cd;
}

.sidebar-panel p {
  color: var(--muted);
  font-size: 13px;
  line-height: 2;
}

.about-main {
  padding: 85px 0;
  background: #f7f9ff;
}

.narrow {
  max-width: 830px;
  padding: 60px;
  border-radius: 20px;
  background: #fff;
}

.about-main h1 {
  font-size: clamp(29px,3vw,43px);
}

.about-main h2 {
  margin-top: 40px;
  font-size: 24px;
}

.about-main p {
  color: #55617d;
  line-height: 2.15;
}
/* Responsive */
@media (max-width: 1050px) {
.nav-wrap {
  flex-direction: column;
  justify-content: center;
  padding-block: 16px;
  gap: 12px;
}

.nav {
  justify-content: center;
}

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

.story-body h3, .story-body p {
  min-height: 0;
}

.process-layout {
  gap: 50px;
}

.article-shell {
  grid-template-columns: minmax(0,1fr) 240px;
}

.article-header {
  padding: 36px 35px 20px;
}

.article-cover {
  margin-inline: 35px;
}

.article-content {
  padding: 18px 35px 48px;
}
}
@media (max-width: 720px) {
.wrap {
  width: min(calc(100% - 32px),var(--width));
}

.nav-wrap {
  align-items: stretch;
}

.brand {
  justify-content: center;
}

.nav {
  flex-wrap: nowrap;
  overflow-x: auto;
  justify-content: flex-start;
  gap: 21px;
  scrollbar-width: thin;
  padding: 2px 0 5px;
}

.nav a {
  flex: 0 0 auto;
}

.hero, .hero-inner {
  min-height: 560px;
}

.hero-inner {
  padding-block: 78px 80px;
}

.hero-bg {
  background-position: center, 60% center;
  background-image: linear-gradient(90deg,rgba(5,12,34,.96),rgba(5,12,34,.79) 74%,rgba(5,12,34,.6)),url('images/cosmos-1.webp');
}

.hero h1 {
  font-size: clamp(28px,6vw,37px);
}

.hero h1 span {
  font-size: .7em;
}

.hero-copy > p {
  font-size: 15px;
}

.section {
  padding-block: 65px;
}

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

.feature-strip-grid > div {
  min-height: 85px;
  padding: 15px 10px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.feature-strip-grid > div:nth-child(odd) {
  border-left: 1px solid rgba(255,255,255,.1);
}

.intro-layout,.process-layout,.faq-layout {
  grid-template-columns: 1fr;
  gap: 30px;
}

.section-topline {
  display: block;
}

.section-topline > p {
  max-width: none;
  margin-top: 10px;
}

.article-shell {
  grid-template-columns: 1fr;
}

.article-sidebar {
  grid-template-columns: 1fr 1fr;
}

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

.footer-grid > div:first-child {
  grid-column: 1/-1;
}

.narrow {
  padding: 32px 24px;
}
}
@media (max-width: 480px) {
.wrap {
  width: min(calc(100% - 28px),var(--width));
}

.brand strong {
  font-size: 17px;
}

.hero {
  min-height: 580px;
}

.hero-inner {
  min-height: 580px;
}

.section-kicker {
  letter-spacing: 1.2px;
  font-size: 10px;
}

.hero h1 {
  font-size: 27px;
  letter-spacing: 0;
}

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

.hero-tags {
  gap: 7px;
}

.hero-tags span {
  padding: 3px 9px;
}

.feature-strip-grid > div {
  grid-template-columns: 35px 1fr;
  gap: 0 8px;
}

.strip-icon {
  width: 34px;
  height: 34px;
  font-size: 19px;
}

.feature-strip-grid strong {
  font-size: 13px;
}

.feature-strip-grid small {
  font-size: 11px;
}

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

.story-image img {
  aspect-ratio: 1.75;
}

.story-body {
  padding: 19px;
}

.article-header {
  padding: 27px 22px 12px;
}

.article-cover {
  margin-inline: 22px;
}

.article-content {
  padding: 15px 22px 36px;
  font-size: 15px;
}

.article-content h2 {
  font-size: 21px;
}

.article-sidebar {
  grid-template-columns: 1fr;
}

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

.footer-grid > div:first-child {
  grid-column: auto;
}
}
@media (prefers-reduced-motion: reduce) {html {
  scroll-behavior: auto;
}

.story-card, .story-image img {
  transition: none;
}
}

/* =====================================================
   Repair layer: legibility, cards, and narrow viewports
   ===================================================== */
.story-image {
  background: linear-gradient(130deg, #10264d 0%, #42407c 55%, #8775b6 100%);
}
.story-image img {
  min-height: 145px;
  color: transparent;
}
.story-card:focus-within {
  outline: 2px solid #6554ca;
  outline-offset: 3px;
}
.hero h1 {
  word-break: normal;
  overflow-wrap: anywhere;
}
.article-content img {
  max-width: 100%;
}
@media (max-width: 480px) {
  .hero-copy { min-width: 0; }
  .hero h1 { line-height: 1.5; }
  .story-image img { min-height: 175px; }
  .feature-strip-grid > div { min-width: 0; }
}
