/* ===== Singularis Nexus — Landing tokens ===== */
.sn-landing {
    --bg-0: oklch(0.08 0.015 260);
    --bg-1: oklch(0.11 0.018 260);
    --bg-2: oklch(0.14 0.022 260);
    --bg-3: oklch(0.18 0.025 258);
    --line: oklch(0.28 0.022 258 / 0.6);
    --line-soft: oklch(0.28 0.022 258 / 0.25);
    --fg-0: oklch(0.94 0.005 260);
    --fg-1: oklch(0.82 0.008 260);
    --fg-2: oklch(0.62 0.01 260);
    --fg-3: oklch(0.45 0.012 260);
    --accent: oklch(0.82 0.06 240);
    --accent-glow: oklch(0.82 0.08 240 / 0.35);
    --serif: "Instrument Serif", "Times New Roman", serif;
    --sans: "Geist", ui-sans-serif, system-ui, -apple-system, sans-serif;
    --mono: "JetBrains Mono", ui-monospace, monospace;
}

/* Page-level only when this stylesheet is the active one */
html.sn-landing-html {
    background: oklch(0.08 0.015 260);
    scroll-behavior: smooth;
}
.sn-landing {
    background: var(--bg-0);
    color: var(--fg-1);
    font-family: var(--sans);
    font-weight: 300;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    min-height: 100vh;
    margin: 0;
    padding: 0;
}
.sn-landing *, .sn-landing *::before, .sn-landing *::after { box-sizing: border-box; }
.sn-landing ::selection { background: var(--accent-glow); color: var(--fg-0); }

/* ===== Layout ===== */
.sn-landing .container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 32px;
}
@media (max-width: 640px) { .sn-landing .container { padding: 0 22px; } }

/* ===== Nav ===== */
.sn-landing .nav {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 50;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    background: oklch(0.08 0.015 260 / 0.55);
    border-bottom: 1px solid var(--line-soft);
    transition: background 0.4s ease, border-color 0.4s ease;
}
.sn-landing .nav.scrolled {
    background: oklch(0.07 0.012 260 / 0.85);
    border-color: oklch(0.28 0.022 258 / 0.5);
}
.sn-landing .nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}
.sn-landing .brand {
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--fg-0);
    text-decoration: none;
}
.sn-landing .brand-mark { width: 36px; height: 22px; display: block; color: var(--fg-0); }
.sn-landing .brand-text {
    font-family: var(--sans);
    font-size: 13px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    font-weight: 500;
    color: var(--fg-0);
}
.sn-landing .nav-links {
    display: flex;
    gap: 36px;
    list-style: none;
    margin: 0;
    padding: 0;
}
.sn-landing .nav-links a {
    color: var(--fg-2);
    text-decoration: none;
    font-size: 13px;
    letter-spacing: 0.04em;
    transition: color 0.3s ease;
}
.sn-landing .nav-links a:hover { color: var(--fg-0); }
.sn-landing .nav-cta {
    font-family: var(--sans);
    font-size: 13px;
    letter-spacing: 0.05em;
    color: var(--fg-0);
    text-decoration: none;
    padding: 10px 20px;
    border: 1px solid var(--line);
    border-radius: 999px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.sn-landing .nav-cta:hover {
    border-color: var(--accent);
    box-shadow: 0 0 24px var(--accent-glow);
}
@media (max-width: 820px) { .sn-landing .nav-links { display: none; } }

/* ===== Hero ===== */
.sn-landing .hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    padding: 120px 0 80px;
}
.sn-landing .hero-canvas-wrap { position: absolute; inset: 0; pointer-events: none; }
.sn-landing #starfield {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0.7;
}
.sn-landing .hero-singularity {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, calc(-50% - 200px));
    width: min(640px, 82vw);
    height: auto;
    pointer-events: none;
    opacity: 0.92;
}
.sn-landing .hero-vignette {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 80% 60% at 50% 50%, transparent 0%, var(--bg-0) 75%),
        radial-gradient(ellipse 120% 80% at 50% 100%, oklch(0.11 0.025 258 / 0.6), transparent 60%);
    pointer-events: none;
}
.sn-landing .hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 920px;
    margin: 0 auto;
    padding-top: 280px;
}
@media (max-width: 720px) { .sn-landing .hero-content { padding-top: 200px; } }

.sn-landing .eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--fg-2);
    padding: 8px 16px;
    border: 1px solid var(--line-soft);
    border-radius: 999px;
    background: oklch(0.11 0.018 260 / 0.5);
    margin-bottom: 36px;
}
.sn-landing .eyebrow .dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 12px var(--accent);
    animation: sn-pulse 2.4s ease-in-out infinite;
}
@keyframes sn-pulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }

.sn-landing .hero h1 {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(40px, 7.6vw, 108px);
    line-height: 1.02;
    letter-spacing: -0.02em;
    color: var(--fg-0);
    margin: 0 0 32px;
}
.sn-landing .hero h1 em { font-style: italic; color: var(--fg-1); font-weight: 300; }
.sn-landing .hero-h1-line { display: block; overflow: hidden; padding-bottom: 0.12em; }
.sn-landing .hero-h1-line > span {
    display: inline-block;
    transform: translateY(110%);
    animation: sn-rise 1.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    white-space: nowrap;
}
.sn-landing .hero-h1-line.l2 > span { animation-delay: 0.12s; }
@keyframes sn-rise { to { transform: translateY(0); } }

.sn-landing .hero-sub {
    font-size: clamp(16px, 1.4vw, 19px);
    color: var(--fg-2);
    max-width: 580px;
    margin: 0 auto 48px;
    line-height: 1.55;
    font-weight: 300;
}
.sn-landing .cta-row { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
.sn-landing .btn {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 16px 28px;
    font-family: var(--sans);
    font-size: 14px;
    font-weight: 400;
    letter-spacing: 0.04em;
    text-decoration: none;
    border-radius: 999px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
}
.sn-landing .btn-primary {
    background: var(--fg-0);
    color: var(--bg-0);
    box-shadow: 0 0 0 0 var(--accent-glow);
}
.sn-landing .btn-primary:hover {
    background: var(--accent);
    color: var(--bg-0);
    box-shadow: 0 0 32px var(--accent-glow);
    transform: translateY(-1px);
}
.sn-landing .btn-primary .arrow { transition: transform 0.4s ease; }
.sn-landing .btn-primary:hover .arrow { transform: translate(3px, -3px); }
.sn-landing .btn-ghost { color: var(--fg-1); border-color: var(--line); background: transparent; }
.sn-landing .btn-ghost:hover { border-color: var(--fg-2); color: var(--fg-0); }

.sn-landing .hero-meta {
    position: absolute;
    bottom: 32px; left: 0; right: 0;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    padding: 0 32px;
    z-index: 2;
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.16em;
    color: var(--fg-3);
    text-transform: uppercase;
}
.sn-landing .hero-meta .col-r { text-align: right; }
@media (max-width: 640px) {
    .sn-landing .hero-meta { display: none; }
    .sn-landing .hero { padding: 110px 0 60px; }
}

/* ===== Section base ===== */
.sn-landing section { position: relative; padding: 140px 0; }
@media (max-width: 720px) { .sn-landing section { padding: 96px 0; } }

.sn-landing .section-label {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--fg-3);
    margin-bottom: 28px;
    display: flex;
    align-items: center;
    gap: 14px;
}
.sn-landing .section-label::before {
    content: "";
    display: inline-block;
    width: 24px; height: 1px;
    background: var(--line);
}
.sn-landing .h-display {
    font-family: var(--serif);
    font-weight: 400;
    font-size: clamp(40px, 5.4vw, 72px);
    line-height: 1.02;
    letter-spacing: -0.02em;
    color: var(--fg-0);
    margin: 0;
}
.sn-landing .h-display em { font-style: italic; color: var(--fg-1); }

/* ===== About ===== */
.sn-landing .about-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 80px;
    align-items: start;
}
@media (max-width: 900px) { .sn-landing .about-grid { grid-template-columns: 1fr; gap: 40px; } }
.sn-landing .about-quote {
    font-family: var(--serif);
    font-size: clamp(28px, 3.4vw, 44px);
    line-height: 1.18;
    color: var(--fg-0);
    letter-spacing: -0.01em;
    font-weight: 400;
    margin: 0;
}
.sn-landing .about-quote em { font-style: italic; color: var(--fg-1); }
.sn-landing .about-body {
    color: var(--fg-2);
    font-size: 16px;
    line-height: 1.75;
    max-width: 540px;
}
.sn-landing .about-body p { margin: 0; }
.sn-landing .about-body p + p { margin-top: 22px; }
.sn-landing .about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 56px;
    padding-top: 40px;
    border-top: 1px solid var(--line-soft);
}
.sn-landing .stat-num {
    font-family: var(--serif);
    font-size: clamp(36px, 4vw, 52px);
    color: var(--fg-0);
    line-height: 1;
    margin-bottom: 8px;
    letter-spacing: -0.01em;
}
.sn-landing .stat-num .sup { color: var(--fg-3); font-size: 0.5em; vertical-align: super; margin-left: 4px; }
.sn-landing .stat-num .frac { color: var(--fg-3); }
.sn-landing .stat-label {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--fg-3);
}

/* ===== Services ===== */
.sn-landing .services { border-top: 1px solid var(--line-soft); }
.sn-landing .services-head {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: end;
    margin-bottom: 80px;
}
@media (max-width: 900px) { .sn-landing .services-head { grid-template-columns: 1fr; gap: 32px; } }
.sn-landing .services-head p {
    color: var(--fg-2);
    font-size: 16px;
    line-height: 1.7;
    max-width: 460px;
    margin: 0 0 0 auto;
}
@media (max-width: 900px) { .sn-landing .services-head p { margin-left: 0; } }
.sn-landing .services-list {
    list-style: none;
    border-top: 1px solid var(--line-soft);
    padding: 0;
    margin: 0;
}
.sn-landing .service-item {
    display: grid;
    grid-template-columns: 80px 1fr 1.4fr 24px;
    gap: 32px;
    padding: 36px 8px;
    border-bottom: 1px solid var(--line-soft);
    align-items: center;
    cursor: pointer;
    transition: background 0.5s ease, padding 0.5s ease;
    position: relative;
}
.sn-landing .service-item::before {
    content: "";
    position: absolute;
    left: 0; right: 0; bottom: -1px;
    height: 1px;
    background: linear-gradient(90deg, var(--accent), transparent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.sn-landing .service-item:hover {
    background: linear-gradient(90deg, oklch(0.14 0.022 260 / 0.6), transparent);
    padding-left: 24px;
}
.sn-landing .service-item:hover::before { transform: scaleX(1); }
.sn-landing .service-num {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.18em;
    color: var(--fg-3);
}
.sn-landing .service-name {
    font-family: var(--serif);
    font-size: clamp(24px, 2.4vw, 32px);
    color: var(--fg-0);
    letter-spacing: -0.01em;
    line-height: 1.1;
}
.sn-landing .service-desc {
    color: var(--fg-2);
    font-size: 14px;
    line-height: 1.6;
    max-width: 440px;
}
.sn-landing .service-arrow {
    color: var(--fg-3);
    transition: color 0.4s ease, transform 0.4s ease;
}
.sn-landing .service-item:hover .service-arrow {
    color: var(--accent);
    transform: translate(3px, -3px);
}
@media (max-width: 760px) {
    .sn-landing .service-item {
        grid-template-columns: 1fr;
        gap: 12px;
        padding: 28px 0;
    }
    .sn-landing .service-item:hover { padding-left: 0; }
    .sn-landing .service-arrow { display: none; }
}

/* ===== Process ===== */
.sn-landing .process { border-top: 1px solid var(--line-soft); }
.sn-landing .process-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    margin-top: 80px;
    border-top: 1px solid var(--line-soft);
    border-left: 1px solid var(--line-soft);
}
.sn-landing .process-step {
    padding: 40px 32px 56px;
    border-right: 1px solid var(--line-soft);
    border-bottom: 1px solid var(--line-soft);
    position: relative;
    transition: background 0.5s ease;
    min-height: 280px;
    display: flex;
    flex-direction: column;
}
.sn-landing .process-step:hover { background: oklch(0.11 0.02 260 / 0.5); }
.sn-landing .process-num {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.22em;
    color: var(--fg-3);
    margin-bottom: 60px;
}
.sn-landing .process-name {
    font-family: var(--serif);
    font-size: 32px;
    color: var(--fg-0);
    margin-bottom: 16px;
}
.sn-landing .process-name em { font-style: italic; }
.sn-landing .process-desc { color: var(--fg-2); font-size: 14px; line-height: 1.65; }
.sn-landing .process-glyph { width: 28px; height: 28px; margin-bottom: 24px; color: var(--fg-2); }
@media (max-width: 900px) { .sn-landing .process-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) {
    .sn-landing .process-grid { grid-template-columns: 1fr; }
    .sn-landing .process-step { min-height: auto; padding: 32px 24px 40px; }
    .sn-landing .process-num { margin-bottom: 28px; }
}

/* ===== Contact ===== */
.sn-landing .contact {
    border-top: 1px solid var(--line-soft);
    background: radial-gradient(ellipse 60% 40% at 50% 100%, oklch(0.18 0.04 240 / 0.25), transparent 70%);
}
.sn-landing .contact-grid {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 80px;
    align-items: start;
}
@media (max-width: 900px) { .sn-landing .contact-grid { grid-template-columns: 1fr; gap: 56px; } }
.sn-landing .contact-intro p {
    color: var(--fg-2);
    font-size: 16px;
    line-height: 1.7;
    margin: 28px 0 40px;
    max-width: 460px;
}
.sn-landing .contact-card {
    padding: 48px;
    border: 1px solid var(--line-soft);
    border-radius: 4px;
    background: linear-gradient(180deg, oklch(0.13 0.02 260 / 0.6), oklch(0.10 0.018 260 / 0.4));
    backdrop-filter: blur(8px);
}
@media (max-width: 540px) { .sn-landing .contact-card { padding: 32px 24px; } }
.sn-landing .contact-name {
    font-family: var(--serif);
    font-size: 32px;
    color: var(--fg-0);
    letter-spacing: -0.01em;
    margin-bottom: 6px;
}
.sn-landing .contact-title {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--fg-2);
    margin-bottom: 36px;
    padding-bottom: 36px;
    border-bottom: 1px solid var(--line-soft);
}
.sn-landing .contact-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 0;
    padding: 0;
}
.sn-landing .contact-list li {
    display: grid;
    grid-template-columns: 80px 1fr;
    gap: 20px;
    align-items: center;
    font-size: 15px;
}
.sn-landing .contact-list .key {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--fg-3);
}
.sn-landing .contact-list a {
    color: var(--fg-1);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color 0.3s ease, border-color 0.3s ease;
    width: fit-content;
}
.sn-landing .contact-list a:hover {
    color: var(--fg-0);
    border-color: var(--accent);
}
.sn-landing .contact-list .static { color: var(--fg-1); }

/* ===== Footer ===== */
.sn-landing footer {
    border-top: 1px solid var(--line-soft);
    padding: 56px 0 40px;
}
.sn-landing .foot-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
    margin-bottom: 64px;
}
.sn-landing .foot-brand { max-width: 320px; }
.sn-landing .foot-brand p {
    font-size: 13px;
    color: var(--fg-3);
    margin-top: 14px;
    line-height: 1.6;
}
.sn-landing .foot-cols {
    display: grid;
    grid-template-columns: repeat(3, auto);
    gap: 64px;
}
@media (max-width: 720px) { .sn-landing .foot-cols { gap: 40px; grid-template-columns: repeat(2, 1fr); } }
.sn-landing .foot-col h5 {
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--fg-3);
    margin: 0 0 18px;
    font-weight: 500;
}
.sn-landing .foot-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
    padding: 0;
}
.sn-landing .foot-col a {
    color: var(--fg-2);
    text-decoration: none;
    font-size: 13px;
    transition: color 0.3s ease;
}
.sn-landing .foot-col a:hover { color: var(--fg-0); }
.sn-landing .foot-bottom {
    border-top: 1px solid var(--line-soft);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--fg-3);
}

/* ===== Reveal animation ===== */
.sn-landing .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 1.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.sn-landing .reveal.in { opacity: 1; transform: none; }
.sn-landing .reveal-delay-1 { transition-delay: 0.1s; }
.sn-landing .reveal-delay-2 { transition-delay: 0.22s; }
.sn-landing .reveal-delay-3 { transition-delay: 0.34s; }
.sn-landing .reveal-delay-4 { transition-delay: 0.46s; }

@media (prefers-reduced-motion: reduce) {
    .sn-landing .reveal { opacity: 1; transform: none; transition: none; }
    .sn-landing *, .sn-landing *::before, .sn-landing *::after { animation-duration: 0.001s !important; }
}
