:root {
    --bg: #f3efe8;
    --surface: rgba(255, 255, 255, 0.72);
    --surface-strong: #fffaf3;
    --ink: #131313;
    --muted: #5c5a57;
    --line: rgba(19, 19, 19, 0.12);
    --accent: #d86f2d;
    --accent-dark: #b14f12;
    --accent-soft: rgba(216, 111, 45, 0.14);
    --shadow: 0 24px 80px rgba(19, 19, 19, 0.12);
    --radius: 24px;
    --radius-sm: 18px;
    --shell: min(1120px, calc(100vw - 32px));
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background:
        radial-gradient(circle at top left, rgba(216, 111, 45, 0.14), transparent 26%),
        radial-gradient(circle at 85% 12%, rgba(16, 109, 91, 0.10), transparent 24%),
        linear-gradient(180deg, #f9f4ed 0%, #f0ebe4 100%);
    color: var(--ink);
    font: 500 16px/1.6 "Manrope", sans-serif;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

img {
    display: block;
    max-width: 100%;
}

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

button,
input,
textarea {
    font: inherit;
}

.site-body {
    min-height: 100vh;
}

.shell {
    width: var(--shell);
    margin: 0 auto;
}

.skip-link {
    position: absolute;
    left: 16px;
    top: -48px;
    z-index: 1000;
    padding: 12px 16px;
    background: #111;
    color: #fff;
    border-radius: 999px;
}

.skip-link:focus {
    top: 16px;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    padding: 14px 0;
    backdrop-filter: blur(18px);
}

.topbar {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 999px;
    background: rgba(255, 250, 243, 0.72);
    box-shadow: 0 16px 40px rgba(19, 19, 19, 0.08);
}

.brand img {
    width: auto;
    height: 42px;
    flex: 0 0 auto;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.brand-copy {
    display: block;
    min-width: 0;
    max-width: 170px;
}

.brand-copy strong,
.brand-copy small {
    display: block;
    line-height: 1.1;
}

.brand-copy strong {
    font-family: "Space Grotesk", sans-serif;
    font-size: 0.86rem;
    color: var(--ink);
}

.brand-copy small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 0.68rem;
}

.nav-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #111;
    color: #fff;
    cursor: pointer;
}

.nav-toggle span {
    width: 18px;
    height: 2px;
    margin: 0 auto;
    background: currentColor;
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}

.nav-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.site-nav {
    position: absolute;
    left: 16px;
    right: 16px;
    top: calc(100% + 10px);
    display: none;
    flex-direction: column;
    gap: 8px;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 24px;
    background: rgba(255, 250, 243, 0.96);
    box-shadow: var(--shadow);
}

.site-nav.is-open,
.site-nav.site-nav-static {
    display: flex;
}

.site-nav.site-nav-static {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.site-nav a {
    padding: 11px 14px;
    border-radius: 14px;
    color: var(--muted);
    font-weight: 700;
}

.site-nav a:hover,
.site-nav a:focus-visible {
    background: rgba(19, 19, 19, 0.06);
    color: var(--ink);
}

.nav-cta {
    background: #111;
    color: #fff !important;
}

.flash-stack {
    padding-top: 16px;
}

.flash {
    margin-bottom: 12px;
    padding: 14px 18px;
    border-radius: 16px;
    border: 1px solid transparent;
}

.flash-success {
    background: rgba(27, 121, 78, 0.10);
    border-color: rgba(27, 121, 78, 0.22);
}

.flash-error {
    background: rgba(181, 58, 58, 0.10);
    border-color: rgba(181, 58, 58, 0.22);
}

.hero-section {
    padding: 28px 0 48px;
}

.hero-grid {
    display: grid;
    gap: 24px;
}

.hero-copy,
.hero-visual,
.feature-card,
.service-card,
.process-panel,
.contact-card,
.legal-card {
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.58);
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    backdrop-filter: blur(14px);
}

.hero-copy {
    padding: 28px 22px;
    overflow: hidden;
}

.eyebrow,
.service-eyebrow {
    margin: 0 0 12px;
    color: var(--accent-dark);
    font: 700 0.8rem/1.2 "Space Grotesk", sans-serif;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

h1,
h2,
h3 {
    margin: 0;
    font-family: "Space Grotesk", sans-serif;
    letter-spacing: -0.03em;
    line-height: 1.02;
}

h1 {
    max-width: 11ch;
    font-size: clamp(2.6rem, 7.2vw, 4.85rem);
    overflow-wrap: anywhere;
    text-wrap: balance;
}

h2 {
    font-size: clamp(2rem, 7vw, 3.8rem);
}

h3 {
    font-size: clamp(1.2rem, 4vw, 1.65rem);
}

p {
    margin: 0;
    color: var(--muted);
}

.hero-text,
.section-header p,
.section-intro p,
.contact-copy p,
.footer-brand p,
.legal-card p {
    font-size: 1.02rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 0 20px;
    border: 1px solid transparent;
    border-radius: 999px;
    font-weight: 800;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.button:hover,
.button:focus-visible,
.contact-link:hover,
.contact-link:focus-visible {
    transform: translateY(-2px);
}

.button-primary {
    background: linear-gradient(135deg, var(--accent) 0%, #f08f3a 100%);
    color: #fff;
    box-shadow: 0 14px 32px rgba(216, 111, 45, 0.28);
}

.button-secondary {
    border-color: var(--line);
    background: rgba(255, 255, 255, 0.66);
    color: var(--ink);
}

.hero-metrics {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 12px;
    margin-top: 28px;
}

.hero-metrics div {
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.52);
    border: 1px solid rgba(19, 19, 19, 0.06);
}

.hero-metrics strong,
.project-overlay strong,
.contact-link strong {
    display: block;
    color: var(--ink);
}

.hero-metrics span,
.project-overlay span,
.contact-link span {
    color: var(--muted);
    font-size: 0.92rem;
}

.hero-visual {
    overflow: hidden;
    padding: 16px;
}

.hero-card-main {
    position: relative;
    overflow: hidden;
    border-radius: calc(var(--radius) - 8px);
    min-height: 360px;
}

.hero-card-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-badge {
    position: absolute;
    left: 16px;
    right: 16px;
    bottom: 16px;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(19, 19, 19, 0.72);
    backdrop-filter: blur(12px);
}

.hero-badge span {
    display: block;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.hero-badge strong {
    color: #fff;
}

.hero-stack {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    margin-top: 12px;
}

.hero-thumb {
    overflow: hidden;
    min-height: 92px;
    margin: 0;
    border-radius: 18px;
}

.hero-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.section {
    padding: 32px 0;
}

.section-intro,
.section-header {
    display: grid;
    gap: 16px;
    margin-bottom: 22px;
}

.intro-strip {
    padding-top: 12px;
}

.feature-grid,
.service-grid,
.contact-grid {
    display: grid;
    gap: 16px;
}

.feature-card,
.service-card {
    padding: 22px;
}

.feature-card h3,
.service-card h3,
.process-step h3 {
    margin-bottom: 10px;
}

.showcase-grid {
    display: grid;
    gap: 16px;
}

.showcase-copy,
.process-panel {
    padding: 24px;
}

.check-list {
    margin: 22px 0 0;
    padding: 0;
    list-style: none;
}

.check-list li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 12px;
    color: var(--muted);
}

.check-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 10px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent), #ffbd7a);
}

.process-panel {
    display: grid;
    gap: 14px;
}

.process-step {
    display: grid;
    grid-template-columns: 56px 1fr;
    gap: 16px;
    align-items: start;
    padding: 16px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.5);
}

.process-step span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 18px;
    background: #111;
    color: #fff;
    font-family: "Space Grotesk", sans-serif;
    font-weight: 700;
}

.project-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.filter-chip {
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.6);
    color: var(--muted);
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.filter-chip.is-active {
    background: #111;
    color: #fff;
    border-color: #111;
}

.project-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 14px;
}

.project-card {
    overflow: hidden;
    border-radius: 24px;
    min-height: 260px;
    background: #d8d1c7;
}

.project-card[hidden] {
    display: none;
}

.project-card a,
.project-card img {
    width: 100%;
    height: 100%;
}

.project-card a {
    position: relative;
    display: block;
    min-height: 260px;
}

.project-card img {
    object-fit: cover;
}

.project-lightbox-trigger {
    cursor: zoom-in;
}

.project-overlay {
    position: absolute;
    inset: auto 14px 14px 14px;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(19, 19, 19, 0.7);
    backdrop-filter: blur(10px);
}

.project-overlay span {
    color: rgba(255, 255, 255, 0.66);
}

.project-overlay strong {
    color: #fff;
}

.lightbox-open {
    overflow: hidden;
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 120;
    display: grid;
    place-items: center;
    padding: 20px;
}

.lightbox[hidden] {
    display: none;
}

.lightbox-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 10, 0.78);
    backdrop-filter: blur(10px);
}

.lightbox-dialog {
    position: relative;
    z-index: 1;
    width: min(1100px, 100%);
}

.lightbox-close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 50%;
    background: rgba(19, 19, 19, 0.78);
    color: #fff;
    font-size: 1.8rem;
    cursor: pointer;
}

.lightbox-figure {
    margin: 0;
    overflow: hidden;
    border-radius: 28px;
    background: #121212;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
}

.lightbox-figure img {
    display: block;
    width: 100%;
    max-height: min(78vh, 920px);
    object-fit: contain;
    background: #121212;
}

.lightbox-caption {
    display: grid;
    gap: 4px;
    padding: 18px 20px 20px;
    background: rgba(255, 255, 255, 0.04);
}

.lightbox-caption span {
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.lightbox-caption strong {
    color: #fff;
    font-size: 1rem;
}

.contact-card {
    padding: 24px;
}

.contact-grid {
    margin-top: 22px;
}

.contact-link {
    display: block;
    padding: 18px;
    border: 1px solid rgba(19, 19, 19, 0.08);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.58);
    transition: transform 0.2s ease;
}

.contact-link-static {
    cursor: default;
}

.map-consent-card {
    margin-top: 20px;
    padding: 20px;
    border-radius: 22px;
    background: linear-gradient(180deg, rgba(19, 19, 19, 0.04), rgba(19, 19, 19, 0.02));
}

.map-consent-card p {
    margin-bottom: 14px;
}

.map-consent-card iframe {
    border: 0;
    border-radius: 18px;
}

.site-footer {
    position: relative;
    overflow: hidden;
    margin-top: 32px;
    padding: 40px 0 26px;
    background: #111;
    color: rgba(255, 255, 255, 0.84);
}

.footer-aurora {
    position: absolute;
    inset: -10% auto auto -10%;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background:
        radial-gradient(circle, rgba(216, 111, 45, 0.55) 0%, rgba(216, 111, 45, 0) 64%),
        radial-gradient(circle at 70% 40%, rgba(0, 157, 129, 0.38) 0%, rgba(0, 157, 129, 0) 48%);
    filter: blur(18px);
    animation: footerFloat 12s ease-in-out infinite alternate;
    pointer-events: none;
}

.footer-grid {
    position: relative;
    display: grid;
    gap: 18px;
}

.footer-brand h2 {
    color: #fff;
}

.footer-contact {
    display: grid;
    gap: 8px;
    margin-top: 18px;
}

.footer-contact a,
.footer-contact p {
    color: rgba(255, 255, 255, 0.74);
}

.footer-contact a:hover,
.footer-contact a:focus-visible {
    color: #fff;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: flex-start;
    align-content: flex-start;
}

.footer-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: auto;
    min-height: 46px;
    padding: 10px 14px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
}

.footer-ticker {
    margin-top: 26px;
    overflow: hidden;
    white-space: nowrap;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-ticker div {
    display: inline-flex;
    gap: 32px;
    min-width: max-content;
    padding: 14px 0;
    animation: tickerMove 28s linear infinite;
}

.footer-ticker span {
    color: rgba(255, 255, 255, 0.56);
    font: 700 0.95rem/1 "Space Grotesk", sans-serif;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

.footer-meta {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 18px;
}

.site-footer-compact {
    padding-top: 28px;
}

.legal-page .site-header {
    position: static;
}

.legal-layout {
    padding-top: 12px;
    padding-bottom: 56px;
}

.legal-card {
    padding: 28px 22px;
}

.legal-card h2 {
    margin: 28px 0 10px;
    font-size: clamp(1.3rem, 4vw, 2rem);
}

[data-reveal] {
    opacity: 0;
    transform: translateY(22px);
    transition:
        opacity 0.6s ease,
        transform 0.6s ease;
    transition-delay: var(--reveal-delay, 0ms);
}

[data-reveal="left"] {
    transform: translateX(22px);
}

[data-reveal].is-visible {
    opacity: 1;
    transform: translate(0, 0);
}

@keyframes tickerMove {
    from {
        transform: translateX(0);
    }
    to {
        transform: translateX(-50%);
    }
}

@keyframes footerFloat {
    from {
        transform: translate3d(0, 0, 0) scale(1);
    }
    to {
        transform: translate3d(28px, 24px, 0) scale(1.12);
    }
}

@media (min-width: 720px) {
    .hero-section {
        padding-top: 36px;
        padding-bottom: 68px;
    }

    .feature-grid,
    .service-grid,
    .contact-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .section-header {
        grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.8fr);
        align-items: end;
    }

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

    .footer-meta {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

@media (min-width: 960px) {
    .site-header {
        padding-top: 20px;
    }

    .topbar {
        padding: 14px 18px;
    }

    .nav-toggle {
        display: none;
    }

    .site-nav {
        position: static;
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 4px;
        padding: 0;
        border: 0;
        background: transparent;
        box-shadow: none;
    }

    .hero-grid {
        grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.95fr);
        align-items: center;
    }

    .hero-copy {
        padding: 42px;
    }

    h1 {
        font-size: clamp(3.5rem, 6vw, 5.1rem);
    }

    .brand-copy {
        max-width: none;
    }

    .brand-copy strong {
        font-size: 0.98rem;
    }

    .brand-copy small {
        font-size: 0.76rem;
    }

    .hero-metrics {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .hero-card-main {
        min-height: 560px;
    }

    .feature-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .service-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .project-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .contact-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation: none !important;
        transition-duration: 0.01ms !important;
        transition-delay: 0ms !important;
        scroll-behavior: auto !important;
    }

    [data-reveal] {
        opacity: 1;
        transform: none;
    }
}
