/* ============================================
   SectorHLabs — Landing v2
   ============================================ */

:root {
    --bg: #000408;
    --bg-2: #010613;
    --bg-3: #030d1c;
    --line: rgba(255,255,255,0.08);
    --line-strong: rgba(255,255,255,0.18);
    --text: #e9e9ee;
    --muted: #acacb4;
    --silver: #c4c4cc;
    --silver-2: #b2b2ba;
    --violet: #0B5A85;
    --violet-2: #1490d4;
    --violet-deep: #084266;
    --violet-glow: rgba(11,90,133,0.25);
    --ok: #7ee787;

    --font-sans: 'Inter', -apple-system, system-ui, sans-serif;
    --font-mono: 'JetBrains Mono', ui-monospace, monospace;

    --container: 1400px;
    --nav-h: 64px;
    --section-py: 120px;
    --radius: 14px;

    /* Motion tokens */
    --ease-entry:    cubic-bezier(0.22, 0.61, 0.36, 1);
    --ease-exit:     cubic-bezier(0.4, 0, 1, 1);
    --ease-emphasis: cubic-bezier(0.4, 0, 0.2, 1);
    --ease-bounce:   cubic-bezier(0.2, 0.8, 0.2, 1.1);
    --dur-fast:      150ms;
    --dur-base:      300ms;
    --dur-slow:      500ms;
    --dur-reveal:    500ms;
    --dur-hero:      1000ms;
    --stagger-xs:    60ms;
    --stagger-sm:    80ms;
    --stagger-md:    100ms;
    --stagger-lg:    120ms;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scrollbar-width: none;
}
html::-webkit-scrollbar { display: none; }

body {
    background: var(--bg);
    color: var(--text);
    font-family: var(--font-sans);
    font-size: 15px;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Grain overlay — noise texture across whole page */
body::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 50;
    pointer-events: none;
    opacity: 0.045;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul { list-style: none; }

::selection { background: var(--violet); color: #fff; }

.container {
    width: 100%;
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 36px;
}

/* ===== Nav ===== */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    height: var(--nav-h);
    border-bottom: 1px solid transparent;
    transition: border-color .3s;
}
.nav::before {
    content: "";
    position: absolute; inset: 0; z-index: -1;
    background: linear-gradient(180deg, rgba(0,0,0,0.7), rgba(0,0,0,0));
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: background .3s;
}
.nav.scrolled { border-color: var(--line); }
.nav.scrolled::before { background: rgba(0,0,0,0.8); }

.nav-container {
    display: flex; align-items: center; justify-content: space-between;
    height: 100%;
}

.nav-brand {
    display: flex; align-items: center; gap: 10px;
}
.nav-logo-img { width: 30px; height: 30px; object-fit: contain; }
.nav-wordmark {
    font-family: var(--font-mono); font-weight: 600; font-size: 13px;
    letter-spacing: .16em;
}
.nav-wordmark span { color: var(--violet-2); }

.nav-links {
    display: flex; align-items: center; gap: 28px;
}
.nav-links a {
    font-family: var(--font-mono); font-size: 11px; letter-spacing: .16em;
    text-transform: uppercase; color: var(--muted);
    position: relative; padding: 4px 0; transition: color .25s;
}
.nav-links a:hover { color: var(--text); }
.nav-links a::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
    height: 1px; background: var(--violet);
    transform: scaleX(0); transform-origin: left; transition: transform .3s;
}
.nav-links a:hover::after { transform: scaleX(1); }

.nav-toggle {
    display: none; flex-direction: column; justify-content: center;
    gap: 5px; width: 44px; height: 44px; background: none; border: none; cursor: pointer; padding: 10px;
}
.nav-toggle-line { display: block; width: 100%; height: 1px; background: var(--text); transition: transform .3s, opacity .3s; }
.nav-toggle[aria-expanded="true"] .nav-toggle-line:first-child { transform: translateY(3px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-line:last-child { transform: translateY(-3px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
    position: relative; min-height: 100vh;
    display: flex; align-items: center;
    overflow: hidden;
    isolation: isolate;
}

.hero::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 34vh;
    z-index: 1;
    pointer-events: none;
    background: linear-gradient(180deg, transparent, var(--bg) 72%);
}

.hero-grid-bg {
    position: absolute; inset: 0; z-index: 0; opacity: .08; pointer-events: none;
    background-image:
        linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(ellipse at center, #000 25%, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse at center, #000 25%, transparent 70%);
}

.hero-ambient {
    position: absolute;
    z-index: 0;
    pointer-events: none;
    border-radius: 50%;
    filter: blur(42px);
    opacity: .45;
    transform: translate3d(0,0,0);
}
.hero-ambient-a {
    width: 42vw;
    height: 42vw;
    left: -18vw;
    top: 18vh;
    background: radial-gradient(circle, rgba(11,90,133,.32), rgba(11,90,133,0) 68%);
}
.hero-ambient-b {
    width: 34vw;
    height: 34vw;
    right: -12vw;
    top: 4vh;
    background: radial-gradient(circle, rgba(126,231,135,.12), rgba(126,231,135,0) 68%);
}

.hero-inner {
    position: relative; z-index: 5;
    width: 100%;
}

.hero-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    min-height: calc(100vh - var(--nav-h));
    padding: 40px 0;
}

.hero-visual {
    display: flex; align-items: center; justify-content: center;
}

.hero-mark {
    position: relative;
    width: min(500px, 100%);
    aspect-ratio: 1;
    display: grid;
    place-items: center;
}
.hero-mark::before {
    content: "";
    position: absolute;
    inset: 6%;
    border: 1px solid rgba(255,255,255,.08);
    clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px);
}

.hero-logo {
    width: 100%;
    max-width: 500px;
    height: auto;
    opacity: 0.24;
    filter: drop-shadow(0 0 60px rgba(11,90,133,0.4));
    animation: logoFloat 6s ease-in-out infinite alternate;
    will-change: transform;
}

@keyframes logoFloat {
    from { transform: translateY(0); }
    to { transform: translateY(-14px); }
}

.hero-kicker {
    display: inline-flex; align-items: center; gap: 8px;
    font-family: var(--font-mono); font-size: 10px; letter-spacing: .3em;
    text-transform: uppercase; color: var(--silver-2);
    padding: 6px 12px; border: 1px solid var(--line-strong);
    clip-path: polygon(5px 0, 100% 0, 100% calc(100% - 5px), calc(100% - 5px) 100%, 0 100%, 0 5px);
    background: rgba(0,0,0,0.4); margin-bottom: 24px;
}
.kicker-dot { width: 5px; height: 5px; background: var(--violet); border-radius: 50%; box-shadow: 0 0 8px var(--violet); }

.hero-title {
    font-family: var(--font-sans); font-weight: 700;
    font-size: clamp(56px, 8vw, 110px); line-height: .92;
    letter-spacing: -0.02em; text-transform: uppercase; color: #fff;
}
.title-row { display: block; overflow: hidden; }
.title-row span {
    display: inline-block; transform: translateY(110%);
    transition: transform 1s cubic-bezier(.2,.8,.2,1);
}
.hero.lit .title-row span { transform: translateY(0); }
.hero.lit .title-row:nth-child(2) span { transition-delay: .12s; }
.hero.lit .title-row:nth-child(3) span { transition-delay: .24s; }

.title-accent {
    color: var(--violet-2);
}
.title-outline {
    -webkit-text-stroke: 1.2px rgba(255,255,255,0.45);
    -webkit-text-fill-color: transparent;
}

.hero-sub {
    margin-top: 20px; max-width: 500px;
    font-size: 17px; line-height: 1.55; color: #cfcfd6; font-weight: 300;
    opacity: 0; transition: opacity .8s ease .8s;
}
.hero.lit .hero-sub { opacity: 1; }
.hero-sub b { color: #fff; font-weight: 500; }

.hero-ctas {
    display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px;
    opacity: 0; transition: opacity .8s ease 1s;
}
.hero.lit .hero-ctas { opacity: 1; }


/* Buttons */
.btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 14px 24px;
    font-family: var(--font-mono); font-size: 11px; letter-spacing: .2em;
    text-transform: uppercase; font-weight: 500; cursor: pointer;
    transition: all .25s;
    clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
}
.btn-primary { background: var(--violet); color: #fff; border: 1px solid var(--violet); }
.btn-primary:hover { background: var(--violet-2); box-shadow: 0 0 36px rgba(11,90,133,.4); }
.btn-primary svg { transition: transform .25s; }
.btn-primary:hover svg { transform: translateX(3px); }
.btn-ghost-rim {
    display: inline-flex;
    clip-path: polygon(8px 0, 100% 0, 100% calc(100% - 8px), calc(100% - 8px) 100%, 0 100%, 0 8px);
    background: rgba(255,255,255,0.35);
    padding: 1px;
    line-height: 0;
}
.btn-ghost-rim:hover { background: rgba(255,255,255,0.52); }
.btn-ghost { clip-path: none; border: none; color: var(--silver); background: rgba(0,0,0,0.35); }
.btn-ghost:hover { color: var(--ink); background: rgba(255,255,255,0.04); }

/* ===== Section Base ===== */
.block {
    position: relative; padding: var(--section-py) 0;
}

.sec-head {
    display: flex; align-items: flex-end; justify-content: space-between;
    gap: 40px; margin-bottom: 56px; flex-wrap: wrap;
}
.sec-id {
    font-family: var(--font-mono); font-size: 10px; letter-spacing: .3em;
    color: var(--violet-2); text-transform: uppercase;
    display: flex; align-items: center; gap: 10px; margin-bottom: 12px;
}
.sec-id::before { content: ""; width: 20px; height: 1px; background: var(--violet); }
.sec-title {
    font-family: var(--font-sans); font-weight: 600;
    font-size: clamp(32px, 4.2vw, 56px); line-height: 1.05;
    letter-spacing: -0.01em; text-transform: uppercase;
}
.sec-title em { font-style: normal; color: var(--violet-2); }
.sec-desc { max-width: 400px; color: var(--muted); font-size: 14px; line-height: 1.6; }

/* ===== Trinity ===== */
.trinity {
    display: grid; grid-template-columns: repeat(3, 1fr);
    gap: 1px; background: var(--line); border: 1px solid var(--line);
}

.pillar {
    position: relative; background: var(--bg);
    padding: 40px 32px 48px; min-height: 420px;
    display: flex; flex-direction: column;
    transition: background .3s; overflow: hidden;
}
.pillar::before {
    content: ""; position: absolute; inset: 0;
    background: radial-gradient(ellipse at 50% 100%, rgba(11,90,133,0), transparent 70%);
    transition: background .35s; pointer-events: none;
}
.pillar:hover::before {
    background: radial-gradient(ellipse at 50% 100%, rgba(11,90,133,0.15), transparent 65%);
}

.pillar-glyph {
    position: absolute; right: 20px; top: 28px;
    font-family: var(--font-sans); font-weight: 700; font-size: 100px;
    line-height: 1; color: transparent;
    -webkit-text-stroke: 1px rgba(255,255,255,0.05);
    pointer-events: none;
}
.pillar-num {
    font-family: var(--font-mono); font-size: 10px; letter-spacing: .3em; color: var(--muted);
}
.pillar-title {
    font-family: var(--font-sans); font-weight: 700; font-size: 44px;
    line-height: 1; text-transform: uppercase; margin: 12px 0 18px;
    letter-spacing: .02em;
}
.pillar-desc { color: #bcbcc4; font-size: 14px; line-height: 1.6; margin-bottom: 20px; }
.pillar-list {
    display: flex; flex-direction: column; gap: 8px;
    font-family: var(--font-mono); font-size: 11px; color: var(--silver-2);
    margin-top: auto;
}
.pillar-list li {
    display: flex; align-items: center; gap: 8px;
    padding-bottom: 8px; border-bottom: 1px dashed var(--line);
}
.pillar-list li::before { content: "›"; color: var(--violet); }

/* ===== Show Grid ===== */
.show-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1fr;
    grid-template-rows: auto auto;
    gap: 16px;
}

.card {
    position: relative; background: var(--bg-3); border: 1px solid var(--line);
    overflow: hidden;
    clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
    transition: transform .35s, border-color .35s, background .35s;
}
.card:hover { transform: translateY(-3px); border-color: rgba(20,144,212,.38); background: #04101f; }
.card-large { grid-row: span 2; display: flex; flex-direction: column; }
.card-featured { background: #030913; }

.card-media {
    height: 240px; position: relative;
    overflow: hidden;
    background:
        repeating-linear-gradient(45deg, rgba(255,255,255,0.02) 0 10px, transparent 10px 20px),
        linear-gradient(135deg, #0e0e18, #070710);
}
.card-large .card-media { flex: 1; height: auto; min-height: 340px; }
.card-media::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
    background-size: 34px 34px;
    mask-image: linear-gradient(180deg, #000, transparent 82%);
    -webkit-mask-image: linear-gradient(180deg, #000, transparent 82%);
    opacity: .42;
}
.card-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 50% 35%, rgba(11,90,133,.28), transparent 62%);
    opacity: .75;
}
.media-real {
    background: #090705;
}
.media-real::before {
    z-index: 2;
    opacity: .22;
    mix-blend-mode: overlay;
}
.media-real::after {
    z-index: 3;
    background:
        linear-gradient(180deg, rgba(0,0,0,.08), transparent 30%, rgba(0,0,0,.62)),
        radial-gradient(ellipse at 50% 30%, transparent 35%, rgba(0,0,0,.25) 100%);
    opacity: 1;
}
.media-real img {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 50% 50%;
    filter: saturate(.95) contrast(1.05) brightness(.82);
    transform: scale(1.01);
    transition: transform .5s var(--ease-entry), filter .5s var(--ease-entry);
}
.media-phone img {
    object-position: 50% 0;
}
.card:hover .media-real img {
    transform: scale(1.045);
    filter: saturate(1.05) contrast(1.08) brightness(.9);
}

.card-stamp {
    position: absolute; top: 14px; right: 14px; z-index: 4;
    font-family: var(--font-mono); font-size: 9px; letter-spacing: .18em;
    color: var(--silver-2); border: 1px solid var(--line-strong);
    padding: 4px 8px; background: rgba(0,0,0,0.5);
}
.card-media-label {
    position: absolute; inset: auto 0 0 0; z-index: 4; padding: 12px 16px;
    font-family: var(--font-mono); font-size: 10px; color: var(--muted);
    letter-spacing: .16em; text-transform: uppercase;
    border-top: 1px dashed var(--line); background: rgba(0,0,0,0.4);
}
.card-media-label b { color: var(--violet-2); font-weight: 500; }

.game-map {
    position: absolute;
    inset: 64px 54px 74px;
    z-index: 2;
    transform: rotateX(58deg) rotateZ(45deg);
    transform-style: preserve-3d;
}
.game-map span {
    position: absolute;
    width: 76px;
    height: 76px;
    border: 1px solid rgba(20,144,212,.5);
    background: linear-gradient(135deg, rgba(20,144,212,.18), rgba(255,255,255,.03));
    box-shadow: 0 18px 40px rgba(11,90,133,.18);
}
.game-map span:nth-child(1) { left: 22%; top: 2%; }
.game-map span:nth-child(2) { left: 42%; top: 22%; transform: translateZ(22px); }
.game-map span:nth-child(3) { left: 62%; top: 42%; }
.game-map span:nth-child(4) { left: 20%; top: 44%; transform: translateZ(14px); }
.game-map span:nth-child(5) { left: 46%; top: 64%; }
.game-map span:nth-child(6) { left: 68%; top: 6%; transform: translateZ(30px); }
.game-hud {
    position: absolute;
    left: 22px;
    top: 22px;
    z-index: 3;
    display: flex;
    gap: 7px;
}
.game-hud i {
    width: 34px;
    height: 5px;
    background: rgba(126,231,135,.55);
    box-shadow: 0 0 12px rgba(126,231,135,.22);
}

.ai-window,
.app-board,
.phone-shell,
.rag-graph {
    position: absolute;
    z-index: 2;
}
.ai-window {
    left: 34px;
    right: 34px;
    top: 56px;
    display: grid;
    gap: 12px;
}
.ai-window span {
    height: 16px;
    border: 1px solid rgba(255,255,255,.1);
    background: linear-gradient(90deg, rgba(20,144,212,.38), rgba(20,144,212,.06));
}
.ai-window span:nth-child(2) { width: 72%; margin-left: 16%; }
.ai-window span:nth-child(3) { width: 84%; }
.ai-window span:nth-child(4) { width: 54%; margin-left: 30%; background: linear-gradient(90deg, rgba(126,231,135,.32), rgba(126,231,135,.04)); }

.app-board {
    inset: 46px 34px 56px;
    display: grid;
    grid-template-columns: 1.1fr .9fr;
    grid-template-rows: 38px 1fr 1fr;
    gap: 10px;
}
.app-board span {
    border: 1px solid rgba(255,255,255,.1);
    background: rgba(255,255,255,.045);
}
.app-board span:first-child {
    grid-column: 1 / -1;
    background: linear-gradient(90deg, rgba(20,144,212,.28), rgba(255,255,255,.04));
}
.app-board span:nth-child(2) { grid-row: span 2; }

.phone-shell {
    width: 86px;
    height: 154px;
    left: 50%;
    top: 34px;
    transform: translateX(-50%) rotate(-8deg);
    border: 1px solid rgba(255,255,255,.24);
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255,255,255,.08), rgba(255,255,255,.02));
    box-shadow: 26px 14px 50px rgba(11,90,133,.22);
    padding: 18px 12px;
}
.phone-shell span {
    display: block;
    height: 12px;
    margin-bottom: 12px;
    border-radius: 999px;
    background: rgba(20,144,212,.38);
}
.phone-shell span:nth-child(2) { width: 70%; background: rgba(255,255,255,.16); }
.phone-shell span:nth-child(3) { height: 54px; border-radius: 10px; background: rgba(126,231,135,.16); }

.rag-graph {
    inset: 48px 42px 62px;
}
.rag-graph::before,
.rag-graph::after {
    content: "";
    position: absolute;
    left: 18%;
    right: 18%;
    top: 50%;
    height: 1px;
    background: rgba(20,144,212,.42);
}
.rag-graph::after { transform: rotate(32deg); }
.rag-graph span {
    position: absolute;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 1px solid rgba(20,144,212,.58);
    background: rgba(11,90,133,.16);
    box-shadow: 0 0 24px rgba(11,90,133,.24);
}
.rag-graph span:nth-child(1) { left: 7%; top: 42%; }
.rag-graph span:nth-child(2) { left: 38%; top: 8%; }
.rag-graph span:nth-child(3) { left: 60%; top: 56%; }
.rag-graph span:nth-child(4) { right: 6%; top: 28%; }
.rag-graph span:nth-child(5) { left: 42%; top: 44%; width: 48px; height: 48px; background: rgba(126,231,135,.13); }

.media-tool,
.media-catastro {
    background:
        linear-gradient(135deg, rgba(11,90,133,.14), rgba(255,255,255,.02)),
        #080b12;
}
.media-tool::after,
.media-catastro::after {
    background: radial-gradient(ellipse at 50% 42%, rgba(20,144,212,.22), transparent 60%);
}
.tool-logo {
    position: absolute;
    z-index: 3;
    top: 34px;
    left: 34px;
    width: 58px;
    height: 58px;
    object-fit: contain;
    filter: drop-shadow(0 0 22px rgba(20,144,212,.24));
}
.doc-stack {
    position: absolute;
    z-index: 2;
    right: 34px;
    top: 42px;
    width: 112px;
    height: 136px;
}
.doc-stack span {
    position: absolute;
    inset: 0;
    border: 1px solid rgba(255,255,255,.16);
    background:
        linear-gradient(rgba(255,255,255,.12) 1px, transparent 1px) 18px 34px / 62px 14px no-repeat,
        linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px) 18px 58px / 74px 12px no-repeat,
        linear-gradient(rgba(20,144,212,.24), rgba(255,255,255,.03));
    clip-path: polygon(0 0, 78% 0, 100% 18%, 100% 100%, 0 100%);
}
.doc-stack span:nth-child(1) { transform: translate(-28px, 12px) rotate(-8deg); opacity: .5; }
.doc-stack span:nth-child(2) { transform: translate(-12px, 4px) rotate(3deg); opacity: .72; }
.doc-stack span:nth-child(3) { transform: translate(8px, 0) rotate(9deg); }
.terminal-card {
    position: absolute;
    z-index: 3;
    left: 30px;
    right: 30px;
    top: 54px;
    padding: 18px;
    border: 1px solid rgba(255,255,255,.14);
    background: rgba(0,4,8,.58);
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: .08em;
    color: var(--silver);
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}
.terminal-card span {
    display: block;
    padding: 5px 0;
    border-bottom: 1px dashed rgba(255,255,255,.08);
}
.terminal-card span:last-child {
    color: var(--violet-2);
    border-bottom: none;
}

.card-meta { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 6px; }
.card-tag {
    font-family: var(--font-mono); font-size: 9px; letter-spacing: .26em;
    color: var(--violet-2); text-transform: uppercase;
}
.card-title {
    font-family: var(--font-sans); font-weight: 600; font-size: 20px;
    letter-spacing: .01em; text-transform: uppercase;
}
.card-desc { font-size: 13px; color: var(--muted); line-height: 1.55; }
.card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: .18em;
    text-transform: uppercase;
}
.card-actions a,
.card-action-muted {
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 6px 9px;
    border: 1px solid rgba(255,255,255,.1);
    background: rgba(255,255,255,.035);
}
.card-actions a {
    color: var(--violet-2);
    transition: border-color .2s, background .2s, color .2s;
}
.card-actions a:hover {
    border-color: rgba(20,144,212,.45);
    background: rgba(20,144,212,.08);
    color: #fff;
}
.card-action-muted {
    color: var(--muted);
}
.card-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 12px;
}
.card-stack span {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 5px 8px;
    border: 1px solid rgba(255,255,255,.1);
    background: rgba(255,255,255,.035);
    font-family: var(--font-mono);
    font-size: 9px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--silver-2);
}

/* ===== Process ===== */
.process {
    display: grid; grid-template-columns: repeat(4, 1fr);
    gap: 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.step {
    padding: 32px 24px 36px; border-right: 1px solid var(--line); position: relative;
}
.step:last-child { border-right: none; }
.step-num {
    font-family: var(--font-sans); font-weight: 700; font-size: 56px;
    line-height: 1; color: var(--violet-2); opacity: .8; letter-spacing: -0.04em;
}
.step-name {
    font-family: var(--font-sans); font-weight: 600; font-size: 20px;
    text-transform: uppercase; margin: 16px 0 10px; letter-spacing: .02em;
}
.step-desc { color: var(--muted); font-size: 13px; line-height: 1.6; }
.step-dur {
    display: inline-block; margin-top: 16px;
    font-family: var(--font-mono); font-size: 10px; color: var(--silver-2);
    padding: 4px 10px; border: 1px solid var(--line);
}

/* ===== CTA Block ===== */
.cta-block {
    position: relative; padding: 100px 40px;
    background:
        radial-gradient(ellipse at 50% 100%, rgba(11,90,133,0.18), transparent 60%),
        linear-gradient(180deg, #06060a, #000);
    border: 1px solid var(--line); overflow: hidden;
    clip-path: polygon(24px 0, 100% 0, 100% calc(100% - 24px), calc(100% - 24px) 100%, 0 100%, 0 24px);
}
.cta-block::before {
    content: ""; position: absolute; inset: 0; opacity: .12; pointer-events: none;
    background-image:
        linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
    background-size: 70px 70px;
    mask-image: radial-gradient(ellipse at center, #000, transparent 65%);
    -webkit-mask-image: radial-gradient(ellipse at center, #000, transparent 65%);
}
.cta-inner { position: relative; text-align: center; max-width: 800px; margin: 0 auto; }
.cta-title {
    font-family: var(--font-sans); font-weight: 700;
    font-size: clamp(36px, 5vw, 68px); line-height: 1;
    text-transform: uppercase; letter-spacing: -0.01em;
}
.cta-title em { font-style: normal; color: var(--violet-2); text-shadow: 0 0 36px rgba(11,90,133,.4); }
.cta-desc { margin: 20px auto 32px; color: var(--muted); max-width: 520px; font-size: 15px; line-height: 1.6; }
.cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ===== Footer ===== */
.footer {
    padding: 40px 0 28px; border-top: 1px solid var(--line); background: var(--bg);
}
.footer-inner {
    display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap;
}
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-logo { width: 26px; height: 26px; object-fit: contain; }
.footer-wm {
    font-family: var(--font-mono); font-weight: 600; letter-spacing: .16em; font-size: 12px;
}
.footer-wm span { color: var(--violet-2); }
.footer-links { display: flex; gap: 24px; }
.footer-links a {
    font-family: var(--font-mono); font-size: 10px; letter-spacing: .2em;
    text-transform: uppercase; color: var(--muted); transition: color .25s;
}
.footer-links a:hover { color: var(--violet-2); }
.footer-copy {
    font-family: var(--font-mono); font-size: 10px; color: var(--muted); letter-spacing: .16em;
}

/* ===== Reveal ===== */
.reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity var(--dur-reveal) var(--ease-entry),
                transform var(--dur-reveal) var(--ease-entry);
}
.reveal.in { opacity: 1; transform: none; }

/* Stagger container: children animate individually */
.reveal-parent > * {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity var(--dur-reveal) var(--ease-entry),
                transform var(--dur-reveal) var(--ease-entry);
}
.reveal-parent.in > * {
    opacity: 1;
    transform: none;
}
.reveal-parent.in > :nth-child(1) { transition-delay: 0ms; }
.reveal-parent.in > :nth-child(2) { transition-delay: var(--stagger-sm); }
.reveal-parent.in > :nth-child(3) { transition-delay: calc(var(--stagger-sm) * 2); }
.reveal-parent.in > :nth-child(4) { transition-delay: calc(var(--stagger-sm) * 3); }
.reveal-parent.in > :nth-child(5) { transition-delay: calc(var(--stagger-sm) * 4); }

/* Section Execute: cyan line drawn on section activation */
.block::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--violet);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 400ms var(--ease-entry);
    z-index: 2;
    pointer-events: none;
}
.block.in::before { transform: scaleX(1); }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
    .hero-split {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
        min-height: auto;
        padding: 60px 0 40px;
    }
    .hero-visual { order: -1; }
    .hero-mark { width: min(330px, 86vw); }
    .hero-logo { max-width: 330px; }
    .hero-kicker { justify-content: center; }
    .hero-ctas { justify-content: center; }

    .trinity { grid-template-columns: 1fr; }
    .show-grid { grid-template-columns: 1fr 1fr; }
    .show-grid > .card:last-child:nth-child(odd) { grid-column: 1 / -1; }
    .card-large { grid-row: span 1; display: block; }
    .card-large .card-media { flex: none; height: 240px; min-height: auto; }
}

@media (max-width: 768px) {
    :root { --section-py: 80px; }
    .container { padding: 0 20px; }
    .hero-ambient { filter: blur(20px); opacity: .25; }
    .hero { min-height: auto; padding-top: var(--nav-h); }
    .hero-split { padding-top: 36px; }
    .nav-toggle { display: flex; }
    .nav-links {
        position: fixed; top: var(--nav-h); left: 0; right: 0; bottom: 0;
        flex-direction: column; justify-content: center; align-items: center;
        gap: 32px; background: var(--bg);
        transform: translateX(100%); transition: transform .3s; z-index: 99;
    }
    .nav-links.active { transform: translateX(0); }
    .nav-links a { font-size: 16px; }

    .sec-head { flex-direction: column; align-items: flex-start; gap: 16px; }
    .sec-desc { max-width: 100%; }

    .show-grid { grid-template-columns: 1fr; }
    .show-grid > .card:last-child:nth-child(odd) { grid-column: auto; }

    .card-actions a { min-height: 44px; padding: 10px 12px; }

    .cta-block { padding: 72px 24px; }
    .cta-row { flex-direction: column; align-items: center; }

    .footer-inner { flex-direction: column; text-align: center; }
}

@media (max-width: 480px) {
    :root { --section-py: 64px; --nav-h: 56px; }
    .hero-split {
        gap: 24px;
        padding-top: 20px;
    }
    .hero-title { font-size: 44px; }
    .hero-sub {
        margin-top: 16px;
        font-size: 16px;
    }
    .hero-ctas { margin-top: 22px; }
    .hero-kicker {
        max-width: 100%;
        font-size: 9px;
        letter-spacing: .18em;
        margin-bottom: 20px;
    }
    .hero-mark { width: min(220px, 70vw); }
    .pillar-title { font-size: 36px; }
    .pillar-glyph { font-size: 72px; }
    .hero-ctas { flex-direction: column; }
    .hero-ctas .btn { width: 100%; justify-content: center; }
}

/* ===== Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .reveal, .reveal-parent, .reveal-parent > * { opacity: 1; transform: none; }
    .title-row span { transform: translateY(0); }
    .hero-sub, .hero-ctas { opacity: 1; }
    .block::before { transform: scaleX(1); }
}
