/* ========================================================================== 
   RELYVORA — Enterprise IT, Cloud & Cybersecurity HTML5 Template
   Design direction: Swiss editorial structure × premium technical interface
   ========================================================================== */

:root {
    --ivory: #fafaf7;
    --cream: #f2f0e9;
    --paper: #e8e5dc;
    --white: #ffffff;
    --ink: #0f1115;
    --ink-soft: #24272e;
    --text: #4e514f;
    --text-strong: #2a2d31;
    --text-light: #c9cbc8;
    --line: rgba(15, 17, 21, 0.11);
    --line-strong: rgba(15, 17, 21, 0.2);
    --line-light: rgba(255, 255, 255, 0.12);

    --gold: #85613b;
    --gold-bright: #b68b59;
    --gold-soft: #f2e8dc;
    --gold-wash: rgba(133, 97, 59, 0.12);
    --blue: #2a4fcc;
    --blue-soft: #eef2ff;
    --green: #047857;
    --red: #b42318;

    --font-sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-display: "Space Grotesk", var(--font-sans);
    --font-mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;

    --container: 1280px;
    --nav-height: 78px;
    --section-space: clamp(5rem, 8vw, 8rem);
    --radius-sm: 5px;
    --radius-md: 12px;
    --radius-lg: 22px;
    --shadow-sm: 0 12px 34px rgba(15, 17, 21, 0.06);
    --shadow-lg: 0 30px 80px rgba(15, 17, 21, 0.12);

    --ease: cubic-bezier(0.16, 1, 0.3, 1);
    --speed-fast: 180ms;
    --speed: 360ms;
}

/* ========================================================================== 
   Reset and document base
   ========================================================================== */

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--nav-height) + 1rem);
    overflow-x: hidden;
    overflow-x: clip;
    background: var(--ivory);
}

body {
    margin: 0;
    min-width: 320px;
    overflow-x: hidden;
    color: var(--text);
    background:
        linear-gradient(to right, rgba(15, 17, 21, 0.025) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(15, 17, 21, 0.025) 1px, transparent 1px),
        var(--ivory);
    background-size: 40px 40px;
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body.menu-open {
    overflow: hidden;
}

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

button,
input,
select,
textarea {
    font: inherit;
}

button,
select {
    cursor: pointer;
}

button,
input,
select,
textarea {
    border-radius: 0;
}

h1,
h2,
h3,
h4,
p,
ul,
dl,
dd,
figure {
    margin: 0;
}

ul {
    padding: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

::selection {
    color: var(--ink);
    background: var(--gold-soft);
}

:focus-visible {
    outline: 3px solid var(--blue);
    outline-offset: 4px;
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--ivory);
}

::-webkit-scrollbar-thumb {
    border: 3px solid var(--ivory);
    border-radius: 999px;
    background: var(--gold);
}

/* ========================================================================== 
   Accessibility and utilities
   ========================================================================== */

.skip-link {
    position: fixed;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 9999;
    padding: 0.75rem 1rem;
    color: var(--white);
    background: var(--ink);
    border-radius: var(--radius-sm);
    transform: translateY(-150%);
    transition: transform var(--speed-fast) ease;
}

.skip-link:focus {
    transform: translateY(0);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.container {
    width: min(100% - 4rem, var(--container));
    margin-inline: auto;
}

.section {
    position: relative;
    padding-block: var(--section-space);
}

.section-grid {
    background-image:
        linear-gradient(to right, rgba(15, 17, 21, 0.025) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(15, 17, 21, 0.025) 1px, transparent 1px);
    background-size: 40px 40px;
}

.section-kicker,
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: var(--gold);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    line-height: 1.4;
    text-transform: uppercase;
}

.section-kicker-light {
    color: #d2ad7e;
}

.section-copy,
.section-heading {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.section-copy h2,
.section-heading h2,
.technology-copy h2,
.contact-copy h2,
.outcomes-intro h2 {
    max-width: 16ch;
    color: var(--ink);
    font-family: var(--font-display);
    font-size: clamp(2.15rem, 4vw, 3.65rem);
    font-weight: 600;
    letter-spacing: -0.045em;
    line-height: 1.04;
}

.section-lead,
.section-heading > p,
.technology-copy > p,
.contact-copy > p,
.outcomes-intro > p {
    max-width: 62ch;
    color: var(--text);
    font-size: clamp(1rem, 1.25vw, 1.1rem);
    line-height: 1.75;
}

.section-heading.centered {
    max-width: 760px;
    margin-inline: auto;
    margin-bottom: clamp(3rem, 6vw, 5rem);
    align-items: center;
    text-align: center;
}

.section-heading.centered h2 {
    max-width: 18ch;
}

.section-heading.centered > p {
    max-width: 62ch;
}

.split-heading {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
    gap: 4rem;
    align-items: end;
    margin-bottom: clamp(3rem, 6vw, 5rem);
}

.split-heading > div {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.split-heading h2 {
    max-width: 18ch;
}

/* ========================================================================== 
   Buttons
   ========================================================================== */

.btn {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    padding: 0.85rem 1.35rem;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    font-family: var(--font-display);
    font-size: 0.92rem;
    font-weight: 600;
    line-height: 1.2;
    transition:
        color var(--speed-fast) ease,
        background-color var(--speed-fast) ease,
        border-color var(--speed-fast) ease,
        transform var(--speed) var(--ease),
        box-shadow var(--speed) var(--ease);
}

.btn svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform var(--speed) var(--ease);
}

.btn:hover {
    transform: translateY(-2px);
}

.btn:hover svg {
    transform: translateX(3px);
}

.btn-primary {
    color: var(--white);
    background: var(--ink);
    border-color: var(--ink);
    box-shadow: 0 10px 24px rgba(15, 17, 21, 0.12);
}

.btn-primary:hover {
    background: var(--gold);
    border-color: var(--gold);
    box-shadow: 0 16px 32px rgba(133, 97, 59, 0.22);
}

.btn-secondary,
.btn-outline {
    color: var(--ink);
    background: rgba(255, 255, 255, 0.46);
    border-color: var(--line-strong);
}

.btn-secondary:hover,
.btn-outline:hover {
    background: var(--white);
    border-color: var(--ink);
}

.btn-light {
    align-self: flex-start;
    color: var(--ink);
    background: var(--white);
    border-color: var(--white);
}

.btn-light:hover {
    color: var(--white);
    background: transparent;
}

.btn-small {
    min-height: 40px;
    padding: 0.62rem 1.05rem;
    font-size: 0.8rem;
}

/* ========================================================================== 
   Navigation
   ========================================================================== */

.site-nav {
    position: fixed;
    inset: 0 0 auto;
    z-index: 1000;
    height: var(--nav-height);
    color: var(--ink);
    background: rgba(250, 250, 247, 0.82);
    border-bottom: 1px solid transparent;
    backdrop-filter: blur(16px);
    transition:
        background-color var(--speed-fast) ease,
        border-color var(--speed-fast) ease,
        box-shadow var(--speed-fast) ease;
}

.site-nav.scrolled {
    background: rgba(250, 250, 247, 0.96);
    border-bottom-color: var(--line);
    box-shadow: 0 10px 35px rgba(15, 17, 21, 0.06);
}

.nav-inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--ink);
    font-family: var(--font-display);
}

.brand-mark {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    color: var(--white);
    background: var(--ink);
    border-radius: 50%;
    font-size: 0.92rem;
    font-weight: 700;
    transition:
        color var(--speed) var(--ease),
        background-color var(--speed) var(--ease),
        transform var(--speed) var(--ease);
}

.brand-name {
    font-size: 1.12rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.brand:hover .brand-mark {
    color: var(--ink);
    background: var(--gold-bright);
    transform: rotate(-12deg);
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: clamp(1.35rem, 2.8vw, 2.5rem);
    list-style: none;
}

.nav-link {
    position: relative;
    padding-block: 0.4rem;
    color: var(--text-strong);
    font-family: var(--font-display);
    font-size: 0.84rem;
    font-weight: 600;
}

.nav-link::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 2px;
    background: var(--gold);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform var(--speed) var(--ease);
}

.nav-link:hover::after,
.nav-link.is-active::after {
    transform: scaleX(1);
    transform-origin: left;
}

.nav-link.is-active {
    color: var(--ink);
}

.nav-menu-cta {
    display: none;
}

.hamburger {
    display: none;
    width: 44px;
    height: 44px;
    padding: 10px;
    border: 0;
    color: var(--ink);
    background: transparent;
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    margin: 5px auto;
    background: currentColor;
    transition:
        transform var(--speed-fast) ease,
        opacity var(--speed-fast) ease;
}

.hamburger.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.hamburger.open span:nth-child(2) {
    opacity: 0;
}

.hamburger.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

/* ========================================================================== 
   Hero
   ========================================================================== */

.hero {
    position: relative;
    min-height: 820px;
    padding-top: calc(var(--nav-height) + clamp(5rem, 8vw, 8rem));
    padding-bottom: clamp(5rem, 8vw, 7.5rem);
    overflow: hidden;
    background-color: var(--ivory);
    border-bottom: 1px solid var(--line);
}

.hero::after {
    content: "";
    position: absolute;
    top: 8%;
    left: -12rem;
    width: 32rem;
    height: 32rem;
    border: 1px solid rgba(133, 97, 59, 0.18);
    border-radius: 50%;
    pointer-events: none;
}

.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(450px, 0.98fr);
    gap: clamp(3rem, 6vw, 6.5rem);
    align-items: center;
}

.hero-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.65rem;
}

.status-pill {
    padding: 0.5rem 0.78rem;
    color: var(--gold);
    background: var(--gold-soft);
    border: 1px solid rgba(133, 97, 59, 0.25);
    border-radius: 999px;
}

.status-dot {
    width: 7px;
    height: 7px;
    background: var(--green);
    border-radius: 50%;
    box-shadow: 0 0 0 5px rgba(4, 120, 87, 0.12);
    animation: statusPulse 2.2s ease-in-out infinite;
}

@keyframes statusPulse {
    0%, 100% { box-shadow: 0 0 0 4px rgba(4, 120, 87, 0.1); }
    50% { box-shadow: 0 0 0 8px rgba(4, 120, 87, 0.03); }
}

.hero h1 {
    max-width: 11.5ch;
    color: var(--ink);
    font-family: var(--font-display);
    font-size: clamp(3.2rem, 6.2vw, 5.6rem);
    font-weight: 600;
    letter-spacing: -0.06em;
    line-height: 0.98;
}

.hero h1 span {
    color: var(--gold);
}

.hero-lead {
    max-width: 59ch;
    color: var(--text);
    font-size: clamp(1.05rem, 1.35vw, 1.2rem);
    line-height: 1.75;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-top: 0.25rem;
}

.hero-capabilities {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
    list-style: none;
    color: var(--text-strong);
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.hero-capabilities li {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
}

.hero-capabilities li::before {
    content: "";
    width: 5px;
    height: 5px;
    background: var(--gold);
    transform: rotate(45deg);
}

/* ========================================================================== 
   Interactive monitor
   ========================================================================== */

.monitor-shell {
    position: relative;
}

.monitor-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 110%;
    aspect-ratio: 1;
    background: radial-gradient(circle, rgba(133, 97, 59, 0.2), transparent 64%);
    transform: translate(-50%, -50%);
    filter: blur(15px);
    pointer-events: none;
}

.monitor {
    position: relative;
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
}

.monitor-topbar {
    min-height: 52px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 1rem;
    padding: 0.8rem 1.1rem;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
}

.monitor-topbar p,
.live-label {
    font-family: var(--font-mono);
    font-size: 0.64rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.monitor-topbar p {
    color: #6c6f6b;
    text-align: center;
}

.window-dots {
    display: flex;
    gap: 6px;
}

.window-dots span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(15, 17, 21, 0.2);
}

.window-dots span:nth-child(1) { background: #d5685f; }
.window-dots span:nth-child(2) { background: #d5a84d; }
.window-dots span:nth-child(3) { background: #5c9d72; }

.live-label {
    justify-self: end;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    color: var(--green);
}

.live-label span {
    width: 6px;
    height: 6px;
    background: currentColor;
    border-radius: 50%;
    box-shadow: 0 0 10px currentColor;
}

.monitor-body {
    padding: clamp(1.25rem, 3vw, 2rem);
}

.monitor-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.4rem;
}

.monitor-metric {
    min-width: 0;
    padding-right: 1rem;
    border-right: 1px solid var(--line);
}

.monitor-metric:last-child {
    padding-right: 0;
    border-right: 0;
}

.monitor-metric > span {
    display: block;
    margin-bottom: 0.35rem;
    color: #6c6f6b;
    font-family: var(--font-mono);
    font-size: 0.61rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.monitor-metric strong {
    color: var(--ink);
    font-family: var(--font-display);
    font-size: clamp(1.25rem, 2.2vw, 1.6rem);
    font-weight: 600;
    letter-spacing: -0.03em;
    transition: opacity var(--speed-fast) ease;
}

.monitor-metric small {
    margin-left: 0.15rem;
    color: #6c6f6b;
    font-size: 0.7em;
    font-weight: 500;
}

.monitor-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3px;
    margin-bottom: 1.2rem;
    padding: 4px;
    background: var(--cream);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
}

.monitor-tab {
    min-height: 38px;
    padding: 0.55rem;
    color: #61645f;
    background: transparent;
    border: 0;
    border-radius: 3px;
    font-family: var(--font-display);
    font-size: 0.76rem;
    font-weight: 600;
    transition:
        color var(--speed-fast) ease,
        background-color var(--speed-fast) ease,
        box-shadow var(--speed-fast) ease;
}

.monitor-tab:hover {
    color: var(--ink);
}

.monitor-tab.is-active {
    color: var(--ink);
    background: var(--white);
    box-shadow: 0 2px 8px rgba(15, 17, 21, 0.08);
}

.monitor-panel {
    position: relative;
}

.chart {
    height: 180px;
    overflow: hidden;
    color: var(--gold-bright);
    background:
        linear-gradient(180deg, rgba(242, 232, 220, 0.52), rgba(255, 255, 255, 0)),
        var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
}

.chart-svg {
    width: 100%;
    height: 100%;
    overflow: visible;
}

.chart-grid-lines path {
    fill: none;
    stroke: rgba(15, 17, 21, 0.07);
    stroke-width: 1;
}

.chart-area {
    fill: url(#chartFill);
}

.chart-line {
    fill: none;
    stroke: currentColor;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 900;
    stroke-dashoffset: 0;
    transition: stroke var(--speed-fast) ease;
}

.chart-line.is-redrawing {
    animation: redrawChart 800ms var(--ease);
}

@keyframes redrawChart {
    from { stroke-dashoffset: 900; }
    to { stroke-dashoffset: 0; }
}

.terminal-log {
    display: flex;
    gap: 0.75rem;
    min-height: 62px;
    align-items: flex-start;
    margin-top: 0.9rem;
    padding: 0.9rem 1rem;
    color: #dfe2dd;
    background: var(--ink);
    border-radius: var(--radius-sm);
    font-family: var(--font-mono);
    font-size: 0.68rem;
    line-height: 1.55;
}

.terminal-prefix {
    flex: 0 0 auto;
    color: #d2ad7e;
}

#monitorLog {
    transition: opacity var(--speed-fast) ease;
}

.monitor-note {
    margin-top: 0.8rem;
    color: #767973;
    font-size: 0.72rem;
    text-align: right;
}

/* ========================================================================== 
   Trust strip
   ========================================================================== */

.trust-strip {
    position: relative;
    overflow: hidden;
    padding-block: 1.35rem;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
}

.trust-strip::before,
.trust-strip::after {
    content: "";
    position: absolute;
    z-index: 2;
    top: 0;
    bottom: 0;
    width: clamp(2rem, 9vw, 8rem);
    pointer-events: none;
}

.trust-strip::before {
    left: 0;
    background: linear-gradient(90deg, var(--cream), transparent);
}

.trust-strip::after {
    right: 0;
    background: linear-gradient(-90deg, var(--cream), transparent);
}

.trust-track {
    display: flex;
    width: max-content;
    animation: trustScroll 34s linear infinite;
}

.trust-strip:hover .trust-track {
    animation-play-state: paused;
}

.trust-group {
    display: flex;
    align-items: center;
    gap: 3.5rem;
    padding-right: 3.5rem;
}

.trust-group span {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--text-strong);
    font-family: var(--font-display);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    white-space: nowrap;
}

.trust-group span::before {
    content: "";
    width: 7px;
    height: 7px;
    border: 1px solid var(--gold);
    transform: rotate(45deg);
}

@keyframes trustScroll {
    to { transform: translateX(-50%); }
}

/* ========================================================================== 
   About
   ========================================================================== */

.about {
    background: var(--white);
    border-bottom: 1px solid var(--line);
}

.about-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.86fr) minmax(500px, 1.14fr);
    gap: clamp(4rem, 8vw, 7rem);
    align-items: center;
}

.feature-list {
    display: grid;
    gap: 1.3rem;
    margin-top: 0.75rem;
}

.feature-item {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1rem;
    align-items: start;
}

.feature-icon {
    display: grid;
    width: 43px;
    height: 43px;
    place-items: center;
    color: var(--gold);
    background: var(--gold-soft);
    border: 1px solid rgba(133, 97, 59, 0.2);
    border-radius: var(--radius-sm);
}

.feature-icon svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.feature-item h3 {
    margin-bottom: 0.3rem;
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 1.02rem;
    font-weight: 600;
}

.feature-item p {
    max-width: 54ch;
    font-size: 0.9rem;
    line-height: 1.65;
}

.architecture-card {
    overflow: hidden;
    padding: 1rem;
    background: var(--cream);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.architecture-header,
.architecture-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    font-family: var(--font-mono);
    font-size: 0.67rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.architecture-header {
    padding: 0.25rem 0.25rem 0.9rem;
    color: #656861;
}

.architecture-state {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    color: var(--green);
}

.architecture-state::before {
    content: "";
    width: 6px;
    height: 6px;
    background: currentColor;
    border-radius: 50%;
}

.architecture-map {
    width: 100%;
    border-radius: calc(var(--radius-md) - 4px);
}

.map-grid path {
    fill: none;
    stroke: rgba(255, 255, 255, 0.04);
    stroke-width: 1;
}

.map-links path {
    fill: none;
    stroke: rgba(210, 173, 126, 0.48);
    stroke-width: 1.5;
    stroke-dasharray: 5 7;
}

.map-nodes circle {
    fill: rgba(255, 255, 255, 0.035);
    stroke: rgba(210, 173, 126, 0.55);
    stroke-width: 1.5;
}

.map-nodes .node-core {
    fill: rgba(210, 173, 126, 0.08);
    stroke: #d2ad7e;
    filter: url(#softGlow);
}

.map-nodes .node-dot {
    fill: #d2ad7e;
    stroke: none;
}

.map-nodes text {
    fill: rgba(255, 255, 255, 0.58);
    font-family: var(--font-mono);
    font-size: 10px;
    letter-spacing: 1px;
    text-anchor: middle;
}

.architecture-meta {
    padding: 1rem 0.25rem 0.25rem;
    color: #6c6f69;
}

.architecture-meta span {
    display: inline-flex;
    flex-direction: column;
    gap: 0.15rem;
}

.architecture-meta strong {
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 0.9rem;
    letter-spacing: 0;
    text-transform: none;
}

/* ========================================================================== 
   Services
   ========================================================================== */

.services {
    background-color: var(--ivory);
    border-bottom: 1px solid var(--line);
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.service-card {
    position: relative;
    min-height: 440px;
    display: flex;
    flex-direction: column;
    gap: 1.15rem;
    padding: clamp(1.75rem, 2.6vw, 2.35rem);
    overflow: hidden;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    transition:
        border-color var(--speed) var(--ease),
        transform var(--speed) var(--ease),
        box-shadow var(--speed) var(--ease);
}

.service-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--gold-bright));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform var(--speed) var(--ease);
}

.service-card:hover {
    border-color: rgba(133, 97, 59, 0.35);
    transform: translateY(-7px);
    box-shadow: 0 22px 50px rgba(15, 17, 21, 0.08);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--gold);
    font-family: var(--font-mono);
    font-size: 0.7rem;
}

.service-icon {
    display: grid;
    width: 45px;
    height: 45px;
    place-items: center;
    color: var(--ink);
    background: var(--cream);
    border-radius: var(--radius-sm);
    transition:
        color var(--speed) var(--ease),
        background-color var(--speed) var(--ease),
        transform var(--speed) var(--ease);
}

.service-card:hover .service-icon {
    color: var(--gold);
    background: var(--gold-soft);
    transform: rotate(-4deg);
}

.service-icon svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.service-card h3 {
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 600;
    letter-spacing: -0.025em;
}

.service-card > p {
    color: var(--text);
    font-size: 0.92rem;
    line-height: 1.68;
}

.service-card ul {
    display: grid;
    gap: 0.55rem;
    padding-top: 1rem;
    border-top: 1px dashed var(--line);
    list-style: none;
    color: var(--text-strong);
    font-size: 0.82rem;
}

.service-card li {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
}

.service-card li::before {
    content: "✓";
    color: var(--gold);
    font-weight: 700;
}

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    align-self: flex-start;
    margin-top: auto;
    color: var(--gold);
    font-family: var(--font-display);
    font-size: 0.83rem;
    font-weight: 600;
}

.service-link span {
    transition: transform var(--speed) var(--ease);
}

.service-link:hover span {
    transform: translateX(5px);
}

/* ========================================================================== 
   Outcomes
   ========================================================================== */

.outcomes {
    padding-block: clamp(4rem, 7vw, 6rem);
    background: var(--cream);
    border-bottom: 1px solid var(--line);
}

.outcomes-grid {
    display: grid;
    grid-template-columns: 1.3fr repeat(3, minmax(0, 0.7fr));
    gap: 1rem;
    align-items: stretch;
}

.outcomes-intro {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0.9rem;
    padding-right: 2.5rem;
}

.outcomes-intro h2 {
    max-width: 13ch;
    font-size: clamp(1.8rem, 3vw, 2.7rem);
}

.outcomes-intro > p {
    font-size: 0.9rem;
}

.outcome-card {
    min-height: 190px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 1.5rem;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
}

.outcome-card strong {
    color: var(--gold);
    font-family: var(--font-display);
    font-size: clamp(2.2rem, 4vw, 3.4rem);
    font-weight: 600;
    letter-spacing: -0.05em;
    line-height: 1;
}

.outcome-card > span {
    color: var(--text-strong);
    font-size: 0.82rem;
    font-weight: 600;
}

/* ========================================================================== 
   Technology
   ========================================================================== */

.technology {
    color: var(--text-light);
    background:
        linear-gradient(to right, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
        var(--ink);
    background-size: 40px 40px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.technology-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.78fr) minmax(520px, 1.22fr);
    gap: clamp(4rem, 8vw, 7rem);
    align-items: center;
}

.technology-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.4rem;
}

.technology-copy h2 {
    color: var(--white);
}

.technology-copy > p {
    color: rgba(255, 255, 255, 0.62);
}

.stack-groups {
    display: grid;
    gap: 0.9rem;
}

.stack-group {
    display: grid;
    grid-template-columns: auto 1fr auto;
    gap: 1.25rem;
    align-items: center;
    padding: 1.2rem 1.35rem;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    transition:
        background-color var(--speed) var(--ease),
        border-color var(--speed) var(--ease),
        transform var(--speed) var(--ease);
}

.stack-group:hover {
    background: rgba(255, 255, 255, 0.075);
    border-color: rgba(210, 173, 126, 0.5);
    transform: translateX(6px);
}

.stack-group > span {
    color: #d2ad7e;
    font-family: var(--font-mono);
    font-size: 0.68rem;
}

.stack-group h3 {
    margin-bottom: 0.2rem;
    color: var(--white);
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
}

.stack-group p {
    color: rgba(255, 255, 255, 0.58);
    font-size: 0.83rem;
}

.stack-group small {
    padding: 0.3rem 0.55rem;
    color: rgba(255, 255, 255, 0.62);
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 3px;
    font-family: var(--font-mono);
    font-size: 0.58rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* ========================================================================== 
   Case studies
   ========================================================================== */

.work {
    background-color: var(--ivory);
    border-bottom: 1px solid var(--line);
}

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

.case-card {
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    transition:
        border-color var(--speed) var(--ease),
        transform var(--speed) var(--ease),
        box-shadow var(--speed) var(--ease);
}

.case-card:hover {
    border-color: rgba(133, 97, 59, 0.34);
    transform: translateY(-7px);
    box-shadow: 0 24px 56px rgba(15, 17, 21, 0.08);
}

.case-visual {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.case-visual-cloud {
    background: linear-gradient(135deg, #19202c, #0d0f13);
}

.case-visual-security {
    background: linear-gradient(135deg, #201b17, #0e0f13);
}

.case-visual svg {
    width: 100%;
    height: 100%;
}

.case-tag {
    position: absolute;
    z-index: 2;
    top: 1.25rem;
    left: 1.25rem;
    padding: 0.42rem 0.7rem;
    color: var(--ink);
    background: rgba(255, 255, 255, 0.92);
    border-radius: 3px;
    font-family: var(--font-mono);
    font-size: 0.59rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.case-grid-lines path {
    fill: none;
    stroke: rgba(255, 255, 255, 0.055);
    stroke-width: 1;
}

.case-route {
    fill: none;
    stroke: #d2ad7e;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-dasharray: 700;
    transition: stroke-dashoffset 1.2s var(--ease);
}

.case-card:not(:hover) .case-route {
    stroke-dashoffset: 110;
}

.case-points circle,
.security-nodes circle {
    fill: #d2ad7e;
    filter: drop-shadow(0 0 7px rgba(210, 173, 126, 0.8));
}

.security-rings circle {
    fill: none;
    stroke: rgba(210, 173, 126, 0.34);
    stroke-width: 1.5;
    stroke-dasharray: 8 8;
    transform-origin: 320px 180px;
}

.security-rings circle:nth-child(1) { animation: spinRing 18s linear infinite; }
.security-rings circle:nth-child(2) { animation: spinRingReverse 13s linear infinite; }

.security-scan {
    fill: none;
    stroke: rgba(210, 173, 126, 0.9);
    stroke-width: 2;
    transform-origin: 320px 180px;
    animation: scanRotate 5s linear infinite;
}

@keyframes spinRing { to { transform: rotate(360deg); } }
@keyframes spinRingReverse { to { transform: rotate(-360deg); } }
@keyframes scanRotate { to { transform: rotate(360deg); } }

.case-content {
    padding: clamp(1.6rem, 3vw, 2.4rem);
}

.case-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
    margin-bottom: 1.3rem;
    padding-bottom: 1.2rem;
    border-bottom: 1px solid var(--line);
    color: var(--text);
    font-family: var(--font-mono);
    font-size: 0.65rem;
    text-transform: uppercase;
}

.case-metrics span {
    display: inline-flex;
    align-items: baseline;
    gap: 0.35rem;
}

.case-metrics strong {
    color: var(--gold);
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 600;
    letter-spacing: -0.03em;
}

.case-content h3 {
    margin-bottom: 1.25rem;
    color: var(--ink);
    font-family: var(--font-display);
    font-size: clamp(1.4rem, 2.3vw, 1.8rem);
    font-weight: 600;
    letter-spacing: -0.03em;
}

.case-story {
    display: grid;
    gap: 1rem;
}

.case-story div {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 1rem;
}

.case-story dt {
    color: var(--gold);
    font-family: var(--font-mono);
    font-size: 0.63rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.case-story dd {
    color: var(--text);
    font-size: 0.88rem;
    line-height: 1.65;
}

/* ========================================================================== 
   Process
   ========================================================================== */

.process {
    background: var(--white);
    border-bottom: 1px solid var(--line);
}

.process-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    counter-reset: step;
}

.process-step {
    position: relative;
    min-height: 275px;
    padding: 2rem;
    border-top: 1px solid var(--line-strong);
    border-right: 1px solid var(--line);
}

.process-step:last-child {
    border-right: 0;
}

.process-step > span {
    display: block;
    margin-bottom: 4rem;
    color: var(--gold);
    font-family: var(--font-mono);
    font-size: 0.68rem;
}

.process-step h3 {
    margin-bottom: 0.8rem;
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 1.55rem;
    font-weight: 600;
}

.process-step p {
    max-width: 32ch;
    font-size: 0.9rem;
    line-height: 1.7;
}

.process-step::after {
    content: "";
    position: absolute;
    top: -1px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gold);
    transition: width var(--speed) var(--ease);
}

.process-step:hover::after {
    width: 100%;
}

/* ========================================================================== 
   FAQ
   ========================================================================== */

.faq {
    background-color: var(--cream);
    border-bottom: 1px solid var(--line);
}

.faq-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.78fr) minmax(500px, 1.22fr);
    gap: clamp(4rem, 8vw, 7rem);
    align-items: start;
}

.faq-list {
    border-top: 1px solid var(--line-strong);
}

.faq-list details {
    border-bottom: 1px solid var(--line-strong);
}

.faq-list summary {
    position: relative;
    padding: 1.45rem 3rem 1.45rem 0;
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    list-style: none;
}

.faq-list summary::-webkit-details-marker {
    display: none;
}

.faq-list summary::before,
.faq-list summary::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 0.25rem;
    width: 16px;
    height: 1.5px;
    background: var(--gold);
    transform: translateY(-50%);
    transition: transform var(--speed-fast) ease;
}

.faq-list summary::after {
    transform: translateY(-50%) rotate(90deg);
}

.faq-list details[open] summary::after {
    transform: translateY(-50%) rotate(0deg);
}

.faq-list details p {
    max-width: 66ch;
    padding: 0 3rem 1.5rem 0;
    font-size: 0.9rem;
    line-height: 1.72;
}

/* ========================================================================== 
   Contact
   ========================================================================== */

.contact {
    background: var(--white);
}

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.76fr) minmax(520px, 1.24fr);
    gap: clamp(4rem, 8vw, 7rem);
    align-items: start;
}

.contact-copy {
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
    position: sticky;
    top: calc(var(--nav-height) + 2rem);
}

.contact-methods {
    display: grid;
    gap: 0.8rem;
    margin-top: 0.6rem;
}

.contact-methods a,
.contact-methods > div {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 1rem 0;
    color: var(--ink);
    border-bottom: 1px solid var(--line);
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 600;
}

.contact-methods span {
    color: var(--gold);
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.demo-disclaimer {
    max-width: 52ch;
    color: #6a6d68;
    font-size: 0.75rem;
}

.contact-card {
    padding: clamp(1.5rem, 4vw, 3rem);
    background: var(--ivory);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.35rem;
    margin-bottom: 1.5rem;
}

.field {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.field-full {
    grid-column: 1 / -1;
}

.field label {
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 0.78rem;
    font-weight: 600;
}

.field label span {
    color: var(--red);
}

.field input,
.field select,
.field textarea,
.newsletter-row input {
    width: 100%;
    color: var(--ink);
    background: var(--white);
    border: 1px solid var(--line-strong);
    border-radius: var(--radius-sm);
    transition:
        border-color var(--speed-fast) ease,
        box-shadow var(--speed-fast) ease,
        background-color var(--speed-fast) ease;
}

.field input,
.field select,
.field textarea {
    min-height: 50px;
    padding: 0.82rem 0.95rem;
    font-size: 0.92rem;
}

.field textarea {
    min-height: 132px;
    resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.newsletter-row input:focus {
    outline: none;
    border-color: var(--gold);
    box-shadow: 0 0 0 4px var(--gold-wash);
}

.field input:user-invalid,
.field select:user-invalid,
.field textarea:user-invalid {
    border-color: var(--red);
}

.honeypot {
    position: absolute;
    left: -9999px;
}

.btn-submit {
    width: 100%;
}

.btn-submit:disabled {
    cursor: not-allowed;
    opacity: 0.88;
    transform: none;
}

.btn-submit.is-success {
    background: var(--green);
    border-color: var(--green);
}

.btn-submit.is-error {
    background: var(--red);
    border-color: var(--red);
}

.btn-submit.is-demo {
    color: var(--ink);
    background: var(--gold-soft);
    border-color: rgba(133, 97, 59, 0.3);
}

.button-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: buttonSpin 700ms linear infinite;
}

@keyframes buttonSpin {
    to { transform: rotate(360deg); }
}

.form-note,
.form-status {
    margin-top: 0.8rem;
    font-size: 0.72rem;
    line-height: 1.55;
}

.form-note {
    color: #6d706b;
}

.form-note code {
    color: var(--ink);
    font-family: var(--font-mono);
    font-size: 0.68rem;
}

.form-status {
    min-height: 1.1rem;
    color: var(--text-strong);
}

.form-status.is-success { color: var(--green); }
.form-status.is-error { color: var(--red); }
.form-status.is-demo { color: var(--gold); }

/* ========================================================================== 
   Footer
   ========================================================================== */

.site-footer {
    padding-top: clamp(4.5rem, 8vw, 7rem);
    color: rgba(255, 255, 255, 0.62);
    background: #0a0c10;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.35fr 0.65fr 0.8fr 1.2fr;
    gap: clamp(2.5rem, 5vw, 5rem);
    padding-bottom: clamp(3.5rem, 6vw, 5rem);
}

.brand-light {
    color: var(--white);
}

.brand-light .brand-mark {
    color: var(--ink);
    background: #d2ad7e;
}

.footer-brand p {
    max-width: 34ch;
    margin-top: 1.35rem;
    color: rgba(255, 255, 255, 0.52);
    font-size: 0.86rem;
    line-height: 1.7;
}

.footer-column h2,
.footer-newsletter h2 {
    margin-bottom: 1.25rem;
    color: var(--white);
    font-family: var(--font-display);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.footer-column ul {
    display: grid;
    gap: 0.72rem;
    list-style: none;
}

.footer-column a {
    display: inline-block;
    color: rgba(255, 255, 255, 0.52);
    font-size: 0.83rem;
    transition:
        color var(--speed-fast) ease,
        transform var(--speed) var(--ease);
}

.footer-column a:hover {
    color: #d2ad7e;
    transform: translateX(4px);
}

.footer-newsletter > p {
    max-width: 35ch;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.52);
    font-size: 0.83rem;
}

.newsletter-row {
    display: flex;
    gap: 0.55rem;
}

.newsletter-row input {
    min-width: 0;
    padding: 0.78rem 0.9rem;
    color: var(--white);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.14);
    font-size: 0.82rem;
}

.newsletter-row input::placeholder {
    color: rgba(255, 255, 255, 0.36);
}

.newsletter-row button {
    padding: 0.72rem 1rem;
    color: var(--ink);
    background: #d2ad7e;
    border: 1px solid #d2ad7e;
    border-radius: var(--radius-sm);
    font-family: var(--font-display);
    font-size: 0.8rem;
    font-weight: 600;
    transition:
        color var(--speed-fast) ease,
        background-color var(--speed-fast) ease;
}

.newsletter-row button:hover {
    color: var(--white);
    background: transparent;
}

.newsletter-row button:disabled {
    cursor: not-allowed;
    opacity: 0.75;
}

.newsletter-status {
    min-height: 1rem;
    margin-top: 0.55rem;
    color: #d2ad7e;
    font-size: 0.68rem;
}

.footer-bottom {
    min-height: 76px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding-block: 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.38);
    font-family: var(--font-mono);
    font-size: 0.65rem;
}

.footer-bottom a {
    color: rgba(255, 255, 255, 0.62);
}

.footer-bottom a:hover {
    color: #d2ad7e;
}

/* ========================================================================== 
   Back-to-top control
   ========================================================================== */

.back-to-top {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 900;
    width: 46px;
    height: 46px;
    color: var(--white);
    background: var(--ink);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 50%;
    box-shadow: var(--shadow-sm);
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    transition:
        opacity var(--speed-fast) ease,
        visibility var(--speed-fast) ease,
        transform var(--speed) var(--ease),
        background-color var(--speed-fast) ease;
}

.back-to-top.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: var(--gold);
}

/* ========================================================================== 
   Reveal animation
   ========================================================================== */

.js [data-reveal] {
    opacity: 0;
    transition:
        opacity 700ms var(--ease),
        transform 700ms var(--ease);
    transition-delay: var(--reveal-delay, 0ms);
}

.js [data-reveal="up"] {
    transform: translateY(28px);
}

.js [data-reveal="left"] {
    transform: translateX(34px);
}

.js [data-reveal="right"] {
    transform: translateX(-34px);
}

.js [data-reveal].is-revealed {
    opacity: 1;
    transform: translate(0, 0);
}

/* ========================================================================== 
   Responsive layout
   ========================================================================== */

@media (max-width: 1120px) {
    .hero-grid,
    .about-grid,
    .technology-grid,
    .faq-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        min-height: auto;
    }

    .hero-copy {
        max-width: 850px;
    }

    .hero h1 {
        max-width: 12ch;
    }

    .monitor-shell {
        max-width: 780px;
    }

    .about-grid,
    .technology-grid,
    .faq-grid,
    .contact-grid {
        gap: 4rem;
    }

    .architecture-card {
        max-width: 860px;
    }

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

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

    .outcomes-intro {
        grid-column: 1 / -1;
        padding-right: 0;
        margin-bottom: 1rem;
    }

    .contact-copy {
        position: static;
        max-width: 760px;
    }

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

@media (max-width: 920px) {
    :root {
        --nav-height: 72px;
    }

    .container {
        width: min(100% - 3rem, var(--container));
    }

    .hamburger {
        position: relative;
        z-index: 1002;
        display: block;
        margin-left: auto;
    }

    .nav-desktop-cta {
        display: none;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        right: 0;
        left: 0;
        max-height: calc(100dvh - var(--nav-height));
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 0.7rem 1.5rem 1.5rem;
        overflow-y: auto;
        color: var(--ink);
        background: var(--ivory);
        border-bottom: 1px solid var(--line);
        box-shadow: 0 24px 44px rgba(15, 17, 21, 0.1);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transform: translateY(-12px);
        transition:
            opacity var(--speed-fast) ease,
            visibility var(--speed-fast) ease,
            transform var(--speed) var(--ease);
    }

    .nav-menu.open {
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: translateY(0);
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-link {
        display: block;
        width: 100%;
        padding: 1rem 0;
        border-bottom: 1px solid var(--line);
        font-size: 0.95rem;
    }

    .nav-link::after {
        display: none;
    }

    .nav-menu-cta {
        display: block;
        padding-top: 1rem;
    }

    .nav-menu-cta .btn {
        width: 100%;
    }

    .split-heading {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        align-items: start;
    }

    .js [data-reveal="left"],
    .js [data-reveal="right"] {
        transform: translateY(28px);
    }

    .case-grid {
        grid-template-columns: 1fr;
    }

    .process-grid {
        grid-template-columns: 1fr;
    }

    .process-step {
        min-height: auto;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .process-step > span {
        margin-bottom: 2.5rem;
    }
}

@media (max-width: 920px) {
    .no-js .site-nav {
        position: relative;
        height: auto;
    }

    .no-js .nav-inner {
        flex-wrap: wrap;
        padding-block: 0.8rem;
    }

    .no-js .hamburger {
        display: none;
    }

    .no-js .nav-menu {
        position: static;
        width: 100%;
        max-height: none;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding: 0.5rem 0 0;
        overflow: visible;
        background: transparent;
        border: 0;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        transform: none;
    }

    .no-js .nav-menu-cta {
        grid-column: 1 / -1;
    }
}

@media (max-width: 720px) {
    :root {
        --section-space: 4.75rem;
    }

    .container {
        width: min(100% - 2rem, var(--container));
    }

    .brand-name {
        font-size: 1rem;
    }

    .hero {
        padding-top: calc(var(--nav-height) + 4.25rem);
        padding-bottom: 4.75rem;
    }

    .hero h1 {
        font-size: clamp(2.85rem, 13vw, 4.15rem);
    }

    .hero-actions,
    .hero-actions .btn {
        width: 100%;
    }

    .monitor-topbar {
        grid-template-columns: auto 1fr;
    }

    .monitor-topbar p {
        display: none;
    }

    .live-label {
        justify-self: end;
    }

    .monitor-metrics {
        gap: 0.7rem;
    }

    .monitor-metric {
        padding-right: 0.7rem;
    }

    .monitor-metric > span {
        font-size: 0.55rem;
    }

    .monitor-metric strong {
        font-size: 1.14rem;
    }

    .chart {
        height: 150px;
    }

    .terminal-log {
        flex-direction: column;
        gap: 0.35rem;
    }

    .architecture-meta {
        flex-wrap: wrap;
        gap: 1rem 2rem;
    }

    .service-grid,
    .outcomes-grid,
    .form-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .service-card {
        min-height: auto;
    }

    .outcomes-intro {
        grid-column: auto;
    }

    .outcome-card {
        min-height: 150px;
    }

    .stack-group {
        grid-template-columns: auto 1fr;
    }

    .stack-group small {
        grid-column: 2;
        justify-self: start;
    }

    .field-full {
        grid-column: auto;
    }

    .case-story div {
        grid-template-columns: 1fr;
        gap: 0.35rem;
    }

    .footer-grid {
        gap: 2.75rem;
    }

    .footer-bottom {
        min-height: auto;
        flex-direction: column;
        align-items: flex-start;
        padding-block: 1.5rem;
    }
}

@media (max-width: 480px) {
    .status-pill {
        font-size: 0.62rem;
    }

    .hero-capabilities {
        display: grid;
        gap: 0.6rem;
    }

    .monitor-body {
        padding: 1rem;
    }

    .monitor-metrics {
        grid-template-columns: 1fr;
    }

    .monitor-metric {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0 0 0.65rem;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .monitor-metric:last-child {
        padding-bottom: 0;
        border-bottom: 0;
    }

    .monitor-metric > span {
        margin: 0;
    }

    .monitor-tabs {
        margin-top: 1.15rem;
    }

    .section-copy h2,
    .section-heading h2,
    .technology-copy h2,
    .contact-copy h2,
    .outcomes-intro h2 {
        font-size: 2.05rem;
    }

    .architecture-card {
        padding: 0.7rem;
    }

    .architecture-map {
        min-height: 300px;
        object-fit: cover;
    }

    .case-metrics {
        gap: 0.85rem 1.25rem;
    }

    .contact-card {
        padding: 1.2rem;
    }

    .newsletter-row {
        flex-direction: column;
    }

    .newsletter-row button {
        width: 100%;
    }

    .back-to-top {
        right: 0.9rem;
        bottom: 0.9rem;
        width: 42px;
        height: 42px;
    }
}

/* ========================================================================== 
   Reduced motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
    }

    .trust-track {
        width: auto;
        animation: none;
    }

    .trust-group {
        flex-wrap: wrap;
        justify-content: center;
        padding-inline: 1rem;
    }

    .trust-group[aria-hidden="true"] {
        display: none;
    }

    .js [data-reveal] {
        opacity: 1;
        transform: none;
    }
}
