/* =========================================================
   KEIZOKU DEV
   ABOUT PAGE
   ========================================================= */


/* =========================================================
   PAGE
   ========================================================= */

.dev-page {
    position: relative;

    width: 100%;

    overflow: hidden;
}


/* =========================================================
   AMBIENT CIRCLES
   ========================================================= */

.about-circle {
    position: absolute;

    z-index: 0;

    border-radius: 50%;

    pointer-events: none;
}


.about-circle-one {
    width: 520px;
    height: 520px;

    top: 170px;
    right: -180px;

    border:
        1px solid
        rgba(120, 101, 77, 0.08);
}


.about-circle-two {
    width: 340px;
    height: 340px;

    top: 58%;
    left: -150px;

    background:
        rgba(201, 172, 136, 0.07);
}


/* =========================================================
   PAGE CONTENT LAYER
   ========================================================= */

.dev-intro,
.process-section,
.stack-section,
.behind-section {
    position: relative;

    z-index: 1;
}


/* =========================================================
   SHARED
   ========================================================= */

.section-label {
    display: block;

    color: var(--text-muted);

    font-size: 0.68rem;
    font-weight: 700;

    letter-spacing: 0.1em;

    text-transform: uppercase;
}


.section-divider {
    width: 100%;
    height: 1px;

    margin-bottom: 46px;

    background: var(--border);
}


/* =========================================================
   HOW WE WORK
   ========================================================= */

.dev-intro {
    overflow: hidden;

    padding:
        54px
        0
        72px;
}


.dev-intro-container {
    position: relative;

    z-index: 2;
}


.dev-intro .section-label {
    margin-bottom: 38px;
}


/* =========================================================
   HOW WE WORK — NARRATIVE
   ========================================================= */

.intro-content {
    display: block;

    width: 100%;

    margin: 0;
    padding: 0;
}


.intro-narrative {
    display: block;

    width: 100%;
    max-width: 1100px;

    margin: 0;
    padding: 0;

    color: var(--text);

    font-size:
        clamp(
            1.3rem,
            1.5vw,
            1.6rem
        );

    font-weight: 400;

    line-height: 1.6;

    letter-spacing: -0.02em;
}


/* =========================================================
   PROCESS
   ========================================================= */

.process-container {
    position: relative;

    padding-bottom: 72px;
}


.process-heading {
    width: 100%;

    display: block;

    margin-bottom: 46px;
}


/* =========================================================
   PROCESS — TIMELINE
   ========================================================= */

.process-timeline {
    position: relative;

    width: 100%;

    display: flex;
    flex-direction: column;

    gap: 36px;

    padding:
        8px
        0
        12px;
}


.process-timeline::before {
    content: "";

    position: absolute;

    top: 78px;
    bottom: 78px;

    left: 50%;

    width: 1px;

    background:
        rgba(126, 110, 91, 0.18);

    transform:
        translateX(-50%);
}


/* =========================================================
   PROCESS — STEPS
   ========================================================= */

.process-step {
    position: relative;

    z-index: 2;

    width: 100%;

    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        100px
        minmax(0, 1fr);

    align-items: center;

    min-height: 205px;

    opacity: 0;

    transform:
        translateY(32px);

    transition:
        opacity
        0.65s
        ease,
        transform
        0.65s
        cubic-bezier(
            0.22,
            1,
            0.36,
            1
        );
}


.process-step.is-visible {
    opacity: 1;

    transform:
        translateY(0);
}


.process-step-left .process-card {
    grid-column: 1;
}


.process-step-left .process-connector {
    grid-column: 2;
}


.process-step-right .process-connector {
    grid-column: 2;
}


.process-step-right .process-card {
    grid-column: 3;
}


/* =========================================================
   PROCESS — CARDS
   ========================================================= */

.process-card {
    width: 100%;
    min-height: 200px;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    padding:
        30px
        32px;

    border:
        1px solid
        var(--border);

    background:
        rgba(250, 248, 242, 0.58);

    opacity: 0.78;

    transition:
        opacity
        0.45s
        ease,
        background
        0.45s
        ease,
        border-color
        0.45s
        ease,
        transform
        0.45s
        cubic-bezier(
            0.22,
            1,
            0.36,
            1
        );
}


.process-card-meta {
    display: flex;

    align-items: baseline;

    gap: 20px;

    margin-bottom: 30px;
}


.process-number {
    flex: 0 0 auto;

    color: var(--text-muted);

    font-size: 0.67rem;
    font-weight: 700;

    letter-spacing: 0.08em;

    transition:
        color
        0.4s
        ease;
}


.process-name {
    margin: 0;

    color: var(--text);

    font-size:
        clamp(
            2.25rem,
            2.7vw,
            3.25rem
        );

    font-weight: 500;

    line-height: 1;

    letter-spacing: -0.05em;
}


.process-card p {
    max-width: 480px;

    margin: 0;

    color: var(--text-soft);

    font-size: 0.9rem;

    line-height: 1.7;
}


/* =========================================================
   PROCESS — CONNECTORS
   ========================================================= */

.process-connector {
    position: relative;

    width: 100%;
    height: 1px;

    background:
        rgba(126, 110, 91, 0.18);

    transition:
        background
        0.45s
        ease;
}


.process-node {
    position: absolute;

    top: 50%;

    width: 10px;
    height: 10px;

    border-radius: 50%;

    background:
        rgba(126, 110, 91, 0.32);

    opacity: 0;

    transform:
        translateY(-50%)
        scale(0.4);

    transition:
        opacity
        0.35s
        ease,
        transform
        0.4s
        cubic-bezier(
            0.22,
            1,
            0.36,
            1
        ),
        background
        0.4s
        ease;
}


.process-step-left .process-node {
    right: -5px;
}


.process-step-right .process-node {
    left: -5px;
}


.process-step.is-visible .process-node {
    opacity: 1;

    transform:
        translateY(-50%)
        scale(1);
}


/* =========================================================
   PROCESS — HOVER
   ========================================================= */

.process-step:hover .process-card {
    opacity: 1;

    background:
        rgba(250, 248, 242, 0.96);

    border-color:
        rgba(153, 115, 81, 0.44);

    transform:
        translateY(-2px);
}


.process-step:hover .process-number {
    color: var(--accent);
}


.process-step:hover .process-connector {
    background:
        rgba(153, 115, 81, 0.68);
}


.process-step:hover .process-node {
    opacity: 1;

    background: var(--accent);

    transform:
        translateY(-50%)
        scale(1.18);
}


/* =========================================================
   PROCESS — CONTINUATION
   ========================================================= */

.process-continuation {
    display: none;
}


/* =========================================================
   TOOLS / STACK
   ========================================================= */

.stack-container {
    position: relative;

    padding-bottom: 72px;
}


.stack-heading {
    width: 100%;

    display: flex;

    align-items: flex-end;
    justify-content: space-between;

    gap: 40px;

    margin-bottom: 46px;
}


.stack-heading-copy .section-label {
    margin-bottom: 20px;
}


.stack-heading-copy p {
    max-width: 520px;

    margin: 0;

    color: var(--text-soft);

    font-size: 0.95rem;

    line-height: 1.7;
}


/* =========================================================
   STACK — CONTROLS
   ========================================================= */

.stack-controls {
    flex: 0 0 auto;

    display: flex;

    gap: 8px;
}


.stack-control {
    width: 44px;
    height: 44px;

    display: flex;

    align-items: center;
    justify-content: center;

    border:
        1px solid
        var(--border);

    background: transparent;

    color: var(--text);

    font: inherit;

    cursor: pointer;

    transition:
        background
        var(--transition),
        border-color
        var(--transition),
        color
        var(--transition);
}


.stack-control:hover {
    background:
        rgba(203, 181, 151, 0.12);

    border-color:
        var(--border-strong);

    color: var(--accent);
}


/* =========================================================
   STACK — REEL
   ========================================================= */

.stack-reel {
    width: 100%;

    overflow: hidden;

    touch-action: pan-y;
}


.stack-track {
    display: flex;

    gap: 16px;

    width: max-content;

    transition:
        transform
        0.55s
        cubic-bezier(
            0.22,
            1,
            0.36,
            1
        );

    will-change: transform;
}


.stack-card {
    flex:
        0
        0
        auto;

    min-height: 260px;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    padding:
        27px
        28px
        28px;

    border:
        1px solid
        var(--border);

    background:
        rgba(250, 248, 242, 0.48);

    transition:
        background
        var(--transition),
        border-color
        var(--transition),
        transform
        var(--transition);
}


.stack-card:hover {
    background:
        rgba(250, 248, 242, 0.9);

    border-color:
        var(--border-strong);

    transform:
        translateY(-3px);
}


.stack-card-title {
    color: var(--text-muted);

    font-size: 0.67rem;
    font-weight: 700;

    letter-spacing: 0.1em;

    text-transform: uppercase;
}


.stack-items {
    display: flex;
    flex-direction: column;

    gap: 7px;
}


.stack-items span {
    color: var(--text);

    font-size:
        clamp(
            1.2rem,
            1.4vw,
            1.55rem
        );

    font-weight: 500;

    line-height: 1.15;

    letter-spacing: -0.03em;

    overflow-wrap: break-word;
}


/* =========================================================
   BEHIND KEIZOKU
   ========================================================= */

.behind-container {
    position: relative;

    padding-bottom: 72px;
}


.behind-section .section-label {
    margin-bottom: 46px;
}


.behind-content {
    width: 100%;

    display: grid;

    grid-template-columns:
        minmax(260px, 0.72fr)
        minmax(0, 1.28fr);

    gap:
        clamp(
            70px,
            8vw,
            130px
        );

    align-items: start;
}


/* =========================================================
   BEHIND KEIZOKU — IDENTITY
   ========================================================= */

.behind-identity {
    width: 100%;
}


.behind-name {
    position: relative;

    display: inline-block;
}


.behind-brand-mark {
    position: absolute;

    top: 50%;
    left: 50%;

    z-index: 0;

    width: 320px;
    height: auto;

    opacity: 0.08;

    transform:
        translate(
            -50%,
            -50%
        );

    pointer-events: none;
}


.behind-identity h2 {
    position: relative;

    z-index: 1;

    margin: 0;

    color: var(--text);

    font-size:
        clamp(
            2.5rem,
            3.25vw,
            3.7rem
        );

    font-weight: 500;

    line-height: 1;

    letter-spacing: -0.05em;
}


.behind-role {
    display: block;

    margin-top: 15px;

    color: var(--text-muted);

    font-size: 0.68rem;
    font-weight: 700;

    letter-spacing: 0.1em;

    text-transform: uppercase;
}


/* =========================================================
   BEHIND KEIZOKU — STORY
   ========================================================= */

.behind-story {
    width: 100%;
    max-width: 760px;
}


.behind-story p {
    margin: 0;

    color: var(--text);

    font-size:
        clamp(
            1rem,
            1.08vw,
            1.1rem
        );

    line-height: 1.75;
}


.behind-story p + p {
    margin-top: 20px;

    color: var(--text-soft);
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1000px) {

    .section-divider {
        margin-bottom: 42px;
    }


    /* ---------- AMBIENT CIRCLES ---------- */

    .about-circle-one {
        width: 440px;
        height: 440px;

        right: -190px;
    }


    .about-circle-two {
        width: 290px;
        height: 290px;

        left: -145px;
    }


    /* ---------- HOW WE WORK ---------- */

    .dev-intro {
        padding:
            48px
            0
            65px;
    }


    .dev-intro .section-label {
        margin-bottom: 34px;
    }


    .intro-narrative {
        max-width: 850px;
    }


    /* ---------- PROCESS ---------- */

    .process-container {
        padding-bottom: 65px;
    }


    .process-heading {
        margin-bottom: 40px;
    }


    .process-timeline {
        gap: 32px;
    }


    .process-step {
        grid-template-columns:
            minmax(0, 1fr)
            70px
            minmax(0, 1fr);

        min-height: 195px;
    }


    .process-card {
        min-height: 190px;

        padding:
            28px
            27px;
    }


    /* ---------- STACK ---------- */

    .stack-container {
        padding-bottom: 65px;
    }


    .stack-heading {
        margin-bottom: 40px;
    }


    .stack-card {
        min-height: 250px;
    }


    /* ---------- BEHIND ---------- */

    .behind-container {
        padding-bottom: 65px;
    }


    .behind-section .section-label {
        margin-bottom: 40px;
    }


    .behind-content {
        grid-template-columns:
            0.72fr
            1.28fr;

        gap: 55px;
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 700px) {

    .section-divider {
        margin-bottom: 36px;
    }


    /* ---------- AMBIENT CIRCLES ---------- */

    .about-circle-one {
        width: 360px;
        height: 360px;

        top: 120px;
        right: -190px;
    }


    .about-circle-two {
        width: 190px;
        height: 190px;

        top: 60%;
        left: -95px;
    }


    /* ---------- HOW WE WORK ---------- */

    .dev-intro {
        padding:
            38px
            0
            55px;
    }


    .dev-intro .section-label {
        margin-bottom: 28px;
    }


    .intro-narrative {
        width: 100%;
        max-width: none;

        font-size: 1.1rem;

        line-height: 1.65;
    }


    /* ---------- PROCESS ---------- */

    .process-container {
        padding-bottom: 55px;
    }


    .process-heading {
        margin-bottom: 32px;
    }


    .process-timeline {
        gap: 22px;

        padding:
            0
            0
            0
            34px;
    }


    .process-timeline::before {
        top: 45px;
        bottom: 45px;

        left: 10px;

        transform: none;
    }


    .process-step {
        display: block;

        min-height: 0;

        transform:
            translateY(26px);
    }


    .process-card {
        min-height: 190px;

        padding:
            25px
            23px;
    }


    .process-card-meta {
        margin-bottom: 26px;
    }


    .process-name {
        font-size:
            clamp(
                2.25rem,
                11vw,
                3rem
            );
    }


    .process-connector {
        position: absolute;

        top: 50%;
        left: -24px;

        width: 24px;
    }


    .process-step-left .process-node,
    .process-step-right .process-node {
        right: auto;
        left: -5px;
    }


    /* ---------- STACK ---------- */

    .stack-container {
        padding-bottom: 55px;
    }


    .stack-heading {
        gap: 20px;

        margin-bottom: 32px;
    }


    .stack-heading-copy .section-label {
        margin-bottom: 16px;
    }


    .stack-heading-copy p {
        font-size: 0.9rem;
    }


    .stack-control {
        width: 42px;
        height: 42px;
    }


    .stack-card {
        min-height: 245px;

        padding: 24px;
    }


    /* ---------- BEHIND ---------- */

    .behind-container {
        padding-bottom: 55px;
    }


    .behind-section .section-label {
        margin-bottom: 32px;
    }


    .behind-content {
        display: block;
    }


    .behind-identity {
        margin-bottom: 30px;
    }


    .behind-brand-mark {
        width: 260px;
    }


    .behind-identity h2 {
        font-size:
            clamp(
                2.6rem,
                12vw,
                3.7rem
            );
    }


    .behind-story {
        max-width: none;
    }


    .behind-story p {
        font-size: 1rem;
    }


    .behind-story p + p {
        margin-top: 18px;
    }

}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .process-step {
        opacity: 1;

        transform: none;

        transition: none;
    }


    .process-node,
    .process-card,
    .process-connector,
    .stack-track {
        transition: none;
    }

}