:root {
    color-scheme: light;
    --paper: #f3f0e8;
    --white: #fbfaf6;
    --ink: #171b19;
    --muted: #666b68;
    --line: rgba(23, 27, 25, 0.18);
    --blue: #1767dd;
    --green: #153a31;
    --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC",
        "PingFang TC", "Hiragino Sans", "Yu Gothic UI", "Noto Sans",
        "Helvetica Neue", Arial, sans-serif;
    --mono: "SFMono-Regular", "SF Mono", ui-monospace, Menlo, monospace;
    --max: 1180px;
    --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 78px; }
body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: var(--sans);
    line-height: 1.62;
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
summary { font: inherit; }
.container { width: min(var(--max), calc(100% - 48px)); margin-inline: auto; }

.skip-link {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 100;
    padding: 9px 12px;
    color: #fff;
    background: var(--ink);
    transform: translateY(-160%);
}
.skip-link:focus { transform: translateY(0); }

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid var(--line);
    background: rgba(243, 240, 232, 0.94);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}
.header-inner {
    min-height: 68px;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 28px;
    align-items: center;
}
.wordmark {
    width: fit-content;
    font-size: 20px;
    font-weight: 850;
    letter-spacing: -0.06em;
    text-transform: uppercase;
}
.wordmark span { margin-left: 3px; font-family: var(--mono); font-size: 7px; vertical-align: top; }
.site-header nav { display: flex; gap: 26px; color: var(--muted); font-size: 12px; }

.language-menu { position: relative; justify-self: end; }
.language-menu summary {
    min-height: 37px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 11px;
    border: 1px solid var(--line);
    background: var(--white);
    cursor: pointer;
    list-style: none;
    font-size: 11px;
    font-weight: 700;
}
.language-menu summary::-webkit-details-marker { display: none; }
.language-menu summary::after { content: "+"; color: var(--muted); }
.language-menu[open] summary::after { content: "−"; }
.language-list {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 165px;
    padding: 7px;
    border: 1px solid var(--line);
    background: var(--white);
    box-shadow: 8px 10px 0 rgba(23, 27, 25, 0.12);
}
.language-list a { display: block; padding: 8px 9px; font-size: 12px; }
.language-list a[aria-current="page"] { color: #fff; background: var(--ink); }

.hero { padding: 62px 0 56px; border-bottom: 1px solid var(--line); }
.hero-layout {
    display: block;
    max-width: 760px;
    margin-inline: auto;
}
.section-heading span,
.contact span,
.product-index {
    color: var(--blue);
    font-family: var(--mono);
    font-size: 10px;
    font-weight: 720;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}
.hero h1,
.section-heading h2,
.contact h2 {
    font-family: var(--sans);
    font-weight: 760;
}
.hero h1 {
    margin: 0;
    font-size: clamp(40px, 5vw, 56px);
    letter-spacing: -0.045em;
    line-height: 1.08;
    text-wrap: balance;
}
.hero-aside { margin-top: 14px; }
.hero-aside p { max-width: 620px; margin: 0 0 18px; color: var(--muted); font-size: 14px; }
.hero-aside a { padding-bottom: 3px; border-bottom: 1px solid var(--ink); font-size: 12px; font-weight: 700; }

.products { padding: 58px 0 76px; }
.section-heading {
    display: block;
    max-width: 680px;
    margin-bottom: 30px;
}
.section-heading h2 {
    margin: 8px 0 0;
    font-size: clamp(30px, 3.5vw, 40px);
    letter-spacing: -0.035em;
    line-height: 1.12;
}
.section-heading > p { margin: 9px 0 0; color: var(--muted); font-size: 13px; }
.product-list { border-top: 1px solid var(--line); }
.product-row {
    display: grid;
    grid-template-columns: minmax(0, 0.82fr) minmax(420px, 1.18fr);
    min-height: 570px;
    border-bottom: 1px solid var(--line);
}
.product-copy { padding: 64px 58px 64px 0; align-self: center; }
.product-copy h3 {
    margin: 13px 0 7px;
    font-size: clamp(36px, 4vw, 49px);
    letter-spacing: -0.055em;
    line-height: 1;
}
.product-lead { margin: 0 0 17px; font-size: 19px; font-weight: 620; line-height: 1.35; }
.product-desc { max-width: 500px; margin: 0; color: var(--muted); font-size: 13px; }
.product-tags { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 25px; }
.product-tags span { color: var(--muted); font-family: var(--mono); font-size: 9px; text-transform: uppercase; }
.product-tags span::before { content: "+ "; color: var(--blue); }
.product-actions { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; margin-top: 29px; }
.product-link,
.quiet-link {
    font-size: 11px;
    font-weight: 730;
    transition: transform 150ms var(--ease-out), color 160ms ease;
}
.product-link { padding: 10px 12px; color: #fff; background: var(--ink); }
.quiet-link { color: var(--muted); }
.product-link:active { transform: scale(0.97); }

.product-visual {
    min-height: 570px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 42px;
    border-left: 1px solid var(--line);
}
.product-media-stack {
    width: 100%;
    height: 480px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: minmax(0, 1fr);
    gap: 18px;
    align-items: center;
}
.product-media-stack img {
    min-width: 0;
    min-height: 0;
    width: auto;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    justify-self: center;
    border: 1px solid rgba(23, 27, 25, 0.12);
    object-fit: contain;
    transition: transform 200ms var(--ease-out);
}
.product-archive .product-visual { background: #dfe8e2; }
.product-focal .product-visual { background: #e6e5e0; }
.product-vision .product-visual { background: #dfe8f3; }
.vision-screenshot .product-media-stack,
.vision-icon .product-media-stack { grid-template-columns: 1fr; }
.vision-screenshot .product-media-stack img { border: 0; }
.vision-icon .product-media-stack img {
    width: min(210px, 46%);
    height: auto;
    justify-self: center;
    border: 0;
    border-radius: 26%;
}

.contact { padding: 48px 0; border-top: 1px solid var(--line); background: var(--white); }
.contact-layout { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; }
.contact span { color: var(--muted); }
.contact h2 { margin: 7px 0 6px; font-size: clamp(27px, 3vw, 34px); letter-spacing: -0.03em; line-height: 1.12; }
.contact p { max-width: 700px; margin: 0; color: var(--muted); font-size: 13px; }
.contact-layout > a { min-width: max-content; padding: 12px 14px; color: #fff; background: var(--ink); font-size: 11px; font-weight: 730; transition: transform 150ms var(--ease-out); }
.contact-layout > a:active { transform: scale(0.97); }

footer { padding: 31px 0 40px; color: rgba(255, 255, 255, 0.52); background: var(--ink); font-size: 11px; }
.footer-layout { display: grid; grid-template-columns: 1fr auto; gap: 16px; }
.footer-layout > div:nth-child(2) { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 15px; }
.icp { grid-column: 1 / -1; }
.icp a { color: #9cbaff; }

@media (hover: hover) and (pointer: fine) {
    .site-header nav a:hover,
    .language-list a:hover,
    .quiet-link:hover { color: var(--blue); }
    .product-link:hover,
    .contact-layout > a:hover { transform: translateY(-2px); }
    .product-visual:hover img { transform: translateY(-4px); }
}

@media (max-width: 900px) {
    .product-row { grid-template-columns: 1fr; }
    .product-copy { padding-right: 0; }
    .product-visual { border-top: 1px solid var(--line); border-left: 0; }
}

@media (max-width: 680px) {
    .container { width: min(100% - 30px, var(--max)); }
    .header-inner { min-height: 62px; grid-template-columns: 1fr auto; }
    .site-header nav { display: none; }
    .hero { padding: 48px 0 44px; }
    .hero h1 { font-size: clamp(36px, 10vw, 46px); }
    .products { padding: 48px 0 60px; }
    .product-copy { padding: 42px 0; }
    .product-row { min-height: 0; }
    .product-visual { min-height: 430px; padding: 24px 18px; }
    .product-media-stack { height: 380px; gap: 8px; }
    .vision-screenshot .product-media-stack { height: 300px; }
    .contact-layout,
    .footer-layout { grid-template-columns: 1fr; }
    .contact-layout > a { width: fit-content; }
    .footer-layout > div:nth-child(2) { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition-duration: 0.01ms !important; }
}
