
    /* ============================================
    BASE LAYOUT
    ============================================ */

.container {
    width: 100%;
    max-width: var(--max-width);
    margin-inline: auto;
    padding-inline: var(--section-padding-x);
    }

    section {
    padding-block: var(--section-padding-y);
    }

    /* ============================================
    TYPOGRAPHY UTILITIES
    ============================================ */

    .label {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    font-weight: var(--weight-medium);
    letter-spacing: var(--tracking-wider);
    text-transform: uppercase;
    color: var(--color-accent);
    }

    .heading-xl {
    font-family: var(--font-heading);
    font-size: var(--text-7xl);
    font-weight: var(--weight-bold);
    line-height: var(--leading-tight);
    letter-spacing: var(--tracking-tight);
    }

    .heading-lg {
    font-family: var(--font-heading);
    font-size: var(--text-5xl);
    font-weight: var(--weight-bold);
    line-height: var(--leading-tight);
    letter-spacing: var(--tracking-tight);
    }

    .heading-md {
    font-family: var(--font-heading);
    font-size: var(--text-3xl);
    font-weight: var(--weight-semibold);
    line-height: var(--leading-snug);
    }

    .heading-sm {
    font-family: var(--font-heading);
    font-size: var(--text-2xl);
    font-weight: var(--weight-semibold);
    line-height: var(--leading-snug);
    }

    .body-lg {
    font-size: var(--text-lg);
    line-height: var(--leading-relaxed);
    }

    .body-base {
    font-size: var(--text-base);
    line-height: var(--leading-normal);
    }

    .body-sm {
    font-size: var(--text-sm);
    line-height: var(--leading-normal);
    }

    .mono {
    font-family: var(--font-mono);
    font-size: var(--text-sm);
    }

    /* ============================================
    COLOR UTILITIES
    ============================================ */

    .text-on-dark       { color: var(--color-text-on-dark); }
    .text-on-dark-muted { color: var(--color-text-on-dark-muted); }
    .text-on-light      { color: var(--color-text-on-light); }
    .text-on-light-muted{ color: var(--color-text-on-light-muted); }
    .text-accent        { color: var(--color-accent); }

    /* ============================================
    SURFACE UTILITIES
    ============================================ */

    .surface-dark  { background-color: var(--color-surface-dark); }
    .surface-mid   { background-color: var(--color-surface-mid); }
    .surface-light { background-color: var(--color-surface-light); }
    .surface-white { background-color: var(--color-surface-white); }

   /* ============================================
    SECTION LABEL — Pill Tag
    ============================================ */

    .section-label {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: var(--space-6);
    padding: var(--space-1) var(--space-4);
    border-radius: var(--radius-full);
    border: 1px solid rgba(233, 224, 201, 0.2);
    background-color: rgba(233, 224, 201, 0.05);
    }

    /* Remove old pseudo-elements entirely */
    .section-label::before,
    .section-label::after {
    display: none;
    }

    /* Light section overrides */
    .surface-light .section-label,
    .surface-white .section-label {
    border-color: rgba(144, 164, 194, 0.3);
    background-color: rgba(144, 164, 194, 0.06);
    }

    .surface-light .section-label .label,
    .surface-white .section-label .label {
    color: var(--color-accent-hover);
    }

    /* ============================================
    BUTTONS
    ============================================ */

    .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-4) var(--space-8);
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: var(--weight-semibold);
    letter-spacing: var(--tracking-wide);
    text-transform: uppercase;
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
    cursor: pointer;
    white-space: nowrap;
    }

    /* Primary button — accent fill */
    .btn-primary {
    background-color: var(--color-accent);
    color: var(--color-primary);
    box-shadow: var(--shadow-accent);
    }

    .btn-primary:hover {
    background-color: var(--color-accent-hover);
    color: var(--color-text-on-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
    }

    /* Secondary button — outline */
    .btn-secondary {
    background-color: transparent;
    color: var(--color-text-on-dark);
    border: 1px solid var(--color-border-dark);
    }

    .btn-secondary:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
    transform: translateY(-2px);
    }

    /* Ghost button — for light sections */
    .btn-ghost {
    background-color: transparent;
    color: var(--color-text-on-light);
    border: 1px solid var(--color-border-light);
    }

    .btn-ghost:hover {
    border-color: var(--color-accent);
    color: var(--color-accent);
    transform: translateY(-2px);
    }

    /* ============================================
    TAGS & BADGES
    ============================================ */

    .tag {
    display: inline-flex;
    align-items: center;
    padding: var(--space-1) var(--space-3);
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    font-weight: var(--weight-medium);
    border-radius: var(--radius-full);
    background-color: rgba(233, 224, 201, 0.1);
    color: var(--color-accent);
    border: 1px solid rgba(233, 224, 201, 0.2);
    }

    /* ============================================
    DIVIDERS
    ============================================ */

    .divider {
    width: 100%;
    height: 1px;
    background-color: var(--color-border-dark);
    }

    .divider-light {
    background-color: var(--color-border-light);
    }

    /* ============================================
    FLEX & GRID UTILITIES
    ============================================ */

    .flex         { display: flex; }
    .flex-col     { flex-direction: column; }
    .items-center { align-items: center; }
    .items-start  { align-items: flex-start; }
    .justify-between { justify-content: space-between; }
    .justify-center  { justify-content: center; }
    .gap-2  { gap: var(--space-2); }
    .gap-4  { gap: var(--space-4); }
    .gap-6  { gap: var(--space-6); }
    .gap-8  { gap: var(--space-8); }
    .gap-12 { gap: var(--space-12); }

    .grid { display: grid; }

    /* ============================================
    SPACING UTILITIES
    ============================================ */

    .mt-4  { margin-top: var(--space-4); }
    .mt-6  { margin-top: var(--space-6); }
    .mt-8  { margin-top: var(--space-8); }
    .mt-12 { margin-top: var(--space-12); }
    .mt-16 { margin-top: var(--space-16); }

    .mb-4  { margin-bottom: var(--space-4); }
    .mb-6  { margin-bottom: var(--space-6); }
    .mb-8  { margin-bottom: var(--space-8); }
    .mb-12 { margin-bottom: var(--space-12); }

    /* ============================================
    SECTION LABEL PATTERN
    — the small mono label that sits above headings
    ============================================ */

    .section-label {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-6);
    }

   .section-label::before,
    .section-label::after {
    content: '';
    display: block;
    width: 24px;
    height: 1px;
    background-color: var(--color-accent);
    flex-shrink: 0;
    }

    /* ============================================
    RESPONSIVE BREAKPOINTS
    ============================================ */

    /* Tablet */
    @media (max-width: 1024px) {
    :root {
        --section-padding-x: var(--space-12);
        --text-7xl: 3.5rem;
        --text-6xl: 3rem;
    }
    }

    /* Mobile */
    @media (max-width: 768px) {
    :root {
        --section-padding-x: var(--space-6);
        --text-7xl: 2.5rem;
        --text-6xl: 2.25rem;
        --text-5xl: 2rem;
        --section-padding-y: var(--space-16);
    }
}
    /* ============================================
    NAVIGATION
    ============================================ */

    .nav-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background-color: rgba(18, 18, 31, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border-dark);
    height: var(--nav-height);
    }

    .nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--nav-height);
    }

    /* Logo */
    .nav-logo {
    font-family: var(--font-heading);
    font-size: var(--text-xl);
    font-weight: var(--weight-bold);
    color: var(--color-text-on-dark);
    letter-spacing: var(--tracking-tight);
    }

    .nav-logo-accent {
    color: var(--color-accent);
    }

    /* Logo tooltip */
    .nav-logo {
    position: relative;
    }

    .nav-logo-tooltip {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    background-color: var(--color-surface-mid);
    color: var(--color-text-on-dark);
    font-family: var(--font-body);
    font-size: var(--text-xs);
    font-weight: var(--weight-medium);
    white-space: nowrap;
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-md);
    border: 1px solid var(--color-border-dark);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-4px);
    transition: opacity var(--transition-base),
                transform var(--transition-base);
    z-index: 200;
    }

    /* Small arrow pointing up */
    .nav-logo-tooltip::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 16px;
    width: 8px;
    height: 8px;
    background-color: var(--color-surface-mid);
    border-left: 1px solid var(--color-border-dark);
    border-top: 1px solid var(--color-border-dark);
    transform: rotate(45deg);
    }

    .nav-logo:hover .nav-logo-tooltip {
    opacity: 1;
    transform: translateY(0);
    }

    /* Desktop links */
    .nav-links {
    display: flex;
    align-items: center;
    gap: var(--space-8);
    }

    .nav-links a {
    font-size: var(--text-base); 
    font-weight: var(--weight-medium);
    color: var(--color-text-on-dark-muted);
    transition: color var(--transition-fast);
    letter-spacing: var(--tracking-normal); /* remove the wide tracking, feels better at larger size */
    }

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

    /* Nav CTA */
    .nav-cta {
    padding: var(--space-3) var(--space-6);
    font-size: var(--text-xs);
    }

    /* Hamburger — hidden on desktop */
    .nav-hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: var(--space-2);
    background: none;
    border: none;
    cursor: pointer;
    }

    .nav-hamburger span {
    display: block;
    width: 24px;
    height: 2px;
    background-color: var(--color-text-on-dark);
    transition: all var(--transition-base);
    border-radius: var(--radius-full);
    }

    /* ============================================
    DROPDOWN NAVIGATION
    ============================================ */

    .nav-item {
    position: relative;
    list-style: none;
    }

    .nav-item > a {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    }

    /* Chevron arrow */
    .nav-item > a::after {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    transition: transform var(--transition-fast);
    }

    /* Rotate chevron when dropdown open */
    .nav-item:hover > a::after {
    transform: rotate(-135deg) translateY(-2px);
    }

    /* Items without dropdown — no chevron */
    .nav-item.no-drop > a::after {
    display: none;
    }

    /* Dropdown panel */
    .nav-dropdown {
    position: absolute;
    top: calc(100% + 16px);
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(18, 18, 31, 0.97);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--color-border-dark);
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    min-width: 280px;
    opacity: 0;
    pointer-events: none;
    transform: translateX(-50%) translateY(-8px);
    transition: opacity var(--transition-base),
                transform var(--transition-base);
    z-index: 200;
    }

    /* Show on hover */
    .nav-item:hover .nav-dropdown {
    opacity: 1;
    pointer-events: all;
    transform: translateX(-50%) translateY(0);
    }

    /* Bridge gap so dropdown stays open on mouse move */
    .nav-dropdown::before {
    content: '';
    position: absolute;
    top: -16px;
    left: 0;
    right: 0;
    height: 16px;
    }

    /* Dropdown link item */
    .nav-dropdown-item {
    display: flex;
    flex-direction: column;
    gap: var(--space-1);
    padding: var(--space-4) var(--space-4);
    border-radius: var(--radius-md);
    transition: background-color var(--transition-fast);
    cursor: pointer;
    text-decoration: none;
    }

    .nav-dropdown-item:hover {
    background-color: rgba(233, 224, 201, 0.06);
    }

    .nav-dropdown-item-title {
    font-size: var(--text-sm);
    font-weight: var(--weight-semibold);
    color: var(--color-text-on-dark);
    transition: color var(--transition-fast);
    }

    .nav-dropdown-item:hover .nav-dropdown-item-title {
    color: var(--color-accent);
    }

    .nav-dropdown-item-desc {
    font-size: var(--text-xs);
    color: var(--color-text-on-dark-muted);
    line-height: var(--leading-normal);
    }

    /* Divider between dropdown items */
    .nav-dropdown-divider {
    height: 1px;
    background-color: var(--color-border-dark);
    margin: var(--space-2) var(--space-4);
    }

    /* Mobile menu — hidden by default */
    .nav-mobile {
    display: none;
    position: fixed;
    top: var(--nav-height);
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    background-color: var(--color-surface-dark);
    padding: var(--space-8) var(--space-6);
    z-index: 99;
    overflow-y: auto;
    }

    .nav-mobile.open {
    display: flex;
    flex-direction: column;
    }

    .nav-mobile-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
    }

    .nav-mobile-link {
    font-size: var(--text-xl);
    font-weight: var(--weight-semibold);
    color: var(--color-text-on-dark);
    transition: color var(--transition-fast);
    }

    .nav-mobile-link:hover {
    color: var(--color-accent);
    }

    /* Nav scroll state */
    .nav-wrapper.scrolled {
    background-color: rgba(18, 18, 31, 0.98);
    }

    /* ============================================
    HERO SECTION
    ============================================ */

    .hero {
    min-height: 100vh;
    padding-top: calc(var(--nav-height) + var(--space-24));
    padding-bottom: var(--space-24);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    }

    .hero-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--space-8);
    max-width: 860px;
    margin-inline: auto;
    }

    /* Label */
    .hero-container .section-label {
    justify-content: center;
    margin-bottom: 0;
    }

    /* Headline */
    .hero-headline {
    font-size: clamp(3rem, 8vw, 5.5rem);
    line-height: var(--leading-tight);
    letter-spacing: var(--tracking-tight);
    }

    .hero-headline-accent {
    color: var(--color-accent);
    font-style: italic;
    }

    /* Subtext */
    .hero-sub {
    max-width: 560px;
    color: var(--color-text-on-dark-muted);
    text-align: center;
    }

    /* CTAs */
    .hero-ctas {
    justify-content: center;
    flex-wrap: wrap;
    margin-top: var(--space-4);
    }

    /* Stats */
    .hero-stats {
    display: flex;
    align-items: center;
    gap: var(--space-8);
    padding-top: var(--space-8);
    border-top: 1px solid var(--color-border-dark);
    margin-top: var(--space-8);
    justify-content: center;
    }

    .hero-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-1);
    }

    .hero-stat-number {
    font-family: var(--font-heading);
    font-size: var(--text-2xl);
    font-weight: var(--weight-bold);
    color: var(--color-accent);
    line-height: 1;
    }

    .hero-stat-label {
    font-size: var(--text-xs);
    letter-spacing: var(--tracking-wide);
    text-transform: uppercase;
    }

    .hero-divider {
    width: 1px;
    height: 40px;
    background-color: var(--color-border-dark);
    }

        /* Hero background image system */
    .hero-bg {
    position: absolute;
    inset: 0;
    background-image: url('../images/hero-bg-3.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
    }

    /* Overlay — this is how you tint any photo 
    to match your dark navy without losing the image */
    .hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        135deg,
        rgba(18, 18, 31, 0.92) 0%,
        rgba(18, 18, 31, 0.75) 50%,
        rgba(18, 18, 31, 0.85) 100%
    );
    z-index: 1;
    }

    /* Make sure hero content sits above both layers */
    .hero-container {
    position: relative;
    z-index: 2;
    }

    /* ============================================
    RESPONSIVE — HERO
    ============================================ */

    @media (max-width: 768px) {
    .hero-stats {
        gap: var(--space-6);
    }

    .hero-ctas {
        flex-direction: column;
        align-items: center;
    }
    }
    /* ============================================
    FOOTER
    ============================================ */

    .footer {
    border-top: 1px solid var(--color-border-dark);
    padding-block: var(--space-8);
    }

    .footer-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    }

    .footer-container a:hover {
    color: var(--color-accent);
    transition: color var(--transition-fast);
    }

    /* ============================================
    RESPONSIVE
    ============================================ */

    @media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero-content {
        align-items: center;
    }

    .hero-sub {
        text-align: center;
    }

    .hero-visual {
        align-items: center;
    }

    .hero-stats {
        justify-content: center;
    }

    .section-label {
        justify-content: center;
    }
    }

    @media (max-width: 768px) {
    .nav-links,
    .nav-cta {
        display: none;
    }

    .nav-hamburger {
        display: flex;
    }

    .hero-code-card {
        max-width: 100%;
    }

    .footer-container {
        flex-direction: column;
        gap: var(--space-4);
        text-align: center;
    }
}

    /* ============================================
    ABOUT SECTION
    ============================================ */

    .about {
    border-top: 1px solid var(--color-border-light);
    overflow: hidden;
    }

    .about-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
    align-items: center;
    }

    /* Left side */
    .about-text {
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
    }

    .about-headline {
    color: var(--color-text-on-light);
    line-height: var(--leading-snug);
    }

    .about-body {
    color: var(--color-text-on-light-muted);
    line-height: var(--leading-relaxed);
    }

    .about-buttons {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: var(--space-4);
    flex-wrap: nowrap;
    margin-top: var(--space-2);
    }

    /* ============================================
    RIGHT SIDE — VISUAL COMPOSITION
    ============================================ */

    .about-visual {
    position: relative;
    height: 520px;
    }

    /* Decorative background shape */
    .about-shape {
    position: absolute;
    width: 320px;
    height: 320px;
    top: 0;
    right: 0;
    background-color: rgba(233, 224, 201, 0.15);
    border-radius: var(--radius-xl);
    transform: rotate(6deg);
    z-index: 0;
    }

    /* Offset border frame behind photo */
    .about-photo-frame {
    position: absolute;
    top: 12px;
    right: 8px;
    width: 280px;
    height: 320px;
    border: 1.5px solid rgba(233, 224, 201, 0.25);
    border-radius: var(--radius-xl);
    z-index: 0;
    }

    /* Photo wrapper */
    .about-photo-wrapper {
    position: absolute;
    top: 0;
    right: 20px;
    width: 280px;
    height: 320px;
    z-index: 1;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    }

    .about-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
    display: block;
    }

    /* ============================================
    LAPTOP MOCKUP
    ============================================ */

    .about-laptop {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 300px;
    z-index: 2;
    filter: drop-shadow(0 8px 24px rgba(0,0,0,0.15));
    }

    /* Screen */
    .laptop-screen {
    background-color: #1a1a2e;
    border-radius: 10px 10px 0 0;
    padding: 10px;
    border: 2px solid #2d2d45;
    position: relative;
    }

    .laptop-screen-inner {
    border-radius: 6px;
    overflow: hidden;
    position: relative;
    aspect-ratio: 16 / 10;
    }

    .laptop-github-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    display: block;
    transition: transform var(--transition-slow);
    }

    /* Hover overlay */
    .laptop-hover-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(18, 18, 31, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity var(--transition-base);
    text-decoration: none;
    }

    .laptop-screen-inner:hover .laptop-hover-overlay {
    opacity: 1;
    }

    .laptop-screen-inner:hover .laptop-github-img {
    transform: scale(1.03);
    }

    .laptop-hover-label {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    font-weight: var(--weight-medium);
    color: var(--color-accent);
    letter-spacing: var(--tracking-wide);
    border: 1px solid rgba(233, 224, 201, 0.3);
    padding: var(--space-3) var(--space-5);
    border-radius: var(--radius-md);
    background-color: rgba(18, 18, 31, 0.6);
    }

    /* Base */
    .laptop-base {
    background: linear-gradient(180deg, #2d2d45 0%, #1a1a2e 100%);
    height: 14px;
    border-radius: 0 0 8px 8px;
    border: 2px solid #2d2d45;
    border-top: none;
    display: flex;
    align-items: center;
    justify-content: center;
    }

    /* GitHub context card */
    .laptop-badge {
    position: absolute;
    bottom: -16px;
    right: -16px;
    display: flex;
    align-items: center;
    gap: var(--space-3);
    background-color: var(--color-surface-dark);
    border: 1px solid var(--color-border-dark);
    border-radius: var(--radius-md);
    padding: var(--space-3) var(--space-4);
    box-shadow: var(--shadow-lg);
    z-index: 3;
    white-space: nowrap;
    }

    .laptop-badge-text {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--color-text-on-dark-muted);
    font-weight: var(--weight-medium);
    letter-spacing: var(--tracking-wide);
    }

    /* ============================================
    RESPONSIVE — ABOUT
    Desktop only for visual composition
    ============================================ */

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

    .about-visual {
        display: none;
    }

    .about-buttons {
        flex-direction: column;
    }

    .about-buttons .btn {
        width: 100%;
        justify-content: center;
    }
    }

    /* ============================================
    SERVICES SECTION — Style A
    ============================================ */

    .services {
    border-top: 1px solid var(--color-border-light);
    }

    .services-container {
    display: flex;
    flex-direction: column;
    gap: var(--space-12);
    }

    /* Header */
    .services-header {
    max-width: 640px;
    }

    .services-headline {
    color: var(--color-text-on-light);
    margin-bottom: var(--space-4);
    }

    .services-subtext {
    color: var(--color-text-on-light-muted);
    }

    /* Grid */
    .services-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-6);
    }

    /* Card base */
    .service-card {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    padding: var(--space-8);
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border-light);
    background-color: var(--color-surface-white);
    transition: box-shadow var(--transition-base),
                transform var(--transition-base);
    }

    /* Active card hover */
    .service-card--active:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-3px);
    }


    /* Soon card — muted */
    .service-card--soon {
    opacity: 0.6;
    }

    /* Icon */
    .service-card-icon {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: rgba(144, 164, 194, 0.1);
    border-radius: var(--radius-md);
    color: var(--color-accent-hover);
    flex-shrink: 0;
    }

    /* Content */
    .service-card-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    flex: 1;
    }
    /* Top row — icon and status aligned */
    .service-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    }

    /* Status badge */
    .service-card-status {
    display: inline-flex;
    align-self: center;
    font-family: var(--font-body);
    font-size: var(--text-xs);
    font-weight: var(--weight-medium);
    letter-spacing: var(--tracking-normal);
    padding: var(--space-1) var(--space-3);
    border-radius: var(--radius-md);
    }

    .service-card-status--active {
    background-color: rgba(40, 202, 66, 0.1);
    color: #28CA42;
    border: 1px solid rgba(40, 202, 66, 0.2);
    }

    .service-card-status--soon {
    background-color: rgba(144, 164, 194, 0.1);
    color: var(--color-accent-hover);
    border: 1px solid rgba(144, 164, 194, 0.2);
    }

    /* Title */
    .service-card-title {
    color: var(--color-text-on-light);
    font-size: var(--text-xl);
    }

    /* Description */
    .service-card-desc {
    color: var(--color-text-on-light-muted);
    line-height: var(--leading-relaxed);
    }

    /* Link */
    .service-card-link {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    font-weight: var(--weight-medium);
    letter-spacing: var(--tracking-wide);
    color: var(--color-accent-hover);
    text-decoration: none;
    transition: color var(--transition-fast);
    margin-top: auto;
    }

    .service-card-link:hover {
    color: var(--color-text-on-light);
    }

    .service-card-link--disabled {
    color: var(--color-text-on-light-muted);
    cursor: default;
    }

    /* CTA */
    .services-cta {
    display: flex;
    justify-content: flex-start;
    }

    /* ============================================
    RESPONSIVE — SERVICES
    ============================================ */

    @media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
    }
    }

    /* ============================================
    PORTFOLIO SECTION
    ============================================ */

    .portfolio {
    border-top: 1px solid var(--color-border-light);
    }

    .portfolio-container {
    display: flex;
    flex-direction: column;
    gap: var(--space-12);
    }

    .portfolio-header {
    max-width: 640px;
    }

    .portfolio-headline {
    color: var(--color-text-on-light);
    margin-bottom: var(--space-4);
    }

    .portfolio-subtext {
    color: var(--color-text-on-light-muted);
    }

    /* ============================================
    SPLIT CARD
    ============================================ */

    .portfolio-featured {
    display: grid;
    grid-template-columns: 280px 1fr;
    border-radius: var(--radius-xl);
    overflow: hidden;
    border: 1px solid var(--color-border-light);
    box-shadow: var(--shadow-md);
    max-width: 900px;
    transition: box-shadow var(--transition-base),
                transform var(--transition-base);
    }

    .portfolio-featured:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
    }

    /* Left — dark identity panel */
    .portfolio-featured-left {
    background-color: var(--color-surface-dark);
    padding: var(--space-10) var(--space-8);
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
    position: relative;
    overflow: hidden;
    }

    /* Subtle accent circle — decorative */
    .portfolio-featured-left::before {
    content: '';
    position: absolute;
    width: 200px;
    height: 200px;
    bottom: -60px;
    right: -60px;
    border-radius: 50%;
    background: radial-gradient(
        circle,
        rgba(233, 224, 201, 0.06) 0%,
        transparent 70%
    );
    pointer-events: none;
    }

    .portfolio-featured-label .label {
    color: var(--color-text-on-dark-muted);
    }

    .portfolio-featured-label .section-label::before,
    .portfolio-featured-label .section-label::after {
    background-color: var(--color-text-on-dark-muted);
    }

    .portfolio-featured-name {
    font-family: var(--font-heading);
    font-size: var(--text-5xl);
    font-weight: var(--weight-bold);
    line-height: var(--leading-tight);
    color: var(--color-text-on-dark);
    letter-spacing: var(--tracking-tight);
    }

    .portfolio-featured-status {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--color-text-on-dark-muted);
    }

    .portfolio-featured-status {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--color-accent);
    }

    /* Large number — decorative bottom left */
    .portfolio-featured-number {
    font-family: var(--font-heading);
    font-size: 7rem;
    font-weight: var(--weight-bold);
    color: rgba(255, 255, 255, 0.04);
    line-height: 1;
    position: absolute;
    bottom: var(--space-4);
    left: var(--space-6);
    letter-spacing: var(--tracking-tight);
    pointer-events: none;
    user-select: none;
    }

    /* Right — light detail panel */
    .portfolio-featured-right {
    background-color: var(--color-surface-white);
    padding: var(--space-10) var(--space-10);
    display: flex;
    flex-direction: column;
    gap: var(--space-6);
    }

    .portfolio-featured-type {
    font-family: var(--font-mono);
    font-size: var(--text-xs);
    color: var(--color-text-on-light-muted);
    letter-spacing: var(--tracking-wide);
    }

    .portfolio-featured-desc {
    color: var(--color-text-on-light-muted);
    line-height: var(--leading-relaxed);
    }

    .portfolio-featured-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    }

    /* Tag override for light panel */
    .portfolio-featured-right .tag {
    background-color: rgba(26, 26, 46, 0.05);
    color: var(--color-text-on-light-muted);
    border-color: var(--color-border-light);
    font-family: var(--font-body);
    letter-spacing: var(--tracking-normal);
    }

    /* Case study link */
    .portfolio-featured-link {
    font-family: var(--font-body);
    font-size: var(--text-sm);
    font-weight: var(--weight-medium);
    letter-spacing: var(--tracking-normal);
    color: var(--color-accent-hover);
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    text-decoration: none;
    margin-top: auto;
    transition: gap var(--transition-fast),
                color var(--transition-fast);
    }

    .portfolio-featured-link:hover {
    color: var(--color-text-on-light);
    gap: var(--space-4);
    }

    .portfolio-featured-arrow {
    transition: transform var(--transition-fast);
    }

    .portfolio-featured-link:hover .portfolio-featured-arrow {
    transform: translateX(4px);
    }

    /* CTA row */
    .portfolio-cta {
    display: flex;
    align-items: center;
    gap: var(--space-6);
    }

    .portfolio-cta-note {
    color: var(--color-text-on-light-muted);
    }

    /* ============================================
    RESPONSIVE — PORTFOLIO
    ============================================ */

    @media (max-width: 768px) {
    .portfolio-featured {
        grid-template-columns: 1fr;
    }

    .portfolio-featured-left {
        padding: var(--space-8) var(--space-6);
    }

    .portfolio-featured-number {
        font-size: 5rem;
    }

    .portfolio-featured-right {
        padding: var(--space-6);
    }

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

    /* ============================================
   PORTFOLIO BACKGROUND ICONS
============================================ */

.portfolio {
  position: relative;
  overflow: hidden;
}

.portfolio-bg-icons {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.portfolio-container {
  position: relative;
  z-index: 1;
}

.portfolio-bg-icon {
  position: absolute;
  opacity: 0.045;
  color: var(--color-text-on-light);
}

.portfolio-bg-icon svg {
  width: 100%;
  height: 100%;
}

/* Position each icon individually */
.portfolio-bg-icon--1 {
  width: 120px;
  height: 120px;
  top: 8%;
  right: 6%;
  transform: rotate(-12deg);
}

.portfolio-bg-icon--2 {
  width: 80px;
  height: 80px;
  top: 45%;
  right: 18%;
  transform: rotate(8deg);
}

.portfolio-bg-icon--3 {
  width: 100px;
  height: 100px;
  bottom: 10%;
  right: 8%;
  transform: rotate(-6deg);
}

.portfolio-bg-icon--4 {
  width: 70px;
  height: 70px;
  top: 20%;
  right: 35%;
  transform: rotate(15deg);
}

.portfolio-bg-icon--5 {
  width: 90px;
  height: 90px;
  bottom: 20%;
  right: 30%;
  transform: rotate(-10deg);
}

/* ============================================
   STARTUP SECTION
============================================ */

.startup {
  border-top: 1px solid var(--color-border-light);
}

.startup-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  align-items: center;
}

/* Left side */
.startup-content {
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.startup-headline {
  color: var(--color-text-on-light);
  line-height: var(--leading-snug);
}

.startup-body {
  color: var(--color-text-on-light-muted);
  line-height: var(--leading-relaxed);
  max-width: 480px;
}

/* Status indicator */
.startup-status {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.startup-status-indicator {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.startup-status-dot {
  width: 8px;
  height: 8px;
  border-radius: var(--radius-full);
  background-color: var(--color-accent-hover);
  box-shadow: 0 0 8px rgba(144, 164, 194, 0.5);
  flex-shrink: 0;
  animation: pulse-blue 2s infinite;
}

@keyframes pulse-blue {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}

.startup-status-text {
  color: var(--color-text-on-light-muted);
}

.startup-cta {
  align-self: flex-start;
}

/* ============================================
   RIGHT SIDE — CONFIG CARD
============================================ */

.startup-visual {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  position: relative;
}

/* Config card */
.startup-card {
  background-color: var(--color-surface-dark);
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--color-border-dark);
  box-shadow: var(--shadow-lg);
}

.startup-card-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-6);
  border-bottom: 1px solid var(--color-border-dark);
  background-color: var(--color-surface-mid);
}

.startup-card-dots {
  display: flex;
  gap: var(--space-2);
}

.startup-dot {
  width: 10px;
  height: 10px;
  border-radius: var(--radius-full);
}

.startup-dot.red    { background-color: #FF5F57; }
.startup-dot.yellow { background-color: #FFBD2E; }
.startup-dot.green  { background-color: #28CA42; }

.startup-card-filename {
  font-size: var(--text-xs);
  color: var(--color-text-on-dark-muted);
  margin-left: auto;
}

.startup-card-body {
  padding: var(--space-6);
  display: flex;
  flex-direction: column;
  gap: 0;
}

.startup-card-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-4) 0;
}

.startup-card-key {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  color: var(--color-accent-hover);
  letter-spacing: var(--tracking-wide);
}

.startup-card-value {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: var(--weight-medium);
  color: var(--color-text-on-dark);
}

.startup-card-value--active {
  color: #28CA42;
}

.startup-card-divider {
  height: 1px;
  background-color: var(--color-border-dark);
}

/* Floating tag */
.startup-floating-tag {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  background-color: var(--color-surface-light);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-lg);
  border-left: 3px solid var(--color-accent-hover);
}

.startup-floating-icon {
  color: var(--color-accent-hover);
  flex-shrink: 0;
  margin-top: 2px;
}

.startup-floating-tag .body-sm {
  color: var(--color-text-on-light-muted);
  line-height: var(--leading-relaxed);
}

/* ============================================
   RESPONSIVE — STARTUP
============================================ */

@media (max-width: 1024px) {
  .startup-container {
    grid-template-columns: 1fr;
    gap: var(--space-12);
  }

  .startup-body {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .startup-cta {
    width: 100%;
    justify-content: center;
  }
}

/* ============================================
   CONTACT SECTION
============================================ */

.contact {
  position: relative;
  overflow: hidden;
  padding-block: var(--space-24);
}

.contact-bg {
  position: absolute;
  inset: 0;
  background-color: var(--color-surface-dark);
  z-index: 0;
}

.contact-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(12, 12, 20, 0.97) 0%,
    rgba(18, 18, 31, 0.90) 100%
  );
  z-index: 1;
}

.contact-container {
  position: relative;
  z-index: 2;
}

.contact-content {
  max-width: 680px;
  display: flex;
  flex-direction: column;
  gap: var(--space-8);
}

.contact-headline {
  line-height: var(--leading-snug);
}

.contact-headline-accent {
  color: var(--color-accent);
  font-style: italic;
}

.contact-subtext {
  max-width: 480px;
}

/* Contact options */
.contact-options {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.contact-option {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  padding: var(--space-5) var(--space-6);
  background-color: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--color-border-dark);
  border-radius: var(--radius-lg);
  text-decoration: none;
  transition: background-color var(--transition-base),
              border-color var(--transition-base),
              transform var(--transition-base);
}

.contact-option:hover {
  background-color: rgba(233, 224, 201, 0.06);
  border-color: rgba(233, 224, 201, 0.2);
  transform: translateX(4px);
}

.contact-option-icon {
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: rgba(233, 224, 201, 0.08);
  border-radius: var(--radius-md);
  color: var(--color-accent);
  flex-shrink: 0;
}

.contact-option-text {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  flex: 1;
}

.contact-option-label {
  font-size: var(--text-sm);
  font-weight: var(--weight-semibold);
  color: var(--color-text-on-dark);
}

.contact-option-value {
  font-size: var(--text-xs);
  color: var(--color-text-on-dark-muted);
  font-family: var(--font-mono);
  letter-spacing: var(--tracking-wide);
}

.contact-option-arrow {
  color: var(--color-text-on-dark-muted);
  font-size: var(--text-base);
  transition: transform var(--transition-fast),
              color var(--transition-fast);
}

.contact-option:hover .contact-option-arrow {
  transform: translateX(4px);
  color: var(--color-accent);
}

.contact-note {
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border-dark);
}

/* ============================================
   FOOTER
============================================ */

.footer {
  border-top: 1px solid var(--color-border-dark);
}

.footer-container {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: var(--space-12);
  padding-block: var(--space-16);
}

/* Brand column */
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.footer-logo {
  font-family: var(--font-heading);
  font-size: var(--text-xl);
  font-weight: var(--weight-bold);
  color: var(--color-text-on-dark);
  letter-spacing: var(--tracking-tight);
}

.footer-logo-accent {
  color: var(--color-accent);
}

.footer-tagline {
  line-height: var(--leading-relaxed);
  max-width: 240px;
}

/* Nav and connect columns */
.footer-nav,
.footer-connect {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
}

.footer-col-label {
  color: var(--color-text-on-dark-muted);
  font-size: var(--text-xs);
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-link {
  font-size: var(--text-sm);
  color: var(--color-text-on-dark-muted);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.footer-link:hover {
  color: var(--color-accent);
}

/* Bottom bar */
.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: var(--space-6);
  border-top: 1px solid var(--color-border-dark);
}

/* ============================================
   RESPONSIVE — CONTACT & FOOTER
============================================ */

@media (max-width: 768px) {
  .footer-container {
    grid-template-columns: 1fr;
    gap: var(--space-10);
  }

  .footer-bottom {
    flex-direction: column;
    gap: var(--space-2);
    text-align: center;
  }

  .contact-option {
    padding: var(--space-4) var(--space-5);
  }
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  position: relative;
}

.nav-logo-img {
  height: 64px;
  width: 70px;
  display: block;
  filter: brightness(0) invert(1);
  aspect-ratio: auto
}

/* ============================================
   READING PROGRESS BAR
============================================ */

.progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  width: 0%;
  height: 3px;
  background-color: var(--color-accent);
  z-index: 999;
  transition: width 0.1s linear;
  pointer-events: none;
}

/* ============================================
   SCROLL REVEAL
============================================ */

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

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

/* ============================================
   ACTIVE NAV LINK
============================================ */

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

/* ============================================
   HERO HEADLINE LINES — staggered reveal
============================================ */

.hero-line {
  display: block;
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.hero-line.visible {
  opacity: 1;
  transform: translateY(0);
}

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

body.menu-open {
  overflow: hidden;
}

/* ============================================
   SCROLL TO TOP BUTTON
============================================ */

.scroll-top {
  position: fixed;
  bottom: var(--space-8);
  right: var(--space-8);
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--color-surface-mid);
  border: 1px solid var(--color-border-dark);
  border-radius: var(--radius-md);
  color: var(--color-text-on-dark);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity var(--transition-base),
              visibility var(--transition-base),
              transform var(--transition-base),
              background-color var(--transition-fast),
              border-color var(--transition-fast);
  z-index: 90;
}

.scroll-top:hover {
  background-color: var(--color-surface-dark);
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.scroll-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

@media (max-width: 768px) {
  .scroll-top {
    bottom: var(--space-6);
    right: var(--space-6);
    width: 40px;
    height: 40px;
  }
}