/* Design tokens and base elements */
:root {
    --paper: #f8f7f3;
    --ink: #232522;
    --muted: #696c65;
    --orange: #f56318;
    --line: #dedfd7;
    --dark: #202923;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 105px;
}

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
    line-height: 1.65;
}

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

button {
    font: inherit;
}

a:focus-visible, button:focus-visible, summary:focus-visible {
    outline: 3px solid var(--orange);
    outline-offset: 5px;
}

::selection {
    background: #ffd0b4;
}

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

h1, h2, h3 {
    line-height: 1.08;
    letter-spacing: -0.05em;
}

h2 {
    font-size: clamp(2rem, 3.5vw, 3rem);
    font-weight: 600;
}

h3 {
    font-size: 1.35rem;
    letter-spacing: -0.03em;
}

.container {
    width: min(1200px, calc(100% - 96px));
    margin-inline: auto;
}

.skip-link {
    position: fixed;
    top: -100px;
    left: 20px;
    background: var(--ink);
    color: white;
    padding: 12px;
    z-index: 100;
}

.skip-link:focus {
    top: 10px;
}

/* Header and navigation */
.site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(248, 247, 243, 0.98);
    border-bottom: 1px solid var(--line);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 96px;
    gap: 32px;
}

.brand {
    display: flex;
    gap: 12px;
    align-items: center;
    font-size: 25px;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.15;
}

.brand img {
    border-radius: 50%;
    object-fit: cover;
}

.brand small {
    display: block;
    margin-top: 5px;
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.16em;
}

nav {
    display: flex;
    align-items: center;
    gap: 32px;
    font-size: 13px;
    font-weight: 600;
}

nav > a:not(.button):hover, .text-link:hover, .footer-bottom a:hover {
    color: #b64307;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
    min-height: 51px;
    padding: 13px 22px;
    background: var(--orange);
    color: #181e17;
    border: 1px solid transparent;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
    transition: background 0.2s, transform 0.2s;
}

.button:hover {
    background: #ff7a36;
    transform: translateY(-2px);
}

.small-button {
    min-height: 42px;
    padding: 10px 18px;
    gap: 23px;
}

.products-menu {
    position: relative;
}

.products-menu summary {
    cursor: pointer;
    list-style: none;
    display: flex;
    gap: 8px;
    align-items: center;
}

.products-menu summary::-webkit-details-marker {
    display: none;
}

.products-dropdown {
    position: absolute;
    top: 35px;
    right: 0;
    width: 290px;
    border: 1px solid var(--line);
    background: var(--paper);
    padding: 20px;
    box-shadow: 0 12px 24px #23252215;
    border-radius: 6px;
}

.products-dropdown a, .products-dropdown span {
    display: block;
}

.products-dropdown strong {
    font-size: 16px;
}

.products-dropdown span {
    font-size: 12px;
    color: var(--muted);
    margin-top: 6px;
}

.menu-toggle {
    display: none;
}

/* Homepage introduction */
.hero {
    padding: 67px 0 58px;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 52px;
    align-items: center;
}

.eyebrow {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.15em;
    line-height: 1.5;
}

.hero .eyebrow {
    display: flex;
    align-items: center;
    gap: 9px;
}

.status-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--orange);
}

h1 {
    font-size: clamp(3.7rem, 6.2vw, 5.65rem);
    font-weight: 600;
    line-height: 0.99;
    margin-top: 28px;
    letter-spacing: -0.065em;
}

.orange-text {
    color: var(--orange);
}

.hero-description {
    max-width: 380px;
    margin-top: 27px;
    font-size: 16px;
    color: var(--muted);
    line-height: 1.75;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-top: 30px;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 16px;
    font-size: 12px;
    font-weight: 700;
}

.hero-note {
    display: flex;
    gap: 13px;
    align-items: center;
    margin-top: 41px;
    font-size: 10px;
    color: var(--muted);
    line-height: 1.65;
}

.hero-note strong {
    font-weight: 500;
    color: var(--ink);
}

.hero-note > span {
    width: 28px;
    height: 1px;
    background: var(--orange);
}

/* Connected systems illustration */
.hero-art {
    height: 530px;
    position: relative;
    border: 1px solid #deded4;
    border-radius: 6px;
    overflow: hidden;
    background-color: #efefe7;
    background-image: radial-gradient(#a8aa9c60 0.7px, transparent 0.7px);
    background-size: 17px 17px;
}

.art-topline, .art-bottomline {
    position: absolute;
    left: 24px;
    right: 24px;
    display: flex;
    justify-content: space-between;
    font-size: 8px;
    font-weight: 600;
    letter-spacing: 0.1em;
    color: #626653;
    z-index: 3;
}

.art-topline {
    top: 22px;
}

.art-bottomline {
    bottom: 23px;
    font-size: 7px;
}

.orbit {
    position: absolute;
    left: 50%;
    top: 49%;
    border: 1px solid #bbc0ac;
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.orbit-one {
    width: 220px;
    height: 220px;
}

.orbit-two {
    width: 345px;
    height: 345px;
}

.orbit-three {
    width: 465px;
    height: 465px;
    border-style: dashed;
    border-color: #cbd0bf;
}

.axis {
    position: absolute;
    background: #c5c9b750;
}

.axis-horizontal {
    height: 1px;
    left: 0;
    right: 0;
    top: 49%;
}

.axis-vertical {
    width: 1px;
    top: 0;
    bottom: 0;
    left: 50%;
}

.core {
    position: absolute;
    left: 50%;
    top: 49%;
    transform: translate(-50%, -50%) rotate(-8deg);
    height: 142px;
    width: 142px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 24px;
    background: var(--orange);
    box-shadow: 0 18px 35px #bf5b2026, 0 0 0 10px #efefe7;
}

.core > span {
    font-size: 43px;
    font-weight: 800;
    font-style: italic;
    letter-spacing: -0.07em;
    color: #1c231b;
}

.core small {
    font-size: 7px;
    letter-spacing: 0.13em;
    font-weight: 700;
    margin-top: 3px;
}

.system-node {
    position: absolute;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 13px 15px;
    background: #fbfbf7;
    border: 1px solid #d5d8cc;
    border-radius: 6px;
    box-shadow: 0 7px 16px #30352a09;
    font-size: 8px;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.system-node b {
    font-size: 19px;
    line-height: 1;
    color: #626e53;
    font-weight: 500;
}

.node-software {
    top: 96px;
    left: 34px;
}

.node-devices {
    top: 238px;
    right: 16px;
}

.node-insights {
    bottom: 90px;
    left: 43px;
}

.orbit-point {
    position: absolute;
    width: 9px;
    height: 9px;
    border: 2px solid var(--paper);
    border-radius: 50%;
    background: var(--orange);
}

.point-one {
    top: 102px;
    right: 125px;
}

.point-two {
    bottom: 116px;
    right: 103px;
}

/* Principles and company capabilities */
.principles-strip {
    border-block: 1px solid var(--line);
    padding: 21px 0;
    font-size: 11px;
}

.principles-strip > .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.principles-strip > .container > span:first-child {
    font-weight: 700;
}

.principles-strip b {
    color: #b44308;
    margin-inline: 20px;
    font-weight: 400;
}

.section {
    padding: 87px 0;
}

.section-intro {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 50px;
}

.section-intro .eyebrow {
    padding-top: 8px;
}

.section-intro > div {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
    gap: 30px;
    align-items: start;
}

.section-intro h2 {
    font-size: clamp(1.8rem, 2.5vw, 2.4rem);
}

.section-intro p:not(.eyebrow) {
    font-size: 13px;
    color: var(--muted);
    line-height: 1.8;
}

.capabilities {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-top: 47px;
    border-top: 1px solid var(--line);
}

.capabilities article {
    position: relative;
    padding: 30px 32px 0 0;
}

.capabilities article + article {
    border-left: 1px solid var(--line);
    padding-left: 32px;
}

.capability-number {
    position: absolute;
    right: 30px;
    top: 30px;
    font-size: 10px;
    color: #65695e;
}

.capability-icon {
    font-size: 24px;
    color: #b44308;
    height: 48px;
}

.capabilities h3 {
    margin: 15px 0;
    font-size: 19px;
}

.capabilities p {
    font-size: 13px;
    color: var(--muted);
    max-width: 280px;
}

/* Senmatrix product feature */
.product-section {
    background: var(--dark);
    color: #f6f7ef;
}

.product-heading {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #ffffff26;
    padding-bottom: 24px;
}

.product-heading > .eyebrow {
    color: #ffa06b;
}

.product-heading > span {
    font-size: 9px;
    letter-spacing: 0.1em;
    color: #a5b0a4;
}

.product-grid {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    gap: 90px;
    margin-top: 35px;
    align-items: center;
}

.product-logo {
    height: 84px;
    width: 90px;
    object-fit: contain;
    margin-bottom: 20px;
}

.product-copy h2 {
    font-size: clamp(2rem, 3.4vw, 3rem);
}

.product-copy h2 span {
    color: #b7c4af;
}

.product-copy > p {
    font-size: 14px;
    color: #b7c1b5;
    margin-top: 23px;
    max-width: 450px;
}

.product-tags {
    display: flex;
    gap: 9px;
    margin: 23px 0 28px;
}

.product-tags span {
    padding: 5px 13px;
    border: 1px solid #ffffff30;
    border-radius: 30px;
    font-size: 10px;
    color: #d7dfd1;
}

.product-copy p.external-note {
    font-size: 10px;
    margin-top: 12px;
}

.water-illustration {
    position: relative;
    height: 300px;
    display: grid;
    place-items: center;
}

.water-ring {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    border: 1px solid #97aa8a30;
    border-radius: 50%;
}

.ring-outer {
    width: 290px;
    height: 290px;
}

.ring-inner {
    width: 214px;
    height: 214px;
    border-style: dashed;
}

.water-drop {
    height: 155px;
    width: 115px;
    color: #c7d4ba;
    filter: drop-shadow(0 0 20px #c2daaa20);
}

.water-label {
    position: absolute;
    font-size: 9px;
    letter-spacing: 0.13em;
    color: #cbd4c2;
    background: var(--dark);
    padding: 6px 10px;
}

.label-home {
    top: 37px;
    left: 25px;
}

.label-industry {
    bottom: 46px;
    right: 5px;
}

.product-detail {
    display: flex;
    gap: 19px;
    border-top: 1px solid #ffffff26;
    padding-top: 24px;
    margin-top: 28px;
}

.product-detail > span {
    font-size: 11px;
    color: #ffa06b;
}

.product-detail h3 {
    font-size: 16px;
    letter-spacing: -0.02em;
}

.product-detail p {
    font-size: 12px;
    color: #b7c1b5;
    margin-top: 9px;
}

/* Company information */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
}

.about-grid h2 {
    margin-top: 27px;
}

.muted-text {
    color: #71766a;
}

.about-copy p {
    font-size: 14px;
    color: var(--muted);
    margin-bottom: 23px;
}

.about-copy p.large-copy {
    font-size: 21px;
    color: var(--ink);
    line-height: 1.5;
    letter-spacing: -0.025em;
}

.about-copy .text-link {
    margin-top: 8px;
}

/* Contact section */
.contact-section {
    padding: 72px 0;
    background: #eceee5;
    border-block: 1px solid var(--line);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 100px;
    align-items: center;
}

.contact-grid h2 {
    font-size: clamp(2.7rem, 4.3vw, 3.8rem);
    margin-top: 24px;
}

.contact-grid > div > p:last-child {
    font-size: 13px;
    color: var(--muted);
    max-width: 340px;
    margin-top: 22px;
}

.contact-card {
    border-top: 1px solid #b6beaa;
    border-bottom: 1px solid #b6beaa;
    padding: 30px 0;
}

.contact-label {
    font-size: 9px;
    letter-spacing: 0.12em;
    color: #697260;
}

.contact-email {
    display: flex;
    justify-content: space-between;
    font-size: clamp(1.3rem, 2.5vw, 2rem);
    font-weight: 600;
    letter-spacing: -0.04em;
    margin-top: 15px;
    gap: 16px;
}

.contact-email:hover {
    color: #a5420d;
}

.contact-card > p {
    font-size: 12px;
    color: var(--muted);
    margin-top: 12px;
}

.contact-product {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-top: 35px;
    font-size: 11px;
}

.contact-product > span {
    color: var(--muted);
}

.contact-product a {
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 4px;
}

/* Footer */
footer {
    padding: 33px 0 22px;
}

.footer-main {
    display: flex;
    align-items: center;
    gap: 30px;
}

.footer-main p {
    font-size: 11px;
    color: var(--muted);
}

.footer-main > a:last-child {
    margin-left: auto;
    font-size: 11px;
}

.footer-bottom {
    border-top: 1px solid var(--line);
    padding-top: 21px;
    margin-top: 28px;
    display: flex;
    justify-content: space-between;
    font-size: 10px;
    color: var(--muted);
}

.footer-bottom > div {
    display: flex;
    gap: 24px;
}

/* Privacy and error pages */
.legal-page {
    max-width: 760px;
    padding-block: 75px 100px;
}

.legal-page h1 {
    font-size: 3.4rem;
    margin: 25px 0;
}

.legal-page h2 {
    font-size: 1.5rem;
    margin: 35px 0 14px;
}

.legal-page p {
    color: var(--muted);
    margin-bottom: 16px;
}

.legal-page a {
    text-decoration: underline;
}

/* Large desktop layouts */
@media (min-width: 1440px) {
    .hero {
        padding-block: 80px;
    }

    .hero-art {
        height: 560px;
    }

}

/* Tablet and compact desktop layouts */
@media (max-width: 1100px) {
    .container {
        width: calc(100% - 64px);
    }

    nav {
        gap: 23px;
    }

    .hero-grid {
        gap: 30px;
    }

    .hero-actions {
        gap: 18px;
        flex-wrap: wrap;
    }

    .hero-art {
        height: 490px;
    }

    .core {
        height: 120px;
        width: 120px;
    }

    .orbit-three {
        width: 420px;
        height: 420px;
    }

    .node-devices {
        right: 8px;
    }

    .node-software {
        left: 15px;
    }

    .node-insights {
        left: 18px;
    }

    .section-intro {
        grid-template-columns: 1fr 3fr;
    }

    .section-intro > div {
        grid-template-columns: 1fr;
    }

    .product-grid {
        gap: 50px;
    }

    .about-grid, .contact-grid {
        gap: 60px;
    }

    .art-bottomline > span:last-child {
        display: none;
    }

}

/* Mobile layouts and navigation */
@media (max-width: 760px) {
    .container {
        width: calc(100% - 40px);
    }

    .header-inner {
        min-height: 77px;
    }

    .brand {
        font-size: 23px;
    }

    .brand img {
        width: 41px;
        height: 41px;
    }

    .brand small {
        font-size: 8px;
    }

    .menu-toggle {
        display: flex;
        gap: 12px;
        align-items: center;
        padding: 9px 11px;
        border: 1px solid var(--line);
        border-radius: 4px;
        background: transparent;
        font-size: 12px;
    }

    nav {
        display: none;
        position: absolute;
        top: 76px;
        left: 0;
        right: 0;
        background: var(--paper);
        padding: 22px 20px;
        border-bottom: 1px solid var(--line);
        align-items: stretch;
        gap: 23px;
    }

    nav.is-open {
        display: flex;
        flex-direction: column;
    }

    .products-dropdown {
        position: static;
        width: 100%;
        margin-top: 15px;
        box-shadow: none;
    }

    nav .button {
        align-self: flex-start;
    }

    .hero {
        padding: 43px 0;
    }

    .hero-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    h1 {
        font-size: clamp(3.7rem, 12vw, 5rem);
    }

    .hero-description {
        max-width: 440px;
    }

    .hero-note {
        margin-top: 27px;
    }

    .hero-art {
        height: 420px;
        max-width: 550px;
        width: 100%;
        margin: auto;
    }

    .orbit-two {
        width: 290px;
        height: 290px;
    }

    .orbit-three {
        width: 380px;
        height: 380px;
    }

    .node-software {
        top: 70px;
        left: 24px;
    }

    .node-devices {
        top: 198px;
        right: 12px;
    }

    .node-insights {
        bottom: 65px;
        left: 25px;
    }

    .point-one {
        top: 63px;
        right: 109px;
    }

    .point-two {
        bottom: 90px;
        right: 65px;
    }

    .principles-strip > .container {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .principles-strip b {
        margin-inline: 10px;
    }

    .section {
        padding: 58px 0;
    }

    .section-intro {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .section-intro > div {
        gap: 20px;
    }

    .capabilities {
        grid-template-columns: 1fr;
        margin-top: 30px;
    }

    .capabilities article, .capabilities article + article {
        padding: 25px 0;
        border-left: 0;
        border-bottom: 1px solid var(--line);
    }

    .capability-number {
        right: 0;
    }

    .capabilities p {
        max-width: 100%;
    }

    .capabilities h3 {
        margin-top: 6px;
    }

    .product-heading > span {
        display: none;
    }

    .product-grid {
        grid-template-columns: 1fr;
        gap: 22px;
        margin-top: 28px;
    }

    .product-copy > p {
        max-width: 100%;
    }

    .product-story {
        margin-top: 5px;
    }

    .water-illustration {
        height: 270px;
    }

    .ring-outer {
        width: 250px;
        height: 250px;
    }

    .label-home {
        left: 12%;
    }

    .label-industry {
        right: 9%;
    }

    .product-detail {
        margin-top: 15px;
    }

    .about-grid, .contact-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .about-grid h2 {
        margin-top: 20px;
    }

    .contact-section {
        padding-block: 55px;
    }

    .contact-card {
        padding-block: 25px;
    }

    .footer-main {
        flex-wrap: wrap;
        gap: 18px;
    }

    .footer-main p {
        width: calc(100% - 130px);
    }

    .footer-main > a:last-child {
        margin-left: 0;
    }

    .footer-bottom {
        gap: 20px;
        flex-wrap: wrap;
    }

    .legal-page {
        padding-block: 45px 65px;
    }

    .legal-page h1 {
        font-size: 2.5rem;
    }

}

/* Respect the visitor’s motion preference */
@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *, *::before, *::after {
        transition: none!important;
        animation: none!important;
    }

}

/* Error request reference */
.error-reference {
    margin-top: 24px;
}

/* Decorative water illustration */
.water-drop path {
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
}

.water-drop path:last-child {
    stroke-linecap: round;
}
