/* ==========================================================================
   Axiom Science Homepage — Original Architectural Layout (Distinct from Kyanic)
   Zero video, ultra-minimal monochrome UI + borderless v0 Life-Science Plates
   ========================================================================== */

/* --- 01. Asymmetric Workbench Gateway Hero (Rounded Start Card + v0 Plate) --- */
.ax-hero {
  padding-top: clamp(28px, 4.2vw, 56px);
  padding-bottom: clamp(72px, 8.5vw, 120px);
}

.ax-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(0, 0.94fr);
  gap: clamp(40px, 5.5vw, 96px);
  align-items: center;
}

.ax-hero-left {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.ax-hero-title {
  margin-top: 0;
  font-family: var(--font-serif);
  font-size: clamp(36px, calc(36px + 24 * (100vw - 390px) / 1530), 60px);
  font-weight: 400;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: balance;
}

.ax-hero-title strong {
  font-family: var(--font-sans);
  font-weight: 600;
  display: block;
}

.ax-hero-title span {
  display: block;
}

.ax-hero-lead {
  margin-top: clamp(18px, 2.2vw, 24px);
  font-family: var(--font-serif);
  font-size: clamp(17.5px, 1.45vw, 21px);
  line-height: 1.66;
  color: var(--ink-body);
  max-width: 34em;
}

/* Restored Original Axiom Rounded Login Card (Harmonized on #FAF9EB Xuan Paper) */
.ax-auth-panel {
  margin-top: clamp(28px, 3.2vw, 40px);
  width: min(100%, 448px);
  padding: 28px;
  background: var(--surface);
  border: 1px solid #CECBC2;
  border-radius: 32px;
  box-shadow: 0 8px 28px rgba(20, 20, 19, 0.04);
  text-align: center;
  scroll-margin-top: calc(var(--header-height) + 28px);
}

.ax-auth-panel h2 {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 400;
  line-height: 1.4;
  margin: 0 0 22px;
  color: var(--ink);
}

.ax-auth-form {
  display: block;
}

.ax-auth-form input {
  width: 100%;
  min-height: 44px;
  padding: 9px 14px;
  background: #FFFFFF;
  border: 1px solid #CECBC2;
  border-radius: 10px;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.5;
  transition: border-color 0.16s var(--ease), box-shadow 0.16s var(--ease);
}

.ax-auth-form input::placeholder {
  color: #8A8781;
}

.ax-auth-form input:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 2px rgba(20, 20, 19, 0.08);
}

.password-field {
  position: relative;
  margin: 12px 0 17px;
}

.password-field input {
  padding-right: 60px;
}

.password-field button {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  min-height: 28px;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 12px;
  color: var(--ink-muted);
  transition: color 0.16s var(--ease), background-color 0.16s var(--ease);
}

.password-field button:hover {
  color: var(--ink);
  background: rgba(20, 20, 19, 0.05);
}

.auth-message {
  text-align: left;
  font-size: 13px;
  line-height: 1.6;
  color: var(--cinnabar-deep);
  margin: 0 0 12px;
  padding: 9px 12px;
  border-radius: 8px;
  background: rgba(212, 107, 76, 0.08);
}

.ax-auth-submit {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 9px 16px;
  background: #141413;
  border: 1px solid #141413;
  border-radius: 10px;
  color: #FFFFFF;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
  box-shadow: 0 2px 2px rgba(0, 0, 0, 0.03);
  transition: background-color 0.18s var(--ease), border-color 0.18s var(--ease), opacity 0.18s var(--ease);
}

.ax-auth-submit:hover:not(:disabled) {
  background: #30302F;
  border-color: #30302F;
}

.ax-auth-submit:disabled {
  opacity: 0.55;
  cursor: wait;
}

.entry-note {
  margin-top: 11px;
  font-size: 12px;
  line-height: 1.6;
  color: #73716C;
}

#account-toggle {
  margin-left: 3px;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
  font-size: inherit;
  transition: opacity 0.18s var(--ease);
}

#account-toggle:hover {
  opacity: 0.65;
}

.login-guide {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 18px;
  font-size: 12px;
  color: var(--ink-muted);
  transition: color 0.18s var(--ease);
}

.login-guide:hover {
  color: var(--ink);
}

/* Right Hero v0 Life-Science Archival Plate */
.ax-hero-right {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.ax-hero-plate {
  width: 100%;
  max-width: 640px;
  margin-left: auto;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--surface);
}

.ax-hero-plate img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* --- Shared Quiet Section Head --- */
.ax-band {
  padding-bottom: clamp(72px, 9vw, 128px);
}

.ax-band-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
  border-top: 1px solid var(--hairline);
  border-bottom: 1px solid var(--hairline);
  margin-bottom: clamp(28px, 3.6vw, 48px);
}

.ax-band-head h2 {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.54;
  letter-spacing: 0.015em;
  color: var(--ink);
}

/* --- 02. Four-Column Architectural Capability Ledger (Zero Card Boxes, Hairline Grid) --- */
.ax-ledger-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid var(--hairline);
}

.ax-ledger-col {
  display: flex;
  flex-direction: column;
  padding: 28px 26px 30px 0;
  transition: background-color 0.2s var(--ease);
}

.ax-ledger-col + .ax-ledger-col {
  padding-left: 26px;
  border-left: 1px solid var(--hairline);
}

.ax-ledger-col:hover {
  background: rgba(242, 240, 225, 0.55);
}

.ax-ledger-num {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-faint);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
}

.ax-ledger-col h3 {
  margin-top: 16px;
  font-family: var(--font-sans);
  font-size: clamp(19px, 1.45vw, 22px);
  font-weight: 600;
  line-height: 1.28;
  letter-spacing: -0.012em;
  color: var(--ink);
}

.ax-ledger-sub {
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--ink-muted);
  font-family: var(--font-mono);
}

.ax-ledger-desc {
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--ink-body);
}

.ax-ledger-more {
  margin-top: auto;
  padding-top: 22px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
}

.ax-ledger-col:hover .ax-ledger-more .arrow {
  transform: translateX(3px);
}

.ax-ledger-more .arrow {
  display: inline-block;
  transition: transform 0.2s var(--ease);
}

/* --- Centered Bare-Text-Only Plate Overlays (Zero Box, Zero Border, Top-Right ↗) --- */
.ax-plate-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  padding: 28px;
  text-align: center;
}

.ax-plate-overlay.is-light {
  background: radial-gradient(ellipse 74% 44% at 50% 50%, rgba(250, 249, 235, 0.86) 0%, rgba(250, 249, 235, 0.44) 52%, rgba(250, 249, 235, 0) 84%);
  color: var(--ink);
}

.ax-plate-overlay.is-dark {
  background: radial-gradient(ellipse 72% 46% at 50% 50%, rgba(20, 20, 19, 0.62) 0%, rgba(20, 20, 19, 0.28) 55%, rgba(20, 20, 19, 0) 86%);
  color: var(--paper);
}

.ax-plate-overlay-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 4px 6px;
  background: transparent;
  border: 0;
  font-family: var(--font-sans);
  font-size: clamp(18px, 1.55vw, 22px);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: inherit;
  transition: opacity 0.22s var(--ease);
}

.ax-plate-overlay.is-light .ax-plate-overlay-link {
  text-shadow: 0 0 24px rgba(250, 249, 235, 0.98), 0 0 10px rgba(250, 249, 235, 0.94), 0 1px 2px rgba(250, 249, 235, 0.9);
}

.ax-plate-overlay.is-dark .ax-plate-overlay-link {
  text-shadow: 0 2px 20px rgba(20, 20, 19, 0.92), 0 1px 4px rgba(20, 20, 19, 0.8);
}

.ax-plate-overlay-link .arrow-ne {
  display: inline-block;
  font-weight: 500;
  transition: transform 0.22s var(--ease);
}

.ax-plate-overlay-link:hover,
.ax-plate-card:hover .ax-plate-overlay-link,
.ax-spread-plate-link:hover .ax-plate-overlay-link {
  opacity: 0.78;
}

.ax-plate-overlay-link:hover .arrow-ne,
.ax-plate-card:hover .ax-plate-overlay-link .arrow-ne,
.ax-spread-plate-link:hover .ax-plate-overlay-link .arrow-ne {
  transform: translate(2.5px, -2.5px);
}

/* --- 03 & 04. Alternating Asymmetric Editorial Feature Spreads (4:3 Landscape v0 Plates) --- */
.ax-spread {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(0, 0.82fr);
  gap: clamp(36px, 5.2vw, 88px);
  align-items: center;
  padding-top: clamp(44px, 5.5vw, 72px);
  border-top: 1px solid var(--hairline);
}

.ax-spread.is-reversed {
  grid-template-columns: minmax(0, 0.84fr) minmax(0, 1.16fr);
}

.ax-spread-media {
  min-width: 0;
}

.ax-spread-plate,
.ax-spread-plate-link {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--surface);
}

.ax-spread-plate img,
.ax-spread-plate-link img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s var(--ease);
}

.ax-spread-plate:hover img,
.ax-spread-plate-link:hover img {
  transform: scale(1.018);
}

.ax-spread-copy {
  min-width: 0;
}

.ax-spread-copy h2 {
  font-family: var(--font-sans);
  font-size: clamp(26px, 2.5vw, 38px);
  font-weight: 600;
  line-height: 1.24;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-wrap: balance;
}

.ax-spread-copy .ax-serif-body {
  margin-top: 18px;
  font-family: var(--font-serif);
  font-size: clamp(16.5px, 1.25vw, 18.5px);
  line-height: 1.78;
  color: var(--ink-body);
}

/* Hairline Mode Rows inside Spread A */
.ax-tier-list {
  margin-top: 26px;
  border-top: 1px solid var(--hairline);
}

.ax-tier-row {
  display: grid;
  grid-template-columns: 76px 86px minmax(0, 1fr);
  gap: 14px;
  align-items: baseline;
  padding: 12px 0;
  border-bottom: 1px solid var(--hairline);
  font-size: 13.5px;
}

.ax-tier-row strong {
  font-weight: 600;
  color: var(--ink);
}

.ax-tier-row code {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-muted);
}

.ax-tier-row span {
  color: var(--ink-body);
}

/* 2x2 Hairline Telemetry Grid inside Spread B */
.ax-eval-grid {
  margin-top: 26px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--hairline);
}

.ax-eval-cell {
  padding: 16px 16px 16px 0;
  border-bottom: 1px solid var(--hairline);
}

.ax-eval-cell:nth-child(even) {
  padding-left: 18px;
  border-left: 1px solid var(--hairline);
}

.ax-eval-val {
  font-family: var(--font-sans);
  font-size: clamp(24px, 2.2vw, 32px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.ax-eval-label {
  margin-top: 5px;
  font-size: 12.5px;
  color: var(--ink-muted);
}

/* --- 05. Asymmetric Archive Diptych (7 cols) + Release Chronicle (5 cols) --- */
.ax-chronicle-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.38fr) minmax(0, 0.82fr);
  gap: clamp(36px, 5vw, 84px);
  align-items: start;
}

.ax-diptych {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 2.6vw, 32px);
}

.ax-plate-card {
  display: block;
  min-width: 0;
}

.ax-plate-box {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--surface);
}

.ax-plate-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.65s var(--ease);
}

.ax-plate-card:hover .ax-plate-box img {
  transform: scale(1.022);
}

.ax-log-list {
  border-top: 1px solid var(--hairline);
}

.ax-log-row {
  display: grid;
  grid-template-columns: 84px minmax(0, 1fr);
  gap: 16px;
  align-items: baseline;
  padding: 18px 0;
  border-bottom: 1px solid var(--hairline);
  transition: background-color 0.18s var(--ease);
}

.ax-log-row:hover {
  background: rgba(242, 240, 225, 0.55);
}

.ax-log-ver {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.ax-log-body strong {
  display: block;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink);
}

.ax-log-body span {
  display: block;
  margin-top: 3px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-muted);
}

/* --- 06. Quiet Closing Invitation Strip (All Borderless Quiet Text Links + Arrows) --- */
.ax-closing-strip {
  padding: clamp(32px, 4vw, 52px) clamp(26px, 3.6vw, 48px);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px 36px;
}

.ax-closing-strip h2 {
  font-family: var(--font-serif);
  font-size: clamp(24px, 2.4vw, 34px);
  font-weight: 400;
  line-height: 1.3;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.ax-closing-strip p {
  margin-top: 8px;
  font-size: 14px;
  color: var(--ink-muted);
}

.ax-closing-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px 28px;
}

/* --- Domain Migration Dialog (Preserved for axiom3.cn, Rounded Style) --- */
.domain-notice {
  width: min(480px, calc(100% - 40px));
  margin: auto;
  padding: 32px;
  border: 1px solid #CECBC2;
  border-radius: 24px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 24px 80px rgba(20, 20, 19, 0.16);
  text-align: left;
}

.domain-notice::backdrop {
  background: rgba(20, 20, 19, 0.36);
  backdrop-filter: blur(4px);
}

.domain-notice-kicker {
  margin: 0 0 12px;
  color: var(--ink-muted);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.domain-notice h2 {
  margin: 0 0 16px;
  font-family: var(--font-serif);
  font-size: 28px;
  line-height: 1.35;
  font-weight: 400;
}

.domain-notice p {
  font-size: 14.5px;
  line-height: 1.75;
  color: var(--ink-body);
}

.domain-notice-note {
  margin-top: 12px;
  font-size: 13px;
  color: var(--ink-muted);
}

.domain-notice-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 26px;
}

.domain-notice-actions .outline-btn,
.domain-notice-actions .ink-btn {
  border-radius: 10px;
}

/* --- Responsive Breakpoints --- */
@media (max-width: 1120px) {
  .ax-ledger-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ax-ledger-col {
    padding: 24px 20px 26px 0;
    border-bottom: 1px solid var(--hairline);
  }
  .ax-ledger-col:nth-child(odd) {
    border-left: 0;
    padding-left: 0;
  }
  .ax-ledger-col:nth-child(even) {
    padding-left: 24px;
    border-left: 1px solid var(--hairline);
  }
  .ax-ledger-grid {
    border-bottom: 0;
  }
  .ax-chronicle-grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }
}

@media (max-width: 960px) {
  .ax-hero-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }
  .ax-auth-panel {
    width: 100%;
    max-width: 480px;
    border-radius: 26px;
  }
  .ax-hero-plate {
    max-width: 100%;
    margin-left: 0;
  }
  .ax-spread,
  .ax-spread.is-reversed {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .ax-spread.is-reversed .ax-spread-media {
    order: -1;
  }
}

@media (max-width: 680px) {
  .ax-auth-panel {
    padding: 23px 20px;
    border-radius: 24px;
  }
  .ax-ledger-grid {
    grid-template-columns: 1fr;
  }
  .ax-ledger-col,
  .ax-ledger-col:nth-child(even) {
    padding: 22px 0;
    border-left: 0;
  }
  .ax-tier-row {
    grid-template-columns: 64px minmax(0, 1fr);
  }
  .ax-tier-row span {
    grid-column: 1 / -1;
    margin-top: -6px;
  }
  .ax-diptych {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .ax-log-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}
