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


.proj-hero {
    padding: 5rem 0 3.5rem;
    position: relative;
}

.proj-hero::after {
    content: '';
    display: block;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(720px, calc(100% - 4rem));
    height: 1px;
    background-color: var(--border);
    transition: background-color 0.3s ease;
}

/* Back link */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    transition: color 0.2s;
}

.back-link:hover { color: var(--text); }

.back-link svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Next project */
.next-project {
    padding: 3rem 0;
    position: relative;
}

.next-project::before {
    content: '';
    display: block;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(720px, calc(100% - 4rem));
    height: 1px;
    background-color: var(--border);
    transition: background-color 0.3s ease;
}

.next-project .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.next-label {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
}

.next-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text);
    letter-spacing: -0.015em;
    transition: color 0.2s;
}

.next-project a:hover .next-title {
    color: var(--text-secondary);
}

.proj-meta-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.proj-year {
    font-size: 0.8rem;
    color: var(--text-muted);
}

.proj-title {
    font-size: clamp(2.25rem, 5vw, 3.5rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.proj-subtitle {
    font-size: 1.1rem;
    font-weight: 400;
    color: var(--text-secondary);
    letter-spacing: -0.01em;
    margin-bottom: 1.25rem;
}

.proj-tagline {
    font-size: 1.1rem;
    color: var(--text-secondary);
    max-width: 620px;
    line-height: 1.75;
    margin-bottom: 3rem;
}

.proj-overview-grid {
    display: flex;
    gap: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--border);
}

.proj-overview-item {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.proj-overview-label {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: 100%;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: var(--text-muted, #A8A096);
}

.proj-overview-value {
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--text);
}

/* Cover image */
.proj-cover {
    padding-bottom: 4rem;
}

.proj-cover-img {
    width: 100%;
}

.proj-cover-gif {
    width: 100%;
    max-width: 680px;
    height: auto;
    display: block;
}

/* Sections */
.proj-section {
    padding: 4rem 0;
    position: relative;
}

.proj-section::before {
    content: '';
    display: block;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(720px, calc(100% - 4rem));
    height: 1px;
    background-color: var(--border);
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.proj-content {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.proj-content-wide {
    max-width: none;
}

.proj-section-label {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: 100%;
    letter-spacing: 1.6px;
    text-transform: uppercase;
    color: var(--text-muted, #A8A096);
}

/* Text */
.proj-text-block {
    max-width: 680px;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.proj-text-block p {
    font-size: 1rem;
    color: var(--text-body);
    line-height: 1.85;
}

.proj-subheading {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.25rem;
}

.proj-list {
    padding-left: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.proj-list li {
    font-size: 1rem;
    color: var(--text-body);
    line-height: 1.7;
}

/* Stats row */
.proj-stat-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.proj-stat {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.proj-stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.02em;
}

.proj-stat-label {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.5;
}

/* Quotes */
.proj-quote {
    font-size: 1rem;
    font-style: italic;
    color: var(--text);
    line-height: 1.7;
}

.proj-quote-translation {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.proj-quote-source {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    text-transform: uppercase;
}

/* Image placeholders */
.proj-img-placeholder {
    width: 100%;
    aspect-ratio: 16 / 8;
    background-color: var(--placeholder);
    border-radius: 6px;
    transition: background-color 0.3s ease;
}

/* Findings grid */
.proj-findings-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.25rem;
}

.proj-finding-card {
    background-color: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 1.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.proj-finding-number {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--text-muted);
}

.proj-finding-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
}

.proj-finding-card p {
    font-size: 0.875rem;
    color: var(--text-secondary);
    line-height: 1.75;
}

/* ===========================
   TWO-COLUMN PROJECT LAYOUT
=========================== */

.proj-layout {
    display: grid;
    grid-template-columns: 200px 1fr 200px;
    align-items: start;
    padding: 0 5vw;
    gap: 3rem;
}

.proj-main {
    min-width: 0;
}

.proj-main .container {
    padding: 0;
    max-width: 760px;
    margin: 0;
}

/* ===========================
   SIDE NAV
=========================== */

.proj-side-nav {
    position: sticky;
    top: 5rem;
    padding: 3.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    z-index: 50;
}

.snav-back {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 1.25rem;
    transition: color 0.2s;
    display: block;
}

.snav-back:hover {
    color: var(--text);
}

.proj-side-nav a:not(.snav-back) {
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--text-muted);
    transition: color 0.2s;
    padding: 0.2rem 0;
    display: block;
}

.proj-side-nav a:not(.snav-back):hover,
.proj-side-nav a:not(.snav-back).active {
    color: var(--text);
}

.proj-side-nav a:not(.snav-back).active {
    font-weight: 600;
}

@media (max-width: 1200px) {
    .proj-side-nav { display: none; }
    .proj-layout {
        display: block;
        padding: 0 6vw;
    }
    .proj-main .container {
        max-width: none;
    }
}

@media (max-width: 767px) {
    .proj-layout { padding: 0 5vw; }
}

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

.about-page-grid {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 4rem;
    align-items: start;
}

.about-page-image {
    width: 100%;
}

.about-timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.about-timeline-item {
    display: grid;
    grid-template-columns: 160px 1fr;
    gap: 2rem;
    padding: 2rem 0;
    border-bottom: 1px solid var(--border);
}

.about-timeline-item:first-child {
    padding-top: 0;
}

.about-timeline-period {
    font-size: 0.78rem;
    color: var(--text-muted);
    padding-top: 0.2rem;
    white-space: nowrap;
}

.about-timeline-role {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 0.2rem;
}

.about-timeline-company {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-bottom: 0.75rem;
}

.about-timeline-desc {
    font-size: 0.875rem;
    color: var(--text-body);
    line-height: 1.75;
}

.about-skills-grid {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.about-skills-heading {
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.about-contact-links {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.about-contact-item {
    display: flex;
    align-items: baseline;
    gap: 2rem;
    padding: 1.1rem 0;
    border-bottom: 1px solid var(--border);
    color: var(--text);
    transition: color 0.2s, padding-left 0.2s;
}

.about-contact-links .about-contact-item:first-child {
    border-top: 1px solid var(--border);
}

.about-contact-item:hover {
    padding-left: 0.5rem;
}

.about-contact-label {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--text-muted);
    min-width: 80px;
    flex-shrink: 0;
}

.about-contact-value {
    font-size: 0.95rem;
    color: var(--text);
}

@media (max-width: 767px) {
    .about-page-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .about-page-image {
        max-width: 160px;
    }

    .about-timeline-item {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .about-contact-item {
        flex-direction: column;
        gap: 0.25rem;
    }
}

/* Footer back link */
.footer-back {
    font-size: 0.78rem;
    color: var(--text-muted);
    transition: color 0.2s;
}

.footer-back:hover {
    color: var(--text);
}

/* Responsive */

/* iPad */
@media (max-width: 1024px) {
    .proj-hero {
        padding: 6rem 0 2.5rem;
    }

    .proj-findings-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Phone */
@media (max-width: 767px) {
    .proj-hero {
        padding: 4.5rem 0 2rem;
    }

    .proj-title {
        font-size: 2rem;
    }

    .proj-tagline {
        font-size: 1rem;
        margin-bottom: 2rem;
    }

    .proj-overview-grid {
        flex-wrap: wrap;
        gap: 1.25rem;
    }

    .proj-section {
        padding: 2.5rem 0;
    }

    .proj-findings-grid {
        grid-template-columns: 1fr;
    }

    .proj-img-placeholder {
        aspect-ratio: 16 / 9;
    }

    .proj-cover {
        padding-bottom: 2.5rem;
    }
}

.spotify-page {
    background-color: var(--bg);
}

.spotify-page .nav {
    background-color: var(--nav-bg);
}

.spotify-page-main {
    padding-bottom: 0;
}

.spotify-page-container {
    max-width: 1220px;
    width: 100%;
    margin: 0 auto;
    padding: 0 170px;
}

.spotify-hero {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 20px;
    padding-top: 80px;
    padding-bottom: 40px;
}

.spotify-page .proj-hero::after {
    display: none;
}

.spotify-page .proj-title {
    font-size: 36px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -1.08px;
    margin-bottom: 0;
}

.spotify-page .proj-tagline {
    font-size: 16px;
    font-weight: 400;
    line-height: 1.75;
    color: var(--text-body);
    max-width: none;
    margin-bottom: 0;
}

.spotify-overview-grid {
    display: flex;
    align-items: flex-end;
    gap: 48px;
    padding-top: 32px;
    border-top: 1px solid var(--border);
    width: 100%;
}

.spotify-meta-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.spotify-page .proj-year {
    line-height: 1;
    font-size: 16px;
}

.proj-overview-item {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.spotify-page .proj-overview-label {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 14px;
    font-style: normal;
    font-weight: 700;
    line-height: 100%;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--text-muted, #A8A096);
}

.proj-overview-value {
    font-size: 16px;
    font-weight: 500;
    line-height: 1;
    color: var(--text);
}

.chip {
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.96px;
    padding: 3px 10px;
    border-radius: 100px;
    text-transform: uppercase;
}


/* Figma 12:70 — the next-project link was removed from the design; what is
   left is the rule above the footer. */
.spotify-end-rule {
    max-width: 1220px;
    margin: 0 auto;
    padding: 0 170px;
}

.spotify-end-rule-inner {
    height: 24px;
    border-top: 1px solid var(--border);
    transition: border-color 0.3s ease;
}

.spotify-page .footer-inner {
    max-width: 1220px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 170px;
    padding-right: 170px;
}

/* Section jump menu. Sits in the left margin beside the 880px content column;
   type matches .spotify-section-label. */
.spotify-side-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    left: 38px;
    width: 180px;
    padding: 0 20px 0 0;
    gap: 14px;
    border-right: 1px solid #075431; /* cursor green */
}

.spotify-page .proj-side-nav a:not(.snav-back) {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    color: var(--text-muted);
    padding: 0;
    position: relative;
}

/* Active item reads as a bold segment of the divider, as in the reference. */
.spotify-page .proj-side-nav a:not(.snav-back).active::after {
    content: '';
    position: absolute;
    top: -2px;
    bottom: -2px;
    right: -22px;
    width: 3px;
    background-color: #f63434; /* cursor hover red */
}

.spotify-page .proj-side-nav a:not(.snav-back):hover,
.spotify-page .proj-side-nav a:not(.snav-back).active {
    color: var(--text);
}

.spotify-section,
.spotify-flow,
.spotify-design-section {
    scroll-margin-top: 2rem;
}

/* Below this the menu plus its divider no longer clears the content column. */
@media (max-width: 1380px) {
    .spotify-side-nav { display: none; }
}

.spotify-cover {
    padding-bottom: 64px;
}

.spotify-cover-placeholder {
    width: 100%;
    /* 880×428 at full width, and keeps that shape on smaller screens */
    aspect-ratio: 880 / 428;
    border-radius: 6px;
    background-color: #f0f0eb; /* matches the banner's opening frame */
    overflow: hidden;
}

/* The banner is 2.13:1 and the slot 2.06:1, so cover only trims ~16px per side. */
.spotify-cover-placeholder video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.spotify-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding-bottom: 64px;
}

.spotify-section-overview {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-bottom: 31px;
}

.spotify-section-overview .spotify-section-label {
    margin-bottom: 0;
}

.spotify-overview-copy {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.spotify-overview-copy p {
    margin: 0;
    color: var(--text-body);
    line-height: 1.8;
}

.spotify-overview-copy p:first-child {
    font-size: 24px;
    line-height: 1.8;
    color: var(--text-body);
}

.spotify-overview-copy p:nth-child(2),
.spotify-overview-copy p:nth-child(3) {
    font-size: 16px;
    color: var(--text-body);
}

.spotify-section-solution {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-bottom: 64px;
}

.spotify-section-solution .spotify-section-label {
    margin-bottom: 0;
}

.spotify-solution-copy {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.spotify-solution-copy p {
    margin: 0;
    color: var(--text-body);
    line-height: 1.8;
}

.spotify-solution-copy p:first-child {
    font-size: 24px;
    line-height: 1.8;
    color: var(--text-body);
}

.spotify-solution-copy p:last-child {
    font-size: 16px;
    color: var(--text-body);
}

.spotify-flow {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding-bottom: 64px;
}

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

.spotify-flow-item {
    display: flex;
    align-items: center;
    gap: 32px;
}

.spotify-flow-item + .spotify-flow-item {
    margin-top: 54px;
}

.spotify-device-frame {
    position: relative;
    width: 341px;
    height: 383px;
    border-radius: 24px;
    overflow: hidden;
    background: #0d0d0d;
    border: none;
    box-shadow: none;
    flex-shrink: 0;
}

.spotify-device-frame video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    background: #000;
}

.video-play-btn {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: #075431; /* cursor green */
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, background 0.2s ease;
}

.video-play-btn::before {
    content: "";
    display: block;
    width: 0;
    height: 0;
    border-top: 7px solid transparent;
    border-bottom: 7px solid transparent;
    border-left: 11px solid #f63434; /* cursor hover red */
    margin-left: 3px;
}

.video-play-btn.playing {
    background: #075431;
}

.video-play-btn.playing::before {
    width: 12px;
    height: 12px;
    margin-left: 0;
    border: 0;
    background: #f63434;
    clip-path: inset(0 round 2px);
}

/* Core-flow videos: a light veil with a centred off-white play icon.
   Playing removes the veil; the icon hides until you hover the video. */
.spotify-device-frame::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.22);
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.spotify-device-frame:has(.video-play-btn.playing)::after {
    opacity: 0;
}

.spotify-device-frame .video-play-btn {
    top: 50%;
    left: 50%;
    right: auto;
    width: 66px;
    height: 66px;
    transform: translate(-50%, -50%);
    z-index: 1;
    background: none;          /* icon only, no round button */
    box-shadow: none;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.35)); /* keeps the red icon readable on light video frames */
    transition: opacity 0.25s ease;
}

.spotify-device-frame .video-play-btn.playing {
    background: none;
}

.spotify-device-frame .video-play-btn::before {
    border-top-width: 16px;    /* triangle 32px tall × 28px wide */
    border-bottom-width: 16px;
    border-left-width: 28px;
    border-left-color: #f0f0eb; /* off-white: ~4.5:1 on the paused frame */
    margin-left: 7px;
}

.spotify-device-frame .video-play-btn.playing::before {
    width: 28px;
    height: 28px;
    background: #f0f0eb;
    margin-left: 0;
}

.spotify-device-frame .video-play-btn.playing {
    opacity: 0;
}

.spotify-device-frame:hover .video-play-btn.playing {
    opacity: 1;
}

.spotify-flow-copy {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 434px;
}

.spotify-flow-copy h3 {
    font-size: 24px;
    line-height: 1.8;
    font-weight: 400;
    color: var(--text-body);
}

.spotify-flow-copy p {
    margin: 0;
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-body);
}

.spotify-flow-copy p + p {
    margin-top: 0;
}

.spotify-section-label {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 14px;
    font-style: normal;
    font-weight: 700;
    line-height: 100%;
    letter-spacing: 1.4px;
    text-transform: uppercase;
    color: var(--text-muted, #A8A096);
}

/* Initial observations */
.spotify-observations {
    padding-top: 64px;
}

.spotify-research-block {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.spotify-research-item p {
    font-size: 24px;
    line-height: 1.8;
    color: var(--text-body);
}

.spotify-research-summary {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-body);
}

.spotify-observation-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding-bottom: 52px;
}

.spotify-observation-card p {
    margin: 0;
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-body);
}

.spotify-observation-card .spotify-observation-emphasis {
    font-size: 18px;
    font-weight: 500;
}

.spotify-research-image {
    display: block;
    width: 100%;
    aspect-ratio: 880 / 516;
    object-fit: contain;
    border-radius: 6px;
}

/* Findings */
.spotify-findings {
    gap: 24px;
    border-bottom: 1px solid var(--border);
}

.spotify-finding {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.spotify-finding h3 {
    font-size: 24px;
    font-weight: 400;
    line-height: 1.3;
    color: var(--text);
}

.spotify-finding p {
    margin: 0;
    font-size: 16px;
    line-height: 1.75;
    color: var(--text-body);
}

.spotify-quote {
    font-size: 24px;
    font-weight: 400;
    line-height: 1.3;
    color: var(--text);
}

.spotify-quote em {
    font-weight: 700;
    font-style: italic;
}

/* Design approach */
.spotify-design-section {
    gap: 24px;
    padding-top: 64px;
}

.spotify-design-head {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.spotify-design-intro {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-body);
}

.spotify-design-list {
    width: 100%;
}

.spotify-design-list ol {
    display: flex;
    gap: 16px;
    width: 100%;
    list-style: decimal;
}

.spotify-design-list li {
    flex: 1 1 0;
    min-width: 0;
    margin-inline-start: 24px;
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-body);
}

.spotify-design-question {
    font-size: 24px;
    font-weight: 500;
    line-height: 1.8;
    color: var(--text);
    border-left: 5px solid var(--text);
    padding-left: 24px;
    width: 100%;
}

.spotify-design-body {
    width: 100%;
}

.spotify-design-body p {
    margin: 0;
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-body);
}

/* Figma separates these paragraphs with an empty line rather than a margin. */
.spotify-design-body p + p {
    margin-top: 1.8em;
}

.spotify-design-body strong {
    font-weight: 600;
}

.spotify-design-image {
    display: block;
    width: 100%;
    aspect-ratio: 880 / 589;
    object-fit: contain;
}

/* Key design decisions */
.spotify-keydecisions {
    border-bottom: 1px solid var(--border);
}

.spotify-decision {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
}

.spotify-decision + .spotify-decision {
    margin-top: 12px;
}

.spotify-decision h3 {
    font-size: 24px;
    font-weight: 400;
    line-height: 1.3;
    color: var(--text-body);
    margin-bottom: 12px;
}

.spotify-decision p {
    margin: 0;
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-body);
    text-align: justify;
}

.spotify-decision p strong {
    font-weight: 600;
}

.spotify-decision-gallery {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    gap: 85px;
    width: 100%;
    margin-top: 8px;
}

.spotify-decision-gallery img {
    display: block;
    flex-shrink: 0;
}

.spotify-decision-gallery img:nth-child(1) {
    width: 241px;
    height: 127px;
    object-fit: cover;
}

/* Figma 302:1500 — a 226×180 slot with the 162×124 image inset 24px left, 56px top.
   Only in the "Radar feature" gallery — in "Radar & Privacy" the 2nd image is the
   phone screen, and this padding would squeeze and crop it. */
.spotify-decision-gallery:not(.spotify-privacy-gallery) img:nth-child(2) {
    box-sizing: border-box;
    width: 226px;
    height: 180px;
    padding: 56px 40px 0 24px;
    object-fit: contain;
}

.spotify-decision-gallery img:nth-child(3) {
    width: 123px;
    height: 267px;
    object-fit: cover;
}

.spotify-privacy-gallery img:nth-child(1) {
    width: 185px;
    height: 88px;
    object-fit: contain;
}

.spotify-privacy-gallery img:nth-child(2) {
    width: 123px;
    height: 266px;
    object-fit: cover;
}

/* Key areas for improvement */
.spotify-improvement {
    padding-top: 64px;
}

/* Figma 339:29 / 339:30 — each title now groups with its paragraph at 8px,
   and the section's 12px gap separates the two groups. */
.spotify-improvement-item {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    width: 100%;
    text-align: justify;
}

.spotify-improvement-item p {
    margin: 0;
    font-size: 16px;
    line-height: 1.8;
    color: var(--text-body);
}

.spotify-improvement-item .improvement-title {
    font-size: 24px;
    font-weight: 400;
}

/* The Figma frame is a single 1440 desktop layout — these keep it usable below that. */
@media (max-width: 1100px) {
    .spotify-page-container,
    .spotify-end-rule,
    .spotify-page .footer-inner {
        padding-left: 6vw;
        padding-right: 6vw;
    }
}

@media (max-width: 860px) {
    .spotify-flow-item {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
    }

    .spotify-device-frame {
        width: 100%;
        max-width: 341px;
        height: auto;
        aspect-ratio: 341 / 383;
    }

    .spotify-flow-copy {
        max-width: none;
    }

    .spotify-overview-grid {
        flex-wrap: wrap;
        gap: 24px;
    }

    .spotify-design-list ol {
        flex-direction: column;
    }

    .spotify-decision-gallery {
        flex-wrap: wrap;
        gap: 32px;
    }
}
