* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html, body {
    min-height: 100vh;
}
body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background:
        radial-gradient(ellipse 80% 600px at 25% 0%, rgba(255, 188, 130, 0.18), transparent 65%),
        #faf8f4;
    color: #0a0a0a;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.5;
}
body.modal-open {
    overflow: hidden;
}

.m-container {
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 24px;
}

.m-nav {
    padding: 24px 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.m-wordmark {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: #0a0a0a;
    text-decoration: none;
}
.m-nav-links {
    display: flex;
    gap: 24px;
}
.m-nav-links a {
    font-size: 14px;
    font-weight: 500;
    color: #525252;
    text-decoration: none;
    transition: color 0.15s ease;
}
.m-nav-links a:hover {
    color: #1d4ed8;
}

.m-hero {
    padding: 96px 0 72px;
    max-width: 760px;
}
.m-hero-narrow {
    padding: 64px 0 32px;
}
.m-hero-eyebrow {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #737373;
    margin-bottom: 18px;
}
.m-hero h1 {
    font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
    font-optical-sizing: auto;
    font-size: 56px;
    font-weight: 500;
    line-height: 1.05;
    letter-spacing: -0.015em;
    color: #0a0a0a;
    margin-bottom: 24px;
}
.m-subhead {
    font-size: 20px;
    line-height: 1.5;
    color: #404040;
    margin-bottom: 32px;
    max-width: 640px;
}
.m-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 16px;
    font-weight: 500;
    color: #1d4ed8;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    padding-bottom: 1px;
    transition: border-color 0.15s ease;
}
.m-cta:hover {
    border-bottom-color: #1d4ed8;
}

.m-section {
    padding: 48px 0;
    border-top: 1px solid #e5e5e5;
}
.m-section-label {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #737373;
    margin-bottom: 24px;
}
.m-section h2 {
    font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
    font-optical-sizing: auto;
    font-size: 36px;
    font-weight: 500;
    letter-spacing: -0.015em;
    color: #0a0a0a;
    margin-bottom: 24px;
    max-width: 720px;
}
.m-section p {
    font-size: 17px;
    line-height: 1.65;
    color: #404040;
    max-width: 680px;
    margin-bottom: 16px;
}

.m-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}
.m-product-card {
    display: block;
    padding: 0;
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    text-align: left;
    font: inherit;
    width: 100%;
    cursor: pointer;
    overflow: hidden;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.m-product-card:hover {
    border-color: #d4d4d4;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transform: translateY(-1px);
}
.m-product-card:focus-visible {
    outline: 2px solid #1d4ed8;
    outline-offset: 2px;
}
.m-product-image {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: #f4f4f5;
    border-bottom: 1px solid #e5e5e5;
}
.m-product-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    font-weight: 600;
    color: #d4d4d4;
    letter-spacing: -0.02em;
}
.m-product-body {
    padding: 24px 28px 28px;
}
.m-product-category {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #737373;
    margin-bottom: 8px;
}
.m-product-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}
.m-product-name {
    font-size: 20px;
    font-weight: 600;
    color: #0a0a0a;
    letter-spacing: -0.01em;
}
.m-product-tag {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: #1d4ed8;
    background: rgba(29, 78, 216, 0.08);
    padding: 2px 8px;
    border-radius: 999px;
}
.m-product-tag.muted {
    color: #525252;
    background: #f4f4f5;
}
.m-product-desc {
    font-size: 15px;
    line-height: 1.55;
    color: #525252;
    margin-bottom: 16px;
}
.m-product-link {
    font-size: 14px;
    font-weight: 500;
    color: #1d4ed8;
}

.m-contact a {
    color: #1d4ed8;
    text-decoration: none;
    border-bottom: 1px solid #1d4ed8;
    padding-bottom: 1px;
}

.m-footer {
    border-top: 1px solid #e5e5e5;
    padding: 32px 0 48px;
    margin-top: 48px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    font-size: 13px;
    color: #737373;
    flex-wrap: wrap;
}
.m-footer a {
    color: #737373;
    text-decoration: none;
    border-bottom: 1px dotted #d4d4d4;
    padding-bottom: 1px;
}
.m-footer a:hover {
    color: #404040;
    border-bottom-color: #737373;
}

/* Article pages (products, experiments) */
.m-article {
    max-width: 760px;
    padding: 48px 0 64px;
}
.m-back {
    display: inline-block;
    font-size: 14px;
    color: #737373;
    text-decoration: none;
    margin-bottom: 32px;
    border-bottom: 1px dotted #d4d4d4;
    padding-bottom: 1px;
}
.m-back:hover {
    color: #1d4ed8;
    border-bottom-color: #1d4ed8;
}
.m-article h1 {
    font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
    font-optical-sizing: auto;
    font-size: 44px;
    font-weight: 500;
    line-height: 1.1;
    letter-spacing: -0.015em;
    color: #0a0a0a;
    margin: 12px 0 16px;
}
.m-article-date {
    font-size: 14px;
    color: #737373;
    margin-bottom: 24px;
}
.m-article-media {
    margin: 24px 0 32px;
    border-radius: 12px;
    overflow: hidden;
    background: #f4f4f5;
    aspect-ratio: 16 / 9;
}
.m-article-media img,
.m-article-media iframe {
    width: 100%;
    height: 100%;
    display: block;
    border: none;
    object-fit: cover;
}
.m-article-body {
    font-size: 17px;
    line-height: 1.7;
    color: #404040;
}
.m-article-body p {
    margin-bottom: 18px;
    max-width: 680px;
}
.m-article-body h2 {
    font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
    font-optical-sizing: auto;
    font-size: 28px;
    font-weight: 500;
    color: #0a0a0a;
    margin: 36px 0 16px;
    letter-spacing: -0.01em;
}
.m-article-body h3 {
    font-size: 18px;
    font-weight: 600;
    color: #0a0a0a;
    margin: 28px 0 12px;
}
.m-article-body ul,
.m-article-body ol {
    margin: 0 0 18px 24px;
}
.m-article-body li {
    margin-bottom: 6px;
}
.m-article-body a {
    color: #1d4ed8;
    text-decoration: none;
    border-bottom: 1px solid rgba(29, 78, 216, 0.3);
}
.m-article-body a:hover {
    border-bottom-color: #1d4ed8;
}
.m-article-body img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 28px auto;
    border-radius: 8px;
    border: 1px solid #e5e5e5;
}
.m-article-body code {
    font-family: 'SF Mono', Menlo, Monaco, Consolas, monospace;
    font-size: 14px;
    background: #f4f4f5;
    padding: 2px 6px;
    border-radius: 4px;
}

/* Inline embeds (YouTube, video) inside article bodies */
.m-embed {
    margin: 28px 0;
    border-radius: 8px;
    overflow: hidden;
    background: #f4f4f5;
    aspect-ratio: 16 / 9;
    border: 1px solid #e5e5e5;
}
.m-embed iframe,
.m-embed video {
    width: 100%;
    height: 100%;
    display: block;
    border: 0;
    object-fit: cover;
}
.m-article-body pre {
    background: #1a1a1a;
    color: #e5e5e5;
    padding: 16px 20px;
    border-radius: 8px;
    overflow-x: auto;
    margin-bottom: 18px;
}
.m-article-body pre code {
    background: none;
    padding: 0;
    color: inherit;
}
.m-article-features {
    margin-top: 32px;
}

/* Experiments index */
.m-post-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.m-post-item {
    border-top: 1px solid #e5e5e5;
}
.m-post-item:last-child {
    border-bottom: 1px solid #e5e5e5;
}
.m-post-link {
    display: block;
    padding: 24px 0;
    text-decoration: none;
    color: inherit;
    transition: color 0.15s ease;
}
.m-post-link:hover .m-post-title {
    color: #1d4ed8;
}
.m-post-title {
    font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
    font-optical-sizing: auto;
    font-size: 22px;
    font-weight: 500;
    color: #0a0a0a;
    margin-bottom: 6px;
    letter-spacing: -0.01em;
    transition: color 0.15s ease;
}
.m-post-summary {
    font-size: 15px;
    color: #525252;
    margin-bottom: 8px;
    max-width: 680px;
}
.m-post-date {
    font-size: 13px;
    color: #737373;
}

/* Product modal */
.m-modal-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(10, 10, 10, 0.55);
    z-index: 1000;
    overflow-y: auto;
    padding: 48px 24px;
    align-items: flex-start;
    justify-content: center;
}
.m-modal-backdrop.open {
    display: flex;
}
.m-modal {
    background: #ffffff;
    border-radius: 12px;
    max-width: 760px;
    width: 100%;
    position: relative;
    margin: auto 0;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}
.m-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid #e5e5e5;
    color: #404040;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
    transition: background 0.15s ease, color 0.15s ease;
}
.m-modal-close:hover {
    background: #ffffff;
    color: #0a0a0a;
}
.m-modal-media {
    aspect-ratio: 16 / 9;
    background: #f4f4f5;
    position: relative;
}
.m-modal-media img,
.m-modal-media iframe {
    width: 100%;
    height: 100%;
    display: block;
    border: none;
    object-fit: cover;
}
.m-modal-content {
    padding: 32px 36px 36px;
}
.m-modal h2 {
    font-family: 'Fraunces', Georgia, 'Times New Roman', serif;
    font-optical-sizing: auto;
    font-size: 28px;
    font-weight: 500;
    letter-spacing: -0.015em;
    color: #0a0a0a;
    margin-bottom: 12px;
}
.m-modal-long {
    font-size: 16px;
    line-height: 1.6;
    color: #404040;
    margin-bottom: 24px;
}
.m-modal-long p {
    margin-bottom: 12px;
}
.m-modal-long p:last-child {
    margin-bottom: 0;
}
.m-modal-features {
    list-style: none;
    margin: 0 0 28px;
    padding: 0;
    border-top: 1px solid #f4f4f5;
}
.m-modal-features li {
    position: relative;
    padding: 10px 0 10px 26px;
    font-size: 15px;
    color: #404040;
    border-bottom: 1px solid #f4f4f5;
}
.m-modal-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 10px;
    color: #1d4ed8;
    font-weight: 600;
}
.m-modal-actions {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
}
.m-modal-cta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 10px 18px;
    background: #1d4ed8;
    color: #ffffff;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 500;
    font-size: 15px;
    transition: background 0.15s ease;
}
.m-modal-cta:hover {
    background: #1e40af;
}
.m-modal-secondary {
    font-size: 14px;
    font-weight: 500;
    color: #525252;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    padding-bottom: 1px;
    transition: color 0.15s ease, border-color 0.15s ease;
    cursor: pointer;
}
.m-modal-secondary:hover {
    color: #1d4ed8;
    border-bottom-color: #1d4ed8;
}

.m-related {
    margin-top: 56px;
    padding-top: 32px;
    border-top: 1px solid #e5e5e5;
}
.m-related .m-section-label {
    margin-bottom: 16px;
}

/* Media carousel — used in both modal and product page */
.m-carousel {
    position: relative;
    overflow: hidden;
}
.m-carousel-track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    height: 100%;
}
.m-carousel-track::-webkit-scrollbar {
    display: none;
}
.m-carousel-slide {
    flex: 0 0 100%;
    scroll-snap-align: center;
    background: #f4f4f5;
    position: relative;
    height: 100%;
    aspect-ratio: 16 / 9;
}
.m-carousel-slide img,
.m-carousel-slide video,
.m-carousel-slide iframe {
    width: 100%;
    height: 100%;
    display: block;
    border: 0;
    object-fit: cover;
}
.m-carousel-prev,
.m-carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid #e5e5e5;
    color: #404040;
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
    z-index: 2;
    display: none;
    align-items: center;
    justify-content: center;
    padding-bottom: 3px;
    transition: background 0.15s ease, color 0.15s ease;
}
.m-carousel-prev { left: 12px; }
.m-carousel-next { right: 12px; }
.m-carousel.has-multiple .m-carousel-prev,
.m-carousel.has-multiple .m-carousel-next {
    display: flex;
}
.m-carousel-prev:hover,
.m-carousel-next:hover {
    background: #ffffff;
    color: #0a0a0a;
}
.m-carousel-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 2;
    padding: 4px 8px;
    background: rgba(10, 10, 10, 0.3);
    border-radius: 999px;
    backdrop-filter: blur(4px);
}
.m-carousel-dot {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.55);
    border: 0;
    cursor: pointer;
    padding: 0;
    transition: width 0.2s ease, background 0.2s ease;
}
.m-carousel-dot.active {
    background: #ffffff;
    width: 18px;
}

@media (max-width: 700px) {
    .m-hero {
        padding: 56px 0 48px;
    }
    .m-hero h1 {
        font-size: 38px;
    }
    .m-subhead {
        font-size: 17px;
    }
    .m-section {
        padding: 36px 0;
    }
    .m-section h2 {
        font-size: 28px;
    }
    .m-products-grid {
        grid-template-columns: 1fr;
    }
    .m-modal-backdrop {
        padding: 16px;
    }
    .m-modal-content {
        padding: 24px;
    }
    .m-modal h2 {
        font-size: 22px;
    }
    .m-article h1 {
        font-size: 32px;
    }
}
