/* =========================================================
   Makkari Security — 2026
   Design language: dark hybrid
   Primary: signal teal  |  Secondary: electric violet
   Type accent: JetBrains Mono + terminal cursor
   ========================================================= */

:root {
    --bg:            #070a0f;
    --bg-elev:       #0c1118;
    --bg-elev-2:     #121924;
    --ink:           #e8ecf1;
    --ink-dim:       #9aa4b2;
    --ink-mute:      #5a6472;
    --line:          rgba(255,255,255,0.08);
    --line-strong:   rgba(255,255,255,0.14);

    --teal:          #3ddcb2;   /* primary accent */
    --teal-dim:      #1f8f77;
    --teal-glow:     rgba(61, 220, 178, 0.18);

    --violet:        #a855f7;   /* secondary accent */
    --violet-dim:    #7c3aed;
    --violet-glow:   rgba(168, 85, 247, 0.22);

    --danger:        #ff5c5c;

    --radius-sm:     4px;
    --radius:        8px;
    --radius-lg:     14px;

    --mono:          'JetBrains Mono', 'SF Mono', 'Menlo', 'Consolas', monospace;
    --sans:          'Inter', 'Helvetica Neue', 'Arial', sans-serif;

    --ease:          cubic-bezier(0.2, 0.8, 0.2, 1);
    --max-w:         1200px;
}

/* -------- Base -------- */
* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body {
    overflow-x: hidden;
    background:
        radial-gradient(ellipse 80% 50% at 50% -20%, rgba(61,220,178,0.05), transparent 60%),
        radial-gradient(ellipse 60% 40% at 100% 100%, rgba(168,85,247,0.04), transparent 60%),
        var(--bg);
    background-attachment: fixed;
}

a { color: var(--teal); text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { color: var(--violet); }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--sans);
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.12;
    color: var(--ink);
    margin: 0 0 0.6em;
}

h1 { font-size: clamp(2rem, 5vw, 4rem); font-weight: 500; }
h2 { font-size: clamp(1.55rem, 3.4vw, 2.6rem); font-weight: 500; }
h3 { font-size: clamp(1.15rem, 2vw, 1.5rem); }
p  { color: var(--ink-dim); margin: 0 0 1em; }

img, svg { max-width: 100%; display: block; }

/* -------- Layout -------- */
.container {
    width: 100%;
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 24px;
}

section { position: relative; }

.section-pad        { padding: 96px 0; }
.section-pad-sm     { padding: 64px 0; }
.section-pad-lg     { padding: 140px 0; }

.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 900px) {
    .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
    .section-pad, .section-pad-lg { padding: 64px 0; }
    .section-pad-sm { padding: 48px 0; }
    .container { padding: 0 20px; }
}

/* -------- Term (the code-tagged accent word) -------- */
.term {
    font-family: var(--mono);
    font-weight: 500;
    font-size: 0.92em;
    letter-spacing: -0.01em;
    color: var(--teal);
    white-space: nowrap;
    display: inline;
    padding-right: 1px;
}
.term-violet { color: var(--violet); }

.term::after {
    content: "";
    display: inline-block;
    width: 0.58em;
    height: 1em;
    background: currentColor;
    vertical-align: -0.14em;
    margin-left: 4px;
    box-shadow: 0 0 10px currentColor;
    opacity: 0.9;
}
/* Fires once per term the first time it scrolls into view (JS adds .blinked).
   Five flashes, then the cursor collapses so the trailing gap closes. */
.term.blinked::after {
    animation:
        cursor-blink 1.8s steps(1, end) 1 forwards,
        cursor-collapse 0.22s var(--ease) 1 forwards 1.8s;
}
@keyframes cursor-blink {
    0%   { opacity: 0.9; }
    10%  { opacity: 0; }
    20%  { opacity: 0.9; }
    30%  { opacity: 0; }
    40%  { opacity: 0.9; }
    50%  { opacity: 0; }
    60%  { opacity: 0.9; }
    70%  { opacity: 0; }
    80%  { opacity: 0.9; }
    90%  { opacity: 0; }
    100% { opacity: 0; }
}
@keyframes cursor-collapse {
    from { width: 0.58em; margin-left: 4px; }
    to   { width: 0;      margin-left: 0; }
}
/* Page-title terms keep a slow, indefinite blink (pure CSS, no JS class) */
.term.perpetual::after {
    animation: cursor-blink-slow 1.15s steps(1, end) infinite;
}
@keyframes cursor-blink-slow {
    0%   { opacity: 0.9; }
    50%  { opacity: 0; }
    100% { opacity: 0.9; }
}
@media (prefers-reduced-motion: reduce) {
    .term::after,
    .term.blinked::after,
    .term.perpetual::after { animation: none !important; opacity: 0 !important; }
}

/* -------- Eyebrow -------- */
.eyebrow {
    font-family: var(--mono);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.22em;
    color: var(--teal);
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}
.eyebrow::before {
    content: "";
    display: inline-block;
    width: 8px; height: 8px;
    border-radius: 50%;
    background: var(--teal);
    box-shadow: 0 0 12px var(--teal-glow);
}
.eyebrow.violet { color: var(--violet); }
.eyebrow.violet::before { background: var(--violet); box-shadow: 0 0 12px var(--violet-glow); }

/* -------- Header / Nav -------- */
.site-header {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 100;
    padding: 16px 0;
    background: rgba(7, 10, 15, 0.75);
    backdrop-filter: saturate(160%) blur(14px);
    -webkit-backdrop-filter: saturate(160%) blur(14px);
    border-bottom: 1px solid var(--line);
}
.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-family: var(--mono);
    font-weight: 500;
    letter-spacing: 0.18em;
    font-size: 0.9rem;
    color: var(--ink);
    text-transform: uppercase;
    flex-shrink: 0;
}
.brand:hover { color: var(--ink); }

/* Layered-lattice logo mark */
.brand-mark {
    width: 26px; height: 26px;
    display: inline-block;
    flex-shrink: 0;
}
.brand-mark svg { width: 100%; height: 100%; display: block; }

.nav-links {
    display: flex;
    align-items: center;
    gap: 28px;
    list-style: none;
    padding: 0;
    margin: 0;
}
.nav-links a {
    color: var(--ink-dim);
    font-size: 0.86rem;
    font-weight: 500;
    letter-spacing: 0.01em;
    transition: color 0.2s var(--ease);
    white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.active { color: var(--ink); }

.nav-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 14px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    font-family: var(--mono);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--ink);
    transition: all 0.2s var(--ease);
    flex-shrink: 0;
}
.nav-cta:hover { border-color: var(--teal); color: var(--teal); }
.nav-cta .pulse {
    width: 7px; height: 7px; border-radius: 50%;
    background: var(--teal);
    box-shadow: 0 0 0 0 var(--teal-glow);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%   { box-shadow: 0 0 0 0 rgba(61,220,178,0.5); }
    70%  { box-shadow: 0 0 0 10px rgba(61,220,178,0); }
    100% { box-shadow: 0 0 0 0 rgba(61,220,178,0); }
}

.nav-toggle {
    display: none;
    background: none;
    border: 0;
    color: var(--ink);
    cursor: pointer;
    padding: 8px;
}
.nav-toggle svg { width: 24px; height: 24px; }

@media (max-width: 1080px) {
    .nav-links { display: none; }
    .nav-toggle { display: inline-flex; }
    .site-header.open .nav-links {
        display: flex;
        flex-direction: column;
        gap: 12px;
        align-items: flex-start;
        position: absolute;
        top: 100%; left: 0; right: 0;
        padding: 20px 24px 24px;
        background: var(--bg-elev);
        border-bottom: 1px solid var(--line);
    }
    .site-header.open .nav-links a { padding: 6px 0; font-size: 1rem; }
}
@media (max-width: 520px) {
    .nav-cta { padding: 8px 12px; font-size: 0.66rem; }
    .nav-cta .cta-label { display: none; }
}

/* -------- Hero -------- */
.hero {
    padding: 180px 0 120px;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to bottom, transparent 40%, var(--bg) 100%),
        url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='40' height='40'><circle cx='1' cy='1' r='0.6' fill='%23ffffff' opacity='0.06'/></svg>");
    pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; max-width: 920px; }
.hero h1 {
    font-size: clamp(2.1rem, 5.2vw, 4.4rem);
    font-weight: 400;
    line-height: 1.05;
    letter-spacing: -0.03em;
    margin-bottom: 28px;
}
.hero-lead {
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    color: var(--ink-dim);
    max-width: 620px;
    margin-bottom: 36px;
}

@media (max-width: 700px) {
    .hero { padding: 140px 0 80px; }
    .hero h1 { font-size: clamp(1.9rem, 8vw, 2.6rem); }
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 13px 20px;
    border-radius: 999px;
    font-family: var(--mono);
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.2s var(--ease);
    background: transparent;
    color: var(--ink);
}
.btn-primary {
    background: var(--teal);
    color: #061510;
    border-color: var(--teal);
}
.btn-primary:hover { background: #5aedc4; color: #061510; transform: translateY(-1px); }
.btn-violet {
    background: var(--violet);
    color: #14021f;
    border-color: var(--violet);
}
.btn-violet:hover { background: #c07cff; color: #14021f; }
.btn-ghost {
    border-color: var(--line-strong);
    color: var(--ink);
}
.btn-ghost:hover { border-color: var(--teal); color: var(--teal); }

.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }

.arrow {
    display: inline-block;
    transition: transform 0.25s var(--ease);
}
.btn:hover .arrow { transform: translateX(4px); }

/* -------- Hero grid overlay -------- */
.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--line) 1px, transparent 1px),
        linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 80px 80px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black, transparent 70%);
    -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 40%, black, transparent 70%);
    pointer-events: none;
    opacity: 0.5;
}

/* -------- Awards strip -------- */
.awards {
    padding: 48px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: var(--bg-elev);
}
.awards-inner {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
}
.award {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(135deg, rgba(255,255,255,0.01), transparent);
    transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.award:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.award-year {
    font-family: var(--mono);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--teal);
    margin-bottom: 6px;
}
.award.violet .award-year { color: var(--violet); }
.award-icon {
    flex-shrink: 0;
    width: 44px; height: 44px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--line-strong);
    display: grid; place-items: center;
    color: var(--teal);
    background: rgba(61,220,178,0.05);
}
.award.violet .award-icon { color: var(--violet); background: rgba(168,85,247,0.07); }
.award-title { font-size: 1.05rem; font-weight: 500; margin: 0 0 4px; color: var(--ink); }
.award-source { font-size: 0.85rem; color: var(--ink-mute); margin: 0; }

@media (max-width: 700px) {
    .awards-inner { grid-template-columns: 1fr; }
}

/* -------- Section heading -------- */
.section-heading { margin-bottom: 48px; max-width: 780px; }
.section-heading.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-heading h2 {
    font-size: clamp(1.7rem, 3.4vw, 2.6rem);
    font-weight: 400;
    letter-spacing: -0.02em;
}
.section-heading p { font-size: 1.02rem; max-width: 640px; }
.section-heading.center p { margin-left: auto; margin-right: auto; }

/* -------- Cards -------- */
.card {
    padding: 28px 24px;
    background: var(--bg-elev);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    position: relative;
    overflow: hidden;
    transition: border-color 0.25s var(--ease), transform 0.3s var(--ease);
}
.card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--teal), transparent);
    opacity: 0;
    transition: opacity 0.3s var(--ease);
}
.card:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.card:hover::before { opacity: 1; }

.card-icon {
    width: 42px; height: 42px;
    border-radius: var(--radius-sm);
    background: rgba(61,220,178,0.08);
    color: var(--teal);
    display: grid; place-items: center;
    margin-bottom: 20px;
}
.card h3 {
    font-size: 1.15rem;
    font-weight: 500;
    margin-bottom: 8px;
}
.card p { font-size: 0.94rem; color: var(--ink-dim); margin-bottom: 16px; }
.card-link {
    font-family: var(--mono);
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--teal);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.card.violet .card-icon { background: rgba(168,85,247,0.09); color: var(--violet); }
.card.violet .card-link { color: var(--violet); }
.card.violet::before { background: linear-gradient(90deg, transparent, var(--violet), transparent); }

/* -------- Stats band -------- */
.stats-band {
    padding: 72px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: var(--bg-elev);
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}
.stat { text-align: left; }
.stat-num {
    font-family: var(--mono);
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 500;
    line-height: 1;
    color: var(--teal);
    letter-spacing: -0.02em;
}
.stat:nth-child(even) .stat-num { color: var(--violet); }
.stat-label {
    margin-top: 12px;
    font-family: var(--mono);
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--ink-dim);
}
@media (max-width: 900px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 28px; }
}
@media (max-width: 500px) {
    .stats-band { padding: 56px 0; }
    .stat-num { font-size: 2rem; }
}

/* -------- Split sections -------- */
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    align-items: center;
}
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 40px; } }

/* -------- Callouts -------- */
.callout {
    padding: 32px;
    border-left: 2px solid var(--violet);
    background: linear-gradient(90deg, rgba(168,85,247,0.06), transparent 60%);
    border-radius: 0 var(--radius) var(--radius) 0;
    margin: 32px 0;
}
.callout.teal {
    border-left-color: var(--teal);
    background: linear-gradient(90deg, rgba(61,220,178,0.05), transparent 60%);
}
.callout p:last-child { margin-bottom: 0; }

/* -------- Checklist -------- */
.checklist {
    list-style: none;
    padding: 0;
    margin: 0;
}
.checklist li {
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
    display: flex;
    gap: 16px;
    align-items: flex-start;
}
.checklist li:last-child { border-bottom: 0; }
.checklist li::before {
    content: "";
    flex-shrink: 0;
    margin-top: 9px;
    width: 6px; height: 6px;
    background: var(--teal);
    border-radius: 50%;
}
.checklist.violet li::before { background: var(--violet); }
.checklist strong { color: var(--ink); font-weight: 600; }
.checklist span { color: var(--ink-dim); }

/* -------- Contrast block -------- */
.contrast {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
}
.contrast > div { padding: 32px; }
.contrast .col-them { background: rgba(255,92,92,0.03); border-right: 1px solid var(--line); }
.contrast .col-us { background: rgba(61,220,178,0.03); }
.contrast h4 {
    font-family: var(--mono);
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    margin-bottom: 20px;
}
.contrast .col-them h4 { color: var(--danger); }
.contrast .col-us h4 { color: var(--teal); }
.contrast ul { list-style: none; padding: 0; margin: 0; }
.contrast li { padding: 10px 0; color: var(--ink-dim); font-size: 0.94rem; border-bottom: 1px dashed var(--line); }
.contrast li:last-child { border-bottom: 0; }
.contrast .col-them li::before { content: "✕ "; color: var(--danger); margin-right: 8px; }
.contrast .col-us li::before { content: "✓ "; color: var(--teal); margin-right: 8px; }

@media (max-width: 800px) {
    .contrast { grid-template-columns: 1fr; }
    .contrast .col-them { border-right: 0; border-bottom: 1px solid var(--line); }
    .contrast > div { padding: 24px; }
}

/* -------- Blog -------- */
.post-card {
    display: block;
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--bg-elev);
    transition: border-color 0.25s var(--ease), transform 0.3s var(--ease);
    height: 100%;
}
.post-card:hover { border-color: var(--teal); transform: translateY(-3px); }
.post-meta {
    font-family: var(--mono);
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--ink-mute);
    margin-bottom: 14px;
    display: flex; gap: 10px; align-items: center; flex-wrap: wrap;
}
.post-meta .dot { width: 3px; height: 3px; background: var(--ink-mute); border-radius: 50%; }
.post-card h3 {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 10px;
    color: var(--ink);
}
.post-card p { font-size: 0.94rem; color: var(--ink-dim); }

/* -------- Big CTA -------- */
.cta-band {
    padding: 96px 0;
    background:
        linear-gradient(135deg, rgba(61,220,178,0.06), transparent 60%),
        linear-gradient(-135deg, rgba(168,85,247,0.06), transparent 60%),
        var(--bg-elev);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.cta-band .container { text-align: center; }
.cta-band h2 {
    font-size: clamp(1.7rem, 3.4vw, 2.6rem);
    font-weight: 400;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}
.cta-band p { font-size: 1.02rem; max-width: 620px; margin: 0 auto 28px; }

@media (max-width: 600px) { .cta-band { padding: 72px 0; } }

/* -------- Footer -------- */
.site-footer {
    padding: 64px 0 24px;
    background: var(--bg-elev);
    border-top: 1px solid var(--line);
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 48px;
}
.footer-grid h5 {
    font-family: var(--mono);
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--ink-mute);
    margin-bottom: 14px;
    font-weight: 500;
}
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { padding: 5px 0; }
.footer-grid a { color: var(--ink-dim); font-size: 0.88rem; }
.footer-grid a:hover { color: var(--teal); }
.footer-tagline {
    color: var(--ink-dim);
    font-size: 0.92rem;
    max-width: 320px;
    margin-top: 14px;
}
.footer-bottom {
    border-top: 1px solid var(--line);
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
    font-family: var(--mono);
    font-size: 0.72rem;
    color: var(--ink-mute);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}
.footer-bottom .pill { display: inline-flex; gap: 8px; align-items: center; }
.footer-bottom .pill .pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--teal); animation: pulse 2s infinite; }

@media (max-width: 900px) {
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (max-width: 500px) {
    .footer-grid { grid-template-columns: 1fr; }
}

/* -------- Sub-page hero -------- */
.page-hero {
    padding: 150px 0 64px;
    border-bottom: 1px solid var(--line);
    position: relative;
    overflow: hidden;
}
.page-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to bottom, transparent 60%, var(--bg) 100%),
        url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24'><circle cx='1' cy='1' r='0.5' fill='%23ffffff' opacity='0.05'/></svg>");
    pointer-events: none;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { max-width: 900px; font-size: clamp(1.9rem, 4.6vw, 3.4rem); font-weight: 400; line-height: 1.08; }
.page-hero .lead { max-width: 720px; font-size: 1.08rem; color: var(--ink-dim); }

@media (max-width: 600px) {
    .page-hero { padding: 120px 0 48px; }
    .page-hero h1 { font-size: clamp(1.7rem, 8vw, 2.2rem); }
}

/* -------- Forms -------- */
.form { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 700px) { .form-row { grid-template-columns: 1fr; } }
.form label {
    display: block;
    font-family: var(--mono);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--ink-mute);
    margin-bottom: 6px;
}
.form input,
.form select,
.form textarea {
    width: 100%;
    padding: 13px 14px;
    background: var(--bg);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 0.94rem;
    transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.form input:focus,
.form select:focus,
.form textarea:focus {
    outline: 0;
    border-color: var(--teal);
    background: rgba(61,220,178,0.03);
}
.form textarea { min-height: 150px; resize: vertical; }

.form-status {
    font-family: var(--mono);
    font-size: 0.84rem;
    padding: 12px 14px;
    border-radius: var(--radius);
    display: none;
}
.form-status.ok  { display: block; color: #061510; background: var(--teal); }
.form-status.err { display: block; color: #2a0505; background: var(--danger); }

/* -------- Partners row -------- */
.partners-row {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
    padding: 32px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    opacity: 0.82;
}
.partners-row span {
    font-family: var(--mono);
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--ink-mute);
    padding: 7px 14px;
    border: 1px dashed var(--line-strong);
    border-radius: var(--radius-sm);
}

/* -------- Ticker -------- */
.ticker {
    display: flex;
    gap: 32px;
    overflow: hidden;
    padding: 22px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    background: var(--bg-elev);
    mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}
.ticker-track {
    display: flex;
    gap: 44px;
    white-space: nowrap;
    animation: ticker 60s linear infinite;
}
.ticker-item {
    font-family: var(--mono);
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--ink-dim);
    display: inline-flex; align-items: center; gap: 10px;
}
.ticker-item::before {
    content: "";
    width: 6px; height: 6px;
    background: var(--teal);
    border-radius: 50%;
}
.ticker-item:nth-child(even)::before { background: var(--violet); }
@keyframes ticker {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}

/* -------- Reveal animation (only when JS is active) -------- */
.js .reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .js .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* -------- Utility -------- */
.mono { font-family: var(--mono); }
.text-muted { color: var(--ink-mute); }
.text-dim { color: var(--ink-dim); }
.text-teal { color: var(--teal); }
.text-violet { color: var(--violet); }
.mb-0 { margin-bottom: 0 !important; }
.mt-lg { margin-top: 48px; }
.center { text-align: center; }

/* -------- Page header (new sub-page hero) -------- */
.page-header {
    padding: 150px 0 56px;
    border-bottom: 1px solid var(--line);
    position: relative;
    overflow: hidden;
}
.page-header::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(to bottom, transparent 50%, var(--bg) 100%),
        radial-gradient(ellipse 60% 40% at 20% 0%, rgba(61,220,178,0.06), transparent 60%),
        radial-gradient(ellipse 50% 40% at 90% 20%, rgba(168,85,247,0.05), transparent 60%);
    pointer-events: none;
}
.page-header .container { position: relative; z-index: 1; }
.page-header h1 {
    max-width: 940px;
    font-size: clamp(1.9rem, 4.6vw, 3.4rem);
    font-weight: 500;
    line-height: 1.08;
    margin-bottom: 22px;
}
.page-lead {
    max-width: 760px;
    font-size: 1.08rem;
    color: var(--ink-dim);
    line-height: 1.6;
    margin-bottom: 28px;
}
@media (max-width: 600px) {
    .page-header { padding: 120px 0 44px; }
    .page-header h1 { font-size: clamp(1.7rem, 8vw, 2.2rem); }
    .page-lead { font-size: 1rem; }
}

/* -------- Alt band -------- */
.alt-band {
    background: var(--bg-elev);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

/* -------- Narrow content column -------- */
.container.narrow { max-width: 820px; }
.container.narrow h2 { margin-bottom: 0.5em; }
.container.narrow p { font-size: 1.02rem; line-height: 1.7; }

.text-lead {
    font-size: 1.12rem;
    color: var(--ink);
    line-height: 1.65;
    margin-bottom: 1em;
}

/* -------- Feature list -------- */
.feature-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.feature-list li {
    position: relative;
    padding: 8px 0 8px 22px;
    font-size: 0.94rem;
    color: var(--ink-dim);
    border-bottom: 1px dashed var(--line);
}
.feature-list li:last-child { border-bottom: 0; }
.feature-list li::before {
    content: "›";
    position: absolute;
    left: 0;
    top: 7px;
    color: var(--teal);
    font-family: var(--mono);
}
.card.violet .feature-list li::before { color: var(--violet); }

/* -------- Contrast grid (mission page) -------- */
.contrast-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-top: 24px;
}
@media (max-width: 800px) { .contrast-grid { grid-template-columns: 1fr; } }

.contrast-col {
    background: var(--bg-elev);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 28px;
    position: relative;
}
.contrast-col.makkari {
    background: linear-gradient(180deg, rgba(61,220,178,0.05), rgba(168,85,247,0.03));
    border-color: rgba(61,220,178,0.25);
}
.contrast-head {
    font-family: var(--mono);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--ink-mute);
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
}
.contrast-head.typical { color: var(--danger); }
.contrast-col.makkari .contrast-head { color: var(--teal); }
.contrast-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.contrast-list li {
    padding: 10px 0 10px 26px;
    font-size: 0.94rem;
    color: var(--ink-dim);
    border-bottom: 1px dashed var(--line);
    position: relative;
}
.contrast-list li:last-child { border-bottom: 0; }
.contrast-col:not(.makkari) .contrast-list li::before {
    content: "✕";
    position: absolute;
    left: 0;
    top: 10px;
    color: var(--danger);
    font-family: var(--mono);
    font-size: 0.85rem;
}
.contrast-col.makkari .contrast-list li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 10px;
    color: var(--teal);
    font-family: var(--mono);
    font-size: 0.9rem;
}

/* -------- Principles grid (mission) -------- */
.principles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    margin-top: 24px;
}
@media (max-width: 900px) { .principles-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .principles-grid { grid-template-columns: 1fr; } }

.principle {
    background: var(--bg-elev);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 24px;
    position: relative;
    transition: border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.principle:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.principle-num {
    font-family: var(--mono);
    font-size: 0.78rem;
    letter-spacing: 0.16em;
    color: var(--teal);
    margin-bottom: 12px;
}
.principle:nth-child(even) .principle-num { color: var(--violet); }
.principle h4 {
    font-size: 1.02rem;
    font-weight: 500;
    margin: 0 0 10px;
    color: var(--ink);
}
.principle p {
    font-size: 0.92rem;
    color: var(--ink-dim);
    margin: 0;
    line-height: 1.58;
}

/* -------- Stack grid (managed security) -------- */
.stack-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin-top: 24px;
}
@media (max-width: 900px) { .stack-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .stack-grid { grid-template-columns: 1fr; } }

.stack-card {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px 22px;
    transition: border-color 0.2s var(--ease);
}
.stack-card:hover { border-color: var(--line-strong); }
.stack-head {
    font-family: var(--mono);
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    color: var(--teal);
    margin-bottom: 10px;
}
.stack-card:nth-child(even) .stack-head { color: var(--violet); }
.stack-body {
    font-size: 0.92rem;
    color: var(--ink-dim);
    margin: 0;
    line-height: 1.6;
}

/* -------- Contact shell (unified contact page) -------- */
.contact-shell {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 56px;
    align-items: start;
}
@media (max-width: 900px) {
    .contact-shell { grid-template-columns: 1fr; gap: 36px; }
}

.contact-left h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }

.contact-meta {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
    display: grid;
    gap: 18px;
}
.contact-meta-row {
    display: grid;
    grid-template-columns: 92px 1fr;
    gap: 16px;
    align-items: start;
}
@media (max-width: 520px) {
    .contact-meta-row { grid-template-columns: 1fr; gap: 4px; }
}
.contact-meta-label {
    font-family: var(--mono);
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--teal);
    padding-top: 2px;
}
.contact-meta-value {
    font-size: 0.96rem;
    color: var(--ink);
    line-height: 1.55;
}
.contact-meta-value a { color: var(--teal); }
.contact-meta-value a:hover { color: var(--violet); }

.contact-card {
    background:
        linear-gradient(180deg, rgba(168,85,247,0.04), rgba(61,220,178,0.02)),
        var(--bg-elev);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-lg);
    padding: 36px;
    position: relative;
    overflow: hidden;
}
.contact-card::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--violet), var(--teal), transparent);
}
@media (max-width: 600px) {
    .contact-card { padding: 24px; }
}

/* -------- M-Engine product shots -------- */
.engine-shot {
    border-radius: var(--radius-lg);
    border: 1px solid var(--line-strong);
    overflow: hidden;
    background: var(--bg-elev);
    box-shadow: 0 22px 60px rgba(0,0,0,0.45), 0 0 0 1px rgba(61,220,178,0.04);
    position: relative;
}
.engine-shot img {
    display: block;
    width: 100%;
    height: auto;
}
.engine-shot::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    background: linear-gradient(180deg, rgba(255,255,255,0.025) 0%, transparent 30%);
}
.engine-shot.violet {
    box-shadow: 0 22px 60px rgba(0,0,0,0.45), 0 0 0 1px rgba(168,85,247,0.06);
}
.engine-caption {
    margin-top: 12px;
    font-family: var(--mono);
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--ink-mute);
}
