.hero {
    background: radial-gradient(ellipse at 83% 44%, #156674 0%, #0a4650 39%, #073741 77%);
    border-bottom: 3px solid #39c7c6;
}

.project-grid {
    gap: 23px;
}

.project-card {
    min-width: 0;
    border-radius: 20px;
    --card-lift: 0;
    transform: translateY(var(--card-lift));
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.project-card:hover, .project-card:focus-within {
    --card-lift: -2px;
    border-color: #8fc7be;
    box-shadow: 0 14px 32px #0a544916;
}

.featured-project {
    box-shadow: 0 8px 25px #0a544914;
}

.project-visual {
    --view-dark: #0d4f55;
    --view-strong: #08666b;
    --view-light: #e1f7f1;
    --view-surface: #c6eeea;
    --view-ribbon: #71d5cd;
}

.theme-green {
    --view-dark: #114d47;
    --view-strong: #13675b;
    --view-light: #e9f9ef;
    --view-surface: #bae8d7;
    --view-ribbon: #68cdbc;
}

.theme-pink {
    --view-dark: #754033;
    --view-strong: #93442d;
    --view-light: #fff3ec;
    --view-surface: #f8d4c4;
    --view-ribbon: #ed9877;
}

.theme-orange {
    --view-dark: #753b26;
    --view-strong: #9a471f;
    --view-light: #fff4e7;
    --view-surface: #ffd5af;
    --view-ribbon: #ff9c5d;
}

.theme-cyan {
    --view-dark: #07525a;
    --view-strong: #076971;
    --view-light: #e2fbf8;
    --view-surface: #b7eceb;
    --view-ribbon: #39c9cc;
}

.theme-blue {
    --view-dark: #073d48;
    --view-strong: #1a616d;
    --view-light: #e8f6f4;
    --view-surface: #c2e2e2;
    --view-ribbon: #5eb9bb;
}

.card-actions {
    flex-wrap: wrap;
    gap: 10px 15px;
    align-self: stretch;
    padding-top: 3px;
}

.project-body .category-label {
    margin-bottom: 8px;
    color: #366c6b;
    font-weight: 650;
}

.card-actions .card-enquiry {
    min-height: 41px;
    padding-inline: 13px;
    border-radius: 8px;
    background: #ffbc91;
    color: #452519;
    text-decoration: none;
}

.card-actions .card-enquiry:hover { background: #ffa671; color: #452519; }
.contact-grid > .inline-enquiry { padding-top: 0; }
.record-badges { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.badge.demo { background: var(--accent-light); color: #874323; }

.demo-dialog {
    position: fixed;
    inset: 0;
    width: min(550px, calc(100% - 24px));
    max-height: calc(100dvh - 24px);
    margin: auto;
    padding: 0;
    border: 1px solid #c7e0d9;
    border-radius: 18px;
    color: var(--ink);
    background: white;
    box-shadow: 0 25px 80px #05342e60;
    overflow: auto;
    overscroll-behavior: contain;
}

.demo-dialog[open] { animation: screens-arrive .25s ease-out both; }
.demo-dialog::backdrop { background: #073b41b8; backdrop-filter: blur(6px); }
body:has(.demo-dialog[open]) { overflow: hidden; }

.demo-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 20px 24px 16px;
    border-bottom: 1px solid #cee7e2;
    background: linear-gradient(125deg, #ecf9f6, #f6faf5 58%, #fff1e6);
}

.demo-header .eyebrow { margin-bottom: 8px; }
.demo-header h2 { font-size: clamp(1.85rem, 6vw, 2.65rem); }
.demo-project { margin-top: 6px; color: #3d686b; font-weight: 680; }

.demo-close {
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    padding: 0;
    color: var(--ink);
    background: white;
    border: 1px solid #c8e1dc;
    border-radius: 7px;
    font-size: 1.55rem;
    line-height: 1;
}

.demo-close:hover { background: #e2f4f0; }
.demo-dialog .enquiry-form { border-radius: 0; box-shadow: none; }
.demo-dialog[data-state='success'] .form-grid,
.demo-dialog[data-state='success'] .enquiry-form button { display: none; }
.demo-dialog[data-state='success'] .notice { margin-bottom: 0; }

@keyframes screens-arrive {
    from { opacity: .72; transform: translateY(9px) scale(.985); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 550px) {
    .demo-header { padding: 17px; }
    .demo-dialog textarea { min-height: 72px; }
}

@media (prefers-reduced-motion: reduce) {
    .demo-dialog[open] { animation: none; }
    .project-card { transform: none; }
}
