.hero-attribution {
    margin-top: 8px;
    color: var(--cyan);
    font-family: var(--font-display);
    font-weight: var(--weight-display);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.platform-strip {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
}

.platform-strip a,
.footer-links a {
    --button-cut-line: var(--line);

    position: relative;
    min-height: 48px;
    min-width: 48px;
    border: 1px solid var(--line);
    background: rgba(11, 14, 22, 0.62);
    display: grid;
    place-items: center;
    color: var(--text);
    font-family: var(--font-display);
    font-weight: var(--weight-display);
    text-decoration: none;
    clip-path: var(--clip-se-sm);
    transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.platform-strip a:hover,
.footer-links a:hover {
    border-color: rgba(157, 92, 255, 0.55);
    background: rgba(157, 92, 255, 0.12);
    color: var(--violet-soft);
    box-shadow: 0 0 10px rgba(157, 92, 255, 0.25);
}

.platform-strip a::after,
.footer-links a::after,
.terminal-link::after {
    content: "";
    position: absolute;
    right: -2px;
    bottom: 4px;
    width: var(--cut-sm-diagonal);
    height: 1px;
    background: var(--button-cut-line);
    pointer-events: none;
    transform: rotate(-45deg);
    transform-origin: center;
}

.platform-strip img {
    display: block;
    width: 28px;
    height: 28px;
    object-fit: contain;
}

.terminal-section,
.page-intro {
    padding: 20px;
    position: relative;
}

.section-head {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
    margin-bottom: 18px;
}

.news-grid,
.release-list,
.timeline,
.contact-form {
    display: grid;
    gap: 12px;
}

.terminal-card,
.timeline article {
    --card-cut-line: rgba(219, 222, 236, 0.14);

    position: relative;
    border: 1px solid var(--card-cut-line);
    background: var(--panel-soft);
    clip-path: polygon(0 0, var(--notch-md) 0, calc(var(--notch-md) + 4px) 3px, 100% 3px, 100% calc(100% - var(--cut-md)), calc(100% - var(--cut-md)) 100%, 0 100%);
}

.terminal-card::after,
.timeline article::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(157, 92, 255, 0.24), rgba(56, 214, 221, 0.28)) calc(var(--notch-md) + 4px) 3px / calc(100% - var(--notch-md) - 18px) 1px no-repeat;
    pointer-events: none;
}

.terminal-card::before,
.timeline article::before {
    content: "";
    position: absolute;
    right: -3px;
    bottom: 7px;
    width: var(--cut-md-diagonal);
    height: 1px;
    background: var(--card-cut-line);
    pointer-events: none;
    transform: rotate(-45deg);
    transform-origin: center;
}

.terminal-card,
.timeline article {
    padding: 18px;
}

.terminal-card h3,
.timeline p,
.contact-form p {
    margin-top: 12px;
}

.news-thumb {
    display: block;
    width: 100%;
    max-height: 160px;
    object-fit: cover;
    margin-bottom: 12px;
    border: 1px solid rgba(219, 222, 236, 0.1);
    clip-path: var(--clip-cut-md);
}

.terminal-link {
    --button-cut-line: rgba(199, 169, 255, 0.42);
    --glow-violet: rgba(157, 92, 255, 0.45);

    display: inline-grid;
    place-items: center;
    position: relative;
    min-height: 42px;
    margin-top: 18px;
    padding: 0 18px;
    border: 1px solid rgba(199, 169, 255, 0.42);
    background: rgba(199, 169, 255, 0.13);
    color: var(--violet-soft);
    font-family: var(--font-display);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: var(--weight-display);
    text-transform: uppercase;
    clip-path: var(--clip-se-sm);
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.terminal-link:hover {
    border-color: var(--glow-violet);
    background: rgba(199, 169, 255, 0.22);
    color: #fff;
    box-shadow: 0 0 14px var(--glow-violet), inset 0 0 8px rgba(157, 92, 255, 0.12);
}

.terminal-link:focus-visible {
    outline: 2px solid var(--glow-violet);
    outline-offset: 3px;
}

.terminal-link-filled,
.terminal-link-attention {
    --button-cut-line: rgba(56, 214, 221, 0.72);
    --glow-cyan: rgba(56, 214, 221, 0.55);

    border-color: var(--button-cut-line);
    background: rgba(56, 214, 221, 0.16);
    color: var(--cyan);
}

.terminal-link-filled:hover,
.terminal-link-attention:hover {
    border-color: var(--glow-cyan);
    background: rgba(56, 214, 221, 0.26);
    color: #fff;
    box-shadow: 0 0 16px var(--glow-cyan), inset 0 0 8px rgba(56, 214, 221, 0.12);
}

.terminal-link-filled:focus-visible,
.terminal-link-attention:focus-visible {
    outline: 2px solid var(--glow-cyan);
    outline-offset: 3px;
}

.about-section {
    display: grid;
    gap: 18px;
}

.about-feature,
.about-story,
.about-card {
    --card-cut-line: rgba(219, 222, 236, 0.14);

    position: relative;
    border: 1px solid var(--card-cut-line);
    background:
        radial-gradient(circle at 86% 22%, rgba(56, 214, 221, 0.14) 0 2px, transparent 3px),
        radial-gradient(circle at 18% 72%, rgba(157, 92, 255, 0.16), transparent 11rem),
        linear-gradient(135deg, rgba(13, 16, 25, 0.84), rgba(9, 11, 18, 0.58));
    clip-path: polygon(0 0, var(--notch-md) 0, calc(var(--notch-md) + 4px) 3px, 100% 3px, 100% calc(100% - var(--cut-md)), calc(100% - var(--cut-md)) 100%, 0 100%);
}

.about-feature::after,
.about-story::after,
.about-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(157, 92, 255, 0.24), rgba(56, 214, 221, 0.28)) calc(var(--notch-md) + 4px) 3px / calc(100% - var(--notch-md) - 18px) 1px no-repeat;
    pointer-events: none;
}

.about-feature::before,
.about-story::before,
.about-card::before {
    content: "";
    position: absolute;
    right: -3px;
    bottom: 7px;
    width: var(--cut-md-diagonal);
    height: 1px;
    background: var(--card-cut-line);
    pointer-events: none;
    transform: rotate(-45deg);
    transform-origin: center;
}

.about-feature {
    display: grid;
    gap: 18px;
    padding: 18px;
}

.about-story {
    display: grid;
    grid-template-columns: minmax(180px, 0.54fr) 1fr;
    gap: clamp(16px, 3vw, 26px);
    align-items: center;
    padding: 18px;
}

.about-story-right {
    grid-template-columns: 1fr minmax(190px, 0.62fr);
}

.about-card {
    padding: 20px;
}

.about-media {
    position: relative;
    z-index: 1;
    margin: 0;
    overflow: hidden;
    border: 1px solid rgba(199, 169, 255, 0.3);
    background: rgba(5, 6, 10, 0.72);
    box-shadow:
        0 14px 32px rgba(0, 0, 0, 0.32),
        0 0 28px rgba(157, 92, 255, 0.12);
    clip-path: var(--clip-cut-md);
}

.about-media::after {
    content: "";
    position: absolute;
    right: -3px;
    bottom: 7px;
    width: var(--cut-md-diagonal);
    height: 1px;
    background: rgba(199, 169, 255, 0.3);
    pointer-events: none;
    transform: rotate(-45deg);
    transform-origin: center;
}

.about-media img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 100%;
    object-fit: cover;
}

.about-media-wide {
    width: min(100%, 600px);
    justify-self: center;
    aspect-ratio: 16 / 9;
}

.about-story .about-media {
    aspect-ratio: auto;
}

.about-story-right .about-media {
    aspect-ratio: auto;
}

.about-copy {
    position: relative;
    z-index: 1;
}

.about-copy h3,
.about-card h3 {
    margin-top: 8px;
}

.about-copy p,
.about-card p {
    margin-top: 10px;
}

/* ── Gear spec table (Clipping Point of No Return) ── */
.about-card .gear-table {
    width: 100%;
    margin-top: 16px;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.about-card .gear-table th,
.about-card .gear-table td {
    padding: 8px 12px;
    border: 1px solid rgba(219, 222, 236, 0.14);
    text-align: left;
    vertical-align: top;
}

.about-card .gear-table th {
    background: rgba(157, 92, 255, 0.12);
    color: var(--violet-soft);
    font-family: var(--font-display);
    font-weight: var(--weight-display);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    white-space: nowrap;
}

.page-intro {
    padding: 30px 24px;
}

.timeline span,
.form-note {
    color: var(--cyan);
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: var(--weight-display);
    text-transform: uppercase;
}

.contact-form label {
    display: grid;
    gap: 8px;
    color: var(--violet-soft);
    font-family: var(--font-display);
    font-weight: var(--weight-display);
    text-transform: uppercase;
    font-size: 0.75rem;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    border: 1px solid var(--line);
    background: rgba(4, 5, 9, 0.7);
    color: var(--text);
    padding: 13px 14px;
    font: inherit;
}

/* Honeypot: visually hidden but not display:none */
.contact-hp {
    position: absolute;
    left: -9999px;
    opacity: 0;
    pointer-events: none;
    height: 0;
    overflow: hidden;
}

.contact-feedback {
    padding: 14px 18px;
    margin-bottom: 14px;
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: var(--weight-display);
    text-transform: uppercase;
}

.contact-feedback-success {
    border: 1px solid rgba(56, 214, 221, 0.42);
    background: rgba(56, 214, 221, 0.1);
    color: var(--cyan);
}

.contact-feedback-error {
    border: 1px solid rgba(255, 86, 86, 0.42);
    background: rgba(255, 86, 86, 0.08);
    color: #ff6b6b;
}

/* News detail page — tame the h1, it's not a landing hero */
.news-detail-intro h1 {
    font-size: 1.5rem;
    line-height: 1.15;
}

/* News detail image constraint */
.news-detail-media img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}

/* Markdown-rendered content */
.news-detail-content {
    color: rgba(219, 222, 236, 0.88);
    line-height: 1.7;
    font-size: 0.875rem;
}

.news-detail-content h1,
.news-detail-content h2,
.news-detail-content h3,
.news-detail-content h4 {
    margin-top: 1.4em;
    margin-bottom: 0.5em;
    color: var(--violet-soft);
    font-family: var(--font-display);
    font-weight: var(--weight-display);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.news-detail-content h1 { font-size: 1.25rem; }
.news-detail-content h2 { font-size: 1.25rem; }
.news-detail-content h3 { font-size: 1rem; }
.news-detail-content h4 { font-size: 1rem; }

.news-detail-content p {
    margin-top: 0.7em;
    margin-bottom: 0.7em;
}

.news-detail-content ul,
.news-detail-content ol {
    margin: 0.7em 0;
    padding-left: 1.5em;
}

.news-detail-content li {
    margin-bottom: 0.35em;
}

.news-detail-content strong {
    color: #fff;
}

.news-detail-content a {
    color: var(--cyan);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.news-detail-content a:hover {
    color: var(--violet-soft);
}

.news-detail-content code {
    padding: 2px 6px;
    border-radius: 3px;
    background: rgba(199, 169, 255, 0.15);
    color: var(--violet-soft);
    font-size: 0.84em;
}

.news-detail-content pre {
    margin: 1em 0;
    padding: 14px 18px;
    border: 1px solid rgba(219, 222, 236, 0.14);
    border-radius: 4px;
    background: rgba(4, 5, 9, 0.7);
    overflow-x: auto;
    font-size: 0.875rem;
    line-height: 1.5;
}

.news-detail-content pre code {
    padding: 0;
    background: none;
    color: inherit;
}

.news-detail-content blockquote {
    margin: 1em 0;
    padding: 10px 18px;
    border-left: 3px solid var(--violet);
    background: rgba(157, 92, 255, 0.08);
    color: rgba(219, 222, 236, 0.74);
}

.news-detail-content hr {
    margin: 1.4em 0;
    border: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--line), transparent);
}

.news-detail-content table {
    width: 100%;
    margin: 1em 0;
    border-collapse: collapse;
    font-size: 0.875rem;
}

.news-detail-content th,
.news-detail-content td {
    padding: 8px 12px;
    border: 1px solid rgba(219, 222, 236, 0.14);
    text-align: left;
}

.news-detail-content th {
    background: rgba(157, 92, 255, 0.12);
    color: var(--violet-soft);
    font-family: var(--font-display);
    font-weight: var(--weight-display);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.06em;
}

.news-detail-content img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0.7em 0;
}

.news-detail-content .md-task-item {
    display: flex;
    align-items: baseline;
    gap: 8px;
    cursor: default;
}

.site-footer {
    margin-top: 24px;
    padding: 18px;
    text-align: center;
}

.footer-line {
    height: 1px;
    margin-bottom: 14px;
    background: linear-gradient(90deg, transparent, var(--violet), var(--cyan), transparent);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin-top: 14px;
}

.footer-links a {
    min-height: 34px;
    padding: 0 12px;
    font-size: 0.875rem;
}

@media (max-width: 680px) {
    .site-shell {
        padding-inline: 14px;
    }

    .brand-logo {
        width: min(440px, 94vw);
        max-height: 115px;
    }

    .main-nav {
        justify-content: flex-start;
        overflow-x: auto;
    }

    .main-nav a {
        padding-inline: 13px;
    }

    .hero-panel {
        grid-template-columns: 1fr;
    }

    .release-art {
        max-width: 320px;
        margin-inline: auto;
    }

    .release-art::after {
        display: none;
    }

    .platform-strip {
        justify-content: center;
    }

    .about-feature,
    .about-story,
    .about-story-right {
        grid-template-columns: 1fr;
    }

    .about-media-wide {
        width: 100%;
    }

    .about-story-right .about-media {
        order: -1;
    }

}
