:root {
    --ink: #2c2c2c;
    --ink-deep: #1a1a1a;
    --blue: #1a71b8;
    --blue-2: #3079b5;
    --wash: #f4f4f4;
    --paper: #ffffff;
    --muted: #5f5f5f;
    --line: #e4e4e4;
    --max: 1080px;
    --ease: 180ms ease;
    --section-pad: 3.25rem;
}

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

html {
    scroll-behavior: smooth;
}

html,
body {
    margin: 0;
    padding: 0;
}

body {
    font-family: "IBM Plex Sans", Helvetica, Arial, sans-serif;
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--ink);
    background: var(--paper);
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
}

h1, h2, h3, p, ul, ol {
    margin: 0;
}

.wrap {
    width: min(var(--max), calc(100% - 2.5rem));
    margin-inline: auto;
}

.skip-link {
    position: absolute;
    left: 1rem;
    top: -4rem;
    z-index: 20;
    background: var(--paper);
    color: var(--ink-deep);
    padding: 0.6rem 0.9rem;
}

.skip-link:focus {
    top: 1rem;
}

:focus {
    outline: none;
}

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

/* Header */

.site-header {
    position: relative;
    z-index: 10;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
}

.header-inner {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 0.65rem 0;
}

.logo {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
}

.logo img {
    width: 176px;
    height: 76px;
    max-width: none;
}

.site-nav {
    margin-left: auto;
}

.site-nav ul {
    display: flex;
    align-items: stretch;
    gap: 0.2rem;
    list-style: none;
    padding: 0;
}

.site-nav a {
    display: flex;
    align-items: center;
    text-decoration: none;
    font-size: 1.05rem;
    font-weight: 500;
    letter-spacing: -0.025em;
    line-height: 1.2;
    color: var(--blue);
    padding: 0.95rem 1rem;
    border: 0;
    border-radius: 2px;
    transition: background var(--ease), color var(--ease);
}

.site-nav a:hover,
.site-nav a:focus-visible {
    background: var(--blue);
    color: #fff;
    outline: none;
}

.nav-toggle {
    display: none;
    width: 2.5rem;
    height: 2.5rem;
    border: 0;
    background: transparent;
    padding: 0;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 18px;
    height: 1px;
    margin: 5px auto;
    background: var(--blue);
}

/* Hero */

.hero {
    padding: 3.25rem 0 2.25rem;
}

.hero-slides {
    display: grid;
    overflow: hidden;
}

.hero-slide {
    grid-area: 1 / 1;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(0);
    transform-origin: 50% 50%;
}

.hero-slide.is-active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(0);
    z-index: 1;
}

.hero-slide.is-from-right,
.hero-slide.is-active.is-from-right {
    transform: translateX(14%);
    opacity: 0;
}

.hero-slide.is-from-left,
.hero-slide.is-active.is-from-left {
    transform: translateX(-14%);
    opacity: 0;
}

.hero-slide.is-exit-left,
.hero-slide.is-active.is-exit-left {
    transform: translateX(-14%);
    opacity: 0;
    z-index: 0;
}

.hero-slide.is-exit-right,
.hero-slide.is-active.is-exit-right {
    transform: translateX(14%);
    opacity: 0;
    z-index: 0;
}

@media (prefers-reduced-motion: no-preference) {
    .hero-slide {
        transition: transform 1.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 1.35s ease, visibility 1.35s ease;
    }
}

.hero-slides[data-motion="fade"] .hero-slide.is-from-right,
.hero-slides[data-motion="fade"] .hero-slide.is-from-left,
.hero-slides[data-motion="fade"] .hero-slide.is-exit-left,
.hero-slides[data-motion="fade"] .hero-slide.is-exit-right,
.hero-slides[data-motion="fade"] .hero-slide.is-active.is-from-right,
.hero-slides[data-motion="fade"] .hero-slide.is-active.is-from-left,
.hero-slides[data-motion="fade"] .hero-slide.is-active.is-exit-left,
.hero-slides[data-motion="fade"] .hero-slide.is-active.is-exit-right {
    transform: none;
}

.hero-slides[data-motion="rise"] .hero-slide.is-from-right,
.hero-slides[data-motion="rise"] .hero-slide.is-from-left,
.hero-slides[data-motion="rise"] .hero-slide.is-active.is-from-right,
.hero-slides[data-motion="rise"] .hero-slide.is-active.is-from-left {
    transform: translateY(1.4rem);
}

.hero-slides[data-motion="rise"] .hero-slide.is-exit-left,
.hero-slides[data-motion="rise"] .hero-slide.is-exit-right,
.hero-slides[data-motion="rise"] .hero-slide.is-active.is-exit-left,
.hero-slides[data-motion="rise"] .hero-slide.is-active.is-exit-right {
    transform: translateY(-1rem);
}

.hero-slides[data-motion="settle"] .hero-slide.is-from-right,
.hero-slides[data-motion="settle"] .hero-slide.is-from-left,
.hero-slides[data-motion="settle"] .hero-slide.is-active.is-from-right,
.hero-slides[data-motion="settle"] .hero-slide.is-active.is-from-left {
    transform: scale(0.975);
}

.hero-slides[data-motion="settle"] .hero-slide.is-exit-left,
.hero-slides[data-motion="settle"] .hero-slide.is-exit-right,
.hero-slides[data-motion="settle"] .hero-slide.is-active.is-exit-left,
.hero-slides[data-motion="settle"] .hero-slide.is-active.is-exit-right {
    transform: scale(1.025);
}

@media (prefers-reduced-motion: reduce) {
    .hero-slide.is-from-right,
    .hero-slide.is-from-left,
    .hero-slide.is-exit-left,
    .hero-slide.is-exit-right {
        transform: none;
    }
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 4rem;
    align-items: center;
}

.hero-title,
.hero-copy .hero-title {
    font-size: clamp(2.35rem, 4.6vw, 3.55rem);
    font-weight: 500;
    line-height: 1.12;
    letter-spacing: -0.035em;
    color: var(--ink-deep);
    margin: 0;
    max-width: none;
}

.hero-copy p {
    margin-top: 1.35rem;
    max-width: 41rem;
    color: var(--muted);
    font-size: 1.125rem;
}

.hero-copy .btn {
    margin-top: 2.35rem;
}

.hero-controls {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-top: 2rem;
}

.hero-arrow {
    width: 2.25rem;
    height: 2.25rem;
    border: 0;
    background: transparent;
    color: var(--ink);
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    padding: 0;
}

.hero-arrow:hover,
.hero-arrow:focus-visible {
    color: var(--blue);
}

.hero-dots {
    display: flex;
    gap: 0.45rem;
}

.hero-dots button {
    width: 0.55rem;
    height: 0.55rem;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #c8c8c8;
    cursor: pointer;
}

.hero-dots button[aria-selected="true"] {
    background: var(--blue);
}

.hero-media {
    min-height: 280px;
}

.hero-visual {
    width: 100%;
    height: auto;
    display: block;
}

.hv-panel {
    fill: var(--paper);
    stroke: #2c2c2c;
    stroke-opacity: 0.22;
    stroke-width: 1.2;
}

.hv-rule {
    stroke: #2c2c2c;
    stroke-opacity: 0.16;
    stroke-width: 1.2;
}

.hv-flow path {
    stroke: #2c2c2c;
    stroke-opacity: 0.28;
    stroke-width: 1.15;
}

.hv-pulse {
    stroke: var(--blue) !important;
    stroke-opacity: 0.7 !important;
    stroke-dasharray: 6 10;
}

.hv-node {
    fill: var(--ink);
}

.hv-node-accent {
    fill: var(--blue);
}

.hv-bars rect {
    fill: #2c2c2c;
    fill-opacity: 0.18;
}

.hv-bar-accent {
    fill: var(--blue) !important;
    fill-opacity: 0.55 !important;
}

.hv-ticks path,
.hv-ticks circle {
    fill: #2c2c2c;
    stroke: #2c2c2c;
    stroke-opacity: 0.25;
    fill-opacity: 0.25;
    stroke-width: 1;
}

@media (prefers-reduced-motion: no-preference) {
    .hv-pulse {
        animation: pulse-line 7s linear infinite;
    }
}

@keyframes pulse-line {
    to { stroke-dashoffset: -80; }
}

/* Buttons */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.85rem;
    padding: 0.7rem 1.35rem;
    background: var(--blue);
    color: #fff;
    text-decoration: none;
    border: 0;
    border-radius: 2px;
    font: inherit;
    font-size: 0.9375rem;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: background var(--ease);
}

.btn:hover,
.btn:focus-visible {
    background: var(--blue-2);
}

/* Sections */

.section {
    padding: var(--section-pad) 0;
}

.section h2 {
    font-size: clamp(1.6rem, 2.4vw, 2rem);
    font-weight: 500;
    letter-spacing: -0.025em;
    color: var(--ink-deep);
    margin-bottom: 1rem;
}

.software-data h2 {
    padding-right: 4.25rem;
}

.section-top-offset {
    height: var(--section-pad);
}

.page-sections > .software-data {
    margin-top: calc(-1 * var(--section-pad));
}

.section-top-bar {
    display: flex;
    justify-content: flex-end;
    height: 0;
    position: sticky;
    top: 0.85rem;
    z-index: 5;
    pointer-events: none;
}

.section-top {
    pointer-events: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.28rem;
    color: #8a8a8a;
    background: transparent;
    text-decoration: none;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    line-height: 1;
    padding: 0.35rem 0 0.35rem 0.7rem;
    transform: translateY(0.55rem);
}

.section-top span {
    font-size: 0.95rem;
    line-height: 1;
}

.section-top:hover,
.section-top:focus-visible {
    color: var(--blue);
}

.section-intro {
    max-width: 56rem;
    color: var(--ink);
    font-size: 1.125rem;
    margin-bottom: 0.85rem;
}

.section-body {
    max-width: 56rem;
    color: var(--muted);
    margin-bottom: 2.75rem;
}

.software-data {
    background: var(--wash);
}

.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.split article {
    padding-right: 3.25rem;
}

.split article + article {
    padding-right: 0;
    padding-left: 3.25rem;
    border-left: 1px solid #ddd;
}

.split h3 {
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 0.85rem;
}

.split p {
    color: var(--muted);
    max-width: 34rem;
}

.caps {
    list-style: none;
    padding: 0;
    margin-top: 1.6rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem 1.15rem;
}

.caps li {
    font-size: 0.8125rem;
    letter-spacing: 0.02em;
    color: var(--ink);
}

.lede {
    margin: 0 0 2.25rem;
    color: var(--muted);
    max-width: 48rem;
}

.solutions .lede {
    margin-bottom: 1.5rem;
}

.solution-list {
    list-style: none;
    padding: 0;
    border-top: 1px solid var(--line);
}

.solution-list li {
    display: grid;
    grid-template-columns: minmax(12rem, 0.42fr) 1fr;
    gap: 1rem 1.75rem;
    align-items: baseline;
    padding: 1.05rem 0;
    border-bottom: 1px solid var(--line);
}

.solution-list .label {
    font-size: 1.0625rem;
    font-weight: 500;
    letter-spacing: -0.015em;
}

.solution-list .hint {
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--muted);
    letter-spacing: 0;
}

.about .section-intro {
    margin-bottom: 0.85rem;
}

.about h3 {
    font-size: 1.25rem;
    font-weight: 500;
    letter-spacing: -0.02em;
    color: var(--ink-deep);
    margin: 2rem 0 0.75rem;
}

.about .section-body {
    margin-bottom: 0.9rem;
}

.flag {
    font-style: normal;
}

.not-found {
    max-width: 46rem;
}

.not-found p {
    color: var(--muted);
    font-size: 1.125rem;
}

.not-found .btn {
    margin-top: 1.75rem;
}

.not-found h1 {
    font-size: clamp(1.8rem, 3vw, 2.4rem);
    font-weight: 500;
    letter-spacing: -0.03em;
    margin-bottom: 0.85rem;
}

/* Contact */

.solutions {
    padding-bottom: 2rem;
}

.about {
    padding-top: 1.75rem;
}

.contact {
    background: var(--wash);
    padding: 1.75rem 0 3.25rem;
}

.contact-compact .talk-form,
.contact-compact .lede,
.contact-compact .contact-note,
.contact-compact .contact-required,
.contact-compact .form-success,
.contact-compact .form-error {
    max-width: 40rem;
}

.contact .lede {
    margin-bottom: 0.75rem;
}

.contact-note {
    color: var(--muted);
    margin-bottom: 0.65rem;
}

.contact-required {
    font-size: 0.875rem;
    color: var(--muted);
    margin-bottom: 1.15rem;
}

.req {
    color: var(--blue);
}

.talk-form {
    display: grid;
    gap: 0.75rem;
}

.field-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.field {
    display: grid;
    gap: 0.3rem;
}

.field label {
    font-size: 0.8125rem;
}

.field input,
.field textarea {
    width: 100%;
    font: inherit;
    font-size: 0.9375rem;
    color: var(--ink-deep);
    background: var(--paper);
    border: 1px solid #d4d4d4;
    border-radius: 2px;
    padding: 0.55rem 0.7rem;
}

.field textarea {
    resize: vertical;
    min-height: 5rem;
}

.field input:focus-visible,
.field textarea:focus-visible {
    border-color: var(--blue);
    outline-offset: 0;
}

.field.is-invalid input,
.field.is-invalid textarea {
    border-color: #9b2c2c;
}

.field-error {
    color: #9b2c2c;
    font-size: 0.8125rem;
}

.form-error {
    color: #9b2c2c;
    margin-bottom: 1rem;
}

.form-success {
    font-size: 1.125rem;
    color: var(--ink-deep);
    padding: 0.25rem 0 0.25rem 0.9rem;
    border-left: 2px solid var(--blue);
}

.hp {
    position: absolute;
    left: -9999px;
    height: 0;
    overflow: hidden;
}

.talk-form .btn {
    justify-self: start;
    min-height: 2.4rem;
    padding: 0.5rem 1.15rem;
    font-size: 0.875rem;
    margin-top: 0.15rem;
}

/* Footer */

.site-footer {
    background: var(--paper);
    color: var(--muted);
    padding: 2.5rem 0;
    font-size: 0.9rem;
    border-top: 1px solid var(--line);
}

.footer-inner {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.5rem 3rem;
    flex-wrap: wrap;
}

.footer-name {
    color: var(--ink-deep);
    font-weight: 500;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.footer-brand p + p {
    max-width: 28rem;
}

.footer-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.45rem;
}

/* Reveal */

@media (prefers-reduced-motion: no-preference) {
    .reveal {
        opacity: 0;
        transform: translateY(10px);
        transition: opacity 0.7s ease, transform 0.7s ease;
    }

    .reveal.is-in {
        opacity: 1;
        transform: none;
    }
}

/* Responsive */

@media (max-width: 880px) {
    :root {
        --section-pad: 2.75rem;
    }

    .hero-grid,
    .split,
    .field-row {
        grid-template-columns: 1fr;
        gap: 2.25rem;
    }

    .field-row {
        gap: 0.75rem;
    }

    .split article,
    .split article + article {
        padding: 0;
        border: 0;
    }

    .split article + article {
        border-top: 1px solid #ddd;
        padding-top: 2.25rem;
    }

    .hero {
        padding: 2.75rem 0 2.5rem;
    }

    .hero-media {
        min-height: 0;
        max-width: 22rem;
    }

    .section {
        padding: var(--section-pad) 0;
    }

    .solution-list li {
        grid-template-columns: 1fr;
        gap: 0.25rem;
    }

    .logo img {
        width: 154px;
        height: 66px;
    }

    .nav-toggle {
        display: block;
    }

    .site-nav {
        display: none;
        position: absolute;
        left: 0;
        right: 0;
        top: 100%;
        background: var(--paper);
        padding: 0.5rem 1.25rem 1.1rem;
        border-bottom: 1px solid var(--line);
        box-shadow: 0 8px 18px rgba(0, 0, 0, 0.04);
    }

    .site-nav.is-open {
        display: block;
    }

    .site-nav ul {
        flex-direction: column;
        align-items: stretch;
        gap: 0.15rem;
    }

    .site-nav a {
        display: block;
        padding: 0.65rem 0.75rem;
        font-size: 1rem;
    }

    body.nav-open {
        overflow: hidden;
    }
}

@media (max-width: 560px) {
    .wrap {
        width: min(var(--max), calc(100% - 1.75rem));
    }

    .hero-title {
        font-size: 2.05rem;
    }

    .logo img {
        width: 140px;
        height: 60px;
    }

    .footer-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.1rem;
    }

    .footer-meta {
        align-items: flex-start;
    }
}

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