:root {
    --ink: #061017;
    --ink-soft: #0b1b24;
    --panel: #102631;
    --ice: #dff5f5;
    --white: #f7fbfb;
    --mist: #a7bbc0;
    --line: rgba(176, 214, 217, .18);
    --cyan: #7dd7d5;
    --cyan-bright: #a7f1ed;
    --copper: #c9875e;
    --copper-pale: #e0ad84;
    --serif: "Newsreader", Georgia, serif;
    --sans: "Manrope", Arial, sans-serif;
    --shell: min(1240px, calc(100vw - 48px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    color: var(--white);
    background: var(--ink);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
}

body.menu-open { overflow: hidden; }
a { color: inherit; }
img { display: block; max-width: 100%; }
button, a { -webkit-tap-highlight-color: transparent; }

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.skip-link {
    position: fixed;
    top: 12px;
    left: 12px;
    z-index: 1000;
    padding: 10px 14px;
    color: var(--ink);
    background: var(--cyan-bright);
    transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

.page-shell { width: var(--shell); margin-inline: auto; }

.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 88px;
    padding-inline: max(24px, calc((100vw - 1240px) / 2));
    border-bottom: 1px solid transparent;
    transition: height .3s ease, background .3s ease, border-color .3s ease;
}

.site-header.is-scrolled {
    height: 72px;
    background: rgba(6, 16, 23, .9);
    border-color: var(--line);
    backdrop-filter: blur(18px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    color: var(--white);
    text-decoration: none;
}

.brand-mark {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 1px solid rgba(125, 215, 213, .45);
    border-radius: 50%;
}

.brand-mark span {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--cyan-bright);
    border-radius: 50%;
}
.brand-mark span:nth-child(1) { transform: translate(-7px, 4px); }
.brand-mark span:nth-child(2) { transform: translate(0, -7px); }
.brand-mark span:nth-child(3) { transform: translate(8px, 6px); background: var(--copper-pale); }
.brand-mark::before,
.brand-mark::after {
    content: "";
    position: absolute;
    width: 18px;
    height: 1px;
    background: rgba(167, 241, 237, .55);
    transform: rotate(35deg);
}
.brand-mark::after { transform: rotate(-42deg); }

.brand-copy { display: grid; line-height: 1.05; }
.brand-copy strong { font-size: .88rem; letter-spacing: .2em; }
.brand-copy small { margin-top: 5px; color: var(--mist); font-size: .58rem; letter-spacing: .11em; text-transform: uppercase; }

.primary-navigation { display: flex; align-items: center; gap: 31px; }
.primary-navigation a {
    position: relative;
    color: rgba(247, 251, 251, .76);
    font-size: .77rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-decoration: none;
}
.primary-navigation a:not(.nav-action)::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -8px;
    left: 0;
    height: 1px;
    background: var(--cyan);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform .25s ease;
}
.primary-navigation a:hover::after,
.primary-navigation a.is-active::after { transform: scaleX(1); transform-origin: left; }
.nav-action { padding: 10px 16px; border: 1px solid rgba(167, 241, 237, .35); }
.nav-action:hover { color: var(--ink); background: var(--cyan-bright); }
.menu-toggle { display: none; }

.hero {
    position: relative;
    display: grid;
    align-items: center;
    min-height: 820px;
    height: 100svh;
    overflow: hidden;
    background: #07151e;
}

.hero-media,
.hero-shade { position: absolute; inset: 0; }
.hero-media {
    background-image: url("https://nastrova-carsteanu.org/_img/ncpri-home-hero.png");
    background-position: center;
    background-size: cover;
    transform: scale(1.02);
}
.hero-shade {
    background:
        linear-gradient(90deg, rgba(4, 12, 18, .97) 0%, rgba(4, 12, 18, .79) 36%, rgba(4, 12, 18, .13) 71%, rgba(4, 12, 18, .45) 100%),
        linear-gradient(0deg, var(--ink) 0%, transparent 25%, rgba(3, 12, 18, .22) 100%);
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    opacity: .18;
    background-image: linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px);
    background-size: 88px 88px;
    mask-image: linear-gradient(90deg, black, transparent 65%);
}

.hero-content { position: relative; z-index: 3; padding-top: 80px; }
.eyebrow,
.overline {
    margin: 0 0 24px;
    color: var(--cyan);
    font-size: .69rem;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
}
.eyebrow { display: flex; align-items: center; gap: 14px; }
.eyebrow::before { content: ""; width: 36px; height: 1px; background: var(--copper); }

.hero h1 {
    max-width: 800px;
    margin: 0;
    font-family: var(--serif);
    font-size: clamp(4rem, 7.3vw, 7.15rem);
    font-weight: 300;
    line-height: .91;
    letter-spacing: -.052em;
}
.hero h1 em { color: var(--cyan-bright); font-weight: 300; }
.hero-intro {
    max-width: 650px;
    margin: 31px 0 0;
    color: #c2d1d4;
    font-size: clamp(1rem, 1.4vw, 1.17rem);
    line-height: 1.75;
}
.hero-actions { display: flex; align-items: center; gap: 30px; margin-top: 42px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 24px; font-size: .76rem; font-weight: 700; letter-spacing: .08em; text-decoration: none; text-transform: uppercase; }
.button-primary { color: var(--ink); background: var(--cyan-bright); border: 1px solid var(--cyan-bright); }
.button-primary:hover { color: var(--cyan-bright); background: transparent; }
.text-link { color: var(--white); font-size: .82rem; text-decoration: none; }
.text-link span { margin-left: 8px; color: var(--copper-pale); }

.hero-index {
    position: absolute;
    z-index: 3;
    right: max(24px, calc((100vw - 1240px) / 2));
    bottom: 36px;
    display: flex;
    align-items: center;
    gap: 14px;
    color: rgba(255, 255, 255, .45);
    font-size: .62rem;
    letter-spacing: .15em;
}
.hero-index i { width: 72px; height: 1px; background: rgba(255,255,255,.24); }

.hero-orbit { position: absolute; z-index: 2; border: 1px solid rgba(125, 215, 213, .13); border-radius: 50%; pointer-events: none; }
.orbit-one { right: -8vw; bottom: -38vw; width: 64vw; height: 64vw; }
.orbit-two { right: 5vw; bottom: -25vw; width: 44vw; height: 44vw; border-color: rgba(201, 135, 94, .13); }

.mission-section { padding: 150px 0; color: var(--ink); background: var(--ice); }
.mission-grid { display: grid; grid-template-columns: .55fr 1.65fr .9fr; gap: 64px; align-items: start; }
.section-marker { display: flex; align-items: center; gap: 16px; color: #51696f; font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; }
.section-marker span { display: grid; place-items: center; width: 38px; height: 38px; color: var(--ink); border: 1px solid rgba(6, 16, 23, .25); border-radius: 50%; }
.section-marker p { margin: 0; }

.mission-copy h2,
.section-heading h2,
.system-intro h2,
.origins-story h2,
.limit-copy h2,
.status-copy h2 {
    margin: 0;
    font-family: var(--serif);
    font-size: clamp(2.65rem, 4.5vw, 4.8rem);
    font-weight: 300;
    line-height: 1.01;
    letter-spacing: -.045em;
}
.mission-copy .overline { color: #397b7a; }
.mission-copy > p:last-child { max-width: 720px; margin: 32px 0 0; color: #42575d; }
.vision-card { padding: 28px 0 0 30px; border-left: 1px solid rgba(6,16,23,.18); }
.card-label { color: #397b7a; font-size: .66rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.vision-card p { margin: 18px 0 28px; font-family: var(--serif); font-size: 1.55rem; line-height: 1.26; }
.vision-line { height: 1px; background: rgba(6,16,23,.13); }
.vision-line span { display: block; width: 38%; height: 1px; background: var(--copper); }

.research-section { padding: 145px 0 165px; background: var(--ink); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 70px; margin-bottom: 66px; }
.section-heading > div { max-width: 750px; }
.heading-note { max-width: 390px; margin: 0 0 8px; color: var(--mist); font-size: .92rem; }
.research-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.research-card { overflow: hidden; border: 1px solid var(--line); background: #0b1b24; }
.research-image { aspect-ratio: 1.55; overflow: hidden; background: #0d232e; }
.research-image img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.8) contrast(1.04); transition: transform .7s cubic-bezier(.2,.65,.25,1), filter .4s ease; }
.research-card:hover .research-image img { transform: scale(1.045); filter: saturate(1) contrast(1.06); }
.research-body { position: relative; min-height: 320px; padding: 34px 30px 30px; }
.research-number { position: absolute; top: 34px; right: 30px; color: rgba(167,241,237,.4); font-size: .67rem; letter-spacing: .14em; }
.research-body h3 { margin: 0 42px 16px 0; font-family: var(--serif); font-size: 2rem; font-weight: 400; line-height: 1.05; }
.research-body p { margin: 0; color: var(--mist); font-size: .88rem; }
.status-tag { position: absolute; right: 30px; bottom: 28px; left: 30px; padding-top: 18px; color: var(--copper-pale); border-top: 1px solid var(--line); font-size: .62rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }

.system-section { padding: 145px 0; background: #0d202a; }
.system-layout { display: grid; grid-template-columns: .85fr 1.35fr; gap: 110px; }
.system-intro { position: sticky; top: 120px; align-self: start; }
.system-intro h2 { font-size: clamp(2.65rem, 4vw, 4.25rem); }
.system-intro > p:last-child { max-width: 480px; margin: 28px 0 0; color: var(--mist); }
.system-steps { margin: 0; padding: 0; list-style: none; counter-reset: none; }
.system-steps li { display: grid; grid-template-columns: 55px 1fr; gap: 26px; padding: 34px 0; border-top: 1px solid var(--line); }
.system-steps li:last-child { border-bottom: 1px solid var(--line); }
.system-steps > li > span { color: var(--cyan); font-size: .67rem; letter-spacing: .13em; }
.system-steps h3 { margin: -5px 0 6px; font-family: var(--serif); font-size: 2rem; font-weight: 400; }
.system-steps p { margin: 0; color: var(--mist); font-size: .9rem; }

.origins-section { position: relative; min-height: 790px; display: grid; align-items: center; overflow: hidden; }
.origins-image,
.origins-overlay { position: absolute; inset: 0; }
.origins-image { background: url("https://nastrova-carsteanu.org/_img/ncpri-history-origin.png") center / cover no-repeat; }
.origins-overlay { background: linear-gradient(90deg, rgba(5,14,20,.97) 0%, rgba(5,14,20,.87) 47%, rgba(5,14,20,.25) 78%), linear-gradient(0deg, rgba(5,14,20,.75), transparent 55%); }
.origins-content { position: relative; z-index: 2; display: grid; grid-template-columns: .5fr 1.55fr .6fr; gap: 70px; align-items: start; }
.section-marker-light { color: rgba(255,255,255,.55); }
.section-marker-light span { color: var(--white); border-color: rgba(255,255,255,.28); }
.origins-story { max-width: 690px; }
.origins-story p:not(.overline) { color: #bfd0d3; }
.origins-story p:nth-of-type(2) { margin-top: 28px; }
.origin-date { display: flex; align-items: center; gap: 15px; padding-top: 5px; }
.origin-date > span { font-family: var(--serif); font-size: 5.2rem; font-weight: 300; line-height: .8; }
.origin-date div { display: grid; padding-left: 15px; border-left: 1px solid rgba(255,255,255,.25); line-height: 1.2; }
.origin-date strong { color: var(--copper-pale); font-size: .72rem; letter-spacing: .18em; }
.origin-date small { margin-top: 6px; color: var(--mist); font-size: .7rem; letter-spacing: .14em; }

.limit-section { padding: 145px 0; color: var(--ink); background: #e6f0ef; }
.limit-grid { display: grid; grid-template-columns: .82fr 1.3fr; gap: 120px; align-items: center; }
.limit-symbol { position: relative; display: flex; align-items: center; justify-content: center; gap: 26px; aspect-ratio: 1.25; border: 1px solid rgba(6,16,23,.16); }
.limit-symbol::before,
.limit-symbol::after { content: ""; position: absolute; width: 42%; height: 42%; border: 1px solid rgba(61,125,124,.22); border-radius: 50%; }
.limit-symbol::before { transform: translate(-17%, -10%); }
.limit-symbol::after { transform: translate(17%, 10%); border-color: rgba(201,135,94,.25); }
.limit-symbol span { z-index: 1; font-family: var(--serif); font-size: 5rem; font-style: italic; font-weight: 300; }
.limit-symbol i { z-index: 1; width: 80px; height: 1px; background: var(--copper); }
.limit-copy .overline { color: #397b7a; }
.limit-copy > p:not(.overline) { max-width: 720px; margin: 28px 0 0; color: #43585e; }
.limit-caveat { padding: 21px 0 0 24px; border-top: 1px solid rgba(6,16,23,.14); border-left: 2px solid var(--copper); font-size: .86rem; }

.principles-section { padding: 145px 0; background: var(--ink); }
.section-heading.compact { margin-bottom: 52px; }
.principles-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.principle { min-height: 295px; padding: 34px 38px 38px 0; }
.principle + .principle { padding-left: 38px; border-left: 1px solid var(--line); }
.principle > span { color: var(--copper-pale); font-size: .65rem; letter-spacing: .14em; }
.principle h3 { margin: 64px 0 16px; font-family: var(--serif); font-size: 1.7rem; font-weight: 400; }
.principle p { margin: 0; color: var(--mist); font-size: .86rem; }

.status-section { padding: 130px 0; background: #102630; }
.status-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 110px; align-items: center; }
.status-copy h2 { font-size: clamp(2.7rem, 4.4vw, 4.5rem); }
.status-copy > p:last-child { max-width: 610px; margin: 28px 0 0; color: var(--mist); }
.status-panel { border-top: 1px solid rgba(167,241,237,.26); }
.status-panel div { display: grid; grid-template-columns: 1fr 1.55fr; gap: 25px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.status-panel span { color: var(--mist); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; }
.status-panel strong { font-size: .82rem; font-weight: 500; }

.site-footer { padding: 66px 0 26px; background: #030a0e; }
.footer-top { display: flex; align-items: start; justify-content: space-between; gap: 50px; padding-bottom: 62px; }
.footer-brand { display: flex; gap: 18px; max-width: 590px; }
.footer-brand strong { font-family: var(--serif); font-size: 1.35rem; font-weight: 400; }
.footer-brand p { max-width: 520px; margin: 9px 0 0; color: #72888e; font-size: .77rem; }
.back-to-top { color: var(--cyan); font-size: .72rem; letter-spacing: .08em; text-decoration: none; text-transform: uppercase; }
.back-to-top span { margin-left: 9px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 25px; padding-top: 24px; color: #596f75; border-top: 1px solid rgba(255,255,255,.09); font-size: .65rem; letter-spacing: .08em; text-transform: uppercase; }
.footer-bottom p { margin: 0; }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .75s ease, transform .75s cubic-bezier(.2,.65,.25,1); }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
    .reveal { opacity: 1; transform: none; }
}

@media (max-width: 1050px) {
    .primary-navigation { gap: 20px; }
    .mission-grid { grid-template-columns: .4fr 1.6fr; }
    .vision-card { grid-column: 2; }
    .research-grid { grid-template-columns: 1fr 1fr; }
    .research-card:last-child { grid-column: 1 / -1; max-width: calc(50% - 9px); }
    .system-layout { gap: 65px; }
    .origins-content { grid-template-columns: .35fr 1.65fr; }
    .origin-date { grid-column: 2; }
    .limit-grid { gap: 70px; }
    .status-layout { gap: 65px; }
}

@media (max-width: 820px) {
    :root { --shell: min(100% - 36px, 680px); }
    .site-header { height: 74px; padding-inline: 18px; }
    .brand-copy small { display: none; }
    .menu-toggle {
        position: relative;
        z-index: 2;
        display: grid;
        gap: 7px;
        width: 44px;
        height: 44px;
        padding: 13px 10px;
        color: white;
        border: 1px solid var(--line);
        background: rgba(6,16,23,.55);
    }
    .menu-toggle span:not(.sr-only) { display: block; width: 100%; height: 1px; background: currentColor; transition: transform .25s ease; }
    .menu-toggle[aria-expanded="true"] span:nth-of-type(2) { transform: translateY(4px) rotate(45deg); }
    .menu-toggle[aria-expanded="true"] span:nth-of-type(3) { transform: translateY(-4px) rotate(-45deg); }
    .primary-navigation {
        position: fixed;
        inset: 0;
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        justify-content: center;
        gap: 25px;
        padding: 90px 34px 50px;
        background: rgba(5,14,20,.98);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-10px);
        transition: opacity .25s ease, visibility .25s ease, transform .25s ease;
    }
    .primary-navigation.is-open { opacity: 1; visibility: visible; transform: none; }
    .primary-navigation a { font-family: var(--serif); font-size: 2.2rem; font-weight: 300; letter-spacing: -.02em; }
    .primary-navigation .nav-action { margin-top: 10px; font-family: var(--sans); font-size: .75rem; letter-spacing: .08em; }
    .hero { min-height: 720px; }
    .hero-media { background-position: 61% center; }
    .hero-shade { background: linear-gradient(90deg, rgba(4,12,18,.96), rgba(4,12,18,.67) 70%, rgba(4,12,18,.5)), linear-gradient(0deg, var(--ink), transparent 35%); }
    .hero h1 { font-size: clamp(3.3rem, 13vw, 5.4rem); }
    .hero-intro { max-width: 580px; }
    .hero-index { display: none; }
    .mission-section,
    .research-section,
    .system-section,
    .limit-section,
    .principles-section,
    .status-section { padding: 100px 0; }
    .mission-grid,
    .system-layout,
    .limit-grid,
    .status-layout { grid-template-columns: 1fr; gap: 50px; }
    .vision-card { grid-column: auto; }
    .section-heading { display: block; }
    .heading-note { margin-top: 28px; }
    .system-intro { position: static; }
    .origins-section { min-height: auto; padding: 110px 0; }
    .origins-overlay { background: rgba(5,14,20,.82); }
    .origins-content { grid-template-columns: 1fr; gap: 42px; }
    .origin-date { grid-column: auto; }
    .limit-symbol { max-width: 520px; width: 100%; }
    .principles-grid { grid-template-columns: 1fr; }
    .principle { min-height: auto; padding: 30px 0; }
    .principle + .principle { padding-left: 0; border-top: 1px solid var(--line); border-left: 0; }
    .principle h3 { margin-top: 35px; }
}

@media (max-width: 590px) {
    .hero-content { padding-top: 45px; }
    .eyebrow { max-width: 310px; font-size: .58rem; }
    .hero h1 { font-size: clamp(3rem, 15vw, 4.5rem); }
    .hero-intro { font-size: .92rem; line-height: 1.65; }
    .hero-actions { align-items: flex-start; flex-direction: column; gap: 20px; margin-top: 32px; }
    .button { width: 100%; }
    .mission-grid { gap: 38px; }
    .research-grid { grid-template-columns: 1fr; }
    .research-card:last-child { grid-column: auto; max-width: none; }
    .research-body { min-height: 300px; }
    .section-heading h2,
    .mission-copy h2,
    .system-intro h2,
    .origins-story h2,
    .limit-copy h2,
    .status-copy h2 { font-size: 2.8rem; }
    .system-steps li { grid-template-columns: 40px 1fr; gap: 16px; }
    .limit-symbol span { font-size: 3.6rem; }
    .limit-symbol i { width: 50px; }
    .status-panel div { grid-template-columns: 1fr; gap: 5px; }
    .footer-top,
    .footer-bottom { flex-direction: column; }
    .footer-brand { align-items: flex-start; }
}

