/* CLYD3 — Lower-site system language
   Extends the hero + C3 constellation design language through the active homepage.
   Scoped to existing lower-section classes so the hero/constellation remain independent. */

/* ---------------------------------------------------------
   Shared field language
--------------------------------------------------------- */
.work-section,
.statement-section,
.coming-grid,
.contact-section {
    position: relative;
    isolation: isolate;
}

.work-section::before,
.statement-section::before,
.contact-section::before {
    position: absolute;
    font-family: 'DM Mono', monospace;
    font-size: 8px;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--soft-ink);
    opacity: .72;
    pointer-events: none;
}

.work-section::before {
    content: 'FIELD / PRACTICE 03';
    right: var(--gutter);
    top: 42px;
}

.statement-section::before {
    content: 'SIGNAL / CONTEXT 04';
    right: var(--gutter);
    top: 42px;
}

/* Section headings now behave like system readouts rather than card headings. */
.work-section .section-heading {
    margin-bottom: clamp(42px, 5vw, 74px);
    padding-bottom: 30px;
    border-bottom: 1px solid var(--line);
}

.work-section .section-heading h2 {
    max-width: 760px;
    font-size: clamp(52px, 5.4vw, 88px);
    line-height: .94;
}

.work-section .section-note {
    max-width: 330px;
    padding-left: 18px;
    border-left: 1px solid var(--teal);
    font-size: 12px;
    line-height: 1.65;
}

/* ---------------------------------------------------------
   Selected Work — signal ledger
--------------------------------------------------------- */
.work-section .project-list {
    border-top: 0;
}

.work-section .project-row {
    --row-accent: var(--teal);
    position: relative;
    min-height: 132px;
    grid-template-columns: 62px minmax(0, 1fr) auto 38px;
    border-top: 1px solid var(--line);
    border-bottom: 0;
    background: transparent;
    overflow: hidden;
    transition: padding-left 240ms cubic-bezier(.2,.7,.2,1), border-color 220ms ease;
}

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

.work-section .project-row:nth-child(3) {
    --row-accent: var(--crimson);
}

.work-section .project-row::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--row-accent);
    transform: translate(-50%, -50%) scale(.78);
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--row-accent) 12%, transparent);
    transition: transform 220ms ease, box-shadow 220ms ease;
}

.work-section .project-row::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 0;
    height: 1px;
    background: var(--row-accent);
    transition: width 420ms cubic-bezier(.2,.7,.2,1);
}

.work-section .project-row:hover {
    padding-left: 14px;
    background: transparent;
}

.work-section .project-row:hover::before,
.work-section .project-row:focus-visible::before {
    transform: translate(-50%, -50%) scale(1.35);
    box-shadow: 0 0 0 7px color-mix(in srgb, var(--row-accent) 10%, transparent);
}

.work-section .project-row:hover::after,
.work-section .project-row:focus-visible::after {
    width: 100%;
}

.work-section .project-number,
.work-section .project-tag {
    font-family: 'DM Mono', monospace;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.work-section .project-number {
    color: var(--row-accent);
    font-size: 9px;
}

.work-section .project-title h3 {
    font-size: clamp(28px, 3vw, 46px);
    line-height: 1;
    letter-spacing: -.045em;
    font-weight: 500;
    transition: transform 240ms cubic-bezier(.2,.7,.2,1);
}

.work-section .project-title p {
    margin-top: 10px;
    font-size: 11px;
    font-family: 'DM Mono', monospace;
    letter-spacing: .02em;
}

.work-section .project-row:hover .project-title h3 {
    transform: translateX(6px);
}

.work-section .project-tag {
    padding: 7px 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--soft-ink);
    font-size: 8px;
}

.work-section .project-arrow {
    color: var(--row-accent);
}

/* ---------------------------------------------------------
   About — contextual orbit
--------------------------------------------------------- */
.statement-section {
    min-height: 560px;
    align-items: center;
    overflow: hidden;
}

.statement-section::after {
    content: '';
    position: absolute;
    right: clamp(-180px, -8vw, -80px);
    top: 50%;
    width: clamp(310px, 34vw, 560px);
    aspect-ratio: 1;
    border: 1px solid var(--line-soft);
    border-radius: 50%;
    transform: translateY(-50%);
    box-shadow:
        0 0 0 62px rgba(17,17,17,.018),
        0 0 0 126px rgba(17,17,17,.012);
    z-index: -1;
}

.statement-index {
    align-self: start;
    padding-top: 7px;
    font-family: 'DM Mono', monospace;
    font-size: 9px;
    letter-spacing: .06em;
    color: var(--teal);
}

.statement-copy {
    position: relative;
    z-index: 2;
    max-width: 880px;
}

.statement-copy .statement-lead {
    margin-bottom: 30px;
    font-size: clamp(38px, 4vw, 66px);
    color: var(--crimson);
}

.statement-copy p:not(.statement-lead) {
    max-width: 800px;
    font-size: clamp(28px, 3.25vw, 52px);
    line-height: 1.12;
}

.statement-mark {
    position: relative;
    z-index: 2;
    width: 82px;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    border: 1px solid var(--teal);
    border-radius: 50%;
    color: var(--teal);
    font-family: 'DM Mono', monospace;
    font-size: 24px;
    transition: transform 320ms cubic-bezier(.2,.7,.2,1), border-color 220ms ease, color 220ms ease;
}

.statement-section:hover .statement-mark {
    transform: rotate(45deg);
    border-color: var(--crimson);
    color: var(--crimson);
}

/* ---------------------------------------------------------
   Archive + Notes — twin field windows, no heavy cards
--------------------------------------------------------- */
.coming-grid {
    width: min(100%, 1600px);
    max-width: 1600px;
    margin: 0 auto;
    padding: var(--section-pad) var(--gutter);
    gap: 0;
    border-bottom: 1px solid var(--line);
    background: transparent;
}

.coming-panel,
.coming-panel:first-child,
.dark-panel {
    position: relative;
    min-height: 520px;
    padding: clamp(34px, 4vw, 62px);
    justify-content: flex-end;
    overflow: hidden;
    background: transparent;
    color: var(--ink);
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    transition: background 260ms ease;
}

.coming-panel:first-child {
    border-right: 1px solid var(--line);
}

.coming-panel::before {
    content: '';
    position: absolute;
    width: 280px;
    height: 280px;
    border: 1px solid var(--line-soft);
    border-radius: 50%;
    top: -105px;
    right: -75px;
    box-shadow: 0 0 0 44px rgba(17,17,17,.012);
    transition: transform 520ms cubic-bezier(.2,.7,.2,1), border-color 260ms ease;
}

.dark-panel::before {
    width: 230px;
    height: 230px;
    top: -75px;
    right: -35px;
    border-style: dashed;
}

.coming-panel::after {
    content: '';
    position: absolute;
    top: 38px;
    left: 38px;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--teal);
    box-shadow: 0 0 0 6px rgba(13,124,120,.055);
}

.dark-panel::after {
    background: var(--ink);
    box-shadow: 0 0 0 6px rgba(17,17,17,.055);
}

.coming-panel:hover::before {
    transform: rotate(18deg) scale(1.05);
    border-color: rgba(13,124,120,.42);
}

.dark-panel:hover::before {
    border-color: rgba(166,61,69,.44);
}

.dark-panel .eyebrow,
.dark-panel p,
.coming-panel > p:not(.eyebrow) {
    color: var(--soft-ink);
}

.coming-panel .eyebrow {
    position: absolute;
    top: 34px;
    left: 62px;
    margin: 0;
}

.coming-panel h2 {
    position: relative;
    z-index: 2;
    max-width: 560px;
    font-size: clamp(54px, 5.4vw, 86px);
}

.coming-panel > p:not(.eyebrow) {
    position: relative;
    z-index: 2;
    max-width: 480px;
    margin-top: 24px;
    font-size: 13px;
    line-height: 1.65;
}

.panel-status {
    position: relative;
    z-index: 2;
    width: fit-content;
    margin-top: 34px;
    padding: 7px 10px 7px 22px;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-family: 'DM Mono', monospace;
    font-size: 8px;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--soft-ink);
}

.panel-status::before {
    content: '';
    position: absolute;
    left: 9px;
    top: 50%;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--teal);
    transform: translateY(-50%);
}

.dark-panel .panel-status::before {
    background: var(--crimson);
}

/* ---------------------------------------------------------
   Contact — expanded C3 core / terminal field
--------------------------------------------------------- */
.contact-section {
    color: var(--paper);
    background: var(--ink);
    box-shadow: 0 0 0 100vmax var(--ink);
    clip-path: inset(0 -100vmax);
    border-bottom: 0;
    overflow: hidden;
}

.contact-section::before {
    content: 'CHANNEL / OPEN 07';
    right: var(--gutter);
    top: 42px;
    color: rgba(241,239,232,.5);
}

.contact-section::after {
    content: '';
    position: absolute;
    right: -130px;
    bottom: -260px;
    width: 620px;
    aspect-ratio: 1;
    border: 1px solid rgba(241,239,232,.12);
    border-radius: 50%;
    box-shadow:
        0 0 0 80px rgba(241,239,232,.02),
        0 0 0 158px rgba(241,239,232,.012);
    pointer-events: none;
}

.contact-section .eyebrow,
.contact-section .eyebrow span,
.contact-side p {
    color: rgba(241,239,232,.58);
}

.contact-section .eyebrow span {
    color: var(--paper);
}

.contact-layout {
    position: relative;
    z-index: 2;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
    gap: clamp(50px, 8vw, 130px);
}

.contact-section h2 {
    max-width: 980px;
    font-size: clamp(58px, 7vw, 112px);
    letter-spacing: -.06em;
}

.contact-side {
    align-self: end;
    max-width: 360px;
}

.contact-side p {
    margin: 0 0 36px;
    font-size: 13px;
    line-height: 1.7;
}

.contact-section .text-link {
    color: var(--paper);
    border-color: rgba(241,239,232,.48);
}

.contact-section .text-link:hover span {
    color: var(--crimson);
}

/* Footer continues the dark-system ending. */
.site-footer {
    position: relative;
    background: var(--ink);
    color: rgba(241,239,232,.62);
    box-shadow: 0 0 0 100vmax var(--ink);
    clip-path: inset(0 -100vmax);
    border-top: 1px solid rgba(241,239,232,.13);
}

.site-footer span:first-child {
    color: var(--paper);
    font-weight: 600;
    letter-spacing: -.025em;
}

.site-footer span:nth-child(2) {
    font-family: 'DM Mono', monospace;
    font-size: 8px;
    text-transform: uppercase;
    letter-spacing: .06em;
}

/* ---------------------------------------------------------
   Responsive consistency
--------------------------------------------------------- */
@media (max-width: 1050px) {
    .work-section::before,
    .statement-section::before,
    .contact-section::before {
        top: 26px;
    }

    .statement-section {
        min-height: 500px;
    }

    .statement-section::after {
        opacity: .55;
    }

    .coming-panel,
    .coming-panel:first-child,
    .dark-panel {
        min-height: 460px;
    }
}

@media (max-width: 760px) {
    .work-section::before,
    .statement-section::before,
    .contact-section::before {
        display: none;
    }

    .work-section .section-heading {
        padding-bottom: 22px;
    }

    .work-section .section-note {
        margin-top: 12px;
    }

    .work-section .project-row {
        grid-template-columns: 38px minmax(0,1fr) 24px;
        min-height: 116px;
    }

    .work-section .project-row::before {
        display: none;
    }

    .work-section .project-title h3 {
        font-size: clamp(28px, 9vw, 40px);
    }

    .statement-section {
        min-height: auto;
    }

    .statement-section::after {
        width: 300px;
        right: -190px;
        opacity: .4;
    }

    .statement-mark {
        width: 62px;
    }

    .coming-grid {
        padding-top: 72px;
        padding-bottom: 72px;
    }

    .coming-panel,
    .coming-panel:first-child,
    .dark-panel {
        min-height: 420px;
        border-right: 0;
    }

    .coming-panel:first-child {
        border-bottom: 0;
    }

    .contact-layout {
        grid-template-columns: 1fr;
    }

    .contact-side {
        max-width: 100%;
    }

    .contact-section::after {
        width: 390px;
        right: -240px;
        bottom: -170px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .statement-mark,
    .coming-panel::before,
    .project-row::after,
    .project-row::before,
    .project-title h3 {
        transition: none !important;
    }
}
