:root{
    --bg:#111315;
    --bg2:#0b0d10;
    --paper:#f2f1ed;
    --text:#f4f3f0;
    --muted:#96999d;
    --line:rgba(255,255,255,.13);
    --purple:#7762d7;
    --purple2:#b8adff;
    --blue:#7692ff;
    --ease:cubic-bezier(.22,1,.36,1);
}

*{box-sizing:border-box}
html{scroll-behavior:smooth;background:var(--bg)}
body{margin:0;background:var(--bg);color:var(--text);font-family:Manrope,Arial,sans-serif;overflow-x:hidden}
body.menu-open{overflow:hidden}
a{color:inherit;text-decoration:none}
.shell{width:min(1320px,92vw);margin:0 auto}

.eyebrow,.preloader-mark,.meta,.section-head>span,footer{
    font:500 9px 'DM Mono',monospace;
    letter-spacing:.12em;
    text-transform:uppercase;
}
.eyebrow{margin:0;color:#898c91}
.eyebrow.dark{color:#686a6e}

/* PRELOADER */
.preloader{
    position:fixed;inset:0;z-index:100;
    display:grid;place-items:center;
    background:var(--bg2);
    transition:opacity .6s var(--ease),visibility .6s;
}
.preloader.done{opacity:0;visibility:hidden;pointer-events:none}
.preloader-mark i{
    display:inline-block;width:34px;height:1px;
    margin:0 13px 3px;background:white;
    animation:loadline 1.1s ease-in-out infinite;
}
@keyframes loadline{
    50%{transform:scaleX(.22);opacity:.35}
}

/* HEADER */
.topbar{
    position:fixed;z-index:30;top:0;left:0;right:0;
    height:76px;padding:0 4vw;
    display:grid;grid-template-columns:1fr auto 1fr;align-items:center;
    background:rgba(17,19,21,.84);
    backdrop-filter:blur(16px);
    border-bottom:1px solid rgba(255,255,255,.06);
}
.brand{
    display:inline-flex;align-items:center;gap:10px;width:max-content;
    font-size:11px;font-weight:800;letter-spacing:.12em;
}
.brand-logo{width:27px;height:27px;object-fit:contain}
.desktop-nav{display:flex;gap:26px}
.desktop-nav a,.header-cta{
    font:500 10px 'DM Mono',monospace;
    letter-spacing:.08em;text-transform:uppercase;
}
.desktop-nav a{color:#8a8d91}
.desktop-nav a:hover,.desktop-nav a.active{color:white}
.header-cta{
    justify-self:end;padding-bottom:6px;
    border-bottom:1px solid rgba(255,255,255,.5);
}
.menu-toggle,.mobile-nav{display:none}

/* HERO */
.hero{
    min-height:520px;
    padding-top:145px;
    padding-bottom:68px;
    display:grid;
    grid-template-columns:1.1fr .9fr;
    gap:8vw;
    align-items:end;
    border-bottom:1px solid var(--line);
}
.hero h1{
    margin:14px 0 16px;
    font-size:clamp(4.5rem,7.4vw,8rem);
    line-height:.82;
    letter-spacing:-.075em;
}
.hero-sub{
    margin:0;
    color:#c4c6c9;
    font-size:1.08rem;
}
.hero-side{
    position:relative;
    min-height:265px;
    display:flex;
    align-items:flex-end;
}
.hero-side>p{
    position:relative;
    z-index:2;
    max-width:450px;
    margin:0;
    padding-right:140px;
    color:#96999e;
    font-size:14px;
    line-height:1.72;
}

.hero-visual{
    position:absolute;
    right:-18px;
    top:-32px;
    width:270px;
    height:270px;
}
.hero-gridlines{
    position:absolute;
    inset:0;
    border-radius:50%;
    background:
        linear-gradient(rgba(255,255,255,.035) 1px,transparent 1px),
        linear-gradient(90deg,rgba(255,255,255,.035) 1px,transparent 1px);
    background-size:24px 24px;
    mask-image:radial-gradient(circle,#000 58%,transparent 72%);
}
.hero-radar{
    position:absolute;
    border:1px solid rgba(186,174,255,.22);
    border-radius:50%;
}
.hr-1{inset:18px}
.hr-2{inset:52px}
.hr-3{inset:88px}
.hero-core{
    position:absolute;
    width:56px;height:56px;
    left:107px;top:107px;
    border-radius:50%;
    background:radial-gradient(circle at 32% 28%,#fff 0 7%,#b9adff 20%,#6653c7 70%,#241f40 100%);
    box-shadow:0 0 40px rgba(114,91,222,.5);
}
.hero-scan{
    position:absolute;
    width:118px;height:1px;
    left:135px;top:135px;
    transform-origin:left center;
    background:linear-gradient(90deg,#bcafff,transparent);
    animation:scan 6s linear infinite;
}
@keyframes scan{
    to{transform:rotate(360deg)}
}

/* SECTION HEADS */
.featured{padding:60px 0 82px}
.section-head{
    display:flex;
    justify-content:space-between;
    align-items:end;
    gap:40px;
    margin-bottom:28px;
}
.section-head.compact{align-items:center}
.section-head h2{
    margin:7px 0 0;
    font-size:clamp(2.4rem,3.7vw,4rem);
    letter-spacing:-.05em;
}
.section-head>p{
    max-width:420px;
    margin:0;
    color:#92959a;
    font-size:13px;
    line-height:1.7;
}

/* FEATURED */
.featured-card{
    display:grid;
    grid-template-columns:1.05fr .95fr;
    gap:34px;
}
.featured-thumb{
    height:340px;
    border-radius:24px;
    overflow:hidden;
    background:#d7d1ff;
    display:block;
    box-shadow:0 16px 45px rgba(0,0,0,.18);
    transition:transform .35s var(--ease),box-shadow .35s var(--ease);
}
.featured-thumb:hover{
    transform:translateY(-4px);
    box-shadow:0 22px 55px rgba(0,0,0,.25);
}
.thumb-svg{
    width:100%;
    height:100%;
    display:block;
}
.featured-copy{
    display:flex;
    flex-direction:column;
    padding:4px 0;
}
.featured-copy h3{
    margin:38px 0 15px;
    font-size:clamp(2rem,3.2vw,3.6rem);
    line-height:.98;
    letter-spacing:-.055em;
}
.featured-copy>p{
    margin:0;
    max-width:500px;
    color:#979a9e;
    font-size:13px;
    line-height:1.7;
}
.read{
    margin-top:auto;
    width:max-content;
    padding-bottom:7px;
    border-bottom:1px solid rgba(255,255,255,.28);
    font:500 9px 'DM Mono',monospace;
    letter-spacing:.09em;
    text-transform:uppercase;
}

/* ARTICLE GRID */
.articles{padding-bottom:95px}
.grid{
    display:grid;
    grid-template-columns:repeat(3,minmax(0,1fr));
    gap:44px 20px;
}
.card{min-width:0}
.thumb{
    height:220px;
    border-radius:20px;
    overflow:hidden;
    display:block;
    background:#e9e8ef;
    box-shadow:0 14px 30px rgba(0,0,0,.14);
    transition:transform .35s var(--ease),box-shadow .35s var(--ease);
}
.thumb:hover{
    transform:translateY(-4px);
    box-shadow:0 20px 42px rgba(0,0,0,.22);
}
.meta{
    display:flex;
    justify-content:space-between;
    margin-top:14px;
    color:#7e8186;
}
.card h3{
    margin:11px 0 9px;
    font-size:clamp(1.3rem,1.7vw,1.9rem);
    line-height:1.08;
    letter-spacing:-.04em;
    font-weight:550;
}
.card p{
    margin:0;
    color:#8e9196;
    font-size:12.5px;
    line-height:1.6;
}

/* PRINCIPLE */
.principle{
    padding:76px 0;
    background:var(--paper);
    color:#101113;
}
.principle-grid{
    display:grid;
    grid-template-columns:1fr 1fr;
    gap:9vw;
    align-items:end;
}
.principle h2{
    margin:16px 0 0;
    font-size:clamp(3.2rem,5.5vw,5.8rem);
    line-height:.88;
    letter-spacing:-.065em;
}
.principle-grid>p{
    max-width:520px;
    margin:0;
    color:#4e5053;
    font-size:1.05rem;
    line-height:1.6;
}

/* CONSULTATION */
.consult{padding:85px 0}
.consult-grid{
    display:grid;
    grid-template-columns:1.15fr .85fr;
    gap:9vw;
    align-items:end;
}
.consult h2{
    margin:16px 0 0;
    font-size:clamp(3rem,5vw,5.4rem);
    line-height:.9;
    letter-spacing:-.065em;
}
.consult-side{max-width:430px}
.consult-side p{
    margin:0 0 26px;
    color:#989ba0;
    font-size:14px;
    line-height:1.7;
}
.consult-button{
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:20px;
    padding:16px 17px;
    background:#efeeeb;
    color:#101113;
    border-radius:4px;
    font:500 9px 'DM Mono',monospace;
    letter-spacing:.08em;
    text-transform:uppercase;
}

/* FOOTER */
footer{
    min-height:78px;
    display:flex;
    align-items:center;
    justify-content:space-between;
    border-top:1px solid var(--line);
    color:#7f8287;
}

/* REVEAL */
.reveal{
    opacity:0;
    transform:translateY(18px);
    transition:opacity .6s var(--ease),transform .6s var(--ease);
}
.reveal.visible{
    opacity:1;
    transform:none;
}

/* TABLET */
@media(max-width:980px){
    .topbar{
        grid-template-columns:1fr auto;
        padding:0 5vw;
    }
    .desktop-nav,.header-cta{display:none}
    .menu-toggle{
        display:grid;
        gap:6px;
        justify-self:end;
        width:30px;
        padding:8px 0;
        border:0;
        background:transparent;
    }
    .menu-toggle span{
        display:block;
        width:100%;
        height:1px;
        background:white;
    }
    .mobile-nav{
        position:fixed;
        z-index:25;
        inset:0;
        padding:120px 6vw 60px;
        display:flex;
        flex-direction:column;
        gap:12px;
        background:#0d0f11;
        opacity:0;
        visibility:hidden;
        transform:translateY(-15px);
        transition:.4s var(--ease);
    }
    .mobile-nav.open{
        opacity:1;
        visibility:visible;
        transform:none;
    }
    .mobile-nav a{
        padding:17px 0;
        border-bottom:1px solid var(--line);
        font-size:clamp(2rem,7vw,3.6rem);
        font-weight:600;
    }

    .hero,
    .featured-card,
    .principle-grid,
    .consult-grid{
        grid-template-columns:1fr;
    }

    .hero{gap:36px}
    .hero-side{min-height:210px}
    .hero-side>p{padding-right:170px}
    .hero-visual{width:220px;height:220px}
    .hero-core{left:87px;top:87px;width:46px;height:46px}
    .hero-scan{left:110px;top:110px;width:96px}

    .featured-thumb{height:300px}
    .featured-copy h3{margin-top:20px}
    .read{margin-top:24px}

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

    .principle-grid,
    .consult-grid{
        gap:38px;
    }
}

/* MOBILE */
@media(max-width:640px){
    .shell{width:90vw}

    .topbar{height:70px}
    .brand-logo{width:25px;height:25px}
    .brand{font-size:10px}

    .hero{
        padding-top:110px;
        padding-bottom:48px;
        min-height:auto;
    }
    .hero h1{
        font-size:clamp(3.7rem,16vw,5.3rem);
    }
    .hero-side{
        min-height:185px;
    }
    .hero-side>p{
        max-width:75%;
        padding-right:0;
        font-size:13px;
    }
    .hero-visual{
        right:-24px;
        width:165px;
        height:165px;
    }
    .hero-core{
        left:65px;
        top:65px;
        width:35px;
        height:35px;
    }
    .hero-scan{
        left:82px;
        top:82px;
        width:72px;
    }

    .featured{padding:48px 0 62px}
    .section-head{display:block}
    .section-head>p{margin-top:14px}
    .featured-thumb{
        height:240px;
        border-radius:18px;
    }
    .featured-copy h3{font-size:2rem}

    .grid{
        grid-template-columns:1fr;
        gap:40px;
    }
    .thumb{
        height:215px;
        border-radius:17px;
    }
    .card h3{
        font-size:1.65rem;
    }

    .principle{padding:62px 0}
    .principle h2{font-size:3rem}

    .consult{padding:68px 0}
    .consult h2{font-size:2.9rem}

    footer{font-size:8px}
    footer>span{display:none}
}

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