* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --bg: #f7f2f2;
    --bg-alt: #efe3e4;
    --surface: #ffffff;
    --surface-soft: rgba(255, 255, 255, 0.72);
    --text: #2a171a;
    --text-soft: #645055;
    --line: rgba(60, 25, 31, 0.16);
    --primary: #8c313a;
    --primary-deep: #5f1f26;
    --secondary: #b54b56;
    --highlight: #d9b184;
    --danger: #8f2d2d;
    --radius-xs: 10px;
    --radius-sm: 14px;
    --radius-md: 20px;
    --radius-lg: 28px;
    --shadow-sm: 0 10px 24px rgba(28, 17, 8, 0.1);
    --shadow-md: 0 18px 44px rgba(28, 17, 8, 0.16);
    --shadow-lg: 0 24px 60px rgba(28, 17, 8, 0.2);
    --max-width: 1240px;
    --header-height: 92px;
    --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    font-family: "Manrope", "Segoe UI", sans-serif;
    color: var(--text);
    line-height: 1.65;
    background:
        radial-gradient(1200px 700px at 0% -15%, rgba(140, 49, 58, 0.24), transparent 70%),
        radial-gradient(950px 650px at 100% 5%, rgba(181, 75, 86, 0.2), transparent 72%),
        linear-gradient(180deg, var(--bg), var(--bg-alt));
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5 {
    font-family: "Sora", "Manrope", sans-serif;
    line-height: 1.15;
    letter-spacing: -0.03em;
    color: var(--text);
}

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

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

main {
    padding-top: var(--header-height);
}

.section {
    position: relative;
    padding: 5.5rem 0;
}

.container {
    width: min(var(--max-width), calc(100% - 2.25rem));
    margin-inline: auto;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.84rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--secondary);
    margin-bottom: 1rem;
}

.eyebrow::before {
    content: "";
    width: 1.4rem;
    height: 2px;
    border-radius: 2px;
    background: currentColor;
}

.section-head {
    text-align: center;
    max-width: 780px;
    margin: 0 auto 2.8rem;
}

.section-head h2 {
    font-size: clamp(2rem, 3vw, 3.3rem);
    margin-bottom: 0.85rem;
}

.section-head p {
    color: var(--text-soft);
}

.skip-link {
    position: absolute;
    left: 0.8rem;
    top: -48px;
    z-index: 5000;
    background: var(--text);
    color: #fff;
    padding: 0.6rem 0.9rem;
    border-radius: 9px;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 0.8rem;
}

.site-header {
    position: fixed;
    inset: 0 0 auto;
    z-index: 1400;
    backdrop-filter: blur(16px);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
}

.site-header::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.82));
    pointer-events: none;
}

.site-header.scrolled {
    border-color: var(--line);
    box-shadow: var(--shadow-sm);
}

.nav-shell {
    height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    z-index: 2;
}

.brand {
    display: inline-flex;
    align-items: center;
}

.brand img {
    width: 154px;
    height: auto;
}

.main-nav ul {
    display: flex;
    align-items: center;
    list-style: none;
    gap: 0.34rem;
}

.main-nav a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0.6rem 0.98rem;
    border-radius: 999px;
    font-size: 0.92rem;
    font-weight: 700;
    color: #3a1f24;
    transition: transform 0.25s var(--ease-out), color 0.25s ease, background-color 0.25s ease;
}

.main-nav a:hover,
.main-nav a.active {
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    transform: translateY(-2px);
}

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.8);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
}

.nav-toggle span {
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: #231b13;
    transition: transform 0.24s ease, opacity 0.24s ease;
}

.nav-toggle.open span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.nav-toggle.open span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.open span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.hero {
    overflow: clip;
    padding-top: 6.1rem;
    padding-bottom: 4.6rem;
}

.hero::before,
.hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(1px);
    pointer-events: none;
}

.hero::before {
    width: 680px;
    height: 680px;
    right: -280px;
    top: -260px;
    background: radial-gradient(circle, rgba(255, 209, 127, 0.55), rgba(255, 209, 127, 0) 66%);
    animation: drift 12s ease-in-out infinite;
}

.hero::after {
    width: 560px;
    height: 560px;
    left: -210px;
    bottom: -300px;
    background: radial-gradient(circle, rgba(181, 75, 86, 0.32), rgba(181, 75, 86, 0) 70%);
    animation: drift 15s ease-in-out infinite reverse;
}

.hero-noise {
    position: absolute;
    inset: 0;
    pointer-events: none;
    opacity: 0.23;
    background-image: radial-gradient(rgba(25, 22, 19, 0.2) 0.6px, transparent 0.6px);
    background-size: 4px 4px;
    mask-image: linear-gradient(180deg, transparent 0, #000 20%, #000 78%, transparent 100%);
}

.parallax-orb {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    will-change: transform;
}

.orb-one {
    width: 300px;
    height: 300px;
    left: min(8vw, 5rem);
    top: 5rem;
    background: radial-gradient(circle at 30% 30%, rgba(255, 209, 127, 0.72), rgba(255, 209, 127, 0));
}

.orb-two {
    width: 380px;
    height: 380px;
    right: min(6vw, 4rem);
    bottom: -5rem;
    background: radial-gradient(circle at 40% 40%, rgba(181, 75, 86, 0.52), rgba(181, 75, 86, 0));
}

.hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 2.4rem;
    align-items: center;
}

.hero-copy h1 {
    font-size: clamp(2.2rem, 5vw, 4.5rem);
    margin-bottom: 1rem;
    max-width: 12ch;
}

.hero-copy > p {
    color: var(--text-soft);
    font-size: clamp(1rem, 1.4vw, 1.18rem);
    max-width: 56ch;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-top: 1.8rem;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.56rem;
    border-radius: 13px;
    padding: 0.95rem 1.3rem;
    border: none;
    font-weight: 800;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: transform 0.24s var(--ease-out), box-shadow 0.24s ease, background-color 0.24s ease;
}

.btn i {
    font-size: 0.9rem;
}

.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--primary-deep));
    box-shadow: 0 12px 30px rgba(108, 36, 45, 0.34);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(108, 36, 45, 0.44);
}

.btn-ghost {
    color: var(--text);
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.66);
}

.btn-ghost:hover {
    transform: translateY(-2px);
    background: #fff;
}

.hero-stats {
    margin-top: 2.25rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
}

.stat {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: var(--radius-sm);
    backdrop-filter: blur(8px);
    min-width: 152px;
    padding: 1rem 1.05rem;
    box-shadow: var(--shadow-sm);
}

.stat-number {
    font-family: "Sora", sans-serif;
    display: block;
    font-size: clamp(1.6rem, 2.6vw, 2rem);
    line-height: 1;
    color: var(--primary-deep);
    margin-bottom: 0.35rem;
}

.stat-label {
    color: var(--text-soft);
    font-size: 0.89rem;
}

.hero-visual {
    position: relative;
}

.hero-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    min-height: 540px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.65);
}

.hero-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(19, 19, 19, 0) 36%, rgba(19, 19, 19, 0.62) 100%);
    z-index: 1;
}

.hero-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.08);
    animation: heroZoom 12s ease-in-out infinite alternate;
}

.hero-card figcaption {
    position: absolute;
    z-index: 2;
    left: 1.4rem;
    right: 1.4rem;
    bottom: 1.2rem;
    color: #fff;
}

.hero-card figcaption span {
    display: inline-flex;
    font-size: 0.77rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    opacity: 0.88;
    margin-bottom: 0.4rem;
}

.hero-card figcaption strong {
    font-family: "Sora", sans-serif;
    font-size: clamp(1.1rem, 2.2vw, 1.6rem);
}

.hero-badge {
    position: absolute;
    left: -1rem;
    bottom: 1.4rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--secondary), var(--primary-deep));
    color: #fff;
    padding: 0.68rem 1rem;
    box-shadow: 0 16px 35px rgba(89, 31, 38, 0.42);
    display: inline-flex;
    gap: 0.5rem;
    align-items: center;
    font-size: 0.84rem;
    font-weight: 700;
}

.hero-badge i {
    font-size: 0.85rem;
}

.services {
    padding-top: 4.4rem;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.2rem;
}

.service-card {
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    overflow: hidden;
    background: var(--surface-soft);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    transform-style: preserve-3d;
    transition: transform 0.22s var(--ease-out), box-shadow 0.22s ease;
}

.service-card:hover {
    box-shadow: var(--shadow-md);
}

.service-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    object-position: 50% 50%;
    border-bottom: 1px solid var(--line);
    transition: transform 0.28s var(--ease-out), object-position 0.28s var(--ease-out);
}

.service-card:hover img {
    transform: scale(1.02);
}

.service-image.focus-moebel {
    object-position: 50% 57%;
}

.service-image.focus-innenausbau {
    object-position: 50% 52%;
}

.service-image.focus-treppe {
    object-position: 50% 20%;
}

.service-image.focus-carport {
    object-position: 50% 26%;
}

.service-image.is-portrait {
    object-fit: contain;
    padding: 0.5rem;
    background:
        radial-gradient(120% 100% at 20% 15%, rgba(140, 49, 58, 0.14), transparent 65%),
        radial-gradient(100% 95% at 85% 80%, rgba(181, 75, 86, 0.12), transparent 62%),
        rgba(248, 241, 242, 0.88);
}

.service-content {
    padding: 1.2rem 1.15rem 1.2rem;
}

.service-content i {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, rgba(140, 49, 58, 0.15), rgba(181, 75, 86, 0.16));
    color: var(--primary-deep);
    margin-bottom: 0.8rem;
}

.service-content h3 {
    font-size: 1.25rem;
    margin-bottom: 0.55rem;
}

.service-content p {
    color: var(--text-soft);
    font-size: 0.97rem;
}

.workshop-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
    gap: 1.3rem;
    align-items: start;
}

.workshop-copy h2 {
    font-size: clamp(2rem, 3.4vw, 3.05rem);
    margin-bottom: 0.9rem;
    max-width: 14ch;
}

.workshop-copy > p {
    color: var(--text-soft);
    max-width: 60ch;
}

.process-list {
    margin-top: 1.65rem;
    list-style: none;
    display: grid;
    gap: 0.8rem;
}

.process-list li {
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(8px);
    padding: 0.95rem;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.8rem;
}

.process-list li > span {
    min-width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(140deg, var(--primary), var(--primary-deep));
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.86rem;
}

.process-list h3 {
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.process-list p {
    font-size: 0.93rem;
    color: var(--text-soft);
}

.workshop-visual {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.8rem;
}

.workshop-visual img {
    height: 530px;
    width: 100%;
    object-fit: cover;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(255, 255, 255, 0.7);
}

.workshop-visual img:last-child {
    margin-top: 2rem;
}

.references {
    padding-top: 4.8rem;
}

.reference-marquee {
    display: grid;
    gap: 1rem;
    --reference-gap: 1rem;
}

.reference-row {
    position: relative;
    overflow: hidden;
    mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
}

.reference-row.row-b {
    padding-left: clamp(1.2rem, 4vw, 4rem);
}

.reference-track {
    display: flex;
    align-items: stretch;
    gap: 0;
    width: max-content;
    will-change: transform;
    animation: referencesMarquee 46s linear infinite;
    animation-play-state: running;
}

.reference-segment {
    display: flex;
    align-items: stretch;
    gap: var(--reference-gap);
    padding-right: var(--reference-gap);
}

.reference-row.row-a .reference-track {
    animation-duration: 120s;
}

.reference-row.row-b .reference-track {
    animation-duration: 150s;
    animation-delay: -34s;
}

.reference-item {
    width: clamp(220px, 24vw, 320px);
    min-width: clamp(220px, 24vw, 320px);
    flex: 0 0 auto;
    border: none;
    background: transparent;
    border-radius: var(--radius-md);
    overflow: hidden;
    text-align: left;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
    transition: transform 0.24s var(--ease-out), box-shadow 0.24s ease;
}

.reference-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

.reference-item img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.reference-item img.reference-image.is-portrait {
    object-fit: contain;
    padding: 0.35rem;
    background:
        radial-gradient(120% 100% at 25% 15%, rgba(140, 49, 58, 0.12), transparent 65%),
        radial-gradient(100% 100% at 85% 85%, rgba(181, 75, 86, 0.1), transparent 60%),
        rgba(248, 242, 243, 0.9);
}

.reference-item span {
    display: block;
    padding: 0.95rem 0.95rem 1.1rem;
    background: rgba(255, 255, 255, 0.88);
    color: #2f281f;
    font-weight: 700;
    font-size: 0.95rem;
}

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

.contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.94fr);
    gap: 1.35rem;
    align-items: stretch;
}

.contact-copy h2 {
    font-size: clamp(2rem, 3.2vw, 3rem);
    margin-bottom: 0.9rem;
}

.contact-copy > p {
    color: var(--text-soft);
    max-width: 56ch;
}

.contact-cards {
    margin-top: 1.5rem;
    display: grid;
    gap: 0.8rem;
}

.contact-cards article {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 0.75rem;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.72);
    padding: 0.9rem;
}

.contact-cards i {
    color: var(--secondary);
    font-size: 1.15rem;
    margin-top: 0.2rem;
}

.contact-cards h3 {
    font-size: 0.95rem;
    margin-bottom: 0.2rem;
}

.contact-cards p {
    color: var(--text-soft);
    font-size: 0.93rem;
}

.contact-cards a {
    color: var(--secondary);
    font-weight: 700;
}

.contact-form-shell {
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
    padding: 1.2rem;
}

.contact-form {
    display: grid;
    gap: 0.7rem;
}

.hp-field {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    opacity: 0;
}

.contact-form label {
    font-size: 0.9rem;
    font-weight: 700;
    color: #31291f;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    border: 1px solid rgba(34, 28, 22, 0.18);
    border-radius: 12px;
    padding: 0.75rem 0.84rem;
    font: inherit;
    background: #fff;
    color: var(--text);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(140, 49, 58, 0.2);
}

.contact-form input.input-error,
.contact-form textarea.input-error {
    border-color: var(--danger);
    box-shadow: 0 0 0 3px rgba(143, 45, 45, 0.16);
}

.form-status {
    min-height: 1.4rem;
    font-size: 0.88rem;
    font-weight: 700;
}

.form-status.success {
    color: #1a6a5f;
}

.form-status.error {
    color: var(--danger);
}

.contact-form button.is-loading {
    opacity: 0.75;
    pointer-events: none;
}

.site-footer {
    margin-top: 2.5rem;
    background:
        linear-gradient(150deg, #1f1114 0%, #38171e 50%, #2a1e16 100%);
    color: rgba(255, 255, 255, 0.9);
    padding-top: 3rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 1.2rem;
}

.footer-logo {
    width: 140px;
    filter: brightness(1.05);
    margin-bottom: 0.75rem;
}

.site-footer h3 {
    font-size: 1.05rem;
    color: #fff;
    margin-bottom: 0.5rem;
}

.site-footer p,
.site-footer a {
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.92rem;
}

.site-footer a:hover {
    color: var(--highlight);
}

.footer-bottom {
    margin-top: 1.4rem;
    padding: 1rem 0 1.25rem;
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    text-align: center;
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 2600;
    background: rgba(9, 8, 6, 0.9);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
    display: grid;
    place-items: center;
    padding: 1rem;
}

.lightbox.open {
    opacity: 1;
    pointer-events: auto;
}

.lightbox-image {
    max-width: min(1100px, 94vw);
    max-height: 88vh;
    border-radius: 18px;
    box-shadow: var(--shadow-lg);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.lightbox-close {
    position: absolute;
    top: 0.8rem;
    right: 0.8rem;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
    color: #fff;
    font-size: 1.7rem;
    line-height: 1;
    cursor: pointer;
}

.back-to-top {
    position: fixed;
    right: 1rem;
    bottom: 1rem;
    width: 46px;
    height: 46px;
    border: 0;
    border-radius: 50%;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--primary-deep));
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    z-index: 1700;
    opacity: 0;
    transform: translateY(8px);
    pointer-events: none;
    transition: opacity 0.24s ease, transform 0.24s var(--ease-out);
}

.back-to-top.visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

/* Legal pages */
.legal-page main {
    padding-bottom: 2.5rem;
}

.legal-hero {
    padding: 3.8rem 0 2rem;
}

.legal-hero .container {
    text-align: center;
}

.legal-hero h1 {
    font-size: clamp(2rem, 4vw, 3.4rem);
    margin-bottom: 0.75rem;
}

.legal-hero p {
    color: var(--text-soft);
}

.legal-content {
    padding-top: 1rem;
}

.legal-card {
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    padding: clamp(1.2rem, 2.4vw, 2.2rem);
}

.legal-card h2 {
    font-size: clamp(1.2rem, 2vw, 1.65rem);
    margin-top: 1.4rem;
    margin-bottom: 0.45rem;
}

.legal-card h3 {
    font-size: 1.02rem;
    margin-top: 0.95rem;
    margin-bottom: 0.35rem;
}

.legal-card p,
.legal-card li {
    color: var(--text-soft);
    font-size: 0.98rem;
}

.legal-card ul {
    padding-left: 1.05rem;
    margin: 0.4rem 0;
}

.legal-card address {
    margin-top: 0.6rem;
    font-style: normal;
    color: var(--text-soft);
}

.legal-card a {
    color: var(--primary);
    font-weight: 700;
}

/* 404 */
.error-page {
    display: grid;
    place-items: center;
    min-height: calc(100vh - var(--header-height));
    padding: 2rem 0 4rem;
}

.error-card {
    width: min(760px, calc(100% - 2rem));
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.84);
    box-shadow: var(--shadow-md);
    padding: clamp(1.3rem, 4vw, 2.4rem);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.error-card::before {
    content: "";
    position: absolute;
    inset: -80px auto auto -60px;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(181, 75, 86, 0.24), rgba(181, 75, 86, 0));
}

.error-code {
    font-family: "Sora", sans-serif;
    font-size: clamp(3rem, 12vw, 7rem);
    line-height: 1;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: transparent;
    -webkit-background-clip: text;
    background-clip: text;
    margin-bottom: 0.6rem;
}

.error-card h1 {
    font-size: clamp(1.7rem, 4vw, 2.8rem);
    margin-bottom: 0.8rem;
}

.error-card p {
    color: var(--text-soft);
    margin-bottom: 1.2rem;
}

.error-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.7rem;
}

.reveal {
    opacity: 0;
    transform: translate3d(0, 26px, 0);
    transition: opacity 0.65s var(--ease-out), transform 0.65s var(--ease-out);
    transition-delay: var(--delay, 0ms);
}

.reveal[data-delay="80"] { --delay: 80ms; }
.reveal[data-delay="100"] { --delay: 100ms; }
.reveal[data-delay="120"] { --delay: 120ms; }
.reveal[data-delay="160"] { --delay: 160ms; }
.reveal[data-delay="180"] { --delay: 180ms; }
.reveal[data-delay="200"] { --delay: 200ms; }
.reveal[data-delay="220"] { --delay: 220ms; }
.reveal[data-delay="240"] { --delay: 240ms; }
.reveal[data-delay="260"] { --delay: 260ms; }
.reveal[data-delay="300"] { --delay: 300ms; }

.reveal[data-reveal="left"] {
    transform: translate3d(28px, 0, 0);
}

.reveal[data-reveal="right"] {
    transform: translate3d(-28px, 0, 0);
}

.reveal.visible {
    opacity: 1;
    transform: translate3d(0, 0, 0);
}

.floating {
    animation: floating 5.8s ease-in-out infinite;
}

.pulse {
    animation: pulse 3s ease-in-out infinite;
}

.tilt-card {
    transform: perspective(900px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
}

@media (min-width: 900px) {
    .motion-bold .hero-card {
        animation: floating 4.2s ease-in-out infinite;
    }

    .motion-bold .hero-badge {
        animation: pulse 2.2s ease-in-out infinite;
    }

    .motion-bold .btn-primary {
        animation: ctaGlow 2.6s ease-in-out infinite;
    }

    .motion-bold .service-card:hover {
        transform: translateY(-10px) scale(1.01);
    }
}

@keyframes floating {
    0%,
    100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse {
    0%,
    100% {
        box-shadow: 0 16px 35px rgba(89, 31, 38, 0.42);
    }
    50% {
        box-shadow: 0 20px 42px rgba(89, 31, 38, 0.55);
    }
}

@keyframes heroZoom {
    from {
        transform: scale(1.03);
    }
    to {
        transform: scale(1.12);
    }
}

@keyframes drift {
    0%,
    100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-20px) scale(1.05);
    }
}

@keyframes ctaGlow {
    0%,
    100% {
        box-shadow: 0 12px 30px rgba(108, 36, 45, 0.34);
    }
    50% {
        box-shadow: 0 18px 40px rgba(108, 36, 45, 0.5);
    }
}

@media (max-width: 1080px) {
    :root {
        --header-height: 86px;
    }

    .hero-grid,
    .workshop-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    .hero-copy h1,
    .workshop-copy h2,
    .contact-copy h2 {
        max-width: unset;
    }

    .hero-card {
        min-height: 460px;
    }

    .workshop-visual img {
        height: 380px;
    }

    .workshop-visual img:last-child {
        margin-top: 1.1rem;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 880px) {
    .nav-toggle {
        display: inline-flex;
    }

    .main-nav {
        position: absolute;
        top: calc(100% + 0.6rem);
        left: 0;
        right: 0;
        transform-origin: top;
        transform: scaleY(0.92);
        opacity: 0;
        pointer-events: none;
        transition: transform 0.24s ease, opacity 0.24s ease;
    }

    .main-nav.open {
        opacity: 1;
        pointer-events: auto;
        transform: scaleY(1);
    }

    .main-nav ul {
        padding: 0.72rem;
        border: 1px solid var(--line);
        border-radius: 16px;
        background: rgba(255, 255, 255, 0.95);
        box-shadow: var(--shadow-sm);
        flex-direction: column;
        align-items: stretch;
    }

    .main-nav a {
        justify-content: flex-start;
        border-radius: 10px;
    }

    .service-grid,
    .workshop-visual {
        grid-template-columns: 1fr;
    }

    .reference-item {
        flex-basis: clamp(220px, 72vw, 300px);
    }

    .reference-row.row-b {
        padding-left: 1rem;
    }

    .workshop-visual img,
    .workshop-visual img:last-child {
        height: 280px;
        margin-top: 0;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .container {
        width: min(var(--max-width), calc(100% - 1.2rem));
    }

    .section {
        padding: 4.2rem 0;
    }

    .hero {
        padding-top: 5rem;
    }

    .hero-actions,
    .error-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .btn {
        width: 100%;
    }

    .hero-card {
        min-height: 370px;
    }

    .hero-badge {
        left: 0.6rem;
        bottom: 0.7rem;
    }

    .stat {
        flex: 1 1 100%;
    }

    .contact-form-shell,
    .legal-card {
        padding: 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }

    .reveal {
        opacity: 1;
        transform: none;
    }

    .reference-row {
        overflow-x: auto;
        mask-image: none;
    }

    .reference-track {
        animation: none;
        padding-bottom: 0.35rem;
    }

    body.motion-bold .reference-row {
        overflow: hidden;
        mask-image: linear-gradient(90deg, transparent 0%, #000 8%, #000 92%, transparent 100%);
    }

    body.motion-bold .reference-track {
        padding-bottom: 0;
        animation: referencesMarquee 120s linear infinite !important;
    }

    body.motion-bold .reference-row.row-b .reference-track {
        animation: referencesMarquee 150s linear infinite !important;
        animation-delay: -34s !important;
    }
}
