body {
    margin-top: 0;
}

h1 {
    margin-top: -10px;
    margin-bottom: 0;
}

h3 {
    margin: 2px 0;
}

.content p {
    font-size: 16px;
    line-height: 1.7;
}

section {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 5px;
}

iframe {
    width: 100%;
    height: 100%;
    aspect-ratio: 16/9;
    object-fit: contain;
}

.hero-image {
    width: 100%;
    height: 74vh;
    object-fit: cover;
}


.content {
    width: max(60vw, 900px);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 100px;
    margin: 60px auto;
}

.project-wide-image {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 10px;
    margin-top: 5px;
}

.project-header-container {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
}

.tag {
    font-size: 16px;
    letter-spacing: 1px;
    /* color: var(--color-background);
    background-color: var(--color-foreground); */
    color: var(--color-foreground);
    background-color: var(--color-primary-light);
    margin-bottom: 10px;
    padding: 2px 10px;
    display: inline-block;
    /* border-radius: 5px; */
}

.content-wide {
    width: 100%;
    max-width: 100%;
    height: auto;
    object-fit: cover;
}

.button-container {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: relative;
}

.button-container .qrcode-image {
    position: absolute;
    bottom: 100%;
    left: 0;
    margin-bottom: 15px;
    width: 200px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    transform: translateY(10px);
    z-index: 1000;
    border-radius: 8px;
    /* box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); */
}

.button-container:hover .qrcode-image {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.button-container img:not(.qrcode-image) {
    width: 100%;
}

.button {
    width: 100%;
}

.button-container .button {
    width: 200px;
}

.key-info {
    display: flex;
    flex-direction: row;
    width: 100%;
    justify-content: space-between;
    /* background-color: var(--color-primary-light); */
    padding: 20px 0px;
    border-bottom: 2px solid var(--color-foreground);
    border-top: 2px solid var(--color-foreground);

}

.key-info-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 24%;
}

.key-info-item h3 {
    font-family: 'ArchivoBlack', sans-serif;
    margin-bottom: 0px;
}

.key-info-item p {
    font-size: 16px;
    font-weight: 400;
    color: var(--color-foreground);
}

section h2 {
    font-size: 24px;
}


.overview-container {
    display: flex;
    flex-direction: row;

    align-items: flex-start;
    justify-content: space-between;
    gap: 40px;
    width: 100%;
}

.overview-accomplishments {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.overview-content-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.overview-card-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 20px;
    width: 100%;
}

.overview-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 40%;
    padding: 20px;
}

.overview-card p {
    color: var(--color-gray);
}

.overview-image-container {
    display: block;
}

.overview-image-container video {
    /* width: 100%; */
    min-width: 200px;
    max-width: 100%;
    height: 100%;
    max-height: 600px;
    /* object-fit: cover; */
}

.overview-card-title {
    display: flex;
    flex-direction: row;
    gap: 10px;
    align-items: center;
    justify-content: flex-start;
}

.overview-card h4 {
    font-family: 'ArchivoBlack', sans-serif;
    font-size: 20px;
    margin: 0;
    color: var(--color-foreground);

}

.overview-container img {
    width: 300px;
}



.problem-statement-container {
    width: 100%;

}

.problem-statement {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px 30px;
    border-radius: 10px;
}

.problem-statement h3 {
    font-size: 21px;
}

.problem-research-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    width: 100%;
    margin-top: 30px;
}

.problem-research-item-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.problem-research-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-left: 20px;
}

.problem-research-image-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    border-radius: 10px;
}

.problem-research-container img {
    width: 90%;
    height: auto;
    object-fit: cover;
    margin-top: 0px;
}

.problem-research-item h3 {
    font-size: 20px;
    font-weight: 600;
}

/* ===== Analysis System ===== */

/* Hide legacy tags/legend */
.analysis-tag,
.analysis-tag-bad,
.analysis-tag-good,
.analysis-legend {
    display: none;
}

/* Base item — no boxes, just clean rows */
.analysis-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 14px 0;
    border-bottom: 1px solid #f0f0f0;
    background: none;
    border-left: none;
    border-radius: 0;
}

.analysis-item:last-child {
    border-bottom: none;
}

.analysis-item-bad,
.analysis-item-good {
    background: none;
    border-left: none;
}

/* Colored dot injected before the title */
.analysis-item h3 {
    font-size: 15px;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--color-foreground);
}

.analysis-item h3::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.analysis-item-bad h3::before {
    background-color: #D94228;
}

.analysis-item-good h3::before {
    background-color: #2A6EDB;
}

.analysis-item p {
    font-size: 14px;
    line-height: 1.6;
    color: var(--color-gray);
    margin: 0;
    padding-left: 17px;
}

/* ===== Analysis Block Layout ===== */
.analysis-block {
    width: 100%;
    margin-top: 20px;
}

/* Screenshots row */
.analysis-images {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    width: 100%;
    margin-bottom: 28px;
}

.analysis-images.single {
    grid-template-columns: 1fr;
}

.analysis-images img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    display: block;
}

.analysis-images.single img {
    height: auto;
}

/* Two-column good / bad — separated by a thin line */
.analysis-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    width: 100%;
}

.analysis-col {
    display: flex;
    flex-direction: column;
}

.analysis-col-good {
    padding-right: 36px;
    border-right: 1px solid #e8e8e8;
}

.analysis-col-bad {
    padding-left: 36px;
}

.analysis-col-header {
    padding-bottom: 10px;
    margin-bottom: 2px;
    border-bottom: none;
}

.analysis-col-label {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.analysis-col-good > .analysis-col-header > .analysis-col-label {
    color: #2A6EDB;
}

.analysis-col-bad > .analysis-col-header > .analysis-col-label {
    color: #D94228;
}

/* All-bad grid */
.analysis-items-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0 48px;
    width: 100%;
}

/* Override any inherited padding inside layouts */
.analysis-columns .analysis-item,
.analysis-items-grid .analysis-item {
    background: none;
    border-left: none;
    border-radius: 0;
    padding: 14px 0;
}

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

    .analysis-col-good {
        padding-right: 0;
        border-right: none;
        border-bottom: 1px solid #e8e8e8;
        padding-bottom: 24px;
        margin-bottom: 24px;
    }

    .analysis-col-bad {
        padding-left: 0;
    }

    .analysis-images {
        grid-template-columns: 1fr;
    }

    .analysis-images img,
    .analysis-images.single img {
        height: auto;
    }
}

.process-section {
    width: 100%;
}

.process-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(260px, 0.9fr);
    gap: 20px;
    width: 100%;
    align-items: start;
    margin-top: 20px;
}

.process-figma img,
.process-supporting-images img {
    width: 100%;
    height: auto;
    display: block;
}

.process-supporting-images {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

.visual-design-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    width: 100%;
}

.visual-design-container h2 {
    margin-bottom: 10px;
}

.visual-design-container.mbti {
    align-items: center;
    margin-top: 30px;
    gap: 30px
}

.visual-design-container img {
    width: 100%;
}

.notes-container {
    width: calc(100% - 40px);
    padding: 20px;
    border-radius: 10px;
}


.features-container-two video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* .features-container-wrapper{
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    width: 100%;
} */

.features-container-wrapper {
    display: flex;
    flex-direction: column;
    gap: 40px;
    width: 100%;
}

.features-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 32px;
    width: 100%;
}

.features-container-two {
    display: flex;
    flex-direction: row;
    gap: 20px;
    width: 100%;
}



.feature-description {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: min(320px, 100%);
    flex-shrink: 0;
}

.feature-description h3,
.feature-description p {
    margin: 0;
}

.feature-description p {
    color: var(--color-gray);
    line-height: 1.5;
}

.feature-description .feature-reasoning-list {
    margin: 18px 0 0;
    padding-left: 20px;
}

.feature-description .feature-reasoning {
    font-size: 0.95rem;
    color: #5d5d5d;
    line-height: 1.5;
}

.feature-description .feature-reasoning-label {
    color: var(--color-foreground);
    font-weight: 600;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.feature-description .feature-reasoning-list li:first-child {
    list-style: none;
    margin-left: -20px;
    margin-bottom: 4px;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    gap: 6px;
    box-sizing: border-box;
}


#feature2 {
    background: linear-gradient(150deg, #FFEB99, #BBF6C6);
}

#feature4 {
    background: linear-gradient(150deg, #BBF6C6, #B2F5F5);
}

#feature5 {
    background: linear-gradient(150deg, #B2F5F5, #A8DAFF);
}

#feature6 {
    background: linear-gradient(150deg, #A8DAFF, #D4BDFF);
}

.feature-item img {
    width: min(100%, 620px);
    height: auto;
}

.feature-item video {
    width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
}

.two-column-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    width: 100%;
}
.two-column-container img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.one-column-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}
.one-column-container img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Impact section */
.impact-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
    margin-top: 15px;
}

.impact-badge {
    display: inline-block;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.impact-badge:hover {
    opacity: 0.85;
    transform: translateY(-2px);
}

.impact-badge img {
    height: 54px;
    width: auto;
    object-fit: contain;
    display: block;
}

.impact-embed {
    width: 100%;
    max-width: 250px;
    margin-top: 20px;
}

.impact-embed iframe {
    aspect-ratio: auto;
    height: 52px;
}

/* Impact feedback comments — scattered notes */
.impact-feedback {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 22px;
    width: 100%;
    margin-top: 24px;
}

.impact-feedback-item {
    width: 220px;
    flex-shrink: 0;
    overflow: hidden;
    transform: rotate(-1.8deg);
}

.impact-feedback-item:nth-child(2) { transform: rotate(1.2deg);  }
.impact-feedback-item:nth-child(3) { transform: rotate(-0.8deg); }
.impact-feedback-item:nth-child(4) { transform: rotate(2deg);    }
.impact-feedback-item:nth-child(5) { transform: rotate(-1.5deg); }
.impact-feedback-item:nth-child(6) { transform: rotate(0.9deg);  }
.impact-feedback-item:nth-child(7) { transform: rotate(-2.2deg); }
.impact-feedback-item:nth-child(8) { transform: rotate(1.6deg);  }

.impact-feedback-item img {
    width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 768px) {
    .impact-feedback-item {
        width: 160px;
    }
}

.next-project-section {
    margin-top: 80px;
    /* padding-top: 60px; */
    /* border-top: 2px solid var(--color-foreground); */
    width: 100%;
}

.next-projects-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    width: 100%;
}

.next-project-card {
    display: flex;
    flex-direction: column;
    gap: 20px;
    cursor: pointer;
    transition: transform 0.3s ease;
}


.next-project-card .next-project-image {
    width: 100%;
    overflow: hidden;
    /* border-radius: 8px; */
}

.next-project-card .next-project-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.next-project-card .next-project-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.next-project-card .next-project-content h2 {
    font-family: 'ArchivoBlack', sans-serif;
    font-size: 24px;
    margin: 0;
    color: var(--color-foreground);
}

.next-project-card .next-project-content p {
    font-size: 16px;
    line-height: 1.6;
    color: var(--color-gray);
    margin: 0;
}

/* Interview quote cards */
.interview-quotes-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    width: 100%;
    margin-top: 28px;
}

.interview-quote-card {
    background-color: #f6f1ff;
    border-radius: 12px;
    padding: 28px 24px 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.interview-quote-mark {
    font-size: 48px;
    line-height: 1;
    color: #9B7FD4;
    font-family: Georgia, serif;
    margin-bottom: -8px;
}

.interview-quote-card p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--color-foreground);
    margin: 0;
    flex: 1;
}

.interview-quote-author {
    font-size: 13px;
    color: #9B7FD4;
    font-weight: 600;
    letter-spacing: 0.03em;
    margin-top: 4px;
}

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

.interview-insights-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 40px;
}

.interview-insight-card {
    background-color: #f8f8f8;
    border-radius: 12px;
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.interview-insight-card h4 {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--color-gray);
    margin: 0;
}

.interview-insight-card p {
    font-size: 15px;
    line-height: 1.7;
    color: var(--color-black);
    margin: 0;
}

.interview-insight-card ul {
    margin: 0;
    padding-left: 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.interview-insight-card ul li {
    font-size: 15px;
    line-height: 1.6;
    color: var(--color-black);
}

.full-width-images {
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin: 20px 0;
}

.full-width-images img {
    width: 100%;
    height: auto;
    display: block;
    /* border-radius: 16px; */
}

/* ── Project side navigation ─────────────────────────────── */

@keyframes sidenav-dot-pop {
    0%   { transform: scale(1); }
    45%  { transform: scale(2.2); }
    70%  { transform: scale(1.4); }
    100% { transform: scale(1.6); }
}

.project-sidenav {
    position: absolute;
    left: 28px;
    top: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    z-index: 200;
}

/* vertical track line — leftmost element */
.project-sidenav-track {
    display: none;
}

.project-sidenav-progress {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 0%;
    background: var(--color-foreground);
    transition: height 0.45s cubic-bezier(0.4, 0, 0.2, 1);
}

/* each row: dot then label */
.project-sidenav-item {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    cursor: pointer;
    text-decoration: none;
}

/* dot sits on top of the track line */
.project-sidenav-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    border: 1.5px solid var(--color-gray-light);
    background: transparent;
    flex-shrink: 0;
    position: relative;
    z-index: 1;
    transition: background 0.2s ease,
                border-color 0.25s ease,
                transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* label always visible in grey */
.project-sidenav-label {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    color: var(--color-gray-light);
    white-space: nowrap;
    transition: color 0.2s ease;
}

/* active */
.project-sidenav-item.active .project-sidenav-dot {
    background: var(--color-foreground);
    border-color: var(--color-foreground);
    animation: sidenav-dot-pop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.project-sidenav-item.active .project-sidenav-label {
    color: var(--color-foreground);
}

/* hover */
.project-sidenav-item:hover .project-sidenav-dot {
    border-color: var(--color-foreground);
}

.project-sidenav-item:hover .project-sidenav-label {
    color: var(--color-foreground);
}

@media (max-width: 1200px) {
    .project-sidenav {
        display: none;
    }
}

/* ─────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
    .content {
        width: calc(100vw - 2 * var(--margin-x));
        max-width: 900px;
        gap: 60px;
    }

    .hero-image {
        height: 50vh;
    }

    .project-header-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .key-info {
        flex-direction: column;
        gap: 20px;
    }

    .key-info-item {
        width: 100%;
    }

    .overview-container {
        flex-direction: column;
    }

    .overview-container img {
        width: 100%;
    }

    .overview-card-container {
        flex-direction: column;
    }

    .overview-card {
        width: calc(100% - 40px);
    }

    .problem-research-container {
        grid-template-columns: 1fr;
    }

    .visual-design-container {
        grid-template-columns: 1fr;
    }

    .two-column-container {
        grid-template-columns: 1fr;
    }

    .features-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .features-container-two {
        flex-direction: column;
    }

    .feature-item {
        min-height: auto;
        padding: 20px;
    }

    .feature-description {
        width: 100%;
    }

    .next-projects-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

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

    .next-project-card .next-project-content h2 {
        font-size: 24px;
    }

    .interview-insights-container {
        grid-template-columns: 1fr;
    }

    .notes-container {
        width: calc(100% - 40px);
    }

    .button-container .button {
        width: 100%;
    }
}