/* ─── Section spacing ─────────────────────────────────────────── */
.services,
.profile,
.spotlight,
.faq,
.contact {
    margin-top: 3.1rem;
}

.portal-services {
    margin-top: 0.6rem;
}

/* ─── H2 spacing (shared context) ───────────────────────────── */
.portal-main .services > h2,
.page-universe .services > h2,
.page-contact h2 {
    margin-bottom: 1rem;
}

/* ─── Split band (3-col accent row) ─────────────────────────── */
.split-band {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.accent-panel {
    min-height: 100%;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.accent-panel h3 {
    font-size: 1.08rem;
}

.accent-panel p:last-child {
    margin-bottom: 0;
}

/* ─── Two-column grid ────────────────────────────────────────── */
.grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

/* ─── Card ───────────────────────────────────────────────────── */
.card {
    border: 1px solid var(--line);
    background: var(--panel);
    border-radius: 16px;
    padding: 1.15rem;
    backdrop-filter: blur(6px);
    position: relative;
    overflow: hidden;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

/* ─── Shared panel border/bg (profile, faq, contact, spotlight) */
.profile,
.faq details,
.contact,
.spotlight {
    border: 1px solid var(--line);
    background: var(--panel);
    border-radius: 16px;
    padding: 1.15rem;
    backdrop-filter: blur(6px);
}

.card p,
.profile p,
.faq p,
.contact p {
    color: var(--muted);
}

/* ─── Profile section ────────────────────────────────────────── */
.profile {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 1.2rem;
}

.cv-profile {
    margin-top: 2rem;
}

.profile-note {
    margin-top: 1rem;
    padding: 0.95rem 1rem;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(5, 22, 46, 0.48);
}

.profile-note p {
    margin: 0;
}

.chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1rem;
}

.chips span {
    border: 1px solid var(--line);
    background: rgba(5, 22, 46, 0.7);
    color: var(--cyan-soft);
    border-radius: 999px;
    padding: 0.35rem 0.7rem;
    font-size: 0.86rem;
}

/* ─── Timeline ───────────────────────────────────────────────── */
.timeline {
    position: relative;
    margin-top: 0.4rem;
    padding-left: 1rem;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 0.2rem;
    top: 0.2rem;
    bottom: 0.2rem;
    width: 1px;
    background: var(--line);
}

.timeline-item {
    position: relative;
    padding: 0 0 1rem 1.15rem;
}

.timeline-item::before {
    content: "";
    position: absolute;
    left: -0.12rem;
    top: 0.35rem;
    width: 0.6rem;
    height: 0.6rem;
    border-radius: 999px;
    background: var(--cyan-soft);
    box-shadow: 0 0 0 5px rgba(142, 243, 255, 0.08);
}

.timeline-item:last-child {
    padding-bottom: 0;
}

.timeline-period {
    margin: 0 0 0.25rem;
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--cyan-soft);
}

.timeline-item h4,
.mini-panel h4 {
    margin: 0 0 0.35rem;
    font-family: "Orbitron", sans-serif;
    font-size: 1rem;
}

.timeline-item p,
.mini-panel li,
.mini-panel p {
    color: var(--muted);
    line-height: 1.65;
}

.profile-panels {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.85rem;
    margin-top: 1.2rem;
}

.mini-panel {
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(5, 22, 46, 0.38);
    padding: 0.95rem 1rem;
    position: relative;
    overflow: hidden;
    transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.mini-panel ul {
    margin: 0;
    padding-left: 1.1rem;
}

.mini-panel p {
    margin: 0;
}

/* ─── Contact panel (inner shadow accent) ────────────────────── */
.contact {
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

/* ─── Spotlight ──────────────────────────────────────────────── */
.spotlight {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: 1.3fr 1fr;
}

.spotlight-bg {
    background: radial-gradient(circle at 60% 50%, rgba(59, 232, 255, 0.28), transparent 65%);
}

.spotlight ul {
    margin: 0;
    padding-left: 1.2rem;
    color: var(--muted);
    line-height: 1.7;
}

/* ─── FAQ ────────────────────────────────────────────────────── */
.faq details + details {
    margin-top: 0.75rem;
}

summary {
    cursor: pointer;
    font-weight: 700;
    color: var(--ink);
}

/* ─── Shared glass-panel base (signal-card, metrics, visuals) ── */
.signal-card,
.hero-metrics article,
.method-step,
.board-column,
.preview-sheet,
.editorial-column article,
.dashboard-shell,
.process-flow span {
    border: 1px solid var(--line);
    background: rgba(5, 22, 45, 0.56);
    border-radius: 16px;
    backdrop-filter: blur(8px);
}

/* ─── Signal card ────────────────────────────────────────────── */
.signal-card {
    padding: 1rem 1.1rem;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.signal-value {
    display: block;
    font-family: "Orbitron", sans-serif;
    font-size: clamp(1.6rem, 3vw, 2.3rem);
    color: var(--cyan-soft);
    margin-bottom: 0.4rem;
}

.signal-card p {
    margin: 0;
    color: var(--muted);
}

/* ─── Hero metrics grid ──────────────────────────────────────── */
.hero-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
    margin-top: 1.2rem;
}

.hero-metrics article {
    padding: 0.85rem;
}

.hero-metrics span,
.method-step span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.1rem;
    height: 2.1rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: var(--cyan-soft);
    font-family: "Orbitron", sans-serif;
    margin-bottom: 0.7rem;
}

.hero-metrics p,
.method-step p,
.editorial-column p,
.preview-sheet p {
    margin: 0;
    color: var(--muted);
}

/* ─── Visual centring wrappers ───────────────────────────────── */
.hero-dashboard,
.process-visual,
.editorial-preview,
.contact-preview {
    display: grid;
    place-items: center;
}

/* ─── Dashboard shell ────────────────────────────────────────── */
.dashboard-shell {
    width: min(28rem, 100%);
    padding: 1.2rem;
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.32);
}

.dashboard-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
    color: var(--ink);
}

.dashboard-label {
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted);
    font-size: 0.76rem;
}

.dashboard-value {
    color: var(--cyan-soft);
    font-family: "Orbitron", sans-serif;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.55rem;
}

.dashboard-grid span,
.dashboard-pulses span {
    aspect-ratio: 1;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: linear-gradient(145deg, rgba(9, 36, 72, 0.72), rgba(7, 19, 36, 0.4));
}

.dashboard-grid span:nth-child(3n) {
    background: linear-gradient(145deg, rgba(40, 108, 174, 0.75), rgba(7, 25, 49, 0.42));
}

.dashboard-pulses {
    display: flex;
    gap: 0.9rem;
    margin-top: 1rem;
}

.dashboard-pulses span {
    width: 4.1rem;
    aspect-ratio: auto;
    height: 0.6rem;
    border-radius: 999px;
    animation: pulseTrack 3.8s ease-in-out infinite;
}

.dashboard-pulses span:nth-child(2) { animation-delay: -1s; }
.dashboard-pulses span:nth-child(3) { animation-delay: -2s; }

/* ─── Process flow visual ────────────────────────────────────── */
.process-flow {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    width: min(30rem, 100%);
}

.process-flow span {
    display: grid;
    place-items: center;
    min-height: 7rem;
    font-family: "Orbitron", sans-serif;
    position: relative;
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.22);
}

.process-bridge {
    width: min(24rem, 82%);
    height: 2px;
    margin-top: 1rem;
    background: linear-gradient(90deg, transparent, var(--cyan-soft), transparent);
    position: relative;
}

.process-bridge::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 18%;
    width: 4.8rem;
    height: 0.55rem;
    border-radius: 999px;
    background: var(--cyan-soft);
    transform: translateY(-50%);
    filter: blur(1px);
    animation: flowMarker 4.6s ease-in-out infinite;
}

/* ─── Preview sheet ──────────────────────────────────────────── */
.preview-sheet {
    width: min(25rem, 100%);
    padding: 1.15rem;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.26);
}

.preview-sheet h3 {
    margin: 0.85rem 0 0.65rem;
}

.preview-sheet ul {
    margin: 0;
    padding-left: 1rem;
    color: var(--muted);
}

.preview-tag,
.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.32rem 0.62rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: var(--cyan-soft);
    background: rgba(255, 255, 255, 0.05);
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.status-pill-muted {
    color: var(--ink);
}

/* ─── Method rail ────────────────────────────────────────────── */
.method-rail,
.transformation-panel,
.editorial-layout {
    margin-top: 3.1rem;
    border: 1px solid var(--line);
    background: var(--panel);
    border-radius: 18px;
    padding: 1.3rem;
    backdrop-filter: blur(8px);
    position: relative;
    overflow: hidden;
}

.method-rail {
    display: grid;
    grid-template-columns: 0.9fr 1.4fr;
    gap: 1.1rem;
}

.method-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.8rem;
}

.method-step {
    padding: 1rem;
}

/* ─── Transformation panel ───────────────────────────────────── */
.transformation-panel,
.editorial-layout {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 1rem;
    align-items: center;
}

.transformation-board {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 4rem minmax(0, 1fr);
    gap: 0.9rem;
    align-items: center;
}

.board-column {
    padding: 1rem;
    display: grid;
    gap: 0.7rem;
}

.board-column span {
    padding: 0.65rem 0.75rem;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 12px;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.04);
}

.board-arrow {
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--cyan-soft), transparent);
    position: relative;
}

.board-arrow::after {
    content: "";
    position: absolute;
    right: 0.2rem;
    top: 50%;
    width: 0.8rem;
    height: 0.8rem;
    border-top: 2px solid var(--cyan-soft);
    border-right: 2px solid var(--cyan-soft);
    transform: translateY(-50%) rotate(45deg);
}

/* ─── Editorial layout ───────────────────────────────────────── */
.editorial-layout {
    align-items: stretch;
}

.editorial-side {
    display: grid;
    gap: 0.85rem;
}

.editorial-column article {
    padding: 1rem;
}

/* ─── Hover sheen on all raised panels ──────────────────────── */
.card::before,
.mini-panel::before,
.contact-form-panel::before,
.thanks-panel::before,
.method-rail::before,
.transformation-panel::before,
.editorial-layout::before {
    content: "";
    position: absolute;
    inset: -1px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 30%, transparent 70%, rgba(255, 255, 255, 0.04));
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s ease;
}

.card:hover,
.mini-panel:hover,
.contact-form-panel:hover,
.thanks-panel:hover,
.method-rail:hover,
.transformation-panel:hover,
.editorial-layout:hover {
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.16);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.26);
}

.card:hover::before,
.mini-panel:hover::before,
.contact-form-panel:hover::before,
.thanks-panel:hover::before,
.method-rail:hover::before,
.transformation-panel:hover::before,
.editorial-layout:hover::before {
    opacity: 1;
}
