:root {
    --cream: #f6efe3;
    --paper: #fffaf2;
    --paper-soft: #fbf5eb;
    --brown: #2b1b12;
    --brown-deep: #1e140e;
    --brown-soft: #5a493d;
    --gold: #c79332;
    --gold-soft: #e1bd73;
    --gold-pale: #f1dfb5;
    --ink: #201914;
    --muted: #6f6257;
    --line: #d9cdbf;
    --line-soft: rgba(74, 45, 29, 0.12);
    --positive: #356744;
    --negative: #9b4b42;
    --max: 1180px;
    --radius: 22px;
    --radius-sm: 14px;
    --shadow: 0 18px 60px rgba(43, 27, 18, 0.09);
    --shadow-lg: 0 30px 90px rgba(32, 20, 14, 0.2);
    --transition: 180ms ease;
}


/* ==========================================================================
   Base
   ========================================================================== */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--cream);
    color: var(--ink);
    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

a {
    color: inherit;
}

button,
select,
input {
    font: inherit;
}

button,
a,
select {
    -webkit-tap-highlight-color: transparent;
}

section {
    scroll-margin-top: 86px;
}

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

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


/* ==========================================================================
   Typography
   ========================================================================== */

.eyebrow {
    margin-bottom: 0.65rem;
    color: var(--gold);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

h1,
h2,
h3 {
    margin: 0 0 1rem;
    font-family:
        Georgia,
        "Times New Roman",
        serif;
    line-height: 1.05;
}

h1 {
    font-size: clamp(3.3rem, 8vw, 7.6rem);
    letter-spacing: -0.055em;
}

h2 {
    font-size: clamp(2.2rem, 5vw, 4.6rem);
    letter-spacing: -0.035em;
}

h3 {
    font-size: 1.45rem;
}

p {
    margin: 0 0 1.05rem;
}

.lead {
    max-width: 760px;
    color: #493b31;
    font-size: clamp(1.14rem, 2vw, 1.5rem);
}

.small {
    color: var(--muted);
    font-size: 0.93rem;
}


/* ==========================================================================
   Shared buttons
   ========================================================================== */

.button {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.9rem 1.2rem;
    border: 1px solid var(--brown);
    border-radius: 999px;
    background: var(--brown);
    color: #fff;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-decoration: none;
    transition:
        transform var(--transition),
        background var(--transition),
        border-color var(--transition),
        color var(--transition);
}

.button:hover {
    transform: translateY(-2px);
    border-color: var(--gold);
    background: var(--gold);
    color: var(--brown);
}

.button.alt {
    background: transparent;
    color: var(--brown);
}

.button.alt:hover {
    background: var(--brown);
    color: #fff;
}

.button:focus-visible,
.nav-links a:focus-visible,
.nav-toggle:focus-visible,
select:focus-visible {
    outline: 3px solid rgba(199, 147, 50, 0.32);
    outline-offset: 3px;
}


/* ==========================================================================
   Site header
   ========================================================================== */

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid rgba(74, 45, 29, 0.12);
    background: rgba(246, 239, 227, 0.88);
    backdrop-filter: blur(14px);
}

.nav {
    display: flex;
    min-height: 72px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-weight: 900;
    letter-spacing: 0.05em;
    text-decoration: none;
}

.brand-logo {
    display: block;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    object-fit: contain;
}

.brand-name {
    font-family: Georgia, serif;
    font-size: 1.15rem;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 1.15rem;
}

.nav-links a {
    color: #57483c;
    font-size: 0.92rem;
    font-weight: 700;
    text-decoration: none;
    transition: color var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--gold);
}

.nav-toggle {
    display: none;
    border: 0;
    background: none;
    color: var(--brown);
    font-size: 1.6rem;
    cursor: pointer;
}


/* ==========================================================================
   Homepage sections
   ========================================================================== */

.hero {
    position: relative;
    display: grid;
    min-height: 78vh;
    align-items: center;
    overflow: hidden;
    padding: 90px 0 72px;
}

.hero::after {
    position: absolute;
    top: -80px;
    right: -260px;
    width: 580px;
    height: 580px;
    border: 1px solid rgba(199, 147, 50, 0.18);
    border-radius: 50%;
    box-shadow:
        0 0 0 90px rgba(199, 147, 50, 0.04),
        0 0 0 180px rgba(199, 147, 50, 0.025);
    content: "";
    pointer-events: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: 1.35fr 0.65fr;
    align-items: end;
    gap: 72px;
}

.hero .kicker {
    color: var(--gold);
    font-size: 0.82rem;
    font-weight: 900;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

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

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1.6rem;
}

.hero-note {
    padding: 1.1rem 0 1.1rem 1.3rem;
    border-left: 3px solid var(--gold);
    color: #58493e;
    font-size: 1.07rem;
}

.section {
    padding: 92px 0;
}

.section.paper {
    background: var(--paper);
}

.section.dark {
    background: var(--brown);
    color: var(--cream);
}

.section.dark .lead,
.section.dark .small {
    color: #d7cabd;
}

.robot-design-section {
    background: #f3eadb;
}

.two-col {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    align-items: start;
    gap: 72px;
}

.three-col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.four-col {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}

.card {
    min-height: 100%;
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.56);
    box-shadow: 0 10px 34px rgba(43, 27, 18, 0.035);
}

.dark .card {
    border-color: rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.045);
    box-shadow: none;
}

.card .num {
    color: var(--gold);
    font-family: Georgia, serif;
    font-size: 2rem;
    font-weight: 700;
}

.quote {
    max-width: 980px;
    font-family: Georgia, serif;
    font-size: clamp(1.8rem, 4vw, 3.8rem);
    line-height: 1.14;
    letter-spacing: -0.03em;
}

.quote strong {
    color: var(--gold-soft);
}

.pill-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 1rem;
}

.pill {
    padding: 0.45rem 0.75rem;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.46);
    font-size: 0.88rem;
    font-weight: 750;
}

.dark .pill {
    border-color: rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.04);
}

.divider {
    height: 1px;
    margin: 34px 0;
    background: var(--line);
}

.dark .divider {
    background: rgba(255, 255, 255, 0.15);
}

.timeline {
    display: grid;
    gap: 0;
    margin-top: 1.5rem;
}

.timeline-item {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 24px;
    padding: 22px 0;
    border-top: 1px solid var(--line);
}

.timeline-item:first-child {
    border-top: 0;
}

.timeline-year {
    color: var(--gold);
    font-family: Georgia, serif;
    font-size: 1.35rem;
    font-weight: 700;
}

.pipeline {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: stretch;
    gap: 12px;
    margin-top: 2rem;
}

.pipe-box {
    display: flex;
    min-height: 140px;
    flex-direction: column;
    justify-content: space-between;
    padding: 22px;
    border-radius: 18px;
    background: var(--brown);
    color: #fff;
}

.pipe-box span {
    color: var(--gold-soft);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.pipe-box strong {
    font-family: Georgia, serif;
    font-size: 1.4rem;
}

.logo-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin-top: 1.5rem;
}

.logo-placeholder {
    display: grid;
    min-height: 92px;
    place-items: center;
    padding: 20px;
    border: 1px dashed #b7a896;
    border-radius: 16px;
    background: var(--brown);
    color: #746659;
}

.logo-placeholder img {
    display: block;
    max-width: 100%;
    max-height: 60px;
    width: auto;
    height: auto;
    object-fit: contain;
}


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

.site-footer,
footer {
    padding: 58px 0 40px;
    background: var(--brown-deep);
    color: #cfc1b4;
}

.footer-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    align-items: start;
    gap: 72px;
}

.footer-identity {
    display: flex;
    align-items: center;
    gap: 0.9rem;
}

.footer-logo {
    display: block;
    width: 62px;
    height: 62px;
    object-fit: contain;
}

.footer-name {
    color: var(--cream);
    font-family: Georgia, serif;
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.footer-tagline {
    margin-top: 0.2rem;
    color: var(--gold-soft);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.footer-description {
    margin: 1.1rem 0 0;
    color: #d7cabd;
    font-family:
        Georgia,
        "Times New Roman",
        serif;
    font-size: 1.1rem;
}

.footer-disclaimer {
    max-width: 520px;
}

.footer-disclaimer strong {
    color: var(--gold-soft);
    font-family:
        Georgia,
        "Times New Roman",
        serif;
    font-size: 1.05rem;
}

.footer-disclaimer p {
    margin: 0.5rem 0 0;
    color: #cfc1b4;
    font-size: 0.9rem;
    line-height: 1.7;
}

.copyright {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 32px;
    padding-top: 22px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    color: #a99789;
    font-size: 0.86rem;
}

.footer-principles {
    color: var(--gold-soft);
    letter-spacing: 0.06em;
}


/* ==========================================================================
   Tablet
   ========================================================================== */

@media (max-width: 900px) {
    .hero-grid,
    .two-col {
        grid-template-columns: 1fr;
        gap: 34px;
    }

    .three-col,
    .four-col {
        grid-template-columns: 1fr 1fr;
    }

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

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

    .nav-toggle {
        display: block;
    }

    .nav-links {
        position: absolute;
        top: 66px;
        right: 20px;
        left: 20px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 14px;
        border: 1px solid var(--line);
        border-radius: 18px;
        background: var(--paper);
        box-shadow: var(--shadow);
    }

    .nav-links.open {
        display: flex;
    }

    .nav-links a {
        padding: 0.65rem 0.5rem;
    }
}


/* ==========================================================================
   Mobile
   ========================================================================== */

@media (max-width: 620px) {
    .wrap {
        width: min(100% - 28px, var(--max));
    }

    .section {
        padding: 70px 0;
    }

    .hero {
        min-height: auto;
        padding-top: 70px;
    }

    .three-col,
    .four-col,
    .logo-grid {
        grid-template-columns: 1fr;
    }

    .timeline-item {
        grid-template-columns: 1fr;
        gap: 2px;
    }

    .hero h1 {
        font-size: clamp(3.2rem, 17vw, 5rem);
    }

    .quote {
        font-size: 2rem;
    }

    .brand-logo {
        width: 44px;
        height: 44px;
        flex-basis: 44px;
    }

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

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

    .copyright {
        display: block;
    }

    .footer-principles {
        display: block;
        margin-top: 0.75rem;
    }
}


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

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

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

