:root {
    --ink: #1f2426;
    --muted: #727878;
    --soft: #f5f1ed;
    --paper: #fffdfb;
    --line: #e8e1dc;
    --red: #841d24;
    --red-dark: #551218;
    --gold: #b99a5e;
    --green: #2e7659;
    --blue: #466d8b;
    --orange: #a46b2f;
    --shadow: 0 18px 55px rgba(47, 33, 27, .08);
    --radius: 18px;
}

* {
    box-sizing: border-box;
}

html {
    background: var(--soft);
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
    line-height: 1.5;
}

body {
    margin: 0;
    min-width: 320px;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font: inherit;
}

button,
a {
    -webkit-tap-highlight-color: transparent;
}

.app-shell {
    min-height: 100vh;
}

.topbar {
    align-items: center;
    background: var(--red-dark);
    color: #fffaf6;
    display: flex;
    justify-content: space-between;
    padding: 18px clamp(20px, 5vw, 80px);
}

.brand {
    align-items: center;
    display: flex;
    gap: 12px;
    letter-spacing: .05em;
}

.brand-mark {
    align-items: center;
    background: var(--gold);
    border-radius: 10px;
    color: var(--red-dark);
    display: inline-flex;
    font-family: Georgia, serif;
    font-size: 1.45rem;
    font-weight: 700;
    height: 38px;
    justify-content: center;
    width: 38px;
}

.brand strong,
.brand small {
    display: block;
}

.brand strong {
    font-size: .95rem;
    letter-spacing: .2em;
}

.brand small {
    color: #e7cfc3;
    font-size: .58rem;
    letter-spacing: .13em;
    margin-top: 2px;
}

.topnav {
    display: flex;
    gap: 8px;
}

.topnav a {
    border: 1px solid transparent;
    border-radius: 999px;
    color: #e8d8d0;
    font-size: .78rem;
    padding: 8px 13px;
    transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.topnav a:hover,
.topnav a.active {
    background: rgba(255, 255, 255, .1);
    border-color: rgba(255, 255, 255, .16);
    color: #fff;
}

.main-content {
    margin: 0 auto;
    max-width: 1240px;
    padding: 56px clamp(20px, 5vw, 80px) 90px;
}

.page-heading,
.client-hero,
.section-heading,
.client-stage-heading,
.milestone-card-top,
.client-project-header,
.stage-section-heading,
.progress-heading,
.form-actions,
.stage-meta,
.detail-heading {
    align-items: flex-start;
    display: flex;
    justify-content: space-between;
}

.page-heading,
.client-hero {
    gap: 32px;
    margin-bottom: 38px;
}

.page-heading h1,
.client-hero h1 {
    color: var(--red-dark);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.4rem, 5vw, 4.4rem);
    font-weight: 400;
    letter-spacing: -.045em;
    line-height: .98;
    margin: 5px 0 14px;
}

.client-hero h1 {
    color: #fff9f4;
}

.lead {
    color: var(--muted);
    font-size: 1.02rem;
    margin: 0;
    max-width: 620px;
}

.client-hero .lead {
    color: #e7d2c7;
}

.eyebrow {
    color: var(--red);
    font-size: .67rem;
    font-weight: 800;
    letter-spacing: .18em;
    margin: 0;
    text-transform: uppercase;
}

.button {
    align-items: center;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    display: inline-flex;
    font-size: .78rem;
    font-weight: 750;
    gap: 9px;
    justify-content: center;
    min-height: 42px;
    padding: 10px 17px;
    transition: box-shadow .2s ease, background .2s ease, transform .2s ease;
}

.button:hover {
    box-shadow: 0 8px 20px rgba(50, 25, 20, .13);
    transform: translateY(-1px);
}

.button-primary {
    background: var(--red);
    color: #fff;
}

.button-primary:hover {
    background: var(--red-dark);
}

.button-secondary {
    background: #eee7e1;
    color: var(--ink);
}

.button-quiet {
    background: transparent;
    border: 1px solid var(--line);
    color: var(--red-dark);
}

.client-hero .button-quiet {
    border-color: rgba(255, 255, 255, .22);
    color: #fff;
}

.flash {
    align-items: center;
    border-radius: 14px;
    display: flex;
    font-size: .87rem;
    gap: 11px;
    margin-bottom: 24px;
    padding: 13px 16px;
}

.flash-success {
    background: #e4f0e9;
    color: #245c46;
}

.flash-error {
    background: #f8e4e0;
    color: #7d1d24;
}

.flash-icon {
    align-items: center;
    border: 1px solid currentColor;
    border-radius: 50%;
    display: inline-flex;
    font-size: .7rem;
    font-weight: 800;
    height: 21px;
    justify-content: center;
    width: 21px;
}

.project-overview,
.client-project-card,
.milestone-card,
.notification-panel {
    background: var(--paper);
    border: 1px solid rgba(121, 90, 72, .12);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.project-overview {
    align-items: center;
    display: grid;
    gap: 22px;
    grid-template-columns: minmax(280px, 1.6fr) repeat(3, 1fr);
    margin-bottom: 60px;
    padding: 24px;
}

.project-identity {
    align-items: center;
    display: flex;
    gap: 14px;
}

.project-avatar {
    align-items: center;
    background: #f3e4d4;
    border-radius: 15px;
    color: var(--red);
    display: flex;
    flex: 0 0 54px;
    font-family: Georgia, serif;
    font-size: 1.12rem;
    font-weight: 700;
    height: 54px;
    justify-content: center;
    letter-spacing: -.03em;
}

.project-identity h2,
.client-project-card h2 {
    color: var(--red-dark);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.55rem;
    font-weight: 400;
    letter-spacing: -.03em;
    margin: 2px 0 3px;
}

.project-identity p:last-child {
    color: var(--muted);
    font-size: .82rem;
    margin: 0;
}

.overview-stat {
    border-left: 1px solid var(--line);
    min-height: 58px;
    padding-left: 20px;
}

.overview-stat span,
.summary-item span {
    color: var(--muted);
    display: block;
    font-size: .67rem;
    font-weight: 700;
    letter-spacing: .09em;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.overview-stat strong {
    color: var(--red-dark);
    display: block;
    font-size: .94rem;
    line-height: 1.3;
}

.overview-stat:first-of-type strong {
    color: var(--red);
    font-size: 1.65rem;
}

.section-heading {
    align-items: end;
    gap: 25px;
    margin: 0 0 22px;
}

.section-heading h2 {
    color: var(--red-dark);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.65rem, 3vw, 2.4rem);
    font-weight: 400;
    letter-spacing: -.04em;
    margin: 5px 0 0;
}

.section-note {
    color: var(--muted);
    font-size: .78rem;
    margin: 0;
    max-width: 300px;
    text-align: right;
}

.milestone-stack {
    display: grid;
    gap: 16px;
}

.milestone-card {
    overflow: hidden;
}

.milestone-card.is-complete {
    border-color: rgba(46, 118, 89, .2);
}

.milestone-card-top {
    align-items: center;
    gap: 18px;
    padding: 24px 25px 18px;
}

.milestone-number {
    align-items: center;
    background: var(--red-dark);
    border-radius: 14px;
    color: #fff8f3;
    display: flex;
    flex: 0 0 64px;
    font-family: Georgia, serif;
    font-size: 1.15rem;
    height: 64px;
    justify-content: center;
}

.is-complete .milestone-number {
    background: var(--green);
}

.milestone-copy {
    flex: 1;
}

.milestone-copy h3,
.client-stage h3 {
    color: var(--red-dark);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.35rem;
    font-weight: 400;
    letter-spacing: -.025em;
    margin: 2px 0 3px;
}

.milestone-copy p:last-child,
.client-stage-description {
    color: var(--muted);
    font-size: .84rem;
    margin: 0;
}

.status-badge {
    align-items: center;
    border-radius: 999px;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: .69rem;
    font-weight: 800;
    gap: 7px;
    padding: 7px 11px;
    white-space: nowrap;
}

.status-dot {
    background: currentColor;
    border-radius: 50%;
    display: inline-block;
    height: 7px;
    width: 7px;
}

.status-upcoming {
    background: #f0eeeb;
    color: #747775;
}

.status-progress {
    background: #eaf0f5;
    color: var(--blue);
}

.status-review {
    background: #fbf0de;
    color: var(--orange);
}

.status-done {
    background: #e5f1ea;
    color: var(--green);
}

.stage-progress-line {
    background: #eee9e5;
    height: 4px;
    margin: 0 25px;
    overflow: hidden;
}

.stage-progress-line span {
    background: var(--gold);
    display: block;
    height: 100%;
    transition: width .25s ease;
}

.is-complete .stage-progress-line span {
    background: var(--green);
}

.stage-meta {
    color: var(--muted);
    font-size: .7rem;
    gap: 12px;
    padding: 10px 25px 17px;
}

.stage-details {
    border-top: 1px solid var(--line);
}

.stage-details summary,
.client-details summary {
    align-items: center;
    color: var(--red);
    cursor: pointer;
    display: flex;
    font-size: .78rem;
    font-weight: 800;
    justify-content: space-between;
    list-style: none;
    padding: 16px 25px;
}

.stage-details summary::-webkit-details-marker,
.client-details summary::-webkit-details-marker {
    display: none;
}

.summary-arrow {
    font-size: 1.1rem;
    transition: transform .2s ease;
}

details[open] > summary .summary-arrow {
    transform: rotate(180deg);
}

.stage-form {
    background: #fcfaf8;
    border-top: 1px solid var(--line);
    display: grid;
    gap: 22px;
    padding: 24px 25px 28px;
}

.stage-section {
    display: grid;
    gap: 14px;
}

.stage-section-heading {
    align-items: center;
    gap: 16px;
}

.stage-section-heading h4 {
    color: var(--ink);
    font-size: .98rem;
    margin: 3px 0 0;
}

.compact-heading {
    margin-bottom: 12px;
}

.text-button {
    background: transparent;
    border: 0;
    color: var(--red);
    cursor: pointer;
    font-size: .75rem;
    font-weight: 800;
    padding: 6px 0;
}

.text-button:hover {
    color: var(--red-dark);
    text-decoration: underline;
}

.task-list {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 13px;
    display: grid;
    overflow: hidden;
}

.task-row {
    align-items: center;
    border-bottom: 1px solid #f0ebe7;
    cursor: pointer;
    display: flex;
    gap: 11px;
    min-height: 48px;
    padding: 9px 13px;
    transition: background .15s ease;
}

.task-row:last-child {
    border-bottom: 0;
}

.task-row:hover,
.task-row.is-checked {
    background: #f8f2ec;
}

.task-row input {
    height: 1px;
    opacity: 0;
    position: absolute;
    width: 1px;
}

.custom-check {
    align-items: center;
    border: 1px solid #cfc6be;
    border-radius: 6px;
    color: transparent;
    display: inline-flex;
    flex: 0 0 20px;
    font-size: .75rem;
    font-weight: 900;
    height: 20px;
    justify-content: center;
    transition: background .15s ease, border-color .15s ease, color .15s ease;
}

.task-row input:checked + .custom-check {
    background: var(--green);
    border-color: var(--green);
    color: #fff;
}

.task-row input:focus-visible + .custom-check {
    box-shadow: 0 0 0 3px rgba(70, 109, 139, .23);
}

.task-label {
    flex: 1;
    font-size: .82rem;
}

.task-row.is-checked .task-label {
    color: #3d554b;
}

.optional-label {
    color: var(--muted);
    font-size: .63rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.stage-form-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: 1fr 1fr;
}

.field {
    display: grid;
    gap: 8px;
}

.field > span,
.field-label {
    color: #535b5a;
    font-size: .72rem;
    font-weight: 800;
}

.field select,
.field input[type="date"],
.field textarea {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--ink);
    min-height: 43px;
    outline: 0;
    padding: 10px 12px;
    resize: vertical;
    width: 100%;
}

.field select:focus,
.field input[type="date"]:focus,
.field textarea:focus {
    border-color: var(--gold);
    box-shadow: 0 0 0 3px rgba(185, 154, 94, .16);
}

.field textarea {
    min-height: 102px;
}

.upload-zone {
    align-items: center;
    background: #fff;
    border: 1px dashed #cfc2b8;
    border-radius: 13px;
    cursor: pointer;
    display: flex;
    gap: 13px;
    padding: 15px;
    transition: background .2s ease, border-color .2s ease;
}

.upload-zone:hover {
    background: #fffaf5;
    border-color: var(--red);
}

.upload-zone input {
    height: 1px;
    opacity: 0;
    position: absolute;
    width: 1px;
}

.upload-icon {
    align-items: center;
    background: #f4e6da;
    border-radius: 10px;
    color: var(--red);
    display: inline-flex;
    flex: 0 0 36px;
    font-size: 1.35rem;
    height: 36px;
    justify-content: center;
}

.upload-zone strong,
.upload-zone small {
    display: block;
}

.upload-zone strong {
    color: var(--red-dark);
    font-size: .79rem;
}

.upload-zone small {
    color: var(--muted);
    font-size: .7rem;
    margin-top: 2px;
}

.photo-preview {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.photo-preview:empty {
    display: none;
}

.photo-preview img {
    border: 1px solid var(--line);
    border-radius: 8px;
    height: 62px;
    object-fit: cover;
    width: 78px;
}

.existing-photos {
    border-top: 1px solid var(--line);
    padding-top: 18px;
}

.mini-gallery,
.gallery-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.mini-gallery figure,
.gallery-grid figure {
    margin: 0;
    min-width: 0;
}

.mini-gallery img,
.gallery-grid img {
    background: #eee7e1;
    border-radius: 10px;
    display: block;
    height: 96px;
    object-fit: cover;
    width: 100%;
}

.mini-gallery figcaption,
.gallery-grid figcaption {
    color: var(--muted);
    font-size: .64rem;
    line-height: 1.3;
    margin-top: 5px;
}

.form-actions {
    align-items: center;
    border-top: 1px solid var(--line);
    gap: 10px;
    padding-top: 20px;
}

.form-actions .button:last-child {
    margin-left: auto;
}

/* Client view */
.page-client {
    background: var(--red-dark);
}

.page-client .topbar {
    background: rgba(56, 10, 15, .58);
}

.page-client .main-content {
    background: linear-gradient(180deg, var(--red-dark) 0, var(--red-dark) 390px, var(--soft) 390px);
    max-width: none;
    padding-left: max(clamp(20px, 5vw, 80px), calc((100vw - 1240px) / 2));
    padding-right: max(clamp(20px, 5vw, 80px), calc((100vw - 1240px) / 2));
}

.client-hero {
    align-items: end;
    margin: 0 auto 42px;
    max-width: 1080px;
}

.client-hero-actions {
    align-items: end;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.secure-label {
    color: #e7d2c7;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.secure-dot {
    background: #79bd9c;
    border-radius: 50%;
    display: inline-block;
    height: 7px;
    margin-right: 5px;
    width: 7px;
}

.client-project-card,
.notification-panel,
.client-section-heading,
.client-timeline {
    margin-left: auto;
    margin-right: auto;
    max-width: 1080px;
}

.client-project-card {
    padding: 28px;
}

.client-project-header {
    align-items: center;
    border-bottom: 1px solid var(--line);
    gap: 16px;
    padding-bottom: 24px;
}

.global-progress {
    padding: 26px 0 22px;
}

.progress-heading {
    align-items: baseline;
    color: var(--muted);
    font-size: .74rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.progress-heading strong {
    color: var(--red);
    font-family: Georgia, serif;
    font-size: 2.4rem;
    font-weight: 400;
    letter-spacing: -.06em;
    line-height: 1;
}

.global-progress-track {
    background: #eee6df;
    border-radius: 99px;
    height: 12px;
    margin-top: 13px;
    overflow: hidden;
}

.global-progress-track span {
    background: linear-gradient(90deg, var(--red), var(--gold));
    border-radius: inherit;
    display: block;
    height: 100%;
}

.progress-endpoints {
    color: #8d8984;
    display: flex;
    font-size: .65rem;
    justify-content: space-between;
    margin-top: 6px;
}

.client-summary-grid {
    border-top: 1px solid var(--line);
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(3, 1fr);
    padding-top: 20px;
}

.summary-item {
    border-right: 1px solid var(--line);
    padding-right: 20px;
}

.summary-item:last-child {
    border-right: 0;
}

.summary-item strong {
    color: var(--red-dark);
    display: block;
    font-size: .86rem;
    line-height: 1.35;
}

.summary-item small {
    color: var(--muted);
    display: block;
    font-size: .7rem;
    margin-top: 4px;
}

.notification-panel {
    align-items: flex-start;
    background: #fbf1dd;
    border-color: #f0d9a8;
    box-shadow: none;
    display: flex;
    gap: 15px;
    margin-top: 18px;
    padding: 18px 22px;
}

.notification-symbol {
    align-items: center;
    background: #f1d08c;
    border-radius: 10px;
    color: #76511c;
    display: flex;
    flex: 0 0 37px;
    font-size: 1.05rem;
    height: 37px;
    justify-content: center;
}

.notification-panel h3 {
    color: #624518;
    font-size: .95rem;
    margin: 2px 0 2px;
}

.notification-panel p:not(.eyebrow) {
    color: #785c31;
    font-size: .8rem;
    margin: 0;
}

.notification-panel small {
    color: #997c4d;
    display: block;
    font-size: .68rem;
    margin-top: 5px;
}

.client-section-heading {
    margin-bottom: 22px;
    margin-top: 64px;
}

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

.client-stage {
    display: grid;
    gap: 18px;
    grid-template-columns: 42px minmax(0, 1fr);
    position: relative;
}

.client-stage:not(:last-child)::after {
    background: #ddd3cc;
    content: "";
    left: 20px;
    position: absolute;
    top: 42px;
    bottom: -14px;
    width: 2px;
    z-index: 0;
}

.timeline-marker {
    align-items: center;
    background: #eee9e5;
    border: 4px solid var(--soft);
    border-radius: 50%;
    color: #85827f;
    display: flex;
    font-size: .61rem;
    font-weight: 900;
    height: 42px;
    justify-content: center;
    position: relative;
    width: 42px;
    z-index: 1;
}

.marker-done {
    background: var(--green);
    color: #fff;
    font-size: .9rem;
}

.marker-current {
    background: var(--gold);
    color: #fff;
}

.client-stage-body {
    background: var(--paper);
    border: 1px solid rgba(121, 90, 72, .12);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(47, 33, 27, .04);
    min-width: 0;
    padding: 19px 22px;
}

.client-stage-heading {
    align-items: center;
    gap: 16px;
}

.client-stage h3 {
    font-size: 1.15rem;
}

.client-stage-description {
    margin-top: 7px;
}

.client-details {
    border-top: 1px solid var(--line);
    margin-top: 16px;
}

.client-details summary {
    padding: 13px 0 0;
}

.client-details summary span:last-child {
    font-size: 1rem;
}

.client-stage-detail {
    display: grid;
    gap: 24px;
    grid-template-columns: minmax(240px, 1fr) minmax(220px, .8fr);
    padding-top: 18px;
}

.client-checklist,
.client-comment,
.client-gallery {
    min-width: 0;
}

.detail-heading {
    align-items: baseline;
    color: var(--muted);
    font-size: .68rem;
    font-weight: 800;
    letter-spacing: .08em;
    margin-bottom: 9px;
    text-transform: uppercase;
}

.detail-heading strong {
    color: var(--red);
    font-size: .76rem;
}

.client-task {
    align-items: flex-start;
    color: #8a8884;
    display: flex;
    font-size: .77rem;
    gap: 8px;
    padding: 5px 0;
}

.client-task.done {
    color: #3e6051;
}

.client-task-icon {
    color: var(--green);
    flex: 0 0 15px;
    font-weight: 900;
}

.client-comment {
    background: #faf5f0;
    border-radius: 12px;
    padding: 15px;
}

.comment-label {
    color: var(--red);
    display: block;
    font-size: .65rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.client-comment p {
    color: #565b59;
    font-size: .8rem;
    margin: 8px 0;
}

.client-comment small {
    color: var(--muted);
    font-size: .66rem;
}

.client-gallery {
    grid-column: 1 / -1;
}

.pending-message {
    color: #96908a;
    font-size: .75rem;
    font-style: italic;
    margin: 14px 0 0;
}

.footer {
    color: #918d89;
    display: flex;
    font-size: .68rem;
    gap: 15px;
    justify-content: space-between;
    margin: 0 auto;
    max-width: 1240px;
    padding: 0 clamp(20px, 5vw, 80px) 32px;
}

@media (max-width: 960px) {
    .project-overview {
        grid-template-columns: 1fr 1fr;
    }

    .project-identity {
        grid-column: 1 / -1;
    }

    .overview-stat:nth-of-type(2) {
        border-left: 0;
        padding-left: 0;
    }
}

@media (max-width: 720px) {
    .topbar {
        align-items: flex-start;
        flex-direction: column;
        gap: 15px;
    }

    .topnav {
        width: 100%;
    }

    .topnav a {
        flex: 1;
        text-align: center;
    }

    .main-content {
        padding-top: 35px;
    }

    .page-heading,
    .client-hero,
    .section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .page-heading h1,
    .client-hero h1 {
        font-size: 3rem;
    }

    .section-note {
        max-width: none;
        text-align: left;
    }

    .project-overview {
        gap: 16px;
        grid-template-columns: 1fr 1fr;
        padding: 18px;
    }

    .overview-stat {
        border-left: 0;
        border-top: 1px solid var(--line);
        padding-left: 0;
        padding-top: 14px;
    }

    .milestone-card-top {
        align-items: flex-start;
        display: grid;
        grid-template-columns: 54px minmax(0, 1fr);
        padding: 19px;
    }

    .milestone-number {
        flex-basis: 54px;
        font-size: 1rem;
        height: 54px;
    }

    .milestone-card-top .status-badge {
        grid-column: 2;
        justify-self: start;
    }

    .stage-progress-line {
        margin: 0 19px;
    }

    .stage-meta {
        flex-wrap: wrap;
        padding-left: 19px;
        padding-right: 19px;
    }

    .stage-details summary {
        padding-left: 19px;
        padding-right: 19px;
    }

    .stage-form {
        padding-left: 19px;
        padding-right: 19px;
    }

    .stage-form-grid,
    .client-summary-grid,
    .client-stage-detail {
        grid-template-columns: 1fr;
    }

    .summary-item {
        border-bottom: 1px solid var(--line);
        border-right: 0;
        padding-bottom: 14px;
        padding-right: 0;
    }

    .summary-item:last-child {
        border-bottom: 0;
        padding-bottom: 0;
    }

    .client-project-card {
        padding: 20px;
    }

    .client-project-header,
    .client-stage-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .client-hero-actions {
        align-items: flex-start;
        flex-direction: row;
        justify-content: space-between;
        width: 100%;
    }

    .client-stage-body {
        padding: 16px;
    }

    .gallery-grid,
    .mini-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .form-actions {
        align-items: stretch;
        flex-direction: column-reverse;
    }

    .form-actions .button,
    .form-actions .button:last-child {
        margin-left: 0;
        width: 100%;
    }

    .footer {
        flex-direction: column;
        gap: 4px;
    }
}

@media (max-width: 480px) {
    .project-overview {
        grid-template-columns: 1fr;
    }

    .project-identity {
        grid-column: auto;
    }

    .overview-stat {
        padding-top: 13px;
    }

    .client-stage {
        gap: 10px;
        grid-template-columns: 34px minmax(0, 1fr);
    }

    .timeline-marker {
        border-width: 3px;
        font-size: .55rem;
        height: 34px;
        width: 34px;
    }

    .client-stage:not(:last-child)::after {
        left: 16px;
        top: 34px;
    }

    .client-stage h3 {
        font-size: 1.03rem;
    }
}
