/* ============================================
   SiftSphere theme — minimal light layer.
   Load after base.css and pages.css.
   The brand accent (--accent, #ff7b00) is inherited from base.css, untouched.
   ============================================ */

/* ---------- Tokens ---------- */
:root {
    --ink: #0d0d0d;
    --on-accent: #0d0d0d; /* white on #ff7b00 fails AA (2.6:1); ink passes (7.5:1) */
    --accent-ink: #b35500; /* brand orange darkened for small text on light surfaces */

    --font-heading: "DM Sans", sans-serif;

    --dark-bg: #ffffff;
    --dark-surface: #f5f5f4;
    --dark-card: #ffffff;
    --dark-border: rgba(13, 13, 13, 0.1);
    --text-primary: var(--ink);
    --white: var(--ink);
    --text-secondary: #585959;
    --text-muted: #6b6b6b;
    --glass-bg: #f5f5f4;
    --glass-border: rgba(13, 13, 13, 0.1);
    --glass-bg-dark: #ffffff;

    --radius-lg: 24px;
    --radius-inner: 16px;
    --tracking-tight: -0.04em;
    --hairline-hover: rgba(13, 13, 13, 0.25);
    --shadow-hover: 0 12px 32px -16px rgba(0, 0, 0, 0.12);
}

/* Dark surfaces re-declare the tokens, so everything inside them adapts */
.hero,
.page-hero,
.footer,
.cta-closing,
.testimonial-card,
.mobile-menu,
.cta-strip,
.cta-band-inner,
.ss-contact-modal__intro,
.ss-contact-modal__details,
.sidebar-cta,
body:has(.hero) .navbar:not(.scrolled),
body:has(.page-hero) .navbar:not(.scrolled),
body:has(.mobile-menu.active) .navbar {
    --accent-ink: var(--accent-light);
    --dark-border: rgba(255, 255, 255, 0.14);
    --hairline-hover: rgba(255, 255, 255, 0.4);
    --text-primary: #ffffff;
    --white: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.72);
    --text-muted: rgba(255, 255, 255, 0.6);
    --glass-bg: rgba(255, 255, 255, 0.06);
    --glass-border: rgba(255, 255, 255, 0.14);
}

/* ---------- Base ---------- */
body {
    letter-spacing: -0.01em;
}

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

::-webkit-scrollbar-thumb,
::-webkit-scrollbar-thumb:hover {
    background: rgba(13, 13, 13, 0.2);
}

.glow-orb {
    display: none;
}

.reveal {
    transform: translateY(24px);
}

.hero-title,
.section-title,
.page-hero-title,
.about-content .about-title,
.about-stat-value,
.service-title,
.product-title,
.project-title,
.blog-title,
.navbar-logo,
.testimonial-info h4,
.article-body h2,
.article-body h3,
.sidebar-card h4,
.value-card h3,
.team-member-name,
.cta-strip h2,
.cta-band-text h2,
.contact-info h3,
.contact-card-text h5,
.product-price,
.pro-hero h1,
.faq-q,
.mobile-menu a {
    font-weight: 600;
    letter-spacing: var(--tracking-tight);
}

/* ---------- Section header ---------- */
.section-label {
    font-size: 12px;
    letter-spacing: 0.08em;
    color: var(--accent-ink);
    margin-bottom: 16px;
}

.section-label::before {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.section-title {
    font-size: clamp(34px, 4.6vw, 56px);
    line-height: 1.1;
    margin-bottom: 0;
}

.section-subtitle {
    font-size: 16px;
    line-height: 1.5;
}

.section-header {
    text-align: left;
    margin-bottom: 56px;
}

.section-header:has(.section-subtitle) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 380px);
    column-gap: 48px;
    align-items: end;
}

.section-header > .section-label {
    grid-column: 1;
    justify-self: start;
}

.section-header > .section-title {
    grid-column: 1;
}

.section-header .section-subtitle {
    grid-column: 2;
    grid-row: 2;
    margin: 0;
    padding-bottom: 6px;
}

/* ---------- Buttons ---------- */
.btn {
    font-weight: 600;
    letter-spacing: -0.02em;
}

.btn-primary {
    color: var(--on-accent);
    box-shadow: none;
}

.btn-primary:hover {
    box-shadow: none;
    transform: none;
    color: var(--on-accent);
}

/* Pill with an inset icon circle */
.btn-primary:has(> i:last-child) {
    padding: 6px 6px 6px 24px;
    gap: 14px;
}

.btn-primary > i:last-child {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: var(--ink);
    color: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    transition: transform var(--transition-base);
}

.btn-primary > i.fa-arrow-right {
    transform: rotate(-45deg);
}

.btn-primary:hover > i.fa-arrow-right {
    transform: rotate(0);
}

.btn-outline {
    color: var(--text-primary);
    border: 1px solid var(--hairline-hover);
}

.btn-outline:hover {
    background: var(--ink);
    border-color: var(--ink);
    color: #ffffff;
    transform: none;
}

.btn-glass {
    background: transparent;
    border: 0;
    backdrop-filter: none;
    color: var(--text-primary);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 5px;
}

.btn-glass:hover {
    background: transparent;
    opacity: 0.7;
    transform: none;
}

/* Round controls shared by the sliders */
.hero-arrow,
.proj-arrow,
.test-arrow {
    width: 44px;
    height: 44px;
    background: transparent;
    border: 1px solid var(--hairline-hover);
    color: var(--text-primary);
    font-size: 12px;
}

.hero-arrow:hover,
.proj-arrow:hover,
.test-arrow:hover {
    color: var(--on-accent);
}

.about-link,
.blog-link,
.project-link {
    color: var(--text-primary);
    font-size: 14px;
    letter-spacing: -0.02em;
}

.about-link i,
.blog-link i,
.project-link i {
    color: var(--accent-ink);
}

/* ---------- Navbar ---------- */
.navbar {
    height: 76px;
    top: 12px;
}

/* Scrolled: a dark glass bar with white logo and links, on every page */
.navbar.scrolled {
    --accent-ink: var(--accent-light);
    --dark-border: rgba(255, 255, 255, 0.1);
    --text-primary: #ffffff;
    --white: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.72);
    --text-muted: rgba(255, 255, 255, 0.6);
    --glass-bg: rgba(255, 255, 255, 0.06);
    --glass-border: rgba(255, 255, 255, 0.14);
    top: 0;
    background: rgba(13, 13, 13, 0.82);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    backdrop-filter: saturate(160%) blur(16px);
    -webkit-backdrop-filter: saturate(160%) blur(16px);
    box-shadow: 0 8px 24px -12px rgba(0, 0, 0, 0.5);
}

.navbar.scrolled .navbar-logo {
    color: #ffffff;
}

body:has(.mobile-menu.active) .navbar {
    top: 12px;
    background: transparent;
    border-color: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.navbar-logo {
    font-size: 22px;
}

/* The link pill is always white, so it keeps light tokens over the dark hero */
.navbar .navbar-links {
    --white: var(--ink);
    --text-secondary: #585959;
    gap: 2px;
    padding: 6px;
    background: #ffffff;
    border: 1px solid rgba(13, 13, 13, 0.08);
    border-radius: var(--radius-full);
}

.navbar .navbar-links {
    transition: background var(--transition-base), border-color var(--transition-base);
}

.navbar.scrolled .navbar-links {
    --white: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.8);
    background: transparent;
    border-color: transparent;
}

.navbar.scrolled .navbar-links a {
    color: rgba(255, 255, 255, 0.8);
}

.navbar.scrolled .navbar-links a:hover,
.navbar.scrolled .navbar-links a.nav-active {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.navbar-links a {
    display: block;
    padding: 8px 16px;
    font-size: 14px;
    border-radius: var(--radius-full);
    transition: background var(--transition-fast), color var(--transition-fast);
}

.navbar-links a::after {
    display: none;
}

.navbar-links a:hover,
.navbar-links a.nav-active {
    background: #f5f5f4;
    color: var(--ink);
}

.navbar-cta .btn-primary {
    font-size: 14px;
}

.navbar-cta .btn-primary:has(> i:last-child) {
    padding: 5px 5px 5px 20px;
}

.navbar-cta .btn-primary > i:last-child {
    width: 34px;
    height: 34px;
    font-size: 12px;
}

.mobile-menu {
    background: var(--ink);
    backdrop-filter: none;
    gap: 20px;
}

.mobile-menu a {
    color: #ffffff;
}

.mobile-menu a.btn {
    font-size: 15px;
    color: var(--on-accent);
    letter-spacing: -0.02em;
}

/* ---------- Hero ---------- */
.hero {
    margin: 0;
    min-height: 100vh;
    min-height: 100svh;
    border-radius: 0;
    background: var(--ink);
    text-align: center;
}

.hero-slide-overlay {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.5) 50%, rgba(0, 0, 0, 0.72) 100%);
}

.hero-content {
    padding-top: 120px;
    padding-bottom: 112px;
}

.hero-text {
    max-width: 980px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-badge {
    font-size: 13px;
    letter-spacing: -0.02em;
    padding: 7px 14px;
    color: var(--text-primary);
    margin-bottom: 24px;
}

.hero-badge .dot {
    width: 6px;
    height: 6px;
    animation: none;
}

.hero-title {
    font-size: clamp(40px, 6.5vw, 84px);
    line-height: 1.02;
    letter-spacing: -0.045em;
    margin-bottom: 24px;
}

.hero-description {
    font-size: 17px;
    line-height: 1.5;
    margin-bottom: 32px;
    max-width: 580px;
}

.hero-buttons {
    justify-content: center;
    gap: 12px;
    margin-bottom: 0;
}

.hero-buttons .btn {
    font-size: 15px;
}

.hero-buttons .btn-primary:has(> i:last-child) {
    padding: 6px 6px 6px 24px;
}

.hero-buttons .btn-glass i {
    display: none;
}

.hero-slider-controls {
    justify-content: center;
    gap: 16px;
    bottom: 28px;
}

.hero-dot {
    position: relative;
    height: 2px;
    background: rgba(255, 255, 255, 0.3);
}

.hero-dot::after {
    content: "";
    position: absolute;
    inset: -12px 0;
}

/* ---------- About ---------- */
.about-grid {
    align-items: end;
}

.about-content .about-title {
    font-size: clamp(32px, 4vw, 48px);
    line-height: 1.1;
    margin-bottom: 24px;
}

.about-content p {
    font-size: 16px;
    line-height: 1.6;
}

.about-stats-grid {
    gap: 12px;
}

.about-stat-card {
    background: var(--dark-surface);
    border-color: transparent;
    padding: 28px 24px;
}

.about-stat-card:hover {
    transform: none;
    border-color: transparent;
}

.about-stat-card::after {
    display: none;
}

.about-stat-value {
    font-size: clamp(36px, 4vw, 52px);
    line-height: 1.05;
    color: var(--text-primary);
}

/* ---------- Partners ---------- */
.partners {
    padding-bottom: 48px;
}

.ticker-item img {
    height: 36px;
    opacity: 0.55;
    filter: grayscale(100%);
}

.ticker-item:hover img {
    opacity: 1;
    filter: none;
}

/* ---------- Cards: hairline frame with an inset image ---------- */
.service-card,
.product-card,
.blog-card,
.project-card,
.value-card,
.team-member-card {
    transition: border-color var(--transition-base), box-shadow var(--transition-base);
}

.service-card,
.product-card,
.blog-card {
    padding: 12px;
}

.service-card:hover,
.product-card:hover,
.blog-card:hover,
.project-card:hover,
.project-card.active:hover,
.value-card:hover,
.team-member-card:hover,
.contact-card:hover {
    transform: none;
    border-color: var(--hairline-hover);
    box-shadow: var(--shadow-hover);
}

.service-card::before,
.product-card-image::after,
.blog-card-image::after {
    display: none;
}

.service-icon,
.product-card-image,
.blog-card-image,
.project-image {
    background: var(--dark-surface);
    border-radius: var(--radius-inner);
    overflow: hidden;
}

.service-icon,
.product-card-image,
.blog-card-image {
    height: auto;
    aspect-ratio: 16 / 10;
}

.service-icon {
    min-height: 0;
    margin-bottom: 0;
}

.service-card:hover .service-icon {
    background: var(--dark-surface);
    transform: none;
}

.service-icon img {
    height: 100%;
}

.service-icon i {
    color: var(--accent-ink);
}

.service-card:hover .service-icon img,
.product-card:hover .product-card-image img,
.blog-card:hover .blog-card-image img,
.project-card:hover .project-image img {
    transform: scale(1.04);
}

.service-icon img {
    transition: transform var(--transition-slow);
}

.service-body,
.product-card-body,
.blog-card-body {
    padding: 20px 12px 12px;
}

.service-num,
.project-num {
    display: block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent-ink);
    margin-bottom: 12px;
}

.service-title,
.product-title,
.blog-title,
.project-title {
    font-size: 22px;
    line-height: 1.2;
    margin-bottom: 10px;
}

.service-desc,
.product-desc,
.blog-excerpt,
.project-desc {
    font-size: 15px;
    line-height: 1.55;
}

.product-status,
.blog-category,
.project-category {
    top: 12px;
    bottom: auto;
    left: 12px;
    background: #ffffff;
    color: var(--ink);
    padding: 6px 12px;
    font-size: 11px;
    letter-spacing: 0.04em;
}

.blog-card:hover .blog-title {
    color: var(--accent-ink);
}

.blog-more-wrap {
    margin-top: 40px;
}

/* Grids fill the row when there are fewer items than columns */
.services-grid:has(> :nth-child(2):last-child),
.products-grid:has(> :nth-child(2):last-child),
.blog-grid:has(> :nth-child(2):last-child) {
    grid-template-columns: repeat(2, 1fr);
}

.services-grid > :only-child,
.products-grid > :only-child,
.blog-grid > :only-child {
    grid-column: 1 / -1;
    display: grid !important;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
}

.service-card:only-child .service-body,
.product-card:only-child .product-card-body,
.blog-card:only-child .blog-card-body {
    padding: 24px 28px;
    align-self: center;
}

/* ---------- Projects slider ---------- */
.projects-slider-wrapper {
    padding: 0;
}

.project-card {
    flex: 0 0 90%;
    width: 90%;
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
    padding: 12px;
}

.project-card.active {
    border-color: var(--dark-border);
}

.project-image {
    height: auto;
    min-height: 420px;
}

.project-image img {
    position: absolute;
    inset: 0;
}

.project-body {
    padding: 28px;
    align-self: center;
}

.project-title {
    font-size: clamp(24px, 2.6vw, 34px);
}

.projects-controls,
.testimonial-controls {
    justify-content: flex-end;
    gap: 8px;
    margin-top: 24px;
}

/* ---------- Testimonials ---------- */
.testimonial-slider {
    max-width: none;
}

.testimonial-card {
    background: var(--ink);
    border: 0;
    border-radius: var(--radius-lg);
    backdrop-filter: none;
    padding: clamp(32px, 5vw, 64px);
    text-align: left;
}

.testimonial-quote-icon {
    font-size: 22px;
    color: rgba(var(--accent));
    opacity: 1;
}

.testimonial-text {
    font-size: clamp(21px, 2.6vw, 34px);
    font-style: normal;
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: -0.03em;
    max-width: 960px;
}

.testimonial-author {
    justify-content: flex-start;
}

.testimonial-info h4 {
    font-size: 16px;
    letter-spacing: -0.02em;
}

.testimonial-controls {
    gap: 12px;
}

.test-dot {
    width: 6px;
    height: 6px;
    background: rgba(13, 13, 13, 0.2);
}

/* ---------- Closing CTA ---------- */
.cta-closing {
    background: var(--ink);
    color: var(--text-primary);
    text-align: center;
    padding: 120px 0 96px;
}

.cta-closing-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cta-closing .hero-badge {
    margin-bottom: 28px;
}

.cta-closing-title {
    font-size: clamp(40px, 6.5vw, 84px);
    font-weight: 600;
    line-height: 1.02;
    letter-spacing: -0.05em;
    margin-bottom: 20px;
}

.cta-closing-text {
    font-size: 17px;
    line-height: 1.5;
    color: var(--text-secondary);
    margin-bottom: 32px;
}

.cta-closing-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

/* ---------- Footer ---------- */
.footer {
    background: var(--ink);
    color: var(--text-primary);
    border-top: 1px solid var(--dark-border);
    padding-top: 80px;
    overflow: hidden;
}

.footer-grid {
    grid-template-columns: minmax(0, 1.7fr) repeat(3, minmax(0, 1fr));
    gap: 56px;
    padding-bottom: 72px;
}

.footer-brand .navbar-logo {
    margin-bottom: 20px;
}

.footer-brand p {
    font-size: 16px;
    line-height: 1.55;
    max-width: 360px;
    margin-bottom: 28px;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    margin-bottom: 28px;
}

.footer-contact a {
    font-size: 20px;
    font-weight: 500;
    letter-spacing: -0.03em;
    color: var(--text-primary);
    text-decoration: underline;
    text-decoration-color: transparent;
    text-underline-offset: 4px;
    transition: text-decoration-color var(--transition-fast);
}

.footer-contact a:hover {
    text-decoration-color: rgba(var(--accent));
}

.footer-brand .contact-socials {
    gap: 8px;
}

.footer-brand .contact-socials a {
    width: 40px;
    height: 40px;
    border-color: var(--dark-border);
}

.footer-bottom {
    padding: 20px 0;
}

.footer-bottom p a {
    color: inherit;
}

.footer-bottom p a:hover,
.footer-bottom-links a:hover {
    color: #ffffff;
}

/* Oversized wordmark, cropped by the bottom of the page */
.footer-wordmark {
    margin-top: 24px;
    margin-bottom: -0.2em;
    font-size: min(20.5vw, 340px);
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.06em;
    text-align: center;
    white-space: nowrap;
    color: transparent;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0.02) 85%);
    -webkit-background-clip: text;
    background-clip: text;
    pointer-events: none;
    user-select: none;
}

.footer-col h4 {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 20px;
}

.footer-col a {
    display: block;
    width: fit-content;
    margin: 0 0 12px;
    font-size: 15px;
}

.footer-col a:hover {
    color: #ffffff;
    padding-left: 0;
}

.contact-socials a {
    background: transparent;
}

.contact-socials a:hover {
    color: var(--on-accent);
}

/* ---------- Scroll to top ---------- */
.scroll-top {
    width: 44px;
    height: 44px;
    font-size: 14px;
    color: var(--on-accent);
    box-shadow: none;
}

.scroll-top:hover {
    box-shadow: none;
}

/* ---------- Inner pages ---------- */
/* Same dark band as the home hero, so inner pages open the same way */
.page-hero {
    padding: 148px 0 56px;
    background: var(--ink);
    color: var(--text-primary);
}

.page-hero::before {
    display: none;
}

.page-hero-title {
    font-size: clamp(36px, 5.4vw, 68px);
    line-height: 1.05;
}

.page-hero-title .accent {
    background: none;
    -webkit-text-fill-color: currentColor;
    color: var(--accent-ink);
}

.page-hero-lede {
    font-size: 17px;
    line-height: 1.55;
}

.page-breadcrumb a:hover,
.sidebar-share a:hover,
.blog-page-btn:hover,
.faq-q:hover,
.contact-socials a:hover i,
.product-price {
    color: var(--accent-ink);
}

.contact-socials a:hover i {
    color: var(--on-accent);
}

.article-meta .meta-tag,
.product-detail-head .inline-badge,
.blog-page-btn.active {
    color: var(--on-accent);
}

.article-body blockquote,
.article-lead {
    color: var(--text-primary);
}

.team-member-role,
.feature-check-list li i,
.faq-q i,
.value-card-icon,
.contact-card-icon {
    color: var(--accent-ink);
}

.value-card-icon,
.contact-card-icon {
    background: var(--dark-surface);
}

.value-card {
    text-align: left;
}

.value-card-icon {
    margin: 0 0 18px;
}

.projects-list {
    display: grid;
    gap: 24px;
}

.projects-list .project-card {
    width: 100%;
}

/* ---------- Inner page layout helpers ---------- */
.split-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 64px;
    align-items: start;
}

.split-layout-head {
    position: sticky;
    top: 112px;
}

.split-layout-head .section-title {
    font-size: clamp(30px, 3.6vw, 44px);
    margin-bottom: 16px;
}

.empty-state {
    padding: 72px 24px;
    text-align: center;
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius-lg);
}

.empty-state h2 {
    font-size: 22px;
    font-weight: 600;
    letter-spacing: var(--tracking-tight);
    margin-bottom: 8px;
}

.empty-state p {
    color: var(--text-secondary);
}

/* Closing bands */
.cta-strip,
.cta-band-inner {
    background: var(--ink);
    border: 0;
    border-radius: var(--radius-lg);
    color: var(--text-primary);
    opacity: 1;
    margin-top: 0;
    backdrop-filter: none;
    padding: clamp(36px, 6vw, 72px);
}

.cta-strip h2,
.cta-band-text h2 {
    font-size: clamp(28px, 4vw, 48px);
    line-height: 1.08;
    max-width: 640px;
}

.cta-strip h2 {
    margin-left: auto;
    margin-right: auto;
}

.cta-band {
    padding:96px 0;
}

.cta-strip .btn-row,
.cta-band-actions {
    align-items: center;
    gap: 12px;
}

/* ---------- Team ---------- */
.team-member-card {
    padding: 12px;
}

.team-member-img {
    height: auto;
    aspect-ratio: 4 / 5;
    background: var(--dark-surface);
    border-radius: var(--radius-inner);
}

.team-member-body {
    padding: 16px 12px 8px;
}

.team-member-role {
    font-size: 12px;
    letter-spacing: 0.08em;
    margin-bottom: 0;
}

/* ---------- Product page ---------- */
/* --accent is the product's own theme_color here and can be any hue, so small
   text stays ink and the colour only appears as fills */
.product-page {
    --accent-ink: var(--ink);
}

/* Hero carousel: reuses the home slider's hooks, with slides stacked in one grid
   cell so the hero grows with the tallest slide's text */
.product-hero {
    --hero-height: 100vh;
    display: block;
    text-align: left;
}

.product-hero .hero-slideshow {
    position: relative;
    display: grid;
    min-height: var(--hero-height);
}

.product-slide {
    position: relative;
    grid-area: 1 / 1;
    height: auto;
    display: flex;
    align-items: center;
    visibility: hidden;
    transition: opacity 1.2s ease, visibility 1.2s;
    --scrim: 0.32;
    --text-secondary: rgba(255, 255, 255, 0.94);
}

.product-slide.active {
    visibility: visible;
}

.product-slide .hero-slide-bg {
    position: absolute;
    inset: 0;
}

/* Accent fades across the image; a light scrim keeps white text readable on
   mid-tone accents, and the top band keeps the nav readable on any image */
.product-slide .hero-slide-overlay {
    background:
        linear-gradient(180deg, rgba(0, 0, 0, 0.38) 0, rgba(0, 0, 0, 0) 130px),
        linear-gradient(95deg, rgba(0, 0, 0, var(--scrim)) 0%, rgba(0, 0, 0, var(--scrim)) 50%, rgba(0, 0, 0, 0) 80%),
        linear-gradient(95deg, rgba(var(--accent), 0.97) 0%, rgba(var(--accent), 0.94) 50%, rgba(var(--accent), 0.35) 72%, rgba(var(--accent), 0) 92%);
}

.product-slide.is-light-accent {
    --scrim: 0;
    --accent-ink: var(--ink);
    --dark-border: rgba(13, 13, 13, 0.25);
    --hairline-hover: rgba(13, 13, 13, 0.5);
    --text-primary: var(--ink);
    --white: var(--ink);
    --text-secondary: rgba(13, 13, 13, 0.88);
    --text-muted: rgba(13, 13, 13, 0.75);
}

.product-slide-content {
    position: relative;
    z-index: 1;
    padding-top: 120px;
    padding-bottom: 112px;
    color: var(--text-primary);
}

.product-slide-text {
    max-width: min(580px, 44vw);
}

.product-slide .page-breadcrumb {
    color: var(--text-secondary);
}

.product-slide .page-breadcrumb a:hover {
    color: var(--text-primary);
}

.product-slide-title {
    font-size: clamp(38px, 5.2vw, 72px);
    font-weight: 600;
    line-height: 1.04;
    letter-spacing: -0.045em;
    margin-bottom: 20px;
}

.product-slide-desc {
    font-size: 17px;
    line-height: 1.5;
    color: var(--text-secondary);
}

.product-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 14px;
    margin-bottom: 20px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: -0.02em;
    border: 1px solid var(--dark-border);
    border-radius: var(--radius-full);
}

.product-tag .dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
}

.product-hero-buttons {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    margin-top: 32px;
}

/* An accent button would vanish into the accent gradient */
.product-slide .btn-primary,
.product-slide .btn-primary:hover {
    background: #ffffff;
    color: var(--ink);
}

.product-slide.is-light-accent .btn-primary,
.product-slide.is-light-accent .btn-primary:hover {
    background: var(--ink);
    color: #ffffff;
}

.product-slide .btn-primary > i:last-child {
    background: rgba(var(--accent));
    color: var(--on-accent);
}

/* Controls sit over the image, so they carry their own backing */
.product-hero .hero-slider-controls {
    left: auto;
    right: max(24px, calc((100% - var(--container-max)) / 2 + 24px));
    bottom: 28px;
    width: auto;
    gap: 12px;
    padding: 6px;
    transform: none;
    background: rgba(13, 13, 13, 0.55);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--radius-full);
}

.product-hero .hero-arrow {
    width: 36px;
    height: 36px;
    border-color: rgba(255, 255, 255, 0.3);
    color: #ffffff;
}

.product-hero .hero-arrow:hover {
    background: #ffffff;
    border-color: #ffffff;
    color: var(--ink);
}

.product-hero .hero-dot {
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
}

.product-hero .hero-dot.active {
    background: #ffffff;
}

.product-about {
    padding: 12px 0 120px;
    margin-top: 72px;
}

.product-about-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    gap: 64px;
    padding: clamp(28px, 5vw, 64px);
    background: rgba(var(--accent), 0.08);
    border-radius: var(--radius-lg);
}

.product-about-head {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 32px;
}

.product-about-head .section-title {
    font-size: clamp(30px, 3.2vw, 42px);
}

.product-about-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 20px;
}

.product-about-tags span {
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: -0.01em;
    background: #ffffff;
    border-radius: var(--radius-full);
}

.product-about-meta .blog-link i {
    color: inherit;
}

.product-about-body.article-body {
    max-width: none;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
}

/* Pasted descriptions carry inline sizes and fonts; the layout sets the type */
.product-about-body span,
.product-about-body b,
.product-about-body strong,
.product-about-body font,
.feature-card .service-desc * {
    font-family: inherit !important;
    font-size: inherit !important;
    line-height: inherit !important;
    color: inherit !important;
}

.feature-card .service-desc p {
    margin: 0;
    text-align: left !important;
}

.product-about-body p {
    margin: 0;
    text-align: left !important;
}

/* First paragraph leads; the rest sit beneath it in two columns */
.product-about-body > p:first-of-type {
    margin-bottom: 28px;
    font-size: clamp(21px, 2.1vw, 28px);
    font-weight: 500;
    line-height: 1.3;
    letter-spacing: -0.025em;
}

.product-about-body:has(> p:nth-of-type(2)) {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0 40px;
}

.product-about-body:has(> p:nth-of-type(2)) > * {
    grid-column: 1 / -1;
}

.product-about-body:has(> p:nth-of-type(2)) > p:not(:first-of-type) {
    grid-column: auto;
    padding-top: 20px;
    border-top: 1px solid rgba(13, 13, 13, 0.14);
}

/* A lone paragraph after the lead takes the full width */
.product-about-body:has(> p:nth-of-type(2)) > p:nth-of-type(even):last-of-type {
    grid-column: 1 / -1;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
    gap: 16px;
}

.feature-card {
    padding: 28px;
    background: var(--dark-card);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius-lg);
}

.feature-card .service-title {
    font-size: 20px;
}

.product-page .products,
.product-page .faq {
    background: var(--dark-bg);
}

.product-page .products:not(:has(+ .cta-band)) {
    background: var(--dark-surface);
}

/* ---------- FAQ ---------- */
.faq-list {
    border-top: 1px solid var(--dark-border);
}

.faq-item,
.faq-item.open {
    margin: 0;
    background: transparent;
    border: 0;
    border-bottom: 1px solid var(--dark-border);
    border-radius: 0;
}

.faq-q {
    padding: 24px 0;
    font-size: 18px;
    letter-spacing: -0.03em;
}

.faq-q:hover {
    color: var(--accent-ink);
}

.faq-q i {
    color: var(--text-primary);
}

.faq-item.open .faq-q i {
    transform: rotate(45deg);
}

.faq-item.open .faq-a {
    max-height: 800px;
}

.faq-a-inner {
    padding: 0 40px 24px 0;
    font-size: 16px;
    line-height: 1.6;
}

/* ---------- Blog list ---------- */
.blog-title {
    line-height: 1.25;
}

.blog-title a {
    color: inherit;
}

.blog-date {
    margin-bottom: 10px;
}

a.blog-card-image {
    display: block;
}

.blog-grid--lead > :first-child:not(:only-child) {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
}

.blog-grid--lead > :first-child .blog-card-body {
    padding: 24px 28px;
    align-self: center;
}

.blog-grid--lead > :first-child .blog-title {
    font-size: clamp(26px, 3vw, 38px);
    line-height: 1.12;
}

.blog-grid--lead > :first-child .blog-excerpt {
    font-size: 16px;
}

.blog-page-btn {
    border-radius: 50%;
    background: transparent;
    color: var(--text-primary);
}

.blog-page-btn:hover {
    background: transparent;
    border-color: var(--hairline-hover);
}

/* ---------- Article ---------- */
.article-hero {
    padding-bottom: 40px;
}

.article-hero .page-hero-title {
    font-size: clamp(34px, 4.6vw, 60px);
}

.article-meta {
    gap: 8px 20px;
    margin-top: 24px;
    font-size: 15px;
    color: var(--text-secondary);
}

.article-section {
    padding-bottom: 96px;
}

.article-thumb {
    border: 0;
    border-radius: var(--radius-lg);
    margin-bottom: 56px;
    background: var(--dark-surface);
}

.article-layout {
    grid-template-columns: minmax(0, 1fr) 280px;
    gap: 72px;
}

.article-body {
    max-width: 720px;
    font-size: 18px;
    line-height: 1.7;
    overflow-wrap: anywhere;
}

.article-body h2,
.article-body h3,
.article-body h4 {
    color: var(--text-primary);
    font-weight: 600;
    letter-spacing: var(--tracking-tight);
    line-height: 1.2;
}

.article-body h2 {
    font-size: clamp(26px, 3vw, 34px);
}

.article-body h3 {
    font-size: 24px;
}

.article-body > :first-child {
    margin-top: 0;
}

.article-body > :last-child {
    margin-bottom: 0;
}

.article-body a {
    color: var(--text-primary);
    text-decoration: underline;
    text-decoration-color: rgba(var(--accent));
    text-decoration-thickness: 2px;
    text-underline-offset: 3px;
}

.article-body strong,
.article-body b {
    color: var(--text-primary);
}

.article-body img {
    max-width: 100%;
    height: auto !important;
    border-radius: var(--radius-inner);
}

.article-body blockquote {
    border-left: 2px solid rgba(var(--accent));
    font-size: 22px;
    font-style: normal;
    line-height: 1.4;
    letter-spacing: -0.02em;
}

.article-body ol {
    padding-left: 22px;
    margin-bottom: 20px;
}

.article-body pre,
.article-body code {
    font-size: 0.875em;
    background: var(--dark-surface);
    border-radius: 6px;
}

.article-body code {
    padding: 2px 6px;
}

.article-body pre {
    padding: 20px;
    margin-bottom: 20px;
    overflow-x: auto;
    border-radius: var(--radius-inner);
}

.article-body pre code {
    padding: 0;
    background: none;
}

.article-body table {
    width: 100%;
    margin-bottom: 20px;
    border-collapse: collapse;
    font-size: 16px;
}

.article-body th,
.article-body td {
    padding: 10px 12px;
    text-align: left;
    border-bottom: 1px solid var(--dark-border);
}

.article-tags {
    max-width: 720px;
}

.article-tag {
    padding: 6px 12px;
    margin: 0;
    font-size: 13px;
    color: var(--text-primary);
    border: 1px solid var(--dark-border);
    border-radius: var(--radius-full);
}

.article-sidebar {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sidebar-card {
    padding: 24px;
}

.sidebar-card h4 {
    font-size: 16px;
    letter-spacing: -0.02em;
    margin-bottom: 14px;
}

.sidebar-share a {
    width: 40px;
    height: 40px;
}

.sidebar-cta {
    background: var(--ink);
    border: 0;
    color: var(--text-primary);
}

.sidebar-cta p {
    font-size: 15px;
    line-height: 1.5;
    color: var(--text-secondary);
    margin-bottom: 20px;
}

/* ---------- Contact modal ---------- */
.ss-contact-modal {
    background: transparent;
}

.ss-contact-modal__backdrop {
    position: fixed;
    background: rgba(13, 13, 13, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.ss-contact-modal__dialog {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    grid-template-rows: auto 1fr;
    width: min(100%, 1040px);
    padding: 0;
    overflow: hidden;
    background: #ffffff;
    border-radius: var(--radius-lg);
    box-shadow: 0 40px 120px rgba(0, 0, 0, 0.25);
    outline: 0;
    animation: modalRise 0.45s var(--transition-smooth, ease) both;
    animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalRise {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
}

/* Dark column behind the intro and details, which are separate rows so the
   form can sit between them on mobile */
.ss-contact-modal__dialog::before {
    content: "";
    grid-column: 1;
    grid-row: 1 / 3;
    background: var(--ink);
}

.ss-contact-modal__close {
    top: 16px;
    right: 16px;
    z-index: 3;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--ink);
    background: #ffffff;
    border: 1px solid rgba(13, 13, 13, 0.1);
    border-radius: 50%;
    transition: background var(--transition-fast);
}

.ss-contact-modal__close:hover {
    background: #f5f5f4;
}

.ss-contact-modal__intro,
.ss-contact-modal__details {
    position: relative;
    grid-column: 1;
    color: var(--text-primary);
    padding: 40px;
}

.ss-contact-modal__intro {
    grid-row: 1;
    padding-bottom: 0;
}

.ss-contact-modal__details {
    grid-row: 2;
    align-self: end;
}

.ss-contact-modal__intro h2 {
    font-size: clamp(30px, 3.4vw, 42px);
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: var(--tracking-tight);
    margin-bottom: 16px;
}

.ss-contact-modal__intro p {
    font-size: 15px;
    line-height: 1.55;
    color: var(--text-secondary);
}

.contact-list li {
    display: flex;
    gap: 14px;
    padding: 14px 0;
    border-top: 1px solid var(--dark-border);
}

.contact-list i {
    width: 16px;
    margin-top: 4px;
    font-size: 14px;
    text-align: center;
    color: rgba(var(--accent));
}

.contact-list span {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: 2px;
}

.contact-list p,
.contact-list a {
    font-size: 15px;
    line-height: 1.4;
    color: var(--text-primary);
}

.contact-list a:hover {
    color: var(--accent-ink);
}

.ss-contact-modal__details .contact-socials {
    gap: 8px;
    padding-top: 14px;
    border-top: 1px solid var(--dark-border);
}

.ss-contact-modal__details .contact-socials a {
    width: 36px;
    height: 36px;
    font-size: 14px;
}

.ss-contact-modal__form {
    grid-column: 2;
    grid-row: 1 / 3;
    padding: 40px;
}

/* ---------- Forms ---------- */
.form-row {
    gap: 16px;
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: -0.01em;
    text-transform: none;
    color: var(--text-primary);
}

.form-optional {
    font-weight: 400;
    color: var(--text-muted);
}

.form-group input,
.form-group textarea,
.form-group select {
    height: 48px;
    padding: 0 16px;
    background: #ffffff;
    border: 1px solid rgba(13, 13, 13, 0.16);
    border-radius: var(--radius-md);
    font-size: 15px;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.ss-contact-modal .form-group textarea,
.form-group textarea {
    height: auto;
    min-height: 104px;
    padding: 12px 16px;
    line-height: 1.5;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    background: #ffffff;
    border-color: rgba(var(--accent));
    box-shadow: 0 0 0 3px rgba(var(--accent), 0.18);
    outline: 0;
}

.captcha-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.captcha-code {
    display: flex;
    flex-shrink: 0;
    height: 48px;
    overflow: hidden;
    border: 1px solid rgba(13, 13, 13, 0.16);
    border-radius: var(--radius-md);
}

#contact-captcha-image {
    width: 128px;
    height: 100%;
    object-fit: cover;
}

.captcha-refresh-btn {
    width: 42px;
    color: var(--ink);
    font-size: 13px;
    cursor: pointer;
    border-left: 1px solid rgba(13, 13, 13, 0.16);
    transition: background var(--transition-fast);
}

.captcha-refresh-btn:hover {
    background: #f5f5f4;
}

#cf_captcha {
    flex: 1;
    min-width: 0;
}

.contact-form-status {
    margin-bottom: 18px;
    padding: 10px 14px;
    font-size: 14px;
    line-height: 1.4;
    border-radius: var(--radius-md);
}

.contact-form-status[data-state="success"] {
    color: #14532d;
    background: #dcfce7;
}

.contact-form-status[data-state="error"] {
    color: #7f1d1d;
    background: #fee2e2;
}

.js-contact-submit:disabled {
    opacity: 0.7;
    cursor: progress;
}

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
    .navbar-links,
    .navbar-cta {
        display: none;
    }

    .hamburger {
        display: flex;
    }

    .about-grid {
        align-items: start;
    }

    .about-content > p {
        text-align: left;
    }

    .article-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 48px;
    }

    .footer-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 48px 32px;
    }

    .footer-brand {
        grid-column: 1 / -1;
    }

    .product-about-panel {
        grid-template-columns: minmax(0, 1fr);
        gap: 32px;
    }

    .article-body,
    .article-tags {
        max-width: none;
    }

    .article-sidebar {
        order: 0;
    }
}

@media (max-width: 900px) {
    .section-header:has(.section-subtitle) {
        display: block;
    }

    .section-header .section-subtitle {
        margin-top: 16px;
        padding-bottom: 0;
    }

    .split-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 40px;
    }

    .product-slide {
        align-items: flex-end;
    }

    .product-slide .hero-slide-overlay {
        background:
            linear-gradient(180deg, rgba(0, 0, 0, 0.38) 0, rgba(0, 0, 0, 0) 110px),
            linear-gradient(0deg, rgba(0, 0, 0, var(--scrim)) 0%, rgba(0, 0, 0, var(--scrim)) 58%, rgba(0, 0, 0, 0) 80%),
            linear-gradient(0deg, rgba(var(--accent), 0.97) 0%, rgba(var(--accent), 0.94) 58%, rgba(var(--accent), 0) 85%);
    }

    .product-slide-content {
        padding-top: 200px;
        padding-bottom: 96px;
    }

    .product-slide-text {
        max-width: 640px;
    }

    .product-hero .hero-slider-controls {
        left: 50%;
        right: auto;
        transform: translateX(-50%);
    }

    .split-layout-head {
        position: static;
    }

    .blog-grid--lead > :first-child:not(:only-child) {
        grid-template-columns: minmax(0, 1fr);
    }

    .blog-grid--lead > :first-child .blog-card-body {
        padding: 20px 12px 12px;
    }

    .ss-contact-modal__dialog {
        grid-template-columns: minmax(0, 1fr);
        grid-template-rows: none;
    }

    .ss-contact-modal__dialog::before {
        display: none;
    }

    .ss-contact-modal__intro,
    .ss-contact-modal__form,
    .ss-contact-modal__details {
        grid-column: 1;
        grid-row: auto;
        padding: 28px 20px;
    }

    .ss-contact-modal__intro,
    .ss-contact-modal__details {
        background: var(--ink);
    }

    .ss-contact-modal__intro {
        padding-right: 64px;
    }

    .project-card {
        flex: 0 0 100%;
        width: 100%;
        grid-template-columns: 1fr;
    }

    .project-image {
        min-height: 0;
        aspect-ratio: 16 / 10;
    }

    .project-body {
        padding: 20px 12px 12px;
    }

    .services-grid > :only-child,
    .products-grid > :only-child,
    .blog-grid > :only-child {
        grid-template-columns: 1fr;
    }

    .service-card:only-child .service-body,
    .product-card:only-child .product-card-body,
    .blog-card:only-child .blog-card-body {
        padding: 20px 12px 12px;
    }
}

@media (max-width: 768px) {
    .navbar {
        top: 8px;
    }

    .navbar.scrolled {
        top: 0;
    }

    .hero-content {
        padding: 104px 20px 96px;
    }

    .hero-title {
        font-size: clamp(38px, 11vw, 52px);
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }

    .hero-buttons .btn {
        width: auto;
    }

    .services-grid:has(> :nth-child(2):last-child),
    .products-grid:has(> :nth-child(2):last-child),
    .blog-grid:has(> :nth-child(2):last-child) {
        grid-template-columns: 1fr;
    }

    .cta-closing {
        padding: 88px 0 72px;
    }
}

@media (max-width: 768px) {
    .product-hero {
        --hero-height: 100vh;
    }

    .cta-band {
        padding-bottom: 64px;
    }

    .cta-band-inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .ss-contact-modal__dialog {
        border-radius: 20px;
        padding: 0;
    }

    .footer {
        padding-top: 56px;
    }

    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        padding-bottom: 48px;
    }

    .footer-bottom {
        align-items: flex-start;
        text-align: left;
    }

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

    .product-about {
        margin-top: 48px;
        padding-bottom: 72px;
    }

    .product-about-body:has(> p:nth-of-type(2)) {
        grid-template-columns: minmax(0, 1fr);
    }

    .product-about-body:has(> p:nth-of-type(2)) > p:not(:first-of-type) {
        margin-bottom: 20px;
    }

    .ss-contact-modal__close {
        top: 12px;
        right: 12px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .about-stats-grid {
        grid-template-columns: 1fr 1fr;
    }

    .form-row {
        gap: 0;
    }

    .ss-contact-modal__dialog {
        max-height: none;
        padding: 0;
    }

    .captcha-row {
        flex-wrap: wrap;
    }

    .captcha-code {
        width: 100%;
    }

    #contact-captcha-image {
        flex: 1;
        width: auto;
        min-width: 0;
    }
}

/* ---------- About page: sift art ---------- */
.sift-stage {
    position: relative;
    overflow: hidden;
}

.sift-art {
    position: absolute;
    top: 56px;
    right: -2vw;
    z-index: 0;
    width: min(70vw, 1000px);
    pointer-events: none;
}

.sift-art svg {
    display: block;
    width: 100%;
    height: auto;
}

.sift-stage > .about {
    z-index: 1;
    background: transparent;
}

.sift-stage > .about {
    position: relative;
}

@media (max-width: 1024px) {
    .sift-art {
        top: 72px;
        right: -22vw;
        width: 118vw;
        opacity: 0.8;
    }

    /* Text sits on top of the art at this size, so keep the grains quiet. */
    #siftGrains {
        opacity: 0.55;
    }
}

/* ---------- Legal pages ---------- */
.legal-hero {
    padding-bottom: 0;
}

.legal-updated {
    margin-top: 16px;
    font-size: 15px;
    color: var(--text-muted);
}

.legal-tabs {
    display: flex;
    gap: 28px;
    margin-top: 48px;
    overflow-x: auto;
    border-bottom: 1px solid var(--dark-border);
}

.legal-tabs a {
    flex: none;
    padding: 14px 0;
    font-size: 16px;
    font-weight: 500;
    color: var(--text-secondary);
    border-bottom: 2px solid transparent;
}

.legal-tabs a:hover {
    color: var(--text-primary);
}

.legal-tabs a[aria-current="page"] {
    color: var(--text-primary);
    border-bottom-color: rgb(var(--accent));
}

.legal-section {
    padding: 64px 0 96px;
}

.legal-layout {
    display: grid;
    grid-template-columns: 240px minmax(0, 720px);
    gap: 72px;
    align-items: start;
}

.legal-toc {
    position: sticky;
    top: 100px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

.legal-toc h2 {
    margin-bottom: 12px;
    font-size: 15px;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.legal-toc ol {
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: legal-toc;
}

.legal-toc li {
    counter-increment: legal-toc;
}

.legal-toc a {
    display: grid;
    grid-template-columns: 26px minmax(0, 1fr);
    padding: 6px 0;
    font-size: 15px;
    line-height: 1.35;
    color: var(--text-secondary);
}

.legal-toc a::before {
    content: counter(legal-toc) ".";
    font-variant-numeric: tabular-nums;
    color: var(--text-muted);
}

.legal-toc a:hover {
    color: var(--ink);
}

/* Clause numbers are real references: people cite them in emails and contracts. */
.legal-body {
    counter-reset: legal-clause;
}

.legal-clause {
    counter-increment: legal-clause;
    padding-bottom: 40px;
    margin-bottom: 40px;
    border-bottom: 1px solid var(--dark-border);
    scroll-margin-top: 100px;
}

.legal-clause:last-child {
    padding-bottom: 0;
    margin-bottom: 0;
    border-bottom: 0;
}

.legal-clause h2 {
    margin-bottom: 12px;
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: var(--accent-ink);
}

.legal-clause h2::before {
    content: counter(legal-clause) ". ";
}

/* The plain-language answer leads each clause, so the page can be read by skimming these alone. */
.legal-gist {
    margin-bottom: 16px;
    font-size: clamp(22px, 2.4vw, 28px);
    font-weight: 500;
    line-height: 1.25;
    letter-spacing: -0.03em;
    color: var(--ink);
}

.legal-clause > p:not(.legal-gist),
.legal-clause li {
    font-size: 17px;
    line-height: 1.65;
    color: var(--text-secondary);
}

.legal-clause > p:not(.legal-gist) {
    margin-bottom: 14px;
}

.legal-clause > :last-child {
    margin-bottom: 0;
}

.legal-clause ul {
    margin: 0 0 14px;
    padding-left: 20px;
    list-style: disc;
}

.legal-clause li {
    margin-bottom: 8px;
}

.legal-clause li::marker {
    color: var(--text-muted);
}

.legal-clause strong {
    font-weight: 600;
    color: var(--ink);
}

.legal-clause p a,
.legal-clause li a,
.legal-contact a {
    color: var(--accent-ink);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.legal-contact {
    font-size: 17px;
    font-style: normal;
    line-height: 1.65;
    color: var(--text-secondary);
}

.legal-table {
    overflow-x: auto;
}

.legal-table table {
    width: 100%;
    min-width: 560px;
    border-collapse: collapse;
    font-size: 15px;
    line-height: 1.45;
}

.legal-table th,
.legal-table td {
    padding: 12px 16px 12px 0;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--dark-border);
    color: var(--text-secondary);
}

.legal-table th {
    font-weight: 600;
    color: var(--ink);
}

.legal-table code {
    font-size: 14px;
    color: var(--ink);
    overflow-wrap: anywhere;
}

/* ---------- Cookie preferences ---------- */
.cookie-panel {
    margin-top: 24px;
    border-top: 1px solid var(--dark-border);
}

.cookie-option {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 32px;
    padding: 24px 0;
    border-bottom: 1px solid var(--dark-border);
}

.cookie-option h3 {
    margin-bottom: 6px;
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.cookie-option p {
    font-size: 16px;
    line-height: 1.5;
    color: var(--text-secondary);
}

.cookie-always-on {
    flex: none;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-secondary);
}

.cookie-switch {
    position: relative;
    flex: none;
    width: 52px;
    height: 30px;
    cursor: pointer;
}

.cookie-switch input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
}

.cookie-switch-track {
    position: absolute;
    inset: 0;
    border-radius: 999px;
    background: #8a8a8a;
    transition: background 0.15s ease;
    pointer-events: none;
}

.cookie-switch-track::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #ffffff;
    transition: transform 0.15s ease;
}

.cookie-switch input:checked + .cookie-switch-track {
    background: var(--ink);
}

.cookie-switch input:checked + .cookie-switch-track::after {
    transform: translateX(22px);
}

.cookie-switch input:focus-visible + .cookie-switch-track {
    outline: 2px solid rgb(var(--accent));
    outline-offset: 3px;
}

.cookie-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 20px;
    padding-top: 24px;
}

.cookie-status {
    font-size: 15px;
    font-weight: 500;
    color: var(--ink);
}

@media (max-width: 1024px) {
    .legal-layout {
        grid-template-columns: minmax(0, 1fr);
        gap: 40px;
    }

    .legal-toc {
        position: static;
        max-height: none;
        padding-bottom: 32px;
        border-bottom: 1px solid var(--dark-border);
    }

    .legal-body {
        max-width: 720px;
    }
}

/* ---------- Book a demo (product pages) ---------- */
/* Floating pill stacked above the scroll-to-top button; it slides up to make
   room once that button appears. */
.demo-fab {
    position: fixed;
    right: 28px;
    bottom: 28px;
    z-index: 900;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 44px;
    padding: 0 18px;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -0.01em;
    color: var(--on-accent);
    background: rgba(var(--accent));
    border: 0;
    border-radius: var(--radius-full, 999px);
    box-shadow: 0 10px 28px -10px rgba(var(--accent), 0.7);
    cursor: pointer;
    transition: transform var(--transition-base), box-shadow var(--transition-base), filter var(--transition-fast);
}

body:has(.scroll-top.visible) .demo-fab {
    transform: translateY(-56px);
}

.demo-fab:hover {
    filter: brightness(1.06);
    box-shadow: 0 14px 32px -10px rgba(var(--accent), 0.8);
}

.demo-fab:focus-visible {
    outline: 2px solid var(--ink);
    outline-offset: 3px;
}

.demo-hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.ss-demo-modal .demo-product-tag {
    margin-bottom: 16px;
}

.demo-product-image {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    margin-bottom: 12px;
    border-radius: var(--radius-inner);
}

.demo-mode {
    margin: 0 0 18px;
    padding: 0;
    border: 0;
}

.demo-mode legend {
    margin-bottom: 8px;
    font-size: 13px;
    font-weight: 500;
    letter-spacing: -0.01em;
    color: var(--text-primary);
}

.demo-mode-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.demo-mode-option {
    position: relative;
    display: block;
    cursor: pointer;
}

.demo-mode-option input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.demo-mode-card {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 100%;
    padding: 14px 16px;
    background: #ffffff;
    border: 1px solid rgba(13, 13, 13, 0.16);
    border-radius: var(--radius-md);
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast), background var(--transition-fast);
}

.demo-mode-card i {
    flex-shrink: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    color: var(--ink);
    background: #f5f5f4;
    border-radius: 50%;
    transition: background var(--transition-fast), color var(--transition-fast);
}

.demo-mode-card strong {
    display: block;
    font-size: 15px;
    font-weight: 600;
    color: var(--ink);
}

.demo-mode-card small {
    display: block;
    font-size: 13px;
    color: var(--text-muted);
}

.demo-mode-option:hover .demo-mode-card {
    border-color: var(--hairline-hover);
}

.demo-mode-option input:checked + .demo-mode-card {
    background: rgba(var(--accent), 0.06);
    border-color: rgba(var(--accent));
    box-shadow: 0 0 0 3px rgba(var(--accent), 0.18);
}

.demo-mode-option input:checked + .demo-mode-card i {
    color: var(--on-accent);
    background: rgba(var(--accent));
}

.demo-mode-option input:focus-visible + .demo-mode-card {
    outline: 2px solid var(--ink);
    outline-offset: 2px;
}

.ss-demo-modal .form-group select {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 40px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%230d0d0d' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    color: var(--ink);
    cursor: pointer;
}

.ss-demo-modal .demo-row-narrow {
    grid-template-columns: minmax(0, 1fr) minmax(0, 2.4fr);
}

.ss-demo-modal .form-group textarea {
    min-height: 48px;
}

#demo-captcha-image {
    width: 128px;
    height: 100%;
    object-fit: cover;
}

#db_captcha {
    flex: 1;
    min-width: 0;
    text-transform: uppercase;
}

#db_captcha::placeholder {
    text-transform: none;
}

.ss-demo-modal .js-demo-submit {
    width: 100%;
    justify-content: center;
}

.js-demo-submit:disabled {
    opacity: 0.7;
    cursor: progress;
}

@media (max-width: 768px) {
    .demo-fab {
        right: 18px;
        bottom: 22px;
    }

    .demo-product-image {
        display: none;
    }

    .ss-demo-modal .demo-row-narrow {
        grid-template-columns: minmax(0, 1fr);
    }
}

@media (max-width: 480px) {
    /* Icon-only on small phones so it covers less content */
    .demo-fab {
        width: 44px;
        padding: 0;
        justify-content: center;
    }

    .demo-fab span {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
        white-space: nowrap;
    }

    .demo-mode-options {
        grid-template-columns: minmax(0, 1fr);
    }

    #demo-captcha-image {
        flex: 1;
        width: auto;
        min-width: 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .demo-fab {
        transition: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .ticker-track,
    .ss-contact-modal__dialog {
        animation: none;
    }

    .cookie-switch-track,
    .cookie-switch-track::after {
        transition: none;
    }

    html {
        scroll-behavior: auto;
    }
}

/* ---------- Page frame ----------
   Everything below the hero sits on a white panel inset into a dark frame,
   so the page reads as a continuation of the hero. The hero's bottom edge
   carries the frame's rounded shoulders. */
:root {
    --frame: clamp(10px, 1vw, 50px);
    --frame-radius: clamp(18px, 2vw, 32px);
}

body:has(.hero, .page-hero) {
    background-color: var(--ink);
}

/* The shoulders: a dark strip with rounded top corners over the hero's foot */
.hero::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    z-index: 2;
    height: calc(var(--frame) + 1px);
    background: var(--ink);
    border-radius: calc(var(--frame-radius) + var(--frame)) calc(var(--frame-radius) + var(--frame)) 0 0;
    pointer-events: none;
}

.hero .hero-slider-controls {
    bottom: calc(var(--frame) + 24px);
}

/* Home carousel: the slides fade into the frame instead of meeting it at a hard
   edge. Sits above the slides (z 0) and below the shoulders and controls. */
/* The scrim runs all the way to the hero's bottom edge and is solid ink across
   the frame band, so no slide pixels show through around the shoulders'
   rounded corners. Eased stops avoid the visible banding of a linear fade. */
#hero::before {
    --fade: clamp(160px, 32vh, 360px);
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    height: calc(var(--fade) + var(--frame));
    background: linear-gradient(
        180deg,
        rgba(13, 13, 13, 0) 0,
        rgba(13, 13, 13, 0.04) calc(var(--fade) * 0.15),
        rgba(13, 13, 13, 0.14) calc(var(--fade) * 0.3),
        rgba(13, 13, 13, 0.3) calc(var(--fade) * 0.45),
        rgba(13, 13, 13, 0.52) calc(var(--fade) * 0.6),
        rgba(13, 13, 13, 0.74) calc(var(--fade) * 0.75),
        rgba(13, 13, 13, 0.9) calc(var(--fade) * 0.88),
        var(--ink) var(--fade),
        var(--ink) 100%
    );
    pointer-events: none;
}

/* With the slides fully faded out, the shoulders would draw ink on ink */
#hero::after {
    display: none;
}

/* The panel: every section after the hero, minus full-bleed dark ones */
:is(.hero, .page-hero) ~ :is(section, .sift-stage):not(.cta-closing) {
    margin-left: var(--frame);
    margin-right: var(--frame);
}

:where(:is(.hero, .page-hero) ~ :is(section, .sift-stage):not(.cta-closing)) {
    background-color: var(--dark-bg);
}

/* Panel top: the first section after the hero */
:is(.hero, .page-hero) + :is(section, .sift-stage):not(.cta-closing) {
    border-top-left-radius: var(--frame-radius);
    border-top-right-radius: var(--frame-radius);
    overflow: clip;
}

/* Inner-page heroes have no image, so the frame gap is drawn as a spacer */
.page-hero {
    margin-bottom: var(--frame);
}

/* Panel bottom: the last section before the footer or closing CTA */
:is(.hero, .page-hero) ~ :is(section, .sift-stage):not(.cta-closing):not(:has(~ :is(section, .sift-stage):not(.cta-closing))) {
    border-bottom-left-radius: var(--frame-radius);
    border-bottom-right-radius: var(--frame-radius);
    margin-bottom: var(--frame);
    overflow: clip;
}

.product-hero + .product-about {
    margin-top: 0;
    padding-top: 84px;
}
