:root {
    --ink: #111111;
    --muted: #5f635f;
    --paper: #f7f6f1;
    --paper-alt: #eef3ed;
    --paper-warm: #fbfaf5;
    --surface: #ffffff;
    --surface-soft: rgba(255, 255, 255, 0.76);
    --surface-green: rgba(47, 111, 78, 0.08);
    --line-soft: rgba(17, 17, 17, 0.09);
    --shadow-soft: 0 18px 44px rgba(31, 40, 34, 0.08);
    --green: #2f6f4e;
    --blue: #246b9f;
    --yellow: #f0b84a;
    --coral: #e86f5d;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
}

img {
    display: block;
    max-width: 100%;
}

.commute-page {
    min-height: 100vh;
    background:
        linear-gradient(180deg, #f7f6f1 0%, #ffffff 46%, #eff4f0 100%);
}

.commute-section {
    position: relative;
    min-height: 100vh;
    min-height: 100dvh;
    display: grid;
    align-items: center;
    padding: 88px 24px;
    border-top: 1px solid var(--line-soft);
    background: var(--paper-warm);
}

.commute-section::before {
    content: attr(data-section);
    position: absolute;
    top: 34px;
    left: max(24px, calc((100vw - 1120px) / 2));
    color: rgba(17, 17, 17, 0.22);
    font-size: 12px;
    line-height: 1;
    letter-spacing: 0.08em;
}

.commute-section:nth-of-type(2)::before {
    content: "01 / Problem";
}

.commute-section:nth-of-type(3)::before {
    content: "02 / Research";
}

.commute-section:nth-of-type(4)::before {
    content: "03 / Progress";
}

.commute-section--alt {
    background:
        linear-gradient(180deg, rgba(47, 111, 78, 0.05), rgba(255, 255, 255, 0)),
        var(--paper-alt);
}

.commute-section--loading {
    min-height: 72vh;
    min-height: 72dvh;
    background: #ffffff;
}

.commute-inner {
    width: min(1120px, 100%);
    margin: 0 auto;
}

.commute-eyebrow {
    margin: 0 0 12px;
    color: var(--green);
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
    text-transform: uppercase;
}

.commute-hero {
    min-height: 100vh;
    min-height: 100dvh;
    display: grid;
    align-items: center;
    padding: 56px 24px 72px;
    background:
        linear-gradient(110deg, rgba(47, 111, 78, 0.10), transparent 54%),
        linear-gradient(180deg, #f7f6f1 0%, #ffffff 100%);
    border-bottom: 1px solid var(--line-soft);
}

.commute-hero__grid {
    width: min(1240px, 100%);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 34px;
    align-items: center;
}

.commute-hero__grid > div {
    width: min(1040px, 100%);
}

.commute-hero h1 {
    max-width: 980px;
    margin: 0;
    font-size: 84px;
    line-height: 1.06;
}

.commute-hero__lead {
    max-width: 840px;
    margin: 24px 0 0;
    color: var(--muted);
    font-size: 19px;
    line-height: 1.8;
}

.commute-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    width: min(880px, 100%);
    margin-top: 44px;
}

.commute-meta article,
.commute-card {
    border-radius: 8px;
    background: var(--surface-soft);
    box-shadow: var(--shadow-soft);
}

.commute-meta article {
    padding: 18px;
}

.commute-meta span,
.metric-strip span,
.timeline-step span {
    display: block;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.4;
}

.commute-meta strong {
    display: block;
    font-size: 15px;
    line-height: 1.5;
}

.phone-mockup {
    width: min(390px, 100%);
    margin-left: auto;
    padding: 16px;
    border-radius: 34px;
    background: #161b1b;
    box-shadow: 0 28px 80px rgba(31, 40, 34, 0.22);
}

.phone-screen {
    min-height: 660px;
    overflow: hidden;
    border-radius: 24px;
    background: #fbfaf5;
}

.phone-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    color: #ffffff;
    background: var(--green);
}

.phone-top strong {
    font-size: 18px;
}

.route-card {
    margin: 20px;
    padding: 18px;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 12px 28px rgba(31, 40, 34, 0.08);
}

.route-line {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr) auto;
    gap: 12px;
    align-items: center;
    padding: 12px 0;
}

.route-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: var(--yellow);
}

.route-dot--blue {
    background: var(--blue);
}

.route-dot--coral {
    background: var(--coral);
}

.phone-status {
    margin: 20px;
    padding: 18px;
    border-radius: 8px;
    color: #ffffff;
    background: #1c2b2a;
    box-shadow: 0 14px 32px rgba(31, 40, 34, 0.18);
}

.phone-status h3,
.route-card h3 {
    margin: 0 0 14px;
    color: inherit;
    font-size: 18px;
}

.phone-status p,
.route-card p {
    margin: 0;
    color: inherit;
    font-size: 14px;
    line-height: 1.6;
}

.commute-heading {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(300px, 1.1fr);
    gap: 48px;
    align-items: start;
    margin-bottom: 42px;
}

.commute-heading h2 {
    margin: 0;
    font-size: 42px;
    line-height: 1.16;
}

.commute-heading p {
    margin: 0;
    color: var(--muted);
    font-size: 17px;
    line-height: 1.8;
}

.metric-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.metric-strip article {
    min-height: 170px;
    padding: 22px;
    border-radius: 8px;
    background: var(--surface-soft);
    border: 1px solid rgba(255, 255, 255, 0.72);
    box-shadow: var(--shadow-soft);
}

.metric-strip strong {
    display: block;
    margin-bottom: 14px;
    font-size: 24px;
    line-height: 1.25;
}

.metric-strip p,
.commute-card p,
.timeline-step p,
.reflection-list p {
    margin: 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.75;
}

.commute-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.commute-card {
    min-height: 210px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.72);
}

.commute-card:not(.commute-card--green):not(.commute-card--blue):nth-child(2n) {
    background: var(--surface-green);
}

.commute-card h3 {
    margin: 0 0 12px;
    color: var(--ink);
    font-size: 20px;
    line-height: 1.35;
}

.commute-card--green {
    color: #ffffff;
    background: var(--green);
}

.commute-card--green h3,
.commute-card--green p,
.commute-card--blue h3,
.commute-card--blue p {
    color: #ffffff;
}

.commute-card--blue {
    color: #ffffff;
    background: var(--blue);
}

.timeline {
    display: grid;
    gap: 14px;
}

.timeline-step {
    display: grid;
    grid-template-columns: 160px minmax(0, 1fr);
    gap: 24px;
    padding: 22px;
    border-radius: 8px;
    background: var(--surface-soft);
    box-shadow: var(--shadow-soft);
}

.timeline-step h3 {
    margin: 0;
    color: var(--ink);
    font-size: 18px;
}

.showcase-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 18px;
    align-items: stretch;
}

.showcase-panel {
    min-height: 420px;
    padding: 24px;
    border-radius: 8px;
    background: var(--surface-soft);
    box-shadow: var(--shadow-soft);
}

.showcase-panel h3 {
    margin: 0 0 12px;
    color: var(--ink);
    font-size: 22px;
}

.screen-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    height: 100%;
}

.screen-placeholder {
    min-height: 390px;
    display: grid;
    place-items: center;
    padding: 18px;
    border-radius: 8px;
    background:
        linear-gradient(180deg, rgba(47, 111, 78, 0.08), rgba(36, 107, 159, 0.08)),
        #ffffff;
    box-shadow: var(--shadow-soft);
    color: var(--muted);
    text-align: center;
    font-size: 14px;
    line-height: 1.6;
}

.reflection-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.reflection-list article {
    padding: 28px;
    border-radius: 8px;
    background: var(--surface-soft);
    box-shadow: var(--shadow-soft);
}

.reflection-list h3 {
    margin: 0 0 12px;
    color: var(--ink);
    font-size: 22px;
}

@media (max-width: 900px) {
    .commute-section {
        min-height: auto;
        display: block;
        padding: 64px 20px;
    }

    .commute-section::before {
        position: static;
        display: block;
        margin-bottom: 28px;
    }

    .commute-hero {
        min-height: auto;
        padding-top: 40px;
    }

    .commute-hero__grid,
    .commute-heading,
    .showcase-grid {
        grid-template-columns: 1fr;
    }

    .commute-hero h1 {
        font-size: 52px;
        max-width: 760px;
    }

    .commute-hero__lead {
        max-width: 680px;
    }

    .phone-mockup {
        margin: 0 auto;
    }

    .metric-strip,
    .commute-grid,
    .reflection-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .commute-hero h1 {
        font-size: 40px;
        line-height: 1.12;
    }

    .commute-hero__lead,
    .commute-heading p {
        font-size: 16px;
    }

    .commute-meta,
    .metric-strip,
    .commute-grid,
    .timeline-step,
    .screen-grid,
    .reflection-list {
        grid-template-columns: 1fr;
    }

    .phone-screen {
        min-height: 560px;
    }

    .commute-heading h2 {
        font-size: 32px;
    }
}
