/* Network page, in the umbrella theme. Loaded after home.css, which supplies the colour
   and type tokens, the top navigation, the skip link and the reveal-on-scroll rules.
   The hero canvas (js/home-hero.js, single-form mode) draws the animated block DAG. */

:root {
    --accent: var(--accent-network);
    --nav-height: 67px;
    --subnav-height: 49px;
    --live: #8fd6a8;
    --panel: rgba(241, 240, 236, 0.035);
}

html {
    scroll-padding-top: calc(var(--nav-height) + var(--subnav-height) + 10px);
}

html.sk-smooth-scroll {
    scroll-behavior: smooth;
}

/* Resets carry no specificity, so any class below can set its own spacing. */
:where(.network-page) :where(h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote) {
    margin: 0;
}

:where(.network-page) :where(ul, ol) {
    padding: 0;
    list-style: none;
}

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

.container {
    width: min(100%, 1560px);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.anchor-alias {
    display: block;
    height: 0;
}

.home-nav__links a[aria-current='page'] {
    color: var(--accent-network);
}

/* The umbrella bar is always solid here, since the section bar sits right under it. */
.network-page .home-nav {
    background: rgba(10, 11, 13, 0.82);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
}

/* ── Status dots ─────────────────────────────────────────── */

.sk-dot {
    position: relative;
    display: inline-block;
    flex: none;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--muted);
}

.sk-dot--live { background: var(--live); }
.sk-dot--validate { background: var(--accent-lab); }
.sk-dot--build { background: var(--accent-network); }

.sk-dot--next {
    background: transparent;
    box-shadow: inset 0 0 0 1.5px var(--muted);
}

.sk-dot--live {
    box-shadow: 0 0 0 4px rgba(143, 214, 168, 0.18);
}

/* ── Section navigation ──────────────────────────────────── */

.net-subnav {
    position: fixed;
    inset: var(--nav-height) 0 auto 0;
    z-index: 9;
    display: flex;
    align-items: center;
    gap: clamp(16px, 2.4vw, 36px);
    height: var(--subnav-height);
    padding: 0 var(--gutter);
    border-block: 1px solid var(--line);
    background: rgba(10, 11, 13, 0.82);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    font-size: 0.86rem;
}

.net-subnav__title {
    flex: none;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--accent);
}

.landing-nav__links {
    display: flex;
    gap: clamp(12px, 1.9vw, 28px);
    min-width: 0;
}

.landing-nav__links a {
    display: block;
    padding: 14px 0;
    color: var(--muted);
    text-decoration: none;
    white-space: nowrap;
    border-bottom: 1px solid transparent;
    margin-bottom: -1px;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.landing-nav__links a:hover,
.landing-nav__links a:focus-visible {
    color: var(--paper);
}

.landing-nav__links a[aria-current='true'] {
    color: var(--paper);
    border-bottom-color: var(--accent);
}

.landing-nav__right {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-left: auto;
}

.landing-nav__update {
    padding: 6px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--paper);
    text-decoration: none;
    white-space: nowrap;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.landing-nav__update:hover,
.landing-nav__update:focus-visible {
    border-color: var(--accent);
    color: var(--accent);
}

.navbar__toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 40px;
    height: 40px;
    padding: 0 9px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: transparent;
    color: var(--paper);
    cursor: pointer;
}

.navbar__toggle span {
    display: block;
    height: 1.5px;
    background: currentColor;
    transition: transform 0.25s ease, opacity 0.2s ease;
}

.navbar__toggle.is-open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.navbar__toggle.is-open span:nth-child(2) { opacity: 0; }
.navbar__toggle.is-open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

.mobile-nav {
    position: fixed;
    inset: calc(var(--nav-height) + var(--subnav-height)) 0 auto 0;
    z-index: 8;
    display: grid;
    max-height: calc(100vh - var(--nav-height) - var(--subnav-height));
    overflow-y: auto;
    padding: 8px var(--gutter) 20px;
    border-bottom: 1px solid var(--line);
    background: var(--ink);
}

.mobile-nav[hidden] {
    display: none;
}

.mobile-nav a {
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
    font-family: var(--font-display);
    font-size: 1.15rem;
    text-decoration: none;
}

.mobile-nav a:last-child {
    border-bottom: 0;
    color: var(--accent);
}

@media (max-width: 1160px) {
    .landing-nav__links,
    .landing-nav__update {
        display: none;
    }

    .navbar__toggle {
        display: flex;
    }
}

@media (min-width: 1161px) {
    .mobile-nav {
        display: none !important;
    }
}

/* ── Buttons and links ───────────────────────────────────── */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 24px;
    border: 1px solid var(--accent);
    border-radius: 999px;
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 500;
    text-decoration: none;
    transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}

.btn-primary {
    background: var(--accent);
    color: var(--ink);
}

.btn-primary:hover,
.btn-primary:focus-visible {
    background: var(--paper);
    border-color: var(--paper);
}

.btn-outline {
    border-color: var(--line);
    color: var(--paper);
}

.btn-outline:hover,
.btn-outline:focus-visible {
    border-color: var(--accent);
    color: var(--accent);
}

.sk-link {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    color: var(--accent);
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

.sk-link span {
    transition: transform 0.25s ease;
}

.sk-link:hover,
.sk-link:focus-visible {
    border-bottom-color: currentColor;
}

.sk-link:hover span {
    transform: translateX(4px);
}

/* ── Hero ────────────────────────────────────────────────── */

.sk-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: 1fr auto;
    grid-template-areas:
        'text visual'
        'base base';
    column-gap: clamp(16px, 3vw, 48px);
    min-height: 100vh;
    min-height: 100svh;
    padding: calc(var(--nav-height) + var(--subnav-height) + clamp(8px, 2vh, 28px)) var(--gutter) 0;
}

.sk-hero__inner {
    grid-area: text;
    align-self: center;
    position: relative;
    z-index: 1;
    padding-block: clamp(8px, 2vh, 24px);
}

.sk-hero__visual {
    grid-area: visual;
    position: relative;
    min-height: 300px;
}

/* The canvas is part of this page's hero, not a fixed backdrop as on the home page. */
.sk-hero__visual .hero-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

/* The pause control sits in the bottom corner of the picture. */
.sk-hero > .motion-toggle {
    position: relative;
    left: auto;
    right: auto;
    bottom: auto;
    grid-area: visual;
    align-self: end;
    justify-self: end;
    z-index: 2;
}

.net-hero__still {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.js:not(.no-hero) .net-hero__still {
    display: none;
}

.still-link,
.still-spine {
    stroke: var(--accent);
    stroke-width: 1.2;
    opacity: 0.35;
}

.still-spine {
    stroke-width: 2.4;
    opacity: 0.5;
}

.still-block,
.still-union {
    fill: rgba(157, 203, 255, 0.16);
    stroke: var(--accent);
    stroke-width: 1.6;
}

.still-block--new,
.still-union--new {
    fill: none;
    opacity: 0.55;
}

.still-block--out {
    stroke-dasharray: 4 5;
    opacity: 0.35;
}

.landing-announce {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    margin-bottom: clamp(18px, 3.4vh, 32px);
    padding: 8px 16px 8px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: var(--panel);
    font-size: 0.86rem;
    color: #c9cbd0;
    text-decoration: none;
    transition: border-color 0.2s ease;
}

.landing-announce strong {
    color: var(--paper);
    font-weight: 600;
}

.landing-announce:hover,
.landing-announce:focus-visible {
    border-color: var(--accent);
}

.landing-announce__short {
    display: none;
}

.sk-hero h1 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(2.3rem, min(4.5vw, 6.8vh), 4.7rem);
    line-height: 1;
    letter-spacing: -0.035em;
    text-wrap: balance;
}

.sk-hero h1 span {
    color: var(--accent);
}

.sk-hero__lede {
    max-width: 35rem;
    margin-top: clamp(18px, 3.4vh, 34px);
    font-size: clamp(1rem, 1.25vw, 1.14rem);
    color: #c9cbd0;
}

.sk-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: clamp(20px, 3.6vh, 36px);
}

.sk-hero__base {
    grid-area: base;
    position: relative;
    z-index: 1;
    margin-top: clamp(12px, 2vh, 24px);
}

.sk-facts {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-top: 1px solid var(--line);
}

.sk-fact {
    padding: clamp(14px, 2.4vh, 22px) clamp(12px, 1.6vw, 24px) clamp(16px, 2.8vh, 26px);
    border-left: 1px solid var(--line);
}

.sk-fact:first-child {
    padding-left: 0;
    border-left: 0;
}

.sk-fact dt {
    font-family: var(--font-mono);
    font-size: 0.68rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
}

.sk-fact dd {
    display: grid;
    gap: 2px;
    margin-top: 6px;
}

.sk-fact strong {
    font-family: var(--font-display);
    font-size: clamp(1.1rem, 1.7vw, 1.5rem);
    font-weight: 600;
    letter-spacing: -0.01em;
}

.sk-fact dd span {
    font-size: 0.84rem;
    line-height: 1.4;
    color: var(--muted);
}

.sk-fact--now dt {
    color: var(--live);
}

.sk-fact--now strong::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    margin-right: 10px;
    border-radius: 50%;
    background: var(--live);
    vertical-align: 0.14em;
}

/* ── Sections ────────────────────────────────────────────── */

.sk-section {
    position: relative;
    padding-block: clamp(56px, 8.4vh, 92px);
    border-top: 1px solid var(--line);
}

.sk-label {
    display: flex;
    align-items: baseline;
    gap: 0.7em;
    margin-bottom: clamp(16px, 2.6vh, 26px);
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
}

.sk-label span {
    color: var(--accent);
}

.sk-section h2 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: clamp(2rem, 4.4vw, 3.9rem);
    line-height: 1.02;
    letter-spacing: -0.03em;
    text-wrap: balance;
}

.sk-section h3 {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 1.28rem;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.sk-intro {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: clamp(20px, 5vw, 80px);
    align-items: end;
}

.sk-intro__body {
    display: grid;
    gap: 18px;
    justify-items: start;
    font-size: 1.06rem;
    color: #c9cbd0;
}

.sk-intro--row {
    grid-template-columns: 1fr auto;
}

/* Why: three statements side by side, divided by hairlines. */

.sk-pillars {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: clamp(32px, 5.5vh, 64px);
    border-top: 1px solid var(--line);
}

.sk-pillar {
    display: grid;
    align-content: start;
    gap: 14px;
    padding: clamp(24px, 3vw, 40px) clamp(20px, 2.6vw, 40px) 4px;
    border-left: 1px solid var(--line);
    color: #c9cbd0;
}

.sk-pillar:first-child {
    padding-left: 0;
    border-left: 0;
}

.sk-pillar__index {
    font-family: var(--font-display);
    font-size: clamp(3rem, 6vw, 5.2rem);
    font-weight: 600;
    line-height: 0.9;
    color: transparent;
    -webkit-text-stroke: 1px rgba(157, 203, 255, 0.55);
}

.sk-pillar h3 {
    color: var(--paper);
}

.sk-evidence,
.sk-layer__state,
.sk-track__lead {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: var(--font-mono);
    font-size: 0.76rem;
    letter-spacing: 0.02em;
    color: var(--muted);
}

.sk-evidence {
    margin-top: 6px;
    padding-top: 14px;
    border-top: 1px dashed var(--line);
}

/* The name: body copy beside the heading, the quote set large below. */

.sk-name__intro {
    grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
    align-items: start;
}

.sk-name__body {
    display: grid;
    gap: 18px;
    max-width: 44rem;
    font-size: 1.08rem;
    color: #c9cbd0;
}

.sk-name__sinhala {
    font-family: 'Noto Sans Sinhala', var(--font-body);
    color: var(--paper);
}

.sk-pullquote {
    grid-column: 1 / -1;
    margin-top: clamp(16px, 4vh, 40px);
    padding-left: clamp(18px, 3vw, 40px);
    border-left: 2px solid var(--accent-lab);
}

.sk-pullquote p {
    font-family: var(--font-display);
    font-size: clamp(1.7rem, 4.2vw, 3.6rem);
    font-weight: 500;
    line-height: 1.08;
    letter-spacing: -0.025em;
    text-wrap: balance;
}

/* How it works: four slabs stacked on the base layer. */

.sk-split {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: clamp(28px, 6vw, 96px);
    align-items: start;
}

.sk-split__intro {
    position: sticky;
    top: calc(var(--nav-height) + var(--subnav-height) + 40px);
}

.sk-split h2 {
    font-size: clamp(1.9rem, 3.5vw, 3.1rem);
}

.sk-split__body {
    margin-top: 22px;
    font-size: 1.06rem;
    color: #c9cbd0;
}

.sk-stack {
    display: grid;
    gap: 10px;
}

.sk-layer {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 8px 28px;
    padding: 22px 26px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(241, 240, 236, 0.055), rgba(241, 240, 236, 0.018));
    box-shadow: 0 1px 0 rgba(241, 240, 236, 0.07) inset, 0 14px 30px -18px rgba(0, 0, 0, 0.9);
    color: #c9cbd0;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

/* Each slab is a little wider than the one above it, down to the base. */
.sk-layer:nth-child(1) { margin-inline: 9%; }
.sk-layer:nth-child(2) { margin-inline: 6%; }
.sk-layer:nth-child(3) { margin-inline: 3%; }

.sk-layer:hover {
    transform: translateY(-3px);
    border-color: rgba(157, 203, 255, 0.45);
}

.sk-layer--base {
    border-color: rgba(157, 203, 255, 0.5);
    background: linear-gradient(180deg, rgba(157, 203, 255, 0.14), rgba(157, 203, 255, 0.04));
}

.sk-layer__name {
    grid-row: span 2;
    display: grid;
    align-content: start;
    gap: 6px;
}

.sk-layer__name span {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
}

.sk-layer__name h3 {
    color: var(--paper);
}

/* Economy: three steps on one line of flow. */

.sk-loop {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(20px, 3vw, 48px);
    margin-top: clamp(36px, 6vh, 64px);
    counter-reset: step;
}

.sk-loop::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 15px;
    height: 1px;
    background: linear-gradient(90deg, var(--accent), rgba(157, 203, 255, 0.25));
}

.sk-loop li {
    position: relative;
    display: grid;
    align-content: start;
    gap: 12px;
    padding-top: 52px;
    color: #c9cbd0;
    counter-increment: step;
}

.sk-loop li::before {
    content: counter(step);
    position: absolute;
    left: 0;
    top: 0;
    display: grid;
    place-items: center;
    width: 31px;
    height: 31px;
    border: 1px solid var(--accent);
    border-radius: 50%;
    background: var(--ink);
    font-family: var(--font-mono);
    font-size: 0.78rem;
    color: var(--accent);
}

/* An arrowhead where each step hands over to the next. */
.sk-loop li:not(:last-child)::after {
    content: '';
    position: absolute;
    right: calc(clamp(20px, 3vw, 48px) / -2 - 4px);
    top: 11px;
    width: 8px;
    height: 8px;
    border-top: 1px solid var(--accent);
    border-right: 1px solid var(--accent);
    transform: rotate(45deg);
}

.sk-loop__step {
    font-family: var(--font-mono);
    font-size: 0.74rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
}

.sk-loop h3 {
    color: var(--paper);
}

.sk-earned {
    display: grid;
    grid-template-columns: minmax(0, 0.5fr) minmax(0, 1.5fr);
    gap: 14px clamp(20px, 5vw, 80px);
    margin-top: clamp(36px, 6vh, 64px);
    padding: clamp(24px, 3.4vw, 44px);
    border: 1px solid var(--line);
    border-radius: 18px;
    background: var(--panel);
    color: #c9cbd0;
}

.sk-earned h3 {
    grid-row: span 2;
    font-size: clamp(1.5rem, 2.6vw, 2.2rem);
    color: var(--paper);
}

.sk-details summary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    color: var(--accent);
    font-weight: 500;
    list-style: none;
}

.sk-details summary::-webkit-details-marker {
    display: none;
}

.sk-details summary::before {
    content: '+';
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border: 1px solid currentColor;
    border-radius: 50%;
    font-family: var(--font-mono);
    font-size: 0.9rem;
    line-height: 1;
}

.sk-details[open] summary::before {
    content: '\2212';
}

.sk-details p {
    margin-top: 12px;
}

/* Global scale: the two figures carry the section. */

.sk-horizon {
    display: grid;
    margin-top: clamp(32px, 5.5vh, 64px);
    border-top: 1px solid var(--line);
}

.sk-horizon p {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 6px 32px;
    padding-block: clamp(14px, 2.6vh, 28px);
    border-bottom: 1px solid var(--line);
}

.sk-horizon strong {
    font-family: var(--font-display);
    font-size: clamp(2.05rem, min(9vw, 13vh), 6.6rem);
    font-weight: 600;
    line-height: 0.95;
    letter-spacing: -0.045em;
    font-variant-numeric: tabular-nums;
    background: linear-gradient(90deg, var(--paper) 30%, var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.sk-horizon span {
    max-width: 17rem;
    font-family: var(--font-mono);
    font-size: 0.8rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--muted);
}

.sk-rules {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(28px, 4vw, 56px) clamp(24px, 4vw, 64px);
    margin-top: clamp(32px, 5.5vh, 64px);
    counter-reset: rule;
}

.sk-rules li {
    display: grid;
    align-content: start;
    gap: 10px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    color: #c9cbd0;
    counter-increment: rule;
}

.sk-rules li::before {
    content: '0' counter(rule);
    font-family: var(--font-mono);
    font-size: 0.74rem;
    letter-spacing: 0.1em;
    color: var(--accent);
}

.sk-rules h3 {
    color: var(--paper);
}

/* Nexus: the app list beside the current build in a window frame. */

.sk-nexus {
    display: grid;
    grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
    gap: clamp(28px, 5vw, 72px);
    align-items: start;
    margin-top: clamp(32px, 5.5vh, 64px);
}

.sk-apps {
    display: grid;
}

.sk-apps li {
    display: grid;
    gap: 8px;
    padding-block: 22px;
    border-top: 1px solid var(--line);
    color: #c9cbd0;
}

.sk-apps li:last-child {
    border-bottom: 1px solid var(--line);
}

.sk-app__kind {
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
}

.sk-apps h3 {
    color: var(--paper);
}

.sk-screen {
    overflow: hidden;
    border: 1px solid rgba(241, 240, 236, 0.2);
    border-radius: 14px;
    background: var(--ink-raised);
    box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.95), 0 0 0 6px rgba(241, 240, 236, 0.03),
        0 0 90px -30px rgba(157, 203, 255, 0.35);
}

.sk-screen__bar {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 11px 16px;
    border-bottom: 1px solid var(--line);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
}

/* Three window dots, drawn from one element. */
.sk-screen__bar::before {
    content: '';
    width: 8px;
    height: 8px;
    margin-right: 30px;
    border-radius: 50%;
    background: rgba(241, 240, 236, 0.3);
    box-shadow: 14px 0 0 rgba(241, 240, 236, 0.3), 28px 0 0 rgba(241, 240, 236, 0.3);
}

.sk-screen__bar span:last-child {
    margin-left: auto;
    color: var(--live);
}

.sk-screen img {
    width: 100%;
}

/* Status: a timeline, with the current step lit. */

.sk-track {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(20px, 3vw, 48px);
    margin-top: clamp(36px, 6vh, 64px);
}

.sk-track::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 6px;
    height: 1px;
    background: linear-gradient(90deg, var(--live) 0%, var(--live) 30%, var(--line) 36%);
}

.sk-track__step {
    position: relative;
    display: grid;
    align-content: start;
    gap: 12px;
    padding-top: 40px;
    color: #c9cbd0;
}

.sk-track__step::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 13px;
    height: 13px;
    border: 1.5px solid var(--muted);
    border-radius: 50%;
    background: var(--ink);
}

.sk-track__step--now::before {
    border-color: var(--live);
    background: var(--live);
    box-shadow: 0 0 0 5px rgba(143, 214, 168, 0.16);
}

.sk-track__when {
    font-family: var(--font-mono);
    font-size: 0.74rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
}

.sk-track__step--now .sk-track__when {
    color: var(--live);
}

.sk-track__step h3 {
    font-size: clamp(1.5rem, 2.4vw, 2rem);
    color: var(--paper);
}

.sk-track__step ul {
    display: grid;
    gap: 8px;
    margin-top: 4px;
}

.sk-track__step ul li {
    position: relative;
    padding-left: 18px;
    font-size: 0.96rem;
}

.sk-track__step ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.72em;
    width: 8px;
    height: 1px;
    background: var(--muted);
}

/* Updates: latest posts, filled in by js/blog.js. */

.sk-updates {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(16px, 2vw, 28px);
    margin-top: clamp(36px, 6vh, 64px);
}

/* The post cards themselves are styled in css/blog.css, shared with the blog index. */

.sk-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px 48px;
    margin-top: clamp(40px, 6vh, 72px);
    padding: clamp(24px, 3.4vw, 44px);
    border: 1px solid rgba(157, 203, 255, 0.35);
    border-radius: 22px;
    background:
        radial-gradient(120% 160% at 100% 0%, rgba(157, 203, 255, 0.16), transparent 60%),
        var(--panel);
}

.sk-cta h2 {
    font-size: clamp(1.8rem, 3.6vw, 3rem);
}

.sk-cta p {
    max-width: 36rem;
    margin-top: 12px;
    color: #c9cbd0;
}

.sk-cta__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* ── Footer ──────────────────────────────────────────────── */

.net-footer {
    border-top: 1px solid var(--line);
    padding-block: clamp(36px, 5vh, 52px) 24px;
    font-size: 0.92rem;
    color: var(--muted);
}

.footer__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
    gap: 36px clamp(28px, 6vw, 96px);
}

.footer__brand .home-nav__logo {
    color: var(--paper);
}

.footer__tagline {
    max-width: 22rem;
    margin-top: 16px;
}

.footer__cols {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px;
}

.footer__col h4 {
    margin-bottom: 14px;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--paper);
}

.footer__col ul {
    display: grid;
    gap: 9px;
}

.footer__col a {
    text-decoration: none;
    transition: color 0.2s ease;
}

.footer__col a:hover,
.footer__col a:focus-visible {
    color: var(--paper);
}

.footer__bottom {
    margin-top: clamp(32px, 6vh, 56px);
    padding-top: 22px;
    border-top: 1px solid var(--line);
}

/* ── Medium and narrow screens ───────────────────────────── */

@media (max-width: 899px) {
    .sk-intro,
    .sk-name__intro,
    .sk-split,
    .sk-nexus,
    .sk-earned,
    .footer__inner {
        grid-template-columns: minmax(0, 1fr);
    }

    .sk-intro {
        align-items: start;
    }

    .sk-intro--row {
        grid-template-columns: minmax(0, 1fr);
        justify-items: start;
    }

    .sk-split__intro {
        position: static;
    }

    .sk-earned h3 {
        grid-row: auto;
    }

    .sk-pillars,
    .sk-rules,
    .sk-updates {
        grid-template-columns: minmax(0, 1fr);
    }

    .sk-pillar,
    .sk-pillar:first-child {
        padding: 24px 0;
        border-left: 0;
        border-bottom: 1px solid var(--line);
    }

    .sk-layer {
        grid-template-columns: minmax(0, 1fr);
        padding: 20px;
    }

    .sk-layer:nth-child(1) { margin-inline: 18px; }
    .sk-layer:nth-child(2) { margin-inline: 12px; }
    .sk-layer:nth-child(3) { margin-inline: 6px; }

    .sk-layer__name {
        grid-row: auto;
    }

    /* The flow and the timeline turn to run down the page. */
    .sk-loop,
    .sk-track {
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
    }

    .sk-loop::before,
    .sk-track::before {
        left: 15px;
        right: auto;
        top: 0;
        bottom: 0;
        width: 1px;
        height: auto;
        background: linear-gradient(180deg, var(--accent), rgba(157, 203, 255, 0.2));
    }

    .sk-track::before {
        left: 6px;
        background: linear-gradient(180deg, var(--live) 0%, var(--live) 30%, var(--line) 40%);
    }

    .sk-loop li {
        padding: 4px 0 30px 52px;
    }

    .sk-loop li:last-child {
        padding-bottom: 0;
    }

    .sk-loop li:not(:last-child)::after {
        right: auto;
        left: 11px;
        top: auto;
        bottom: 12px;
        transform: rotate(135deg);
    }

    .sk-track__step {
        padding: 0 0 32px 36px;
    }

    .sk-track__step:last-child {
        padding-bottom: 0;
    }

    .sk-track__step::before {
        top: 3px;
    }

}

@media (max-width: 759px) {
    :root {
        --nav-height: 59px;
    }

    .sk-hero {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: auto auto auto;
        grid-template-areas:
            'visual'
            'text'
            'base';
        min-height: 0;
        padding-top: calc(var(--nav-height) + var(--subnav-height) + 8px);
    }

    /* The picture takes what a short screen can spare, so the hero actions stay in view. */
    .sk-hero__visual {
        min-height: 0;
        height: clamp(64px, 100vh - 664px, 280px);
        height: clamp(64px, 100svh - 664px, 280px);
    }

    .sk-hero h1 {
        font-size: clamp(1.85rem, 9.4vw, 2.6rem);
    }

    .landing-announce {
        flex-wrap: nowrap;
        margin-bottom: 16px;
        padding: 6px 12px;
        font-size: 0.8rem;
        white-space: nowrap;
    }

    .sk-section {
        padding-block: 48px;
    }

    .landing-announce__full {
        display: none;
    }

    .landing-announce__short {
        display: inline;
    }

    .sk-hero__actions {
        flex-wrap: nowrap;
        gap: 10px;
    }

    .sk-hero__actions .btn {
        flex: 1 1 0;
        padding: 13px 10px;
        font-size: 0.96rem;
        white-space: nowrap;
    }

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

    .sk-fact,
    .sk-fact:first-child {
        padding: 16px 12px 18px 0;
        border-left: 0;
        border-bottom: 1px solid var(--line);
    }

    .sk-fact:nth-child(even) {
        padding-left: 14px;
        border-left: 1px solid var(--line);
    }

    .sk-horizon span {
        max-width: none;
    }

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

    .sk-cta__actions .btn {
        flex: 1 1 auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sk-layer,
    .sk-link span {
        transition: none;
    }
}
