/* Homepage-only presentation. Shared research styles remain in main.css. */
.home-page .home-hero {
    padding: clamp(56px, 6vw, 86px) 0 clamp(52px, 5vw, 74px);
}
.home-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(280px, 0.88fr);
    align-items: center;
    gap: clamp(36px, 6vw, 78px);
}
.home-hero-copy { min-width: 0; }
.home-overline {
    margin-bottom: 15px;
    color: var(--accent);
    font: 0.75rem/1.5 var(--mono);
    letter-spacing: 0.11em;
    text-transform: uppercase;
}
.home-page h1 {
    max-width: 870px;
    font-size: clamp(3.15rem, 6.1vw, 5.85rem);
    line-height: 0.99;
    letter-spacing: -0.067em;
    text-wrap: balance;
}
.home-tagline {
    margin-top: 17px;
    color: rgba(247, 244, 255, 0.98);
    font-size: clamp(1.25rem, 2vw, 1.65rem);
    font-weight: 700;
}
.home-intro {
    max-width: 690px;
    margin-top: 13px;
    font-size: 1.02rem;
}
.home-question {
    margin-top: 18px;
    color: var(--accent);
    font-size: clamp(1.7rem, 2.8vw, 2.4rem);
    font-weight: 750;
    line-height: 1.15;
    letter-spacing: -0.035em;
}
.home-question + .home-intro { margin-top: 10px; }
.home-hero-copy .hero-actions { margin-top: 24px; }
.home-hero-signoff { color: var(--text); }
.home-page section.home-section {
    padding: clamp(60px, 8vw, 100px) 0;
}
.home-page .home-heading { max-width: 790px; margin-bottom: 34px; }
.home-page .home-heading h2 { margin-bottom: 18px; }
.home-page .home-heading > p { font-size: 1.045rem; max-width: 720px; }
.home-heading-emphasis {
    color: var(--text);
    font-weight: 700;
    font-size: clamp(1.25rem, 2.1vw, 1.65rem) !important;
}
.home-world-card {
    align-self: stretch;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--line-strong);
    border-radius: 24px;
    overflow: hidden;
    background: linear-gradient(180deg, #160f2a 0%, #0b091b 100%);
    box-shadow: 0 35px 90px rgba(0, 0, 0, 0.42);
}
.home-world-head, .home-world-foot {
    padding: 16px 21px;
    color: var(--muted);
    font: 0.72rem/1.5 var(--mono);
    letter-spacing: 0.035em;
}
.home-world-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid var(--line);
}
.home-world-status { color: var(--accent); white-space: nowrap; }
.home-world-sky {
    height: 148px;
    position: relative;
    overflow: hidden;
    background: radial-gradient(circle at 50% 20%, rgba(162, 105, 242, 0.25), transparent 39%),
                linear-gradient(180deg, #2b1b47, #17112d 65%, #0c0a1c);
}
.home-world-sky::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(#dbd3ff 0.7px, transparent 1px);
    background-size: 39px 29px;
    opacity: 0.3;
}
.home-world-moon {
    position: absolute;
    top: 22px;
    left: 57%;
    width: 66px;
    height: 66px;
    border-radius: 50%;
    background: radial-gradient(circle at 28% 24%, #e5ddff, #9d8af0 75%);
    box-shadow: 0 0 55px rgba(154, 112, 255, 0.30);
}
.home-world-horizon {
    position: absolute;
    z-index: 1;
    bottom: -92px;
    left: -12%;
    width: 130%;
    height: 160px;
    background: #241735;
    clip-path: polygon(0 60%, 14% 32%, 24% 48%, 39% 15%, 51% 52%, 67% 25%, 78% 42%, 91% 10%, 100% 46%, 100% 100%, 0 100%);
}
.home-world-horizon-front {
    z-index: 2;
    bottom: -116px;
    background: #100d21;
    transform: scaleX(-1);
}
.home-world-body { padding: 25px 24px 18px; flex: 1; }
.home-world-kicker {
    display: block;
    color: var(--accent);
    font: 0.7rem/1.5 var(--mono);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
.home-world-body h2 {
    margin: 10px 0 13px;
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    line-height: 1.05;
}
.home-world-body > p { margin-bottom: 24px; font-size: 0.96rem; }
.home-world-event {
    display: grid;
    grid-template-columns: 32px 1fr;
    gap: 10px;
    border-top: 1px solid var(--line);
    padding: 12px 0;
    color: var(--text);
    font-size: 0.91rem;
}
.home-world-event span:first-child { color: var(--accent); font-family: var(--mono); }
.home-world-foot { border-top: 1px solid var(--line); }
.home-systems { background: linear-gradient(180deg, transparent, rgba(var(--plasma-rgb), 0.032), transparent); }
.home-system-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 17px;
}
.home-system-card {
    grid-column: span 2;
    padding: clamp(22px, 2.7vw, 29px);
    display: flex;
    flex-direction: column;
    min-height: 360px;
}
/* The flagship owns the writing experience instead of presenting it as a separate product. */
.home-system-card.home-system-flagship {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: stretch;
    gap: clamp(24px, 4vw, 56px);
    min-height: 0;
    border-color: rgba(var(--accent-rgb), 0.24);
    background: linear-gradient(130deg, rgba(43, 26, 74, 0.94), rgba(13, 10, 29, 0.96) 70%);
}
.home-flagship-content {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 4px 0;
}
.home-flagship-content h3 {
    margin-bottom: 13px;
    font-size: clamp(2.6rem, 4.6vw, 4.05rem);
    line-height: 1.03;
    letter-spacing: -0.055em;
}
.home-page .home-flagship-content .system-label {
    color: var(--accent);
    font-weight: 700;
}
.home-flagship-content .home-system-line {
    font-size: clamp(1.04rem, 1.55vw, 1.23rem);
}
.home-flagship-writing {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: clamp(20px, 3vw, 32px);
    border: 1px solid rgba(182, 150, 246, 0.18);
    border-radius: 18px;
    background: rgba(var(--accent-rgb), 0.035);
}
.home-flagship-writing h4 {
    margin: 0 0 10px;
    font-size: clamp(1.3rem, 1.85vw, 1.58rem);
    letter-spacing: -0.03em;
}
.home-flagship-writing p + p { margin-top: 14px; }
.home-feature-status {
    display: block;
    margin-top: 18px;
    color: var(--accent);
    font: 0.76rem/1.5 var(--mono);
}
.home-system-card-wide { grid-column: span 3; min-height: 320px; }
.home-system-card:not(.home-system-flagship) h3 { font-size: 1.5rem; margin-bottom: 10px; }
.home-page .system-label { color: rgba(205, 184, 247, 0.90); }
.home-system-line { color: var(--text); font-weight: 650; margin-bottom: 15px; }
.home-system-card > p:not(.home-system-line) { font-size: 0.93rem; line-height: 1.65; }
.home-system-strong { margin-top: 18px; color: var(--text); font-weight: 650; }
.home-system-card .system-link {
    display: inline-flex;
    align-self: flex-start;
    align-items: center;
    gap: 8px;
    margin-top: auto;
    padding-top: 21px;
    text-decoration: underline;
    text-underline-offset: 4px;
}
.home-system-card .system-link:hover { color: var(--text); }
.home-vision-grid, .home-purpose-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
    gap: clamp(30px, 7vw, 100px);
    align-items: start;
}
.home-prose { display: grid; gap: 18px; }
.home-prose p { font-size: 1.025rem; }
.home-prose-closing { color: var(--text); font-weight: 700; font-size: 1.25rem !important; }
.home-experiences { background: rgba(255, 255, 255, 0.014); }
.home-example-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.home-example-card { padding: clamp(26px, 3.2vw, 38px); }
.home-example-number {
    display: inline-block;
    margin-bottom: 22px;
    color: var(--accent);
    font: 0.75rem/1.5 var(--mono);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.home-example-card h3 { font-size: clamp(1.38rem, 2.5vw, 1.95rem); margin-bottom: 17px; }
.home-example-card p + p { margin-top: 16px; }
.home-example-note { margin-top: 18px; font-size: 0.86rem; color: var(--muted); }
.home-status { border-top: 1px solid var(--line); }
.home-status-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.home-status-item {
    padding: 25px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.024);
    border-radius: 18px;
}
.home-status-item span { display: block; margin-bottom: 10px; color: var(--accent); font-weight: 700; }
.home-status-item p { font-size: 0.94rem; }
.home-contact-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 36px;
    padding: clamp(28px, 4vw, 52px);
}
.home-contact-panel h2 { font-size: clamp(2rem, 3.8vw, 3.25rem); }
.home-contact-panel p { margin-top: 20px; max-width: 680px; }
.home-contact-actions { display: flex; flex-direction: column; align-items: stretch; gap: 12px; min-width: 220px; }
.home-contact-actions .email { margin-top: 6px; text-align: center; font-size: 0.85rem; }
.home-page .nav-links a:focus-visible,
.home-page .button:focus-visible,
.home-page .system-link:focus-visible,
.home-page .email:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 4px;
}
@media (max-width: 1050px) {
    .home-hero-grid { grid-template-columns: 1fr; }
    .home-world-card { width: min(100%, 640px); }
    .home-system-card { grid-column: span 3; }
    .home-system-card.home-system-flagship { grid-column: 1 / -1; }
    .home-system-card:last-child { grid-column: span 6; }
    .home-vision-grid, .home-purpose-grid, .home-contact-panel { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
    .home-page .home-hero { padding: 50px 0 56px; }
    .home-hero-grid { gap: 32px; }
    .home-page .nav-inner { padding: 12px 0; }
    .home-page .nav-links { font-size: 0.86rem; line-height: 1.25; }
    .home-page h1 { font-size: clamp(2.8rem, 11vw, 4.3rem); }
    .home-system-card, .home-system-card-wide, .home-system-card:last-child { grid-column: span 6; min-height: 0; }
    .home-system-card.home-system-flagship { grid-column: 1 / -1; grid-template-columns: 1fr; }
    .home-example-grid, .home-status-grid { grid-template-columns: 1fr; }
    .home-contact-actions { min-width: 0; }
    .home-page .nav-inner { grid-template-columns: 1fr; }
    .home-page .nav-links { flex-wrap: wrap; gap: 9px 16px; }
    .home-page .home-hero-copy .hero-actions { gap: 10px; }
    .home-page .home-hero-copy .hero-actions .button { padding: 11px 13px; font-size: 0.87rem; }
    .home-page #archivarium, .home-page #systems, .home-page #vision, .home-page #contact { scroll-margin-top: 146px; }
    .home-page .home-world-sky { height: 112px; }
}
@media (prefers-reduced-motion: reduce) {
    .home-page *, .home-page *::before, .home-page *::after { scroll-behavior: auto !important; transition: none !important; }
}

.home-page #archivarium, .home-page #systems, .home-page #vision, .home-page #contact { scroll-margin-top: 94px; }
@media (max-width: 720px) {
    .home-page #archivarium, .home-page #systems, .home-page #vision, .home-page #contact { scroll-margin-top: 146px; }
}

.home-page .home-inline-link {
    display: inline-flex;
    width: fit-content;
    gap: 9px;
    align-items: center;
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 5px;
    font-weight: 700;
}
.home-page .home-inline-link:hover { color: var(--text); }
.home-page .home-contact-qualifier { font-size: 0.91rem; }
.home-page .home-contact-hint { color: var(--muted); font-size: 0.85rem; line-height: 1.5; }
.home-page .home-inline-link:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}
