/* =========================================================
   START — Project template
   ========================================================= */

body.is-start-project {
    --project-bg: #050505;
    --project-text: #f4f4f0;
    --project-muted: rgba(244, 244, 240, 0.54);
    --project-soft: rgba(244, 244, 240, 0.32);
    --project-border: rgba(255, 255, 255, 0.12);

    margin: 0;
    color: var(--project-text);
    background:
        radial-gradient(
            circle at 80% 0%,
            rgba(255, 255, 255, 0.075),
            transparent 34%
        ),
        var(--project-bg);
}

body.is-start-project .gh-head,
body.is-start-project .gh-foot {
    display: none;
}

body.is-start-project .site-content {
    min-height: 100vh;
}

.start-project {
    min-height: 100vh;
    padding: clamp(26px, 4vw, 70px) 0 90px;
}

.start-project__header {
    padding-top: 20px;
}

.start-project__back {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    color: var(--project-muted);
    font-size: 11px;
    font-weight: 650;
    letter-spacing: 0.14em;
    text-decoration: none;
    text-transform: uppercase;
    transition: color 220ms ease;
}

.start-project__back:hover {
    color: var(--project-text);
}

.start-project__hero {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.7fr);
    gap: clamp(50px, 9vw, 150px);
    align-items: end;
    padding: clamp(90px, 12vh, 170px) 0 80px;
    border-bottom: 1px solid var(--project-border);
}

.start-project__eyebrow {
    margin: 0 0 22px;
    color: var(--project-muted);
    font-size: 10px;
    font-weight: 650;
    letter-spacing: 0.22em;
    text-transform: uppercase;
}

.start-project__title {
    margin: 0;
    font-size: clamp(72px, 11vw, 170px);
    font-weight: 700;
    line-height: 0.82;
    letter-spacing: -0.075em;
}

.start-project__excerpt {
    max-width: 760px;
    margin: 38px 0 0;
    color: var(--project-muted);
    font-size: clamp(17px, 1.7vw, 25px);
    line-height: 1.45;
}

.start-project__meta {
    display: grid;
    gap: 0;
    margin: 0;
    border-top: 1px solid var(--project-border);
}

.start-project__meta div {
    display: flex;
    justify-content: space-between;
    gap: 25px;
    padding: 18px 0;
    border-bottom: 1px solid var(--project-border);
}

.start-project__meta dt {
    color: var(--project-soft);
    font-size: 10px;
    font-weight: 650;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.start-project__meta dd {
    margin: 0;
    font-size: 13px;
}

.start-project__body {
    padding-top: 75px;
    padding-bottom: 75px;
}

.start-project__content {
    max-width: 820px;
    margin: 0;
    color: rgba(244, 244, 240, 0.76);
}

.start-project__content h2,
.start-project__content h3 {
    color: var(--project-text);
}

.start-project__entries {
    padding-top: 70px;
    border-top: 1px solid var(--project-border);
}

.start-project__section-header {
    margin-bottom: 42px;
}

.start-project__section-header h2 {
    margin: 0;
    font-size: clamp(38px, 5vw, 72px);
    font-weight: 580;
    letter-spacing: -0.05em;
}

.start-project__feed {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid var(--project-border);
    border-left: 1px solid var(--project-border);
}

.start-project-card {
    min-width: 0;
    border-right: 1px solid var(--project-border);
    border-bottom: 1px solid var(--project-border);
}

.start-project-card__link {
    display: flex;
    flex-direction: column;
    min-height: 330px;
    padding: 28px;
    color: var(--project-text);
    text-decoration: none;
    transition: background-color 240ms ease;
}

.start-project-card__link:hover {
    background: rgba(255, 255, 255, 0.045);
}

.start-project-card__top {
    display: flex;
    justify-content: space-between;
    color: var(--project-soft);
    font-size: 10px;
    font-weight: 650;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.start-project-card h3 {
    margin: 70px 0 18px;
    font-size: clamp(24px, 2.3vw, 34px);
    font-weight: 540;
    line-height: 1.05;
    letter-spacing: -0.04em;
}

.start-project-card p {
    margin: 0;
    color: var(--project-muted);
    font-size: 13px;
    line-height: 1.65;
}

.start-project-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: auto;
    padding-top: 34px;
}

.start-project-card__tags span {
    padding: 6px 9px;
    color: var(--project-soft);
    border: 1px solid var(--project-border);
    border-radius: 999px;
    font-size: 9px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.start-project__empty {
    display: flex;
    gap: 12px;
    align-items: center;
    padding: 35px 0;
    color: var(--project-muted);
}

.start-project__empty p {
    margin: 0;
}

.start-project__status-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #a9ffb8;
    box-shadow: 0 0 15px rgba(169, 255, 184, 0.65);
}

@media (max-width: 980px) {
    .start-project__hero {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .start-project__meta {
        max-width: 520px;
    }

    .start-project__feed {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .start-project {
        padding-bottom: 55px;
    }

    .start-project__hero {
        padding-top: 80px;
        padding-bottom: 55px;
    }

    .start-project__title {
        font-size: clamp(62px, 23vw, 100px);
    }

    .start-project__body {
        padding-top: 55px;
        padding-bottom: 55px;
    }

    .start-project__feed {
        grid-template-columns: 1fr;
    }

    .start-project-card__link {
        min-height: 280px;
    }
}

/* =========================================================
   START — Knowledge Graph V1
   ========================================================= */

.start-entity-status {
    display: inline-flex;
    gap: 9px;
    align-items: center;
}

.start-entity-status .start-project__status-dot {
    width: 6px;
    height: 6px;
}

.start-relation {
    padding-top: 70px;
    padding-bottom: 80px;
    border-top: 1px solid var(--project-border);
}

.start-relation__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid var(--project-border);
    border-left: 1px solid var(--project-border);
}

.start-relation__card {
    display: flex;
    min-height: 175px;
    justify-content: space-between;
    align-items: flex-end;
    gap: 30px;
    padding: 26px;
    color: var(--project-text);
    border-right: 1px solid var(--project-border);
    border-bottom: 1px solid var(--project-border);
    text-decoration: none;
    transition:
        background-color 220ms ease,
        transform 220ms ease;
}

.start-relation__card:hover {
    background: rgba(255, 255, 255, 0.045);
}

.start-relation__type {
    display: block;
    margin-bottom: 18px;
    color: var(--project-soft);
    font-size: 9px;
    font-weight: 650;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.start-relation__card h3 {
    margin: 0;
    font-size: clamp(24px, 2.4vw, 36px);
    font-weight: 540;
    line-height: 1;
    letter-spacing: -0.045em;
}

.start-relation__arrow {
    color: var(--project-soft);
    font-size: 16px;
    transition:
        color 220ms ease,
        transform 220ms ease;
}

.start-relation__card:hover .start-relation__arrow {
    color: var(--project-text);
    transform: translate(2px, -2px);
}

body.is-start-technology .start-project__title {
    font-size: clamp(68px, 10vw, 150px);
}

@media (max-width: 980px) {
    .start-relation__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .start-relation {
        padding-top: 55px;
        padding-bottom: 60px;
    }

    .start-relation__grid {
        grid-template-columns: 1fr;
    }

    .start-relation__card {
        min-height: 145px;
    }
}

/* =========================================================
   START — Workspace V1
   ========================================================= */

.start-workspace {
    padding-top: 78px;
    padding-bottom: 84px;
    border-bottom: 1px solid var(--project-border);
}

.start-workspace__header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.55fr);
    gap: 50px;
    align-items: end;
    margin-bottom: 54px;
}

.start-workspace__header h2 {
    margin: 0;
    font-size: clamp(42px, 6vw, 78px);
    font-weight: 580;
    line-height: 0.95;
    letter-spacing: -0.055em;
}

.start-workspace__description {
    max-width: 460px;
    margin: 0;
    color: var(--project-muted);
    font-size: 13px;
    line-height: 1.7;
}

.start-workspace__groups {
    display: grid;
    gap: 62px;
}

.start-workspace-group__header {
    display: flex;
    gap: 18px;
    align-items: center;
    margin-bottom: 18px;
}

.start-workspace-group__header span {
    color: var(--project-soft);
    font-size: 9px;
    font-weight: 650;
    letter-spacing: 0.14em;
}

.start-workspace-group__header h3 {
    margin: 0;
    color: var(--project-muted);
    font-size: 10px;
    font-weight: 650;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.start-workspace__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-top: 1px solid var(--project-border);
    border-left: 1px solid var(--project-border);
}

.start-workspace-card {
    position: relative;
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    gap: 17px;
    align-items: center;
    min-height: 105px;
    padding: 20px;
    overflow: hidden;
    color: var(--project-text);
    border-right: 1px solid var(--project-border);
    border-bottom: 1px solid var(--project-border);
    text-decoration: none;
    transition:
        background-color 220ms ease,
        transform 220ms ease;
}

.start-workspace-card::before {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(
            110deg,
            transparent 30%,
            rgba(255, 255, 255, 0.055),
            transparent 70%
        );
    content: "";
    opacity: 0;
    transform: translateX(-35%);
    transition:
        opacity 240ms ease,
        transform 440ms ease;
    pointer-events: none;
}

.start-workspace-card:hover {
    background: rgba(255, 255, 255, 0.04);
}

.start-workspace-card:hover::before {
    opacity: 1;
    transform: translateX(35%);
}

.start-workspace-card__icon {
    position: relative;
    z-index: 1;
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    color: rgba(244, 244, 240, 0.72);
    border: 1px solid var(--project-border);
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.025);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.start-workspace-card__content {
    position: relative;
    z-index: 1;
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 5px;
}

.start-workspace-card__content strong {
    overflow: hidden;
    font-size: 14px;
    font-weight: 560;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.start-workspace-card__content small {
    overflow: hidden;
    color: var(--project-soft);
    font-size: 10px;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.start-workspace-card__arrow {
    position: relative;
    z-index: 1;
    color: var(--project-soft);
    font-size: 13px;
    transition:
        color 220ms ease,
        transform 220ms ease;
}

.start-workspace-card:hover .start-workspace-card__arrow {
    color: var(--project-text);
    transform: translate(2px, -2px);
}

.start-workspace-card:focus-visible {
    outline: 1px solid var(--project-text);
    outline-offset: -3px;
}

@media (max-width: 980px) {
    .start-workspace__header {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .start-workspace__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .start-workspace {
        padding-top: 55px;
        padding-bottom: 60px;
    }

    .start-workspace__header {
        gap: 24px;
        margin-bottom: 42px;
    }

    .start-workspace__groups {
        gap: 48px;
    }

    .start-workspace__grid {
        grid-template-columns: 1fr;
    }

    .start-workspace-card {
        min-height: 94px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .start-workspace-card,
    .start-workspace-card::before,
    .start-workspace-card__arrow {
        transition: none;
    }
}
