* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --bg: #0b0b0b;
    --surface: #161616;
    --surface-raised: #1e1e1e;
    --border: #2a2a2a;
    --accent: #c8935a;
    --accent-dim: #a07040;
    --text: #d4d4d4;
    --text-bright: #f0ece8;
    --text-muted: #777;
    --font: 'Segoe UI', system-ui, -apple-system, sans-serif;
    --font-display: Georgia, 'Times New Roman', serif;

    --bar-software: #5aa0c8;
    --bar-rooms: #c8935a;
    --bar-props: #8cbe78;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.2s;
}

a:hover {
    color: var(--text-bright);
}

/* ── NAV ─────────────────────────────────────────── */

nav {
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 3rem;
    padding: 0.6rem 2rem;
    height: 90px;
    position: relative;
}

.nav-logo {
    height: 72px;
    display: block;
}

.nav-links {
    display: flex;
    gap: 2rem;
    position: absolute;
    right: 2rem;
}

.nav-links a {
    color: var(--text-muted);
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    transition: color 0.2s;
}

.nav-links a:hover,
.nav-links a.active {
    color: var(--accent);
}

/* ── HERO ────────────────────────────────────────── */

.hero {
    text-align: center;
    padding: 4rem 2rem 3.5rem;
}

.hero .brand-name {
    font-family: var(--font);
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--text-bright);
    letter-spacing: 0.02em;
    line-height: 1.1;
    margin-bottom: 0.3rem;
}

.hero h1 {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 400;
    color: var(--text-bright);
    letter-spacing: 0.02em;
    margin-bottom: 0.6rem;
}

.hero .tagline {
    font-size: 1rem;
    color: var(--text-muted);
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.hero-rule {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 3rem;
    margin-bottom: 2.5rem;
}

.hero-rule::after {
    content: '';
    display: block;
    height: 0.5px;
    background: linear-gradient(to right, transparent, var(--accent) 30%, var(--accent) 70%, transparent);
    opacity: 0.4;
}

/* ── SERVICES AREA ───────────────────────────────── */

.services-area {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 3rem 5rem;
    display: grid;
    grid-template-columns: 1fr 420px;
    gap: 5rem;
    align-items: start;
    position: relative;
}

.services-area::before {
    content: '';
    position: absolute;
    right: calc(420px + 3rem + 2.5rem);
    top: -1.5rem;
    bottom: 2rem;
    width: 1px;
    background: #333;
}

.services {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

.side-text {
    position: sticky;
    top: 120px;
    padding-top: 0.5rem;
}

.side-text p {
    font-size: 1.1rem;
    color: var(--text-muted);
    line-height: 1.8;
}

/* ── SERVICE ROWS ────────────────────────────────── */

.service-row {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 0;
    align-items: start;
    cursor: pointer;
    transition: transform 0.3s;
    position: relative;
}

.service-row:nth-child(1) { padding-left: 0; }
.service-row:nth-child(2) { padding-left: 4rem; }
.service-row:nth-child(3) { padding-left: 4rem; }
.service-row:nth-child(4) { padding-left: 0; }

/* ── CONNECTOR LINES ─────────────────────────────── */

/* 1→2: L-shape right */
.service-row:nth-child(1)::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -1.8rem;
    width: 4rem;
    height: 1.8rem;
    border-left: 1px solid #333;
    border-bottom: 1px solid #333;
    pointer-events: none;
    z-index: 1;
}

/* 2→3: vertical drop (same indent) */
.service-row:nth-child(2)::after {
    content: '';
    position: absolute;
    left: 4rem;
    bottom: -1.8rem;
    width: 0;
    height: 1.8rem;
    border-left: 1px solid #333;
    pointer-events: none;
    z-index: 1;
}

/* 3→4: L-shape back left */
.service-row:nth-child(3)::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -1.8rem;
    width: 4rem;
    height: 1.8rem;
    border-right: 1px solid #333;
    border-bottom: 1px solid #333;
    pointer-events: none;
    z-index: 1;
}

.service-brick {
    background: var(--surface);
    border: 1px solid var(--border);
    overflow: hidden;
    transition: border-color 0.3s, background 0.3s, box-shadow 0.3s;
    position: relative;
}

.service-brick::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    transition: width 0.3s;
}

.service-row:nth-child(1) .service-brick { background: linear-gradient(135deg, var(--surface) 0%, rgba(90,160,200,0.04) 100%); }
.service-row:nth-child(2) .service-brick { background: linear-gradient(135deg, var(--surface) 0%, rgba(200,147,90,0.04) 100%); }
.service-row:nth-child(3) .service-brick { background: linear-gradient(135deg, var(--surface) 0%, rgba(140,190,120,0.04) 100%); }
.service-row:nth-child(4) .service-brick { background: linear-gradient(135deg, var(--surface) 0%, rgba(180,140,200,0.04) 100%); }

.service-row:nth-child(1) .service-brick::before { background: var(--bar-software); }
.service-row:nth-child(2) .service-brick::before { background: var(--bar-rooms); }
.service-row:nth-child(3) .service-brick::before { background: var(--bar-props); }
.service-row:nth-child(4) .service-brick::before { background: #b08cc8; }

.service-row:hover .service-brick {
    border-color: #3a3a3a;
}

.service-row.open .service-brick::before {
    width: 5px;
}

.service-header {
    padding: 2.5rem 2.2rem 2.5rem 2.4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.service-row:nth-child(1) .service-header,
.service-row:nth-child(4) .service-header {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
}

.service-header h2 {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--text-bright);
    letter-spacing: 0.03em;
}

.service-arrow {
    color: var(--text-muted);
    font-size: 1rem;
    transition: transform 0.3s, color 0.3s;
    flex-shrink: 0;
    margin-left: 1rem;
}

.service-row.open .service-arrow {
    transform: rotate(180deg);
}

.service-row:nth-child(1).open .service-arrow { color: var(--bar-software); }
.service-row:nth-child(2).open .service-arrow { color: var(--bar-rooms); }
.service-row:nth-child(3).open .service-arrow { color: var(--bar-props); }
.service-row:nth-child(4).open .service-arrow { color: #b08cc8; }

.service-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

.service-row.open .service-body {
    max-height: 400px;
}

.service-body-inner {
    padding: 0 2.2rem 2rem;
    color: var(--text);
    line-height: 1.8;
    border-top: 1px solid var(--border);
    padding-top: 1.5rem;
}

/* ── SERVICE ASIDE (per-panel flavor text) ───────── */

.service-aside {
    padding: 2.2rem 2rem 2.2rem 2.5rem;
    display: flex;
    align-items: center;
    transition: opacity 0.35s, transform 0.35s;
    opacity: 1;
    transform: translateX(0);
}

.service-row.open .service-aside {
    opacity: 0;
    transform: translateX(1rem);
    pointer-events: none;
}

.service-aside p {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.7;
    font-style: italic;
}

/* ── ABOUT PAGE ──────────────────────────────────── */

.about {
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem 2rem 5rem;
}

.about h2 {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 400;
    color: var(--text-bright);
    margin-bottom: 1.5rem;
}

.about .about-photo {
    float: left;
    width: 240px;
    cursor: pointer;
    aspect-ratio: 3/4;
    background: var(--surface);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 0.85rem;
    margin: 0 2rem 1.2rem 0;
}

.about-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.about p {
    margin-bottom: 1.2rem;
    color: var(--text);
}

/* ── FOOTER ──────────────────────────────────────── */

footer {
    border-top: 1px solid var(--border);
    background: var(--surface);
    padding: 0.8rem 2rem;
    text-align: center;
}

.footer-inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

.contact-line {
    font-size: 0.9rem;
}

.contact-line a {
    color: var(--text-muted);
    transition: color 0.2s;
}

.contact-line a:hover {
    color: var(--text-bright);
}

.footer-dot {
    color: #333;
    font-size: 0.9rem;
}

.footer-brand {
    font-size: 0.75rem;
    color: var(--accent);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 700;
}

/* ── RESPONSIVE ──────────────────────────────────── */

@media (max-width: 950px) {
    .services-area {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .services-area::before {
        display: none;
    }

    .side-text {
        position: static;
        order: -1;
        border-bottom: 1px solid var(--border);
        padding-bottom: 3rem;
        margin-bottom: 1.5rem;
    }

    .service-row:nth-child(2) { padding-left: 2rem; }
    .service-row:nth-child(3) { padding-left: 2rem; }
    .service-row:nth-child(4) { padding-left: 0; }
}

@media (max-width: 700px) {
    .nav-inner {
        flex-direction: column;
        height: auto;
        padding: 1rem;
        gap: 0.8rem;
    }

    .nav-logo {
        height: 56px;
    }

    .nav-links {
        position: static;
    }

    .hero {
        padding: 3rem 1.5rem 2.5rem;
    }

    .hero .brand-name {
        font-size: 2rem;
    }

    .hero h1 {
        font-size: 1.6rem;
    }

    .services-area {
        padding: 0 1rem 3rem;
    }

    .service-row {
        grid-template-columns: 1fr;
    }

    .service-row:nth-child(1),
    .service-row:nth-child(2),
    .service-row:nth-child(3),
    .service-row:nth-child(4) {
        padding-left: 0;
    }

    .service-aside {
        display: none;
    }

    .service-row:nth-child(1)::after,
    .service-row:nth-child(2)::after,
    .service-row:nth-child(3)::after {
        display: none;
    }

    .service-header {
        padding: 1.8rem 1.5rem;
    }

    .service-header h2 {
        font-size: 1.15rem;
    }

    .service-body-inner {
        padding: 0 1.5rem 1.5rem;
        padding-top: 1.2rem;
    }

    .about .about-photo {
        width: 140px;
        margin-right: 1.2rem;
    }
}
