.home-projects,
.founder-story {
    padding-block: clamp(40px, 4.5vw, 68px);
    color: var(--atelier-ink, var(--text-primary));
}

.home-projects__heading,
.founder-story__intro {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-block-end: 24px;
}

.home-projects__heading > div,
.founder-story__intro > header {
    min-width: 0;
    max-width: 790px;
}

.home-projects__eyebrow {
    display: inline-block;
    margin-block-end: 12px;
    color: var(--atelier-gold, var(--accent-gold));
    font-size: 13px;
    font-weight: 700;
}

.home-projects h2,
.founder-story h2 {
    margin: 0;
    color: inherit;
    font-size: clamp(26px, 2.4vw, 38px);
    line-height: 1.65;
    text-wrap: balance;
}

.home-projects__heading p,
.founder-story__subtitle {
    max-width: 570px;
    margin: 12px 0 0;
    color: var(--atelier-muted, var(--text-secondary));
    font-size: 16px;
    line-height: 1.9;
}

.home-projects__grid {
    display: flex;
    gap: 16px;
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x proximity;
    padding-block: 4px 14px;
    scrollbar-width: thin;
    scrollbar-color: var(--primary) var(--muted);
}

.home-project-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 0 0 clamp(210px, 24%, 290px);
    scroll-snap-align: start;
    overflow: hidden;
    border: 1px solid var(--atelier-border, var(--border-default));
    border-radius: 22px;
    background: var(--atelier-surface, var(--bg-surface));
    box-shadow: 0 10px 38px rgb(20 18 14 / 5%);
    transition: border-color 200ms ease, box-shadow 200ms ease;
}

.home-project-card:hover {
    border-color: var(--atelier-gold, var(--accent-gold));
    box-shadow: 0 16px 44px rgb(20 18 14 / 10%);
}

.home-project-card__media {
    position: relative;
    display: grid;
    place-items: center;
    height: 180px;
    padding: 10px;
    background: color-mix(in srgb, var(--atelier-ink, #26231e) 5%, var(--atelier-surface, #fffdf7));
    border-block-end: 1px solid var(--atelier-border, var(--border-default));
}

.home-project-card__media img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: contain;
    border-radius: 12px;
}

.home-project-card__number {
    position: absolute;
    inset-block-start: 16px;
    inset-inline-start: 16px;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border: 1px solid rgb(255 255 255 / 35%);
    border-radius: 50%;
    background: rgb(26 24 20 / 78%);
    color: #fffdf5;
    font-size: 12px;
}

.home-project-card__body {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 9px;
    padding: 18px;
}

.home-project-card h3 {
    margin: 0;
    color: var(--atelier-ink, var(--text-primary));
    font-size: 18px;
    line-height: 1.7;
}

.home-project-card__meta {
    color: var(--atelier-gold, var(--accent-gold));
    font-size: 13px;
    font-weight: 650;
}

.home-project-card__description {
    margin: 0;
    color: var(--atelier-muted, var(--text-secondary));
    font-size: 13px;
    line-height: 1.9;
}

.home-project-card__action {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 54px;
    gap: 16px;
    padding: 12px 20px;
    border: 1px solid var(--action-background);
    border-radius: 12px;
    background: var(--action-background);
    color: var(--action-foreground);
    text-decoration: none;
    font-size: 16px;
    font-weight: 750;
    line-height: 1.75;
}

.home-project-card__action:hover {
    background: var(--atelier-ink, #26231e);
    color: var(--background);
}

.home-projects__all {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    padding: 12px 22px;
    border-radius: 999px;
    background: var(--action-background);
    color: var(--action-foreground);
    text-decoration: none;
    font-weight: 650;
}
.home-projects__grid:focus-visible { outline: 2px solid var(--primary); outline-offset: 4px; }
.home-project-card h3 a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 5px; }

.founder-story {
    border-block: 1px solid var(--atelier-border, var(--border-default));
    background: var(--atelier-surface, var(--bg-surface));
}

.founder-story__profile {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: 16px;
    max-width: 370px;
    color: inherit;
    text-decoration: none;
}

.founder-story__portrait {
    flex-shrink: 0;
    width: 82px;
    height: 82px;
    padding: 4px;
    border: 1px solid var(--atelier-gold, var(--accent-gold));
    border-radius: 50%;
}

.founder-story__portrait img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 21%;
    border-radius: 50%;
    filter: grayscale(1);
    transition: filter 350ms ease;
}

.founder-story__profile:hover img,
.founder-story__profile:focus-visible img {
    filter: grayscale(0);
}

.founder-story__profile strong,
.founder-story__profile small,
.founder-story__profile-link {
    display: block;
    line-height: 1.9;
}

.founder-story__profile strong {
    color: var(--atelier-ink, var(--text-primary));
    font-size: 16px;
}

.founder-story__profile small {
    color: var(--atelier-muted, var(--text-secondary));
    font-size: 12px;
}

.founder-story__profile-link {
    margin-block-start: 6px;
    color: var(--atelier-gold, var(--accent-gold));
    font-size: 13px;
}

.founder-story__body {
    margin-block-end: 28px;
    color: var(--atelier-muted, var(--text-secondary));
    font-size: 16px;
    line-height: 2;
}

.founder-story__lead {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.founder-story__body p {
    margin: 0 0 16px;
}

.founder-story__more {
    max-width: 900px;
    padding-block-start: 10px;
}

.founder-story__more summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 48px;
    max-width: 360px;
    padding-block: 10px;
    margin-block-end: 16px;
    border-block-end: 1px solid var(--atelier-border, var(--border-default));
    color: var(--atelier-gold, var(--accent-gold));
    cursor: pointer;
    font-weight: 650;
    list-style: none;
}

.founder-story__more summary::-webkit-details-marker { display: none; }
.founder-story__more[open] summary > span { transform: rotate(45deg); }
.founder-story__more a { color: var(--atelier-gold, var(--accent-gold)); }

.founder-story__gallery-heading h3 {
    margin: 0;
    color: var(--atelier-ink, var(--text-primary));
    font-size: clamp(21px, 1.9vw, 28px);
    line-height: 1.8;
}

.founder-story__gallery-heading p {
    margin: 8px 0 24px;
    color: var(--atelier-muted, var(--text-secondary));
    font-size: 14px;
    line-height: 1.8;
}

.founder-story__renders {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
    gap: 20px;
}

.founder-story__render {
    min-width: 0;
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--atelier-border, var(--border-default));
    border-radius: 18px;
    background: var(--atelier-bg, var(--bg-primary));
}

.founder-story__render img {
    display: block;
    width: 100%;
    height: 210px;
    object-fit: contain;
    padding: 8px;
}

.founder-story__render figcaption {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    color: var(--atelier-muted, var(--text-secondary));
    font-size: 12px;
    line-height: 1.8;
}

.home-projects a:focus-visible,
.founder-story a:focus-visible,
.founder-story summary:focus-visible {
    outline: 3px solid var(--atelier-gold, var(--accent-gold));
    outline-offset: 5px;
}

@media (max-width: 1023px) {
    .founder-story__intro { flex-direction: column; align-items: start; }
    .home-projects__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .founder-story__renders { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 639px) {
    .home-projects__heading { display: block; }
    .home-projects__all { margin-block-start: 18px; }
    .home-project-card { flex-basis: 240px; }
    .home-projects__grid,
    .founder-story__lead,
    .founder-story__renders { grid-template-columns: minmax(0, 1fr); gap: 20px; }
    .home-project-card__body { padding: 16px; }
    .home-project-card__media { padding: 8px; }
    .founder-story__intro { gap: 24px; }
    .founder-story__portrait { width: 72px; height: 72px; }
    .founder-story__profile { gap: 12px; }
    .founder-story__gallery-heading p { font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
    .home-project-card,
    .founder-story__portrait img { transition: none; }
}

@media (forced-colors: active) {
    .home-project-card__action { border: 1px solid ButtonText; }
    .founder-story__portrait { border-color: LinkText; }
}
