﻿/* RCH Technologies: colorful single page. Gradient hero, featured work with screenshots first,
   established platforms second, colored tags, ruled technology rows, contact. */
:root {
    --bg: #F3F6FC;
    --surface: #FFFFFF;
    --fg: #0F1B2D;
    --muted: #4A5A70;
    --line: #D8E1EE;
    --accent: #2563EB;
    --accent-ink: #FFFFFF;
    --accent-soft: #E6EEFF;
    --band: #E8EEF9;
    --blue: #2563EB;
    --teal: #0D9488;
    --violet: #7C3AED;
    --amber: #D97706;
    --rose: #E11D48;
    --danger: #B3261E;
    --ok: #1B6B3A;
    --c: var(--accent);
    --shadow: 0 1px 2px rgba(15, 27, 45, .06), 0 8px 24px rgba(15, 27, 45, .07);
    --font-display: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
    --font-body: "Public Sans", "Segoe UI", system-ui, sans-serif;
    --font-mono: "JetBrains Mono", ui-monospace, "Cascadia Code", Consolas, monospace;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg: #0A1220;
        --surface: #111C2E;
        --fg: #E6EEF9;
        --muted: #9DB0C7;
        --line: #22334B;
        --accent: #6AA5FF;
        --accent-ink: #0A1220;
        --accent-soft: #172743;
        --band: #0E1828;
        --blue: #6AA5FF;
        --teal: #2DD4BF;
        --violet: #B197FC;
        --amber: #FBBF24;
        --rose: #FB7185;
        --danger: #FF8A80;
        --ok: #7FD39B;
        --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .35);
        color-scheme: dark;
    }
}

:root[data-theme="dark"] {
    --bg: #0A1220;
    --surface: #111C2E;
    --fg: #E6EEF9;
    --muted: #9DB0C7;
    --line: #22334B;
    --accent: #6AA5FF;
    --accent-ink: #0A1220;
    --accent-soft: #172743;
    --band: #0E1828;
    --blue: #6AA5FF;
    --teal: #2DD4BF;
    --violet: #B197FC;
    --amber: #FBBF24;
    --rose: #FB7185;
    --danger: #FF8A80;
    --ok: #7FD39B;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .35);
    color-scheme: dark;
}

:root {
    color-scheme: light;
}

*, *::before, *::after {
    box-sizing: border-box;
}

body {
    background: var(--bg);
    color: var(--fg);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    padding-left: max(16px, env(safe-area-inset-left, 0px));
    padding-right: max(16px, env(safe-area-inset-right, 0px));
    padding-block: 0;
    margin: 0;
}

.wrap {
    max-width: 1120px;
    margin: 0 auto;
}

a {
    color: var(--accent);
}

    a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
        outline: 2px solid var(--accent);
        outline-offset: 2px;
    }

h1, h2, h3 {
    font-family: var(--font-display);
    line-height: 1.1;
    letter-spacing: -0.02em;
    text-wrap: balance;
    margin: 0;
}

p {
    margin: 0;
}

.eyebrow {
    font-family: var(--font-mono);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

/* Header and logo */
.site-header {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 24px;
    padding-block: 18px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--fg);
    text-decoration: none;
}

.mark {
    display: block;
    width: 40px;
    height: 40px;
    flex: none;
}

.mark-bg {
    fill: var(--accent);
}

.mark-r {
    fill: none;
    stroke: var(--accent-ink);
    stroke-width: 4.5;
    stroke-linejoin: miter;
}

.mark-base {
    fill: none;
    stroke: var(--accent-ink);
    stroke-width: 2.5;
    opacity: 0.6;
}

.brand-text {
    display: grid;
    line-height: 1.05;
}

.brand-name {
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.3rem;
    letter-spacing: -0.02em;
}

.brand-sub {
    font-family: var(--font-mono);
    font-size: 0.62rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--muted);
    margin-top: 4px;
}

nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 22px;
}

    nav a {
        color: var(--fg);
        text-decoration: none;
        font-weight: 500;
        font-size: 0.93rem;
        padding-block: 4px;
        border-bottom: 2px solid transparent;
    }

        nav a:hover {
            color: var(--accent);
            border-bottom-color: var(--accent);
        }

/* Hero: gradient panel */
.hero {
    position: relative;
    overflow: hidden;
    isolation: isolate;
    margin-top: 8px;
    padding: clamp(32px, 6vw, 72px) clamp(22px, 5vw, 64px) clamp(26px, 4vw, 44px);
    border-radius: 22px;
    color: #FFFFFF;
    background: radial-gradient(900px 420px at 92% -10%, rgba(45, 212, 191, .55), transparent 60%), radial-gradient(700px 380px at -5% 110%, rgba(124, 58, 237, .55), transparent 60%), linear-gradient(135deg, #0B1F4D 0%, #1536A8 55%, #2563EB 100%);
}

    .hero::before {
        content: "";
        position: absolute;
        inset: 0;
        z-index: -1;
        opacity: .18;
        background-image: linear-gradient(rgba(255, 255, 255, .5) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .5) 1px, transparent 1px);
        background-size: 44px 44px;
        mask-image: linear-gradient(180deg, #000, transparent 85%);
    }

    .hero .eyebrow {
        color: rgba(255, 255, 255, .8);
    }

    .hero h1 {
        max-width: 18ch;
        font-size: clamp(2.2rem, 5.6vw, 3.9rem);
        font-weight: 700;
        margin-top: 14px;
    }

    .hero .lede {
        margin-top: 20px;
        max-width: 60ch;
        font-size: 1.1rem;
        color: rgba(255, 255, 255, .88);
    }

.now {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-top: 26px;
}

    .now span {
        font-family: var(--font-mono);
        font-size: 0.72rem;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: rgba(255, 255, 255, .7);
        margin-right: 4px;
    }

    .now b {
        font-family: var(--font-mono);
        font-size: 0.78rem;
        font-weight: 500;
        padding: 4px 12px;
        border-radius: 999px;
        background: rgba(255, 255, 255, .16);
        border: 1px solid rgba(255, 255, 255, .28);
        backdrop-filter: blur(6px);
    }

.facts {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 14px;
    margin: clamp(26px, 4vw, 40px) 0 0;
}

    .facts > div {
        padding: 16px 18px;
        border-radius: 14px;
        background: rgba(255, 255, 255, .12);
        border: 1px solid rgba(255, 255, 255, .22);
        backdrop-filter: blur(8px);
    }

    .facts dt {
        font-family: var(--font-display);
        font-weight: 600;
        font-size: 1.15rem;
    }

    .facts dd {
        margin: 4px 0 0;
        color: rgba(255, 255, 255, .85);
        font-size: 0.92rem;
    }

.btn {
    display: inline-block;
    font: 600 0.98rem var(--font-body);
    padding: 12px 22px;
    border-radius: 8px;
    border: 0;
    background: linear-gradient(135deg, var(--blue), var(--violet));
    color: #FFFFFF;
    text-decoration: none;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(37, 99, 235, .3);
}

    .btn:hover {
        filter: brightness(1.08);
    }

    .btn:disabled {
        opacity: 0.6;
        cursor: progress;
    }

/* Sections */
section {
    padding-block: clamp(48px, 8vw, 88px) 0;
}

.section-head {
    max-width: 62ch;
    margin-bottom: 32px;
}

    .section-head h2 {
        font-size: clamp(1.7rem, 3.6vw, 2.5rem);
        margin-top: 10px;
    }

    .section-head p {
        margin-top: 12px;
        color: var(--muted);
    }

.eyebrow.sub {
    margin: 0 0 14px;
}

/* Capabilities */
.cap-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    gap: 18px;
}

.cap {
    --c: var(--blue);
    position: relative;
    padding: 24px 22px 26px;
    min-width: 0;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

    .cap::before {
        content: "";
        position: absolute;
        inset: 0 0 auto 0;
        height: 4px;
        background: var(--c);
    }

    .cap:nth-child(6n+2) {
        --c: var(--teal);
    }

    .cap:nth-child(6n+3) {
        --c: var(--violet);
    }

    .cap:nth-child(6n+4) {
        --c: var(--amber);
    }

    .cap:nth-child(6n+5) {
        --c: var(--rose);
    }

    .cap:nth-child(6n+6) {
        --c: var(--blue);
    }

    .cap h3 {
        font-size: 1.25rem;
    }

    .cap p {
        margin-top: 10px;
        color: var(--muted);
        font-size: 0.96rem;
    }

/* Approach band */
.band {
    margin-top: clamp(48px, 8vw, 88px);
    padding-block: clamp(40px, 6vw, 64px);
    background: var(--band);
    /* extend the band to the viewport edges while content stays inside .wrap */
    box-shadow: 0 0 0 100vmax var(--band);
    clip-path: inset(0 -100vmax);
}

    .band section {
        padding-block: 0;
    }

.principles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    gap: 24px 32px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: p;
}

    .principles li {
        counter-increment: p;
    }

    .principles h3 {
        font-size: 1.15rem;
    }

        .principles h3::before {
            content: counter(p);
            display: inline-grid;
            place-items: center;
            width: 30px;
            height: 30px;
            margin-right: 10px;
            border-radius: 9px;
            font: 600 0.85rem var(--font-mono);
            color: #FFFFFF;
            background: linear-gradient(135deg, var(--blue), var(--teal));
            vertical-align: 2px;
        }

    .principles p {
        margin-top: 8px;
        color: var(--muted);
        font-size: 0.96rem;
    }

/* Featured work: screenshot beside text */
.featured {
    display: grid;
    gap: 24px;
}

.feature {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: clamp(20px, 3vw, 36px);
    align-items: start;
    padding: clamp(18px, 2.4vw, 28px);
    background: var(--surface);
    border: 1px solid var(--line);
    border-top: 4px solid var(--c);
    border-radius: 16px;
    box-shadow: var(--shadow);
    min-width: 0;
}

    .feature:nth-child(even) .shot {
        order: 2;
    }

@media (min-width: 821px) {
    .feature:nth-child(even) {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    }
}

.feature-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

    .feature-body h3 {
        font-size: clamp(1.4rem, 2.6vw, 1.8rem);
    }

    .feature-body p {
        color: var(--muted);
        font-size: 0.96rem;
    }

.meta {
    font-family: var(--font-mono);
    font-size: 0.75rem;
    color: var(--c);
    font-weight: 500;
}

.more {
    font-size: 0.92rem;
    font-weight: 600;
}

/* Screenshot frame: browser bar, then image over a colored fallback panel */
.shot {
    margin: 6px 0 0 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--line);
    background: var(--surface);
    box-shadow: 0 14px 34px rgba(15, 27, 45, .16);
    min-width: 0;
}

    .shot .bar {
        display: flex;
        align-items: center;
        gap: 6px;
        padding: 9px 12px;
        background: var(--band);
        border-bottom: 1px solid var(--line);
    }

        .shot .bar i {
            width: 10px;
            height: 10px;
            border-radius: 50%;
            background: var(--line);
        }

            .shot .bar i:nth-child(1) {
                background: #F87171;
            }

            .shot .bar i:nth-child(2) {
                background: #FBBF24;
            }

            .shot .bar i:nth-child(3) {
                background: #34D399;
            }

        .shot .bar span {
            margin-left: 8px;
            font-family: var(--font-mono);
            font-size: 0.7rem;
            color: var(--muted);
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

.shot-body {
    position: relative;
    aspect-ratio: 5 / 3;
    display: grid;
    place-items: center;
    background: radial-gradient(70% 90% at 85% 10%, color-mix(in srgb, var(--c) 55%, transparent), transparent 70%), linear-gradient(135deg, color-mix(in srgb, var(--c) 85%, #000) 0%, color-mix(in srgb, var(--c) 45%, #fff) 100%);
}

    .shot-body .ph {
        font-family: var(--font-display);
        font-weight: 700;
        font-size: clamp(1.1rem, 2.4vw, 1.6rem);
        color: rgba(255, 255, 255, .92);
        text-align: center;
        padding: 0 16px;
    }

    .shot-body .slides img {
        position: absolute;
        inset: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: top;
        display: block;
    }

/* Carousel: the script adds .car-on, then only the active slide shows */
.shot.car-on .slides img {
    opacity: 0;
    transition: opacity .35s ease;
}

    .shot.car-on .slides img.is-active {
        opacity: 1;
    }

.car-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    padding: 0 0 4px 0;
    border: 0;
    border-radius: 50%;
    font: 400 1.6rem/1 var(--font-body);
    color: #0F1B2D;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 2px 8px rgba(15, 27, 45, .35);
    cursor: pointer;
    opacity: 1;
    transition: background .2s ease;
}

    .car-btn[hidden], .dots[hidden] {
        display: none;
    }

    .car-btn.prev {
        left: 10px;
    }

    .car-btn.next {
        right: 10px;
    }

    .car-btn:hover {
        background: #FFFFFF;
    }

    .shot:hover .car-btn, .car-btn:focus-visible {
        opacity: 1;
    }

@media (hover: none) {
    .car-btn {
        opacity: 1;
    }
}

.dots {
    position: absolute;
    left: 50%;
    bottom: 10px;
    transform: translateX(-50%);
    width: max-content;
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(15, 27, 45, .5);
    backdrop-filter: blur(4px);
}

    .dots button {
        width: 9px;
        height: 9px;
        padding: 0;
        border: 0;
        border-radius: 50%;
        background: rgba(255, 255, 255, .55);
        box-shadow: 0 0 0 1px rgba(15, 27, 45, .35);
        cursor: pointer;
    }

        .dots button[aria-current="true"] {
            width: 22px;
            border-radius: 6px;
            background: #FFFFFF;
        }

/* Tags */
.tags {
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    align-items: flex-start;
    gap: 6px;
    list-style: none;
    margin: 0;
    padding: 0;
}

    .tags li {
        font-family: var(--font-mono);
        font-size: 0.74rem;
        padding: 3px 10px;
        border-radius: 999px;
        background: color-mix(in srgb, var(--c) 13%, transparent);
        color: var(--c);
        border: 1px solid color-mix(in srgb, var(--c) 28%, transparent);
    }

        .tags li.hot {
            background: var(--c);
            color: #FFFFFF;
            border-color: transparent;
        }

:root[data-theme="dark"] .tags li.hot {
    color: #0A1220;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .tags li.hot {
        color: #0A1220;
    }
}

.feature .tags, .work-item .tags {
    margin-top: auto;
    padding-top: 6px;
}

.badge {
    width: fit-content;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #FFFFFF;
    background: var(--ok);
    border-radius: 999px;
    padding: 3px 12px;
}

:root[data-theme="dark"] .badge {
    color: #0A1220;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .badge {
        color: #0A1220;
    }
}

/* Established platforms: smaller cards */
.work-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
    gap: 20px;
}

.work-item {
    background: var(--surface);
    border: 1px solid var(--line);
    border-top: 4px solid var(--c);
    border-radius: 12px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 0;
}

    .work-item h3 {
        font-size: 1.25rem;
    }

    .work-item p {
        color: var(--muted);
        font-size: 0.93rem;
    }

    .work-item .meta {
        font-size: 0.72rem;
    }

/* Technology rows */
.skill-row {
    display: grid;
    grid-template-columns: minmax(0, 240px) minmax(0, 1fr);
    gap: 12px 32px;
    padding: 22px 0 22px 18px;
    border-top: 1px solid var(--line);
    border-left: 4px solid var(--c);
}

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

    .skill-row h3 {
        font-size: 1.15rem;
    }

    .skill-row p {
        color: var(--muted);
        font-size: 0.92rem;
        margin-top: 4px;
    }


/* Contact */
.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    gap: 40px;
    align-items: start;
    padding: clamp(22px, 4vw, 44px);
    border-radius: 20px;
    background: radial-gradient(600px 300px at 0% 0%, color-mix(in srgb, var(--violet) 14%, transparent), transparent 70%), radial-gradient(600px 300px at 100% 100%, color-mix(in srgb, var(--teal) 14%, transparent), transparent 70%), var(--band);
}

    .contact-grid .section-head {
        margin-bottom: 0;
    }

form {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 24px;
    display: grid;
    gap: 18px;
    min-width: 0;
    box-shadow: var(--shadow);
}

.row2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 18px;
}

.field {
    display: grid;
    gap: 6px;
    min-width: 0;
}

label {
    font-weight: 600;
    font-size: 0.92rem;
}

    label small {
        font-weight: 400;
        color: var(--muted);
    }

input[type="text"], input[type="email"], select, textarea {
    width: 100%;
    font: inherit;
    color: var(--fg);
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 11px 12px;
}

textarea {
    min-height: 150px;
    resize: vertical;
}

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

.form-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 16px;
}

.status {
    font-size: 0.92rem;
    min-height: 1.4em;
}

    .status[data-state="error"] {
        color: var(--danger);
    }

    .status[data-state="ok"] {
        color: var(--ok);
    }

footer {
    margin-top: clamp(56px, 8vw, 96px);
    padding-block: 28px;
    border-top: 1px solid var(--line);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 8px 24px;
    color: var(--muted);
    font-size: 0.88rem;
}

/* Card and row colors (kept after the components so they win) */
.c-blue {
    --c: var(--blue);
}

.c-teal {
    --c: var(--teal);
}

.c-violet {
    --c: var(--violet);
}

.c-amber {
    --c: var(--amber);
}

.c-rose {
    --c: var(--rose);
}

@media (max-width: 820px) {
    .contact-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .skill-row {
        grid-template-columns: minmax(0, 1fr);
    }

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

        .feature:nth-child(even) .shot {
            order: 0;
        }
}

html {
    scroll-behavior: smooth;
}

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

.contact-direct {
    margin-top: 18px;
    line-height: 1.9;
    font-weight: 600;
}
