:root {
    --bg: #17130f;
    --bg-alt: #1f1a15;
    --surface: #241e18;
    --surface-line: #35291f;
    --terracotta: #c9612e;
    --terracotta-bright: #e07a3c;
    --maroon: #b54a45;
    --cream: #f5efe6;
    --cream-dim: #b9ac9d;
    --mono-dim: #8a7c6c;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--cream);
    font-family: 'Inter', sans-serif;
    line-height: 1.55;
    overflow-x: hidden;
}

h1,
h2,
h3,
.display {
    font-family: 'Space Grotesk', sans-serif;
    letter-spacing: -0.01em;
}

.mono {
    font-family: 'JetBrains Mono', monospace;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

a {
    color: inherit;
    text-decoration: none;
}

.wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 32px;
}

/* faint blueprint grid */
.grid-bg {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(var(--surface-line) 1px, transparent 1px),
        linear-gradient(90deg, var(--surface-line) 1px, transparent 1px);
    background-size: 64px 64px;
    opacity: 0.35;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 20%, black 40%, transparent 90%);
}

/* ---------- Logo mark ---------- */
.mark {
    display: inline-flex;
    gap: 4px;
    flex-shrink: 0;
}

.mark span {
    width: 9px;
    height: 22px;
    border-radius: 3px;
    background: var(--terracotta);
    display: block;
}

.mark.lg span {
    width: 16px;
    height: 38px;
    border-radius: 5px;
}

/* ---------- Nav ---------- */
header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(23, 19, 15, 0.86);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--surface-line);
}

nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 32px;
    max-width: 1180px;
    margin: 0 auto;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-name {
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.brand-name em {
    display: block;
    font-style: normal;
    font-family: 'JetBrains Mono', monospace;
    font-size: 9px;
    letter-spacing: 0.18em;
    color: var(--terracotta);
    text-transform: uppercase;
    font-weight: 500;
    margin-top: 2px;
}

.nav-links {
    display: flex;
    gap: 36px;
}

.nav-links a {
    font-size: 14px;
    color: var(--cream-dim);
    transition: color .2s ease;
}

.nav-links a:hover {
    color: var(--cream);
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: 7px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all .2s ease;
    white-space: nowrap;
}

.btn-primary {
    background: var(--terracotta);
    color: #17130f;
}

.btn-primary:hover {
    background: var(--terracotta-bright);
    transform: translateY(-1px);
}

.btn-ghost {
    border-color: var(--surface-line);
    color: var(--cream);
}

.btn-ghost:hover {
    border-color: var(--terracotta);
    color: var(--terracotta-bright);
}

@media(max-width:860px) {
    .nav-links {
        display: none;
    }
}

/* ---------- Hero ---------- */
.hero {
    position: relative;
    padding: 110px 0 90px;
    overflow: hidden;
}

.eyebrow {
    font-size: 11px;
    color: var(--terracotta-bright);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 26px;
}

.eyebrow::before {
    content: '';
    width: 26px;
    height: 1px;
    background: var(--terracotta);
}

.hero h1 {
    font-size: clamp(34px, 5.4vw, 64px);
    font-weight: 600;
    line-height: 1.08;
    max-width: 820px;
    color: var(--cream);
}

.hero h1 .accent {
    color: var(--terracotta-bright);
}

.hero p.lead {
    margin-top: 26px;
    font-size: 18px;
    color: var(--cream-dim);
    max-width: 560px;
}

.hero-cta {
    display: flex;
    gap: 14px;
    margin-top: 38px;
    flex-wrap: wrap;
}

.btn-primary.lg,
.btn-ghost.lg {
    padding: 15px 28px;
    font-size: 15px;
}

.trust-chips {
    display: flex;
    gap: 28px;
    margin-top: 56px;
    flex-wrap: wrap;
}

.chip {
    display: flex;
    align-items: center;
    gap: 9px;
    font-size: 13px;
    color: var(--cream-dim);
}

.chip .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--terracotta);
    box-shadow: 0 0 0 3px rgba(201, 97, 46, 0.18);
}

/* signal diagram */
.signal {
    position: relative;
    max-width: 640px;
    margin-top: 80px;
    padding-top: 0;
}

.signal svg {
    width: 100%;
    height: auto;
    display: block;
}

.signal-path {
    fill: none;
    stroke: var(--surface-line);
    stroke-width: 1.5;
}

.signal-path-active {
    fill: none;
    stroke: var(--terracotta);
    stroke-width: 1.5;
    stroke-dasharray: 6 8;
    opacity: 0.55;
}

.signal-node {
    fill: var(--bg);
    stroke: var(--terracotta);
    stroke-width: 2;
}

.signal-node.filled {
    fill: var(--terracotta);
    stroke: none;
}

.pulse-dot {
    fill: var(--terracotta-bright);
    filter: drop-shadow(0 0 6px rgba(224, 122, 60, 0.9));
}

.signal-label {
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    letter-spacing: 0.06em;
    fill: var(--mono-dim);
    text-transform: uppercase;
}

@keyframes travel {
    0% {
        offset-distance: 0%;
        opacity: 0;
    }

    8% {
        opacity: 1;
    }

    92% {
        opacity: 1;
    }

    100% {
        offset-distance: 100%;
        opacity: 0;
    }
}

/* ---------- Section shell ---------- */
section {
    padding: 96px 0;
    position: relative;
}

.section-head {
    max-width: 620px;
    margin-bottom: 56px;
}

.section-head h2 {
    font-size: clamp(26px, 3.4vw, 38px);
    font-weight: 600;
    margin-top: 16px;
    color: var(--cream);
}

.section-head p {
    margin-top: 14px;
    color: var(--cream-dim);
    font-size: 16px;
}

/* ---------- Services ---------- */
.services {
    background: var(--bg-alt);
    border-top: 1px solid var(--surface-line);
    border-bottom: 1px solid var(--surface-line);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--surface-line);
    border: 1px solid var(--surface-line);
    border-radius: 14px;
    overflow: hidden;
}

.service-card {
    background: var(--bg-alt);
    padding: 38px 32px 34px;
    position: relative;
}

.service-card .sq {
    width: 44px;
    height: 44px;
    border-radius: 10px;
    background: var(--terracotta);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 26px;
}

.service-card .sq svg {
    width: 22px;
    height: 22px;
    stroke: #17130f;
}

.service-card h3 {
    font-size: 19px;
    font-weight: 600;
    margin-bottom: 10px;
}

.service-card p {
    font-size: 14.5px;
    color: var(--cream-dim);
}

.service-index {
    position: absolute;
    top: 32px;
    right: 32px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 11px;
    color: var(--mono-dim);
}

@media(max-width:860px) {
    .service-grid {
        grid-template-columns: 1fr;
    }
}

/* ---------- Process ---------- */
.process-track {
    position: relative;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0;
    margin-top: 20px;
}

.process-track::before {
    content: '';
    position: absolute;
    top: 15px;
    left: 6%;
    right: 6%;
    height: 1px;
    background: repeating-linear-gradient(90deg, var(--surface-line) 0 6px, transparent 6px 12px);
}

.process-step {
    position: relative;
    padding-right: 20px;
}

.process-num {
    width: 31px;
    height: 31px;
    border-radius: 50%;
    background: var(--bg);
    border: 1.5px solid var(--terracotta);
    color: var(--terracotta-bright);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    position: relative;
    z-index: 2;
    margin-bottom: 22px;
}

.process-step h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.process-step p {
    font-size: 13.5px;
    color: var(--cream-dim);
}

@media(max-width:860px) {
    .process-track {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .process-track::before {
        display: none;
    }
}

/* ---------- Why us ---------- */
.why {
    background: var(--bg-alt);
    border-top: 1px solid var(--surface-line);
    border-bottom: 1px solid var(--surface-line);
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
    background: var(--surface-line);
    border: 1px solid var(--surface-line);
    border-radius: 14px;
    overflow: hidden;
}

.why-item {
    background: var(--bg-alt);
    padding: 30px 32px;
    display: flex;
    gap: 18px;
    align-items: flex-start;
}

.why-item svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    stroke: var(--terracotta-bright);
    margin-top: 2px;
}

.why-item h4 {
    font-size: 15.5px;
    font-weight: 600;
    margin-bottom: 6px;
}

.why-item p {
    font-size: 13.5px;
    color: var(--cream-dim);
}

@media(max-width:700px) {
    .why-grid {
        grid-template-columns: 1fr;
    }
}

/* ---------- CTA / contact ---------- */
.contact-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: start;
}

.contact-info h2 {
    font-size: clamp(26px, 3.4vw, 36px);
    font-weight: 600;
    margin-top: 16px;
}

.contact-info p {
    margin-top: 16px;
    color: var(--cream-dim);
    font-size: 16px;
    max-width: 420px;
}

.contact-detail {
    margin-top: 34px;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.contact-detail div {
    font-size: 14px;
    color: var(--cream-dim);
}

.contact-detail span {
    display: block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 10px;
    color: var(--terracotta-bright);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 4px;
}

form {
    background: var(--surface);
    border: 1px solid var(--surface-line);
    border-radius: 14px;
    padding: 34px;
}

.field {
    margin-bottom: 18px;
}

.field label {
    display: block;
    font-size: 12px;
    color: var(--cream-dim);
    margin-bottom: 7px;
}

.field input,
.field textarea {
    width: 100%;
    background: var(--bg);
    border: 1px solid var(--surface-line);
    border-radius: 8px;
    padding: 12px 14px;
    color: var(--cream);
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    outline: none;
    transition: border-color .2s ease;
}

.field input:focus,
.field textarea:focus {
    border-color: var(--terracotta);
}

.field textarea {
    min-height: 96px;
    resize: vertical;
}

form .btn-primary {
    width: 100%;
    justify-content: center;
    margin-top: 6px;
}

@media(max-width:860px) {
    .contact-panel {
        grid-template-columns: 1fr;
    }
}

/* ---------- Footer ---------- */
footer {
    border-top: 1px solid var(--surface-line);
    padding: 44px 0;
}

.footer-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.footer-tag {
    font-size: 13px;
    color: var(--mono-dim);
}

.footer-links {
    display: flex;
    gap: 26px;
    font-size: 13px;
    color: var(--cream-dim);
}

:focus-visible {
    outline: 2px solid var(--terracotta-bright);
    outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
    .pulse-dot {
        animation: none !important;
        opacity: 1;
        offset-distance: 40%;
    }

    html {
        scroll-behavior: auto;
    }
}