:root {
    --bg: #f6efe2;
    --bg-strong: #ead8ba;
    --surface: rgba(255, 249, 241, 0.76);
    --card: #fffaf2;
    --card-strong: #f4e8d6;
    --text: #231b16;
    --muted: #5d5148;
    --accent: #b35f42;
    --accent-strong: #8d452e;
    --forest: #244b42;
    --forest-deep: #153129;
    --gold: #c7a166;
    --line: rgba(74, 52, 35, 0.14);
    --shadow: 0 24px 60px rgba(70, 46, 30, 0.14);
    --radius: 30px;
    --content-width: min(1140px, calc(100% - 2rem));
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Sora", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(179, 95, 66, 0.18), transparent 28%),
        radial-gradient(circle at 80% 18%, rgba(36, 75, 66, 0.12), transparent 24%),
        linear-gradient(135deg, #fbf6ed 0%, var(--bg) 48%, #efe2cd 100%);
}

body::before,
body::after {
    content: "";
    position: fixed;
    inset: auto;
    border-radius: 999px;
    pointer-events: none;
    z-index: 0;
}

body::before {
    width: 18rem;
    height: 18rem;
    right: -5rem;
    top: 28rem;
    background: rgba(199, 161, 102, 0.14);
    filter: blur(10px);
}

body::after {
    width: 24rem;
    height: 24rem;
    left: -8rem;
    bottom: 8rem;
    background: rgba(36, 75, 66, 0.1);
    filter: blur(14px);
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
}

.page-shell {
    position: relative;
    z-index: 1;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(251, 245, 235, 0.82);
    backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(74, 52, 35, 0.08);
}

.header-inner,
main,
.site-footer {
    width: var(--content-width);
    margin: 0 auto;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 2rem;
    padding: 1rem 0;
}

.brand {
    display: grid;
    gap: 0.2rem;
    text-decoration: none;
}

.brand-mark,
h1,
h2,
h3 {
    font-family: "Fraunces", serif;
}

.brand-mark {
    font-size: 1.28rem;
    font-weight: 600;
}

.brand-subtitle {
    font-size: 0.82rem;
    color: var(--muted);
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem 1.2rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-links a {
    text-decoration: none;
    color: var(--muted);
    font-size: 0.95rem;
}

.nav-links a:hover,
.nav-links a:focus-visible,
.text-link:hover,
.text-link:focus-visible,
.project-link:hover,
.project-link:focus-visible {
    color: var(--accent-strong);
}

main {
    padding: 2rem 0 4rem;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
    gap: 2.4rem;
    align-items: center;
    padding: 2.5rem 0 4rem;
}

.eyebrow,
.card-label {
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: 0.74rem;
    font-weight: 600;
    color: var(--accent-strong);
}

.eyebrow-light {
    color: rgba(255, 244, 230, 0.8);
}

h1 {
    font-size: clamp(2.9rem, 6vw, 5.2rem);
    line-height: 0.98;
    margin: 0.75rem 0 1rem;
    max-width: 10ch;
}

.lead,
.section-heading p,
.info-card p,
.service-card p,
.process-card p,
.project-body p,
.contact-intro,
.aside-card p,
.floating-note p,
.site-footer p {
    color: var(--muted);
    line-height: 1.8;
}

.lead {
    max-width: 40rem;
    font-size: 1.05rem;
    margin: 0;
}

.hero-actions,
.contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.8rem;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 3.2rem;
    padding: 0.8rem 1.35rem;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.button:hover,
.button:focus-visible {
    transform: translateY(-2px);
}

.button-primary {
    background: var(--forest);
    color: #fff;
    box-shadow: 0 14px 32px rgba(21, 49, 41, 0.22);
}

.button-secondary {
    background: rgba(255, 255, 255, 0.66);
    border: 1px solid rgba(74, 52, 35, 0.12);
}

.button-light {
    background: #fff;
    color: var(--forest-deep);
}

.button-outline {
    border: 1px solid rgba(255, 255, 255, 0.36);
    color: #fff;
}

.hero-highlights,
.check-list,
.contact-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.hero-highlights {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 2rem;
}

.hero-highlights li,
.info-card,
.about-card,
.service-card,
.process-card,
.project-card {
    background: var(--surface);
    border: 1px solid rgba(74, 52, 35, 0.08);
    box-shadow: var(--shadow);
}

.hero-highlights li {
    display: grid;
    gap: 0.35rem;
    padding: 1rem 1.1rem;
    border-radius: 22px;
}

.hero-highlights strong {
    font-size: 0.85rem;
}

.hero-highlights span {
    color: var(--muted);
    font-size: 0.95rem;
}

.hero-visual {
    position: relative;
    display: grid;
    gap: 1rem;
    min-height: 100%;
}

.portrait-card {
    margin: 0;
    padding: 1rem;
    background: rgba(255, 250, 243, 0.9);
    border-radius: 34px;
    box-shadow: var(--shadow);
    transform: rotate(-1.2deg);
}

.portrait-card img {
    width: 100%;
    min-height: 30rem;
    object-fit: cover;
    border-radius: 24px;
}

.portrait-card figcaption {
    padding: 1rem 0.35rem 0.1rem;
    line-height: 1.7;
    color: var(--muted);
}

.floating-note {
    position: static;
    justify-self: end;
    width: min(100%, 14rem);
    margin-right: 1rem;
    padding: 1rem 1.2rem;
    border-radius: 22px;
    background: rgba(36, 75, 66, 0.95);
    box-shadow: 0 18px 36px rgba(21, 49, 41, 0.26);
}

.floating-note .note-title {
    margin: 0 0 0.25rem;
    color: #f6e7c8;
    font-weight: 700;
}

.floating-note p:last-child {
    margin: 0;
    color: rgba(255, 244, 230, 0.88);
}

.credibility-band,
.services-grid,
.process-grid {
    display: grid;
    gap: 1rem;
}

.credibility-band {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.info-card,
.about-card,
.aside-card,
.service-card,
.process-card,
.project-body {
    padding: 1.5rem;
    border-radius: var(--radius);
}

.info-card h2,
.section-heading h2,
.contact h2 {
    margin: 0.55rem 0 0.75rem;
    font-size: clamp(2rem, 4vw, 3.2rem);
    line-height: 1.08;
}

.info-card h2 {
    font-size: 1.55rem;
}

.section-space {
    margin-top: 5rem;
}

.section-heading {
    max-width: 46rem;
    margin-bottom: 2rem;
}

.compact-heading {
    max-width: 34rem;
}

.about-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.04fr) minmax(280px, 0.96fr);
    gap: 1rem;
}

.about-card {
    background: rgba(255, 251, 245, 0.85);
}

.aside-card {
    background: linear-gradient(160deg, #efe1cb 0%, #e4cfae 100%);
    border: 1px solid rgba(74, 52, 35, 0.08);
    box-shadow: var(--shadow);
}

.check-list {
    display: grid;
    gap: 0.9rem;
    margin-top: 1rem;
}

.check-list li {
    position: relative;
    padding-left: 1.5rem;
    line-height: 1.7;
}

.check-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.68rem;
    width: 0.58rem;
    height: 0.58rem;
    border-radius: 999px;
    background: var(--accent);
}

.text-link,
.project-link {
    font-weight: 600;
    text-decoration: none;
}

.services-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.service-card h3 {
    margin: 0.7rem 0 0.9rem;
    font-size: 1.3rem;
    line-height: 1.15;
    overflow-wrap: normal;
    hyphens: manual;
}

.process-card h3,
.project-body h3 {
    margin: 0.7rem 0;
    font-size: 1.45rem;
    line-height: 1.2;
}

.process-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.process-card {
    position: relative;
    overflow: hidden;
}

.process-card::after {
    content: "";
    position: absolute;
    inset: auto -2.2rem -2.2rem auto;
    width: 7rem;
    height: 7rem;
    border-radius: 50%;
    background: rgba(199, 161, 102, 0.12);
}

.process-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.2rem;
    height: 2.2rem;
    border-radius: 999px;
    background: rgba(179, 95, 66, 0.12);
    color: var(--accent-strong);
    font-weight: 700;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: 1rem;
}

.project-card {
    overflow: hidden;
    border-radius: 34px;
}

.project-featured {
    grid-column: span 7;
}

.project-card:not(.project-featured):not(.project-wide) {
    grid-column: span 5;
}

.project-wide {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
}

.project-media {
    background: var(--card-strong);
}

.project-featured .project-media img,
.project-card:not(.project-wide) .project-media img {
    width: 100%;
    height: 20rem;
    object-fit: cover;
}

.project-wide .project-media img {
    width: 100%;
    height: 100%;
    min-height: 100%;
    object-fit: cover;
}

.project-body {
    display: grid;
    align-content: start;
    gap: 0.9rem;
    background: rgba(255, 250, 243, 0.88);
}

.project-kicker-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.project-place,
.project-type {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.7rem;
    border-radius: 999px;
    background: rgba(36, 75, 66, 0.08);
    color: var(--forest);
    font-size: 0.82rem;
    font-weight: 600;
}

.contact {
    padding: 2rem;
    border-radius: 36px;
    background:
        radial-gradient(circle at top right, rgba(255, 255, 255, 0.12), transparent 22%),
        linear-gradient(135deg, var(--forest) 0%, var(--forest-deep) 100%);
    color: #fff;
    box-shadow: 0 28px 56px rgba(21, 49, 41, 0.24);
}

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 2rem;
    align-items: end;
}

.contact-intro,
.contact-list a,
.social-link {
    color: rgba(255, 244, 230, 0.88);
}

.contact-list {
    display: grid;
    gap: 0.8rem;
    margin-top: 1.4rem;
}

.contact-list a,
.social-link {
    text-decoration: none;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
}

.social-badge {
    display: inline-grid;
    place-items: center;
    width: 1.9rem;
    height: 1.9rem;
    border-radius: 0.55rem;
    background: rgba(255, 255, 255, 0.14);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
}

.site-footer {
    padding: 1.75rem 0 3rem;
}

.site-footer p {
    margin: 0;
    font-size: 0.92rem;
}

@media (max-width: 1280px) {
    .services-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    .hero,
    .about-grid,
    .contact-grid,
    .project-wide {
        grid-template-columns: 1fr;
    }

    .credibility-band,
    .process-grid {
        grid-template-columns: 1fr;
    }

    .projects-grid {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .project-featured,
    .project-card:not(.project-featured):not(.project-wide),
    .project-wide {
        grid-column: auto;
    }

    .floating-note {
        position: static;
        max-width: none;
        margin-top: 1rem;
    }

    h1 {
        max-width: 14ch;
    }
}

@media (max-width: 760px) {
    .header-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .hero-highlights {
        grid-template-columns: 1fr;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }

    .contact {
        padding: 1.5rem;
    }

    .portrait-card img,
    .project-featured .project-media img,
    .project-card:not(.project-wide) .project-media img {
        min-height: 0;
        height: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        transition: none !important;
    }
}