:root {
    --ink: #0D1017;
    --panel: #151B26;
    --panel-2: #1B2333;
    --line: rgba(255, 255, 255, 0.08);
    --signal: #3D6BFF;
    --signal-soft: rgba(61, 107, 255, 0.14);
    --stamp: #E2483F;
    --paper: #EEF1F7;
    --muted: #8A93A8;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--ink);
    color: var(--paper);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4 {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    color: var(--paper);
    line-height: 1.08;
}

.mono {
    font-family: 'IBM Plex Mono', monospace;
}

a {
    color: inherit;
    text-decoration: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
}

::selection {
    background: var(--signal);
    color: #fff;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--signal);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* Scroll progress bar */
#progressBar {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--signal), var(--stamp));
    width: 0%;
    z-index: 200;
    transition: width 0.1s linear;
}

/* Background grid drift */
.grid-bg {
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.5;
    background-image:
        linear-gradient(var(--line) 1px, transparent 1px),
        linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 56px 56px;
    animation: gridDrift 40s linear infinite;
}

@keyframes gridDrift {
    from {
        background-position: 0 0;
    }

    to {
        background-position: 56px 56px;
    }
}

/* ---------- SIDE DOT NAV ---------- */
.dot-nav {
    position: fixed;
    right: 34px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 150;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.dot-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: flex-end;
}

.dot-nav .dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.25);
    transition: all 0.3s ease;
}

.dot-nav .lbl {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.68rem;
    color: var(--muted);
    opacity: 0;
    transform: translateX(6px);
    transition: all 0.3s ease;
    white-space: nowrap;
}

.dot-nav a:hover .lbl,
.dot-nav a.active .lbl {
    opacity: 1;
    transform: translateX(0);
}

.dot-nav a.active .dot {
    background: var(--signal);
    box-shadow: 0 0 0 4px var(--signal-soft);
    width: 10px;
    height: 10px;
}

@media (max-width:980px) {
    .dot-nav {
        display: none;
    }
}

/* ---------- HEADER ---------- */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    padding: 26px 0;
    transition: all 0.4s ease;
}

header.scrolled {
    background: rgba(13, 16, 23, 0.85);
    backdrop-filter: blur(10px);
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-mark {
    width: 38px;
    height: 38px;
}

.brand span {
    font-family: 'Space Grotesk', sans-serif;
    font-weight: 700;
    font-size: 1.05rem;
}

.brand small {
    display: block;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.62rem;
    letter-spacing: 0.1em;
    color: var(--muted);
    text-transform: uppercase;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 34px;
    font-size: 0.86rem;
}

.nav-links a:not(.btn-cta) {
    color: var(--muted);
    position: relative;
    transition: color 0.3s ease;
}

.nav-links a:not(.btn-cta):hover {
    color: var(--paper);
}

.btn-cta {
    background: var(--signal);
    color: #fff;
    padding: 11px 22px;
    border-radius: 3px;
    font-weight: 600;
    font-size: 0.82rem;
    transition: all 0.25s ease;
}

.btn-cta:hover {
    background: #5580FF;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(61, 107, 255, 0.35);
}

.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--paper);
    font-size: 1.6rem;
    cursor: pointer;
}

@media (max-width:880px) {
    .nav-links {
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: 80%;
        max-width: 320px;
        background: var(--panel);
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
        padding: 40px;
        gap: 26px;
        transform: translateX(100%);
        transition: transform 0.4s ease;
        border-left: 1px solid var(--line);
    }

    .nav-links.open {
        transform: translateX(0);
    }

    .nav-toggle {
        display: block;
    }
}

section {
    position: relative;
    z-index: 1;
    padding: 150px 0;
}

.page-tag {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 22px;
}

.page-tag .idx {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.78rem;
    color: var(--stamp);
    letter-spacing: 0.05em;
}

.page-tag .lbl {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.72rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
}

.page-tag::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--line);
    margin-left: 8px;
    max-width: 180px;
}

.section-head h2 {
    font-size: clamp(2rem, 3.6vw, 3.1rem);
    max-width: 680px;
}

.section-head p.sub {
    color: var(--muted);
    max-width: 560px;
    margin-top: 18px;
    font-size: 1.02rem;
}

/* ---------- HERO ---------- */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 110px;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 60px;
    align-items: center;
}

.hero h1 {
    font-size: clamp(2.6rem, 5.6vw, 4.8rem);
    margin: 20px 0 26px;
    overflow: hidden;
}

.hero h1 .line {
    display: block;
    overflow: hidden;
}

.hero h1 .line span {
    display: block;
    transform: translateY(110%);
    animation: riseIn 0.9s cubic-bezier(.2, .8, .2, 1) forwards;
}

.hero h1 .line:nth-child(1) span {
    animation-delay: 0.15s;
}

.hero h1 .line:nth-child(2) span {
    animation-delay: 0.32s;
    color: var(--signal);
}

@keyframes riseIn {
    to {
        transform: translateY(0);
    }
}

.hero p.lede {
    color: var(--muted);
    font-size: 1.1rem;
    max-width: 520px;
    margin-bottom: 38px;
    opacity: 0;
    animation: fadeUp 0.9s ease forwards 0.75s;
}

.hero-ctas {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    opacity: 0;
    animation: fadeUp 0.9s ease forwards 0.95s;
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.btn-primary {
    background: var(--signal);
    color: #fff;
    padding: 16px 30px;
    border-radius: 3px;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-primary:hover {
    background: #5580FF;
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(61, 107, 255, 0.35);
}

.btn-ghost {
    border: 1px solid var(--line);
    color: var(--paper);
    padding: 16px 30px;
    border-radius: 3px;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.btn-ghost:hover {
    border-color: var(--signal);
    color: var(--signal);
}

.hero-badge {
    justify-self: center;
    width: 230px;
    height: 230px;
    border-radius: 50%;
    border: 1px solid var(--line);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    opacity: 0;
    animation: fadeUp 1s ease forwards 1.1s;
}

.hero-badge::before {
    content: '';
    position: absolute;
    inset: -16px;
    border: 1px dashed rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    animation: spinSlow 30s linear infinite;
}

@keyframes spinSlow {
    to {
        transform: rotate(360deg);
    }
}

.hero-badge .bt {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.6rem;
    letter-spacing: 0.15em;
    color: var(--muted);
    text-align: center;
    text-transform: uppercase;
    padding: 0 20px;
}

.hero-badge .bn {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.1rem;
    color: var(--paper);
    margin: 6px 0;
}

/* Ticker */
.ticker-wrap {
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    overflow: hidden;
    padding: 22px 0;
    background: var(--panel);
}

.ticker {
    display: flex;
    width: max-content;
    animation: tickerMove 32s linear infinite;
}

.ticker span {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.9rem;
    color: var(--muted);
    padding: 0 28px;
    white-space: nowrap;
    display: flex;
    align-items: center;
    gap: 28px;
}

.ticker span::after {
    content: '●';
    color: var(--stamp);
    font-size: 0.5rem;
}

@keyframes tickerMove {
    from {
        transform: translateX(0);
    }

    to {
        transform: translateX(-50%);
    }
}

/* ---------- ABOUT / STAMP ---------- */
.about {
    background: var(--panel);
}

.about-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 70px;
    align-items: center;
}

.stamp-stage {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    min-height: 320px;
}

.stamp-svg {
    width: 260px;
    height: 260px;
    transform: scale(1.6) rotate(-8deg);
    opacity: 0;
    transition: transform 0.55s cubic-bezier(.2, .9, .2, 1.2), opacity 0.3s ease;
}

.stamp-svg.slam {
    transform: scale(1) rotate(-6deg);
    opacity: 1;
}

.about-text ul {
    list-style: none;
    margin-top: 28px;
    display: grid;
    gap: 16px;
}

.about-text li {
    display: flex;
    gap: 12px;
    font-size: 0.94rem;
    color: var(--muted);
}

.about-text li .tick {
    color: var(--signal);
    font-family: 'IBM Plex Mono', monospace;
}

.cred-strip {
    display: flex;
    gap: 0;
    margin-top: 36px;
    border-top: 1px solid var(--line);
    padding-top: 26px;
}

.cred-strip div {
    flex: 1;
    border-right: 1px solid var(--line);
    padding-right: 20px;
    margin-right: 20px;
}

.cred-strip div:last-child {
    border-right: none;
}

.cred-strip .val {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 1.6rem;
    color: var(--paper);
}

.cred-strip .lbl {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.66rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
}

/* ---------- EXPERTISE ---------- */
.expertise-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--line);
    margin-top: 60px;
    border: 1px solid var(--line);
}

.exp-card {
    background: var(--ink);
    padding: 38px 32px;
    transition: background 0.3s ease, transform 0.3s ease;
    position: relative;
    overflow: hidden;
}

.exp-card::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: var(--signal);
    transform: scaleY(0);
    transform-origin: bottom;
    transition: transform 0.4s ease;
}

.exp-card:hover {
    background: var(--panel-2);
    transform: translateY(-4px);
}

.exp-card:hover::before {
    transform: scaleY(1);
}

.exp-card .ic {
    width: 38px;
    height: 38px;
    color: var(--signal);
    margin-bottom: 20px;
}

.exp-card h3 {
    font-size: 1.3rem;
    margin-bottom: 10px;
}

.exp-card p {
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.7;
}

.exp-card .tag-num {
    position: absolute;
    top: 22px;
    right: 24px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.2);
}

@media (max-width:880px) {
    .expertise-grid {
        grid-template-columns: 1fr;
    }
}

/* ---------- TRACK RECORD ---------- */
.track {
    background: var(--panel);
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2px;
    background: var(--line);
    border: 1px solid var(--line);
    margin-top: 56px;
}

.stat-card {
    background: var(--panel);
    padding: 44px 30px;
    text-align: left;
}

.stat-card .num {
    font-family: 'Space Grotesk', sans-serif;
    font-size: 3rem;
    color: var(--paper);
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.stat-card .num .suffix {
    font-size: 1.4rem;
    color: var(--signal);
}

.stat-card .lbl {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.7rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
    margin-top: 10px;
}

@media (max-width:880px) {
    .stat-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ---------- PROCESS ---------- */
.process-list {
    margin-top: 60px;
    border-top: 1px solid var(--line);
}

.proc-row {
    display: grid;
    grid-template-columns: 80px 1fr 1.4fr;
    gap: 34px;
    align-items: center;
    padding: 34px 0;
    border-bottom: 1px solid var(--line);
    transition: background 0.3s ease;
}

.proc-row:hover {
    background: rgba(61, 107, 255, 0.04);
}

.proc-row .pnum {
    font-family: 'IBM Plex Mono', monospace;
    color: var(--stamp);
    font-size: 1rem;
}

.proc-row h3 {
    font-size: 1.4rem;
}

.proc-row p {
    color: var(--muted);
    font-size: 0.92rem;
}

/* ---------- TESTIMONIALS ---------- */
.testi-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin-top: 56px;
}

.testi-card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 34px 28px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.testi-card:hover {
    border-color: var(--signal);
    transform: translateY(-4px);
}

.testi-card .qm {
    color: var(--signal);
    font-family: 'Space Grotesk', sans-serif;
    font-size: 2.4rem;
    line-height: 0.5;
    height: 24px;
}

.testi-card p.q {
    color: #D6DAE4;
    font-size: 0.96rem;
}

.testi-card .who {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.72rem;
    color: var(--muted);
    border-top: 1px solid var(--line);
    padding-top: 14px;
}

@media (max-width:880px) {
    .testi-grid {
        grid-template-columns: 1fr;
    }
}

/* ---------- CONTACT ---------- */
.contact {
    background: var(--panel);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
}

.contact-info dl {
    display: grid;
    gap: 24px;
    margin-top: 30px;
}

.contact-info dt {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--signal);
    margin-bottom: 6px;
}

.contact-info dd {
    font-size: 1rem;
    color: var(--paper);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.68rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 14px 16px;
    background: var(--ink);
    border: 1px solid var(--line);
    color: var(--paper);
    font-family: 'Inter', sans-serif;
    font-size: 0.96rem;
    border-radius: 3px;
    transition: border-color 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    border-color: var(--signal);
    outline: none;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.btn-submit {
    background: var(--signal);
    color: #fff;
    padding: 16px 32px;
    border: none;
    border-radius: 3px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-submit:hover {
    background: #5580FF;
    transform: translateY(-2px);
}

.form-note {
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.78rem;
    color: var(--muted);
    margin-top: 14px;
    min-height: 1.2em;
}

@media (max-width:880px) {

    .hero-inner,
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .hero-badge {
        margin-top: 30px;
    }
}

footer {
    background: var(--ink);
    border-top: 1px solid var(--line);
    padding: 50px 0 30px;
    position: relative;
    z-index: 1;
}

.footer-top {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
    padding-bottom: 28px;
    border-bottom: 1px solid var(--line);
}

.footer-links {
    display: flex;
    gap: 26px;
    font-size: 0.86rem;
    color: var(--muted);
}

.footer-links a:hover {
    color: var(--signal);
}

.footer-bottom {
    padding-top: 22px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    font-family: 'IBM Plex Mono', monospace;
    font-size: 0.7rem;
    color: var(--muted);
}

.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s ease, transform 0.8s ease;
}

.reveal.in {
    opacity: 1;
    transform: translateY(0);
}