:root {
    --bg: #000000;
    --surface: #0c0c0c;
    --surface-2: #141414;
    --ink: #ffffff;
    --ink-2: #a6a6a6;
    --ink-3: #727272;
    --line: #2a2a2a;
    --line-soft: rgba(255, 255, 255, 0.08);
    --primary: #3b5bdb;
    --primary-hover: #4c6ef5;
    --on-primary: #ffffff;
    --accent: #22d3a6;
    --radius: 10px;
    --header-h: 72px;
    --ease: cubic-bezier(0.22, 1, 0.36, 1);
    --font-display: "Outfit", "Segoe UI", sans-serif;
    --font-body: "Plus Jakarta Sans", "Segoe UI", sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--bg);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

body.nav-open {
    overflow: hidden;
}

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

img {
    max-width: 100%;
    display: block;
}

.container {
    width: min(1120px, calc(100% - 48px));
    margin: 0 auto;
}

/* ——— Themes: black / white like Unity ——— */

.theme-dark {
    --section-bg: #000000;
    --section-ink: #ffffff;
    --section-ink-2: #a6a6a6;
    --section-ink-3: #727272;
    --section-line: #2a2a2a;
    --section-hover: rgba(59, 91, 219, 0.12);
    color: var(--section-ink);
    background: var(--section-bg);
}

.theme-light {
    --section-bg: #ffffff;
    --section-ink: #000000;
    --section-ink-2: #585858;
    --section-ink-3: #8a8a8a;
    --section-line: #e5e5e5;
    --section-hover: rgba(59, 91, 219, 0.06);
    color: var(--section-ink);
    background: var(--section-bg);
}

.theme-dark h2,
.theme-dark h3,
.theme-light h2,
.theme-light h3 {
    color: var(--section-ink);
}

.theme-dark .eyebrow,
.theme-light .eyebrow {
    color: var(--section-ink-3);
}

.theme-dark .section-lead,
.theme-light .section-lead,
.theme-dark .section-lead.light {
    color: var(--section-ink-2);
}

/* ——— Header ——— */

.site-header {
    position: fixed;
    z-index: 40;
    inset: 0 0 auto;
    transition: background 0.35s var(--ease), border-color 0.35s var(--ease), backdrop-filter 0.35s var(--ease);
    border-bottom: 1px solid transparent;
}

.site-header.is-scrolled {
    background: rgba(0, 0, 0, 0.72);
    border-bottom-color: var(--line-soft);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.header-inner {
    display: flex;
    width: min(1120px, calc(100% - 48px));
    height: var(--header-h);
    margin: 0 auto;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

/* Matrix rain band behind header */
.matrix-rain {
    position: fixed;
    z-index: 5;
    top: 0;
    left: 0;
    width: 100%;
    height: 42vh;
    max-height: 480px;
    pointer-events: none;
    opacity: 0.55;
    mask-image: linear-gradient(180deg, #000 0%, #000 45%, transparent 100%);
    -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 45%, transparent 100%);
}

@media (max-width: 640px) {
    .matrix-rain {
        opacity: 0.4;
        max-height: 320px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .matrix-rain {
        display: none;
    }
}

.brand {
    display: inline-flex;
    align-items: center;
    line-height: 0;
}

.brand-logo {
    display: block;
    width: auto;
    height: 44px;
    object-fit: contain;
}

.footer-brand .brand-logo {
    height: 56px;
}

.main-nav {
    display: flex;
    gap: 2px;
    color: var(--ink-2);
    font-size: 0.88rem;
    font-weight: 500;
}

.main-nav a {
    padding: 8px 9px;
    border-radius: 8px;
    transition: color 0.2s ease, background 0.2s ease;
}

.main-nav a:hover {
    color: var(--ink);
    background: rgba(255, 255, 255, 0.05);
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 18px;
    border-radius: 999px;
    background: var(--primary);
    color: var(--on-primary);
    font-size: 0.9rem;
    font-weight: 600;
    transition: background 0.2s ease, transform 0.2s var(--ease);
}

.header-actions {
    display: inline-flex;
    align-items: center;
    gap: 14px;
}

.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.35);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.lang-switch a {
    color: rgba(255, 255, 255, 0.55);
    transition: color 0.2s ease;
}

.lang-switch a:hover,
.lang-switch a.is-active {
    color: #ffffff;
}

.mobile-lang {
    display: flex;
    gap: 16px;
    padding: 14px 4px;
    border-bottom: 1px solid var(--line-soft);
}

.mobile-lang a {
    color: rgba(255, 255, 255, 0.55);
    font-weight: 600;
    border-bottom: 0 !important;
}

.mobile-lang a.is-active {
    color: #ffffff;
}

.nav-cta:hover {
    background: var(--primary-hover);
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 0;
    background: transparent;
    cursor: pointer;
    padding: 0;
}

.nav-toggle span {
    display: block;
    width: 20px;
    height: 1.5px;
    background: var(--ink);
    transition: transform 0.25s var(--ease);
}

.nav-toggle[aria-expanded="true"] span:first-child {
    transform: translateY(3.75px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:last-child {
    transform: translateY(-3.75px) rotate(-45deg);
}

.mobile-nav {
    display: none;
}

/* ——— Hero ——— */

.hero {
    position: relative;
    min-height: 100svh;
    display: grid;
    align-items: end;
    overflow: hidden;
    background: var(--bg);
    color: var(--ink);
}

.hero-media,
.hero-veil {
    position: absolute;
    inset: 0;
}

.hero-media {
    background:
        url("assets/aristarch-ai-software-hero.png") right center / cover no-repeat;
    transform: scale(1.04);
    animation: hero-drift 18s var(--ease) infinite alternate;
}

.hero-veil {
    background:
        linear-gradient(90deg, rgba(0, 0, 0, 0.92) 0%, rgba(0, 0, 0, 0.72) 38%, rgba(0, 0, 0, 0.28) 68%, rgba(0, 0, 0, 0.45) 100%),
        linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.15) 40%, rgba(0, 0, 0, 0.88) 100%);
}

.hero-content {
    position: relative;
    z-index: 1;
    width: min(1120px, calc(100% - 48px));
    margin: 0 auto;
    padding: calc(var(--header-h) + 64px) 0 88px;
}

.brand-lockup {
    margin: 0 0 20px;
    font-family: var(--font-display);
    font-size: clamp(1.75rem, 4vw, 2.75rem);
    font-weight: 500;
    letter-spacing: -0.03em;
    line-height: 1;
    color: var(--ink);
}

h1,
h2,
h3 {
    margin: 0;
    font-family: var(--font-display);
    font-weight: 500;
    letter-spacing: -0.03em;
}

h1 {
    max-width: 15ch;
    margin-bottom: 22px;
    font-size: clamp(2.6rem, 6.5vw, 5.5rem);
    line-height: 0.98;
}

h2 {
    font-size: clamp(2rem, 4.4vw, 3.6rem);
    line-height: 1.05;
}

h3 {
    font-size: 1.35rem;
    line-height: 1.2;
}

.hero-lead,
.section-lead {
    max-width: 36rem;
    margin: 0;
    color: var(--ink-2);
    font-size: 1.08rem;
    font-weight: 400;
    line-height: 1.65;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 36px;
}

.button {
    display: inline-flex;
    min-height: 48px;
    align-items: center;
    justify-content: center;
    padding: 0 22px;
    border-radius: 999px;
    font-size: 0.95rem;
    font-weight: 600;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.25s var(--ease);
}

.button:hover {
    transform: translateY(-1px);
}

.button.primary {
    background: var(--primary);
    color: var(--on-primary);
}

.button.primary:hover {
    background: var(--primary-hover);
}

.button.ghost {
    border: 1px solid rgba(255, 255, 255, 0.22);
    color: var(--ink);
    background: rgba(255, 255, 255, 0.04);
}

.button.ghost:hover {
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(255, 255, 255, 0.08);
}

/* ——— Sections ——— */

.section {
    padding: 112px 0;
}

.eyebrow {
    margin: 0 0 14px;
    color: var(--section-ink-3, var(--ink-3));
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.section-head {
    max-width: 720px;
    margin-bottom: 56px;
}

.section-head h2 {
    margin-bottom: 16px;
}

/* Pillars */

.pillar-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    border-top: 1px solid var(--section-line);
}

.pillar {
    padding: 36px 28px 8px 0;
    border-right: 1px solid var(--section-line);
}

.pillar:last-child {
    border-right: 0;
    padding-right: 0;
}

.pillar:first-child {
    padding-left: 0;
}

.pillar h3 {
    margin-bottom: 14px;
    font-size: 1.6rem;
}

.pillar p {
    margin: 0;
    max-width: 28ch;
    color: var(--section-ink-2);
    font-size: 0.98rem;
}

/* Intro band */

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

.intro-layout {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 64px;
    align-items: end;
}

.intro-layout h2 {
    max-width: 14ch;
}

.intro-layout p {
    margin: 0;
    color: var(--section-ink-2);
    font-size: 1.08rem;
}

/* Services */

.service-rows {
    display: grid;
}

.service-row {
    display: grid;
    grid-template-columns: 72px 1fr;
    gap: 28px;
    align-items: start;
    padding: 32px 0;
    border-top: 1px solid var(--section-line);
    transition: background 0.25s ease, padding 0.25s var(--ease);
}

.service-row:last-child {
    border-bottom: 1px solid var(--section-line);
}

.service-row:hover {
    background: var(--section-hover);
}

.service-index {
    color: var(--section-ink-3);
    font-family: var(--font-display);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.04em;
}

.service-copy h3 {
    margin-bottom: 8px;
    font-size: 1.55rem;
}

.service-copy p {
    margin: 0;
    max-width: 52ch;
    color: var(--section-ink-2);
}

/* AI band */

.ai-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 72px;
    align-items: start;
}

.ai-layout .section-lead {
    margin-top: 18px;
}

.ai-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ai-list li {
    display: grid;
    gap: 4px;
    padding: 22px 0;
    border-top: 1px solid var(--section-line);
}

.ai-list li:last-child {
    border-bottom: 1px solid var(--section-line);
}

.ai-list strong {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--section-ink);
}

.ai-list span {
    color: var(--section-ink-3);
    font-size: 0.95rem;
}

/* Industries */

.industry-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}

.industry-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 88px;
    padding: 0 4px;
    border-top: 1px solid var(--section-line);
    font-family: var(--font-display);
    font-size: clamp(1.15rem, 2vw, 1.45rem);
    font-weight: 500;
    letter-spacing: -0.02em;
    color: var(--section-ink);
    transition: color 0.2s ease, padding-left 0.25s var(--ease);
}

.industry-list a:nth-last-child(-n + 2) {
    border-bottom: 1px solid var(--section-line);
}

.industry-list a::after {
    content: "→";
    color: var(--section-ink-3);
    font-size: 1rem;
    transition: transform 0.25s var(--ease), color 0.2s ease;
}

.industry-list a:hover {
    color: var(--primary);
    padding-left: 8px;
}

.industry-list a:hover::after {
    color: var(--primary);
    transform: translateX(4px);
}

/* Process */

.timeline {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}

.timeline article {
    position: relative;
    padding-top: 8px;
}

.timeline article::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--section-line);
}

.timeline article::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 28%;
    height: 2px;
    background: var(--primary);
}

.timeline span {
    display: block;
    margin: 22px 0 14px;
    color: var(--section-ink-3);
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.08em;
}

.timeline h3 {
    margin-bottom: 10px;
}

.timeline p {
    margin: 0;
    color: var(--section-ink-2);
    font-size: 0.95rem;
}

/* SEO copy */

.copy-layout {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 56px;
    align-items: start;
}

.copy-body p {
    margin: 0 0 18px;
    color: var(--section-ink-2);
    font-size: 1.05rem;
}

.copy-body p:last-child {
    margin-bottom: 0;
}

/* FAQ */

.faq-list {
    display: grid;
    gap: 0;
    max-width: 820px;
}

details {
    border-top: 1px solid var(--section-line);
    padding: 0;
}

details:last-child {
    border-bottom: 1px solid var(--section-line);
}

summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 26px 0;
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 500;
    letter-spacing: -0.02em;
    color: var(--section-ink);
}

summary::-webkit-details-marker {
    display: none;
}

summary::after {
    content: "+";
    flex-shrink: 0;
    color: var(--section-ink-3);
    font-size: 1.35rem;
    font-weight: 400;
    transition: transform 0.25s var(--ease), color 0.2s ease;
}

details[open] summary::after {
    content: "–";
    color: var(--section-ink);
}

details p {
    margin: 0 0 26px;
    max-width: 62ch;
    color: var(--section-ink-2);
}

/* CTA */

.cta-section {
    padding: 0 0 112px;
}

.cta-panel {
    position: relative;
    overflow: hidden;
    padding: clamp(48px, 8vw, 88px);
    border: 1px solid #2a2a2a;
    border-radius: 20px;
    background:
        radial-gradient(ellipse 80% 80% at 100% 0%, rgba(59, 91, 219, 0.28), transparent 55%),
        radial-gradient(ellipse 60% 70% at 0% 100%, rgba(34, 211, 166, 0.12), transparent 50%),
        #0c0c0c;
}

.cta-panel h2 {
    max-width: 14ch;
    margin-bottom: 14px;
    color: #ffffff;
}

.cta-panel .eyebrow {
    color: #727272;
}

.cta-panel > p:not(.eyebrow) {
    max-width: 34rem;
    margin: 0 0 32px;
    color: #a6a6a6;
}

/* Footer */

.site-footer {
    border-top: 1px solid var(--line-soft);
    background: #000000;
    color: var(--ink-2);
    padding: 72px 0 32px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 0.8fr;
    gap: 48px;
}

.footer-brand {
    margin-bottom: 16px;
    color: var(--ink);
}

.site-footer p {
    max-width: 32ch;
    margin: 0;
    font-size: 0.95rem;
}

.site-footer h3 {
    margin: 0 0 16px;
    color: var(--ink);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.site-footer a {
    display: block;
    margin-bottom: 10px;
    color: var(--ink-2);
    font-size: 0.95rem;
    transition: color 0.2s ease;
}

.site-footer a:hover {
    color: var(--ink);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 56px;
    padding-top: 24px;
    border-top: 1px solid var(--line-soft);
    font-size: 0.85rem;
    color: var(--ink-3);
}

/* ——— Motion ——— */

.reveal {
    opacity: 0;
    transform: translateY(28px);
    transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}

.reveal.is-visible {
    opacity: 1;
    transform: none;
}

.service-row.reveal {
    transition:
        opacity 0.7s var(--ease),
        transform 0.7s var(--ease),
        background 0.25s ease,
        padding-left 0.25s var(--ease);
}

.hero-content.reveal {
    transition-delay: 0.08s;
}

.pillar:nth-child(2) {
    transition-delay: 0.08s;
}

.pillar:nth-child(3) {
    transition-delay: 0.16s;
}

.service-row:nth-child(2) { transition-delay: 0.04s; }
.service-row:nth-child(3) { transition-delay: 0.08s; }
.service-row:nth-child(4) { transition-delay: 0.12s; }
.service-row:nth-child(5) { transition-delay: 0.16s; }
.service-row:nth-child(6) { transition-delay: 0.2s; }

.timeline article:nth-child(2) { transition-delay: 0.06s; }
.timeline article:nth-child(3) { transition-delay: 0.12s; }
.timeline article:nth-child(4) { transition-delay: 0.18s; }

@keyframes hero-drift {
    from { transform: scale(1.04) translate3d(0, 0, 0); }
    to { transform: scale(1.08) translate3d(-1.5%, -1%, 0); }
}

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

    .reveal,
    .button,
    .industry-list a,
    .industry-list a::after,
    .nav-cta {
        transition: none !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }

    .hero-media {
        animation: none;
    }
}

/* ——— Responsive ——— */

@media (max-width: 960px) {
    .main-nav,
    .header-actions {
        display: none;
    }

    .nav-toggle {
        display: inline-flex;
    }

    .mobile-nav {
        display: flex;
        flex-direction: column;
        gap: 4px;
        padding: 12px 24px 28px;
        background: rgba(0, 0, 0, 0.96);
        border-bottom: 1px solid var(--line-soft);
    }

    .mobile-nav[hidden] {
        display: none;
    }

    .mobile-nav a {
        padding: 14px 4px;
        border-bottom: 1px solid var(--line-soft);
        color: var(--ink-2);
        font-size: 1.05rem;
        font-weight: 500;
    }

    .mobile-nav .button {
        margin-top: 16px;
        border-bottom: 0;
        color: var(--on-primary);
    }

    .pillar-grid,
    .ai-layout,
    .intro-layout,
    .copy-layout,
    .timeline,
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .pillar {
        border-right: 0;
        border-bottom: 1px solid var(--section-line);
        padding: 28px 0;
    }

    .pillar:last-child {
        border-bottom: 0;
    }

    .industry-list {
        grid-template-columns: 1fr;
    }

    .industry-list a:nth-last-child(-n + 2) {
        border-bottom: 0;
    }

    .industry-list a:last-child {
        border-bottom: 1px solid var(--section-line);
    }

    .hero-content {
        padding-bottom: 72px;
    }

    h1 {
        max-width: 12ch;
    }
}

/* ——— Contact page ——— */

.page-contact .site-header {
    color: #ffffff;
}

.contact-hero {
    padding: calc(var(--header-h) + 72px) 0 72px;
}

.contact-hero h1 {
    max-width: 14ch;
    margin-bottom: 18px;
    font-size: clamp(2.4rem, 5.5vw, 4.4rem);
}

.contact-hero .hero-lead {
    max-width: 36rem;
}

.contact-hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 48px;
    align-items: end;
}

.inline-link {
    color: #ffffff;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.contact-meta {
    display: grid;
    gap: 22px;
    padding: 28px 0;
    border-top: 1px solid var(--line);
}

.contact-meta span {
    display: block;
    margin-bottom: 6px;
    color: var(--ink-3);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.contact-meta a,
.contact-meta strong {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 500;
    color: var(--ink);
}

.contact-layout {
    display: grid;
    grid-template-columns: 0.85fr 1.15fr;
    gap: 56px;
    align-items: start;
}

.contact-form {
    position: relative;
    display: grid;
    gap: 18px;
}

.form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.field {
    display: grid;
    gap: 8px;
}

.field span {
    color: var(--section-ink-3, #8a8a8a);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.04em;
}

.field input,
.field textarea {
    width: 100%;
    border: 1px solid var(--section-line, #e5e5e5);
    border-radius: 10px;
    background: #ffffff;
    color: #000000;
    padding: 14px 16px;
    font: inherit;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.field textarea {
    min-height: 160px;
    resize: vertical;
}

.field input:focus,
.field textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 91, 219, 0.18);
}

.field input::placeholder,
.field textarea::placeholder {
    color: #a3a3a3;
}

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

.form-footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 8px;
}

.form-note {
    margin: 0;
    max-width: 32ch;
    color: var(--section-ink-3, #8a8a8a);
    font-size: 0.88rem;
}

.form-status {
    margin-top: 8px;
    padding: 14px 16px;
    border-radius: 10px;
    font-size: 0.95rem;
    font-weight: 500;
}

.form-status.is-pending {
    background: #f4f4f4;
    color: #444;
}

.form-status.is-ok {
    background: #e8f8ef;
    color: #0f7a45;
}

.form-status.is-error {
    background: #fdecec;
    color: #b42318;
}

.reveal-btn,
.footer-reveal-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: #ffffff;
    font: inherit;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.reveal-btn:hover,
.footer-reveal-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: rgba(255, 255, 255, 0.4);
}

.footer-reveal-btn {
    margin-bottom: 12px;
    border-color: rgba(255, 255, 255, 0.16);
    background: transparent;
    color: rgba(255, 255, 255, 0.85);
}

.contact-values {
    display: grid;
    gap: 22px;
}

.contact-captcha {
    display: grid;
    gap: 16px;
    margin-top: 4px;
    padding: 18px;
    border: 1px solid var(--section-line, #e5e5e5);
    border-radius: 12px;
    background: #fafafa;
}

.contact-captcha .field span strong {
    color: var(--primary);
    font-weight: 700;
}

.slider-wrap {
    position: relative;
    height: 48px;
    background: #f1f5f9;
    border-radius: 999px;
    border: 1px solid #d8dee6;
    overflow: hidden;
    user-select: none;
    touch-action: none;
}

.slider-track-mark {
    position: absolute;
    top: 6px;
    bottom: 6px;
    width: 4px;
    background: var(--primary);
    border-radius: 4px;
    transform: translateX(-50%);
    z-index: 1;
}

.slider-knob {
    position: absolute;
    top: 4px;
    left: 4px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ffffff;
    border: 2px solid var(--primary);
    box-shadow: 0 4px 14px rgba(17, 24, 39, 0.16);
    cursor: grab;
    z-index: 2;
}

.slider-knob:active {
    cursor: grabbing;
}

/* ——— About page ——— */

.about-hero {
    padding: calc(var(--header-h) + 72px) 0 80px;
}

.about-hero h1 {
    max-width: 14ch;
    margin-bottom: 22px;
    font-size: clamp(2.4rem, 5.5vw, 4.6rem);
}

.about-hero .hero-lead {
    max-width: 38rem;
    color: var(--ink-2);
}

.about-hero .hero-lead strong {
    color: #ffffff;
    font-weight: 600;
}

.about-hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 48px;
    align-items: end;
}

.about-stats {
    display: grid;
    gap: 0;
    margin: 0;
    border-top: 1px solid var(--line);
}

.about-stats div {
    padding: 20px 0;
    border-bottom: 1px solid var(--line);
}

.about-stats dt {
    font-family: var(--font-display);
    font-size: clamp(2rem, 3vw, 2.8rem);
    font-weight: 500;
    letter-spacing: -0.03em;
    line-height: 1;
    color: #ffffff;
}

.about-stats dd {
    margin: 8px 0 0;
    color: var(--ink-3);
    font-size: 0.95rem;
}

.about-split {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 56px;
    align-items: start;
}

.about-prose p,
.about-domains > p,
.about-note {
    margin: 0 0 18px;
    color: var(--section-ink-2);
    font-size: 1.05rem;
    line-height: 1.65;
}

.about-prose p:last-child,
.about-note {
    margin-bottom: 0;
}

.about-prose strong {
    color: var(--section-ink);
    font-weight: 600;
}

.check-list,
.feature-grid {
    list-style: none;
    margin: 0;
    padding: 0;
}

.check-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0 32px;
    margin: 24px 0 28px;
}

.check-list li,
.feature-grid li {
    position: relative;
    padding: 14px 0 14px 28px;
    border-bottom: 1px solid var(--section-line);
    color: var(--section-ink-2);
    font-size: 1rem;
}

.check-list li::before,
.feature-grid li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 1.15em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--primary);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0 40px;
}

.why-list {
    max-width: 900px;
}

.about-steps {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.about-steps article {
    position: relative;
    padding-top: 8px;
}

.about-steps article::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: var(--section-line);
}

.about-steps article::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 28%;
    height: 2px;
    background: var(--primary);
}

.about-steps span {
    display: block;
    margin: 20px 0 12px;
    color: var(--section-ink-3);
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.08em;
}

.about-steps h3 {
    margin-bottom: 10px;
    font-size: 1.15rem;
}

.about-steps p {
    margin: 0;
    color: var(--section-ink-2);
    font-size: 0.95rem;
}

.cta-accent {
    margin: -8px 0 28px !important;
    color: #ffffff !important;
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 500;
}

.page-about .cta-section {
    padding: 0 0 112px;
    background: #000000;
}

@media (max-width: 960px) {
    .contact-hero-grid,
    .contact-layout,
    .form-grid,
    .about-hero-grid,
    .about-split,
    .check-list,
    .feature-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .about-steps {
        grid-template-columns: 1fr 1fr;
    }
}

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

@media (max-width: 640px) {
    :root {
        --header-h: 64px;
    }

    .container,
    .header-inner,
    .hero-content {
        width: min(100% - 32px, 1120px);
    }

    .section,
    .cta-section {
        padding-top: 80px;
        padding-bottom: 80px;
    }

    .intro-band {
        padding: 72px 0;
    }

    .hero {
        min-height: 92svh;
        align-items: center;
    }

    .hero-media {
        background-position: 68% center;
    }

    .hero-veil {
        background:
            linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.7) 40%, rgba(0, 0, 0, 0.94) 100%),
            linear-gradient(90deg, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.35));
    }

    .brand-lockup {
        font-size: 1.45rem;
    }

    .hero-actions .button {
        width: 100%;
    }

    .service-row {
        grid-template-columns: 48px 1fr;
        gap: 16px;
        padding: 24px 0;
    }

    .service-copy h3 {
        font-size: 1.25rem;
    }

    .cta-panel {
        border-radius: 16px;
        padding: 40px 24px;
    }

    .footer-bottom {
        flex-direction: column;
    }
}

/* ——— Portfolio ——— */

.page-portfolio .about-hero h1 {
    max-width: 16ch;
}

.stats-note {
    margin: 18px 0 0;
    color: var(--ink-3);
    font-size: 0.82rem;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 16px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(59, 91, 219, 0.1);
    color: var(--primary);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.status-pill::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
}

.gs1-panel {
    padding: 36px;
    border: 1px solid var(--section-line);
    border-radius: 16px;
    background: #fafafa;
}

.gs1-panel h2 {
    max-width: 18ch;
    margin-bottom: 16px;
}

.gs1-panel > p {
    max-width: 46rem;
    margin: 0 0 28px;
    color: var(--section-ink-2);
    font-size: 1.05rem;
}

.platform-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
}

.platform-pills span {
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid var(--section-line);
    background: #ffffff;
    color: var(--section-ink);
    font-size: 0.85rem;
    font-weight: 600;
}

.gs1-flow {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.gs1-flow li {
    padding-top: 16px;
    border-top: 2px solid var(--primary);
}

.gs1-flow span {
    display: block;
    margin-bottom: 8px;
    color: var(--section-ink-3);
    font-family: var(--font-display);
    font-size: 0.8rem;
    letter-spacing: 0.08em;
}

.gs1-flow strong {
    display: block;
    margin-bottom: 6px;
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 500;
}

.gs1-flow p {
    margin: 0;
    color: var(--section-ink-2);
    font-size: 0.95rem;
}

.ref-grid,
.product-grid {
    display: grid;
    gap: 18px;
}

.ref-grid {
    grid-template-columns: repeat(3, 1fr);
}

.ref-card,
.product-card {
    padding: 28px 24px;
    border: 1px solid var(--section-line);
    border-radius: 14px;
}

.theme-dark .ref-card {
    background: #0c0c0c;
}

.theme-light .product-card {
    background: #fafafa;
}

.ref-card h3,
.product-card h3 {
    margin-bottom: 10px;
}

.ref-card p,
.product-card p {
    margin: 0;
    color: var(--section-ink-2);
    font-size: 0.98rem;
}

.product-domain {
    margin: 0 0 10px;
    color: var(--section-ink-3);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.product-link {
    display: inline-flex;
    margin-top: 16px;
    color: var(--primary);
    font-size: 0.92rem;
    font-weight: 600;
}

.product-link:hover {
    color: var(--primary-hover);
}

.product-grid {
    grid-template-columns: repeat(3, 1fr);
}

.platform-index {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0 40px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.platform-index a {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--section-line);
}

.platform-index a:hover strong {
    color: var(--primary);
}

.platform-index strong {
    font-weight: 600;
}

.platform-index span {
    color: var(--section-ink-3);
    font-size: 0.92rem;
}

@media (max-width: 960px) {
    .gs1-flow,
    .ref-grid,
    .product-grid {
        grid-template-columns: 1fr 1fr;
    }

    .gs1-panel {
        padding: 24px;
    }
}

@media (max-width: 640px) {
    .gs1-flow,
    .ref-grid,
    .product-grid,
    .platform-index {
        grid-template-columns: 1fr;
    }
}
