.site-body {
    min-height: 100vh;
    position: relative;
    background: linear-gradient(180deg, #130f0e 0, #1a1513 40rem, var(--bg) 40rem, var(--bg-soft) 100%);
    color: var(--ink);
    overflow-x: hidden;
}

.site-frame {
    position: relative;
    z-index: 1;
}

.site-ambient {
    position: fixed;
    inset: 0;
    z-index: 0;
    overflow: hidden;
    pointer-events: none;
}

.site-ambient__blob,
.site-ambient__ring,
.site-ambient__mesh {
    position: absolute;
}

.site-ambient__blob {
    border-radius: 50%;
    filter: blur(18px);
    opacity: 0.7;
    animation: ambient-drift 18s ease-in-out infinite alternate;
}

.site-ambient__blob--wood {
    top: 5rem;
    left: -9rem;
    width: 24rem;
    height: 24rem;
    background: radial-gradient(circle, var(--wood-glow), transparent 70%);
}

.site-ambient__blob--resin {
    top: 7rem;
    right: -7rem;
    width: 26rem;
    height: 26rem;
    background: radial-gradient(circle, var(--resin-glow), transparent 68%);
    animation-duration: 22s;
}

.site-ambient__mesh {
    inset: 0 0 auto;
    height: 54rem;
    opacity: 0.18;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.10), transparent 72%),
        repeating-linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.08) 0,
            rgba(255, 255, 255, 0.08) 1px,
            transparent 1px,
            transparent 108px
        );
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.85), transparent 88%);
}

.site-ambient__ring {
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 50%;
}

.site-ambient__ring--left {
    top: 13rem;
    left: -8rem;
    width: 20rem;
    height: 20rem;
}

.site-ambient__ring--right {
    top: 10rem;
    right: 8rem;
    width: 13rem;
    height: 13rem;
}

.container {
    width: min(var(--container), calc(100% - 40px));
    margin: 0 auto;
}

.page-shell {
    position: relative;
    padding-bottom: 72px;
    overflow: hidden;
}

.page-shell::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: min(88rem, 120vh);
    background:
        radial-gradient(circle at 20% 8%, rgba(190, 118, 61, 0.18), transparent 30%),
        radial-gradient(circle at 82% 16%, rgba(42, 165, 160, 0.20), transparent 26%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 18%),
        linear-gradient(180deg, rgba(0, 0, 0, 0) 0, rgba(18, 14, 13, 0.30) 58%, rgba(18, 14, 13, 0) 100%);
    z-index: -2;
}

.page-shell::after {
    content: "";
    position: absolute;
    top: 14rem;
    right: -10rem;
    width: 30rem;
    height: 30rem;
    border-radius: 44% 56% 58% 42%;
    background: radial-gradient(circle, rgba(42, 165, 160, 0.14), transparent 68%);
    z-index: -1;
}

.studio-page .page-shell::before,
.studio-page .page-shell::after {
    opacity: 0;
}

.content-section {
    position: relative;
    padding: clamp(48px, 7vw, 92px) 0;
}

.content-section--lifted {
    margin-top: -54px;
    z-index: 2;
}

.page-intro,
.hero {
    position: relative;
    padding: clamp(126px, 16vw, 170px) 0 clamp(58px, 7vw, 96px);
    color: var(--ink-inverse);
}

.page-intro .container,
.hero__grid {
    position: relative;
    z-index: 1;
}

.page-intro .container::after {
    content: "";
    position: absolute;
    top: -2rem;
    right: -4rem;
    width: 22rem;
    height: 22rem;
    border-radius: 38% 62% 54% 46%;
    background:
        radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.18), transparent 35%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0));
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: var(--shadow-hero);
}

.section-kicker {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    color: var(--resin-deep);
    font-size: 0.84rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.section-kicker::before {
    content: "";
    width: 32px;
    height: 1px;
    background: currentColor;
    opacity: 0.66;
}

.hero .section-kicker,
.page-intro .section-kicker {
    color: var(--resin-soft);
}

.section-title {
    max-width: 12ch;
    font-size: clamp(2.5rem, 5.5vw, 5rem);
}

.page-intro .section-title {
    color: var(--ink-inverse);
    max-width: 14ch;
}

.section-copy {
    max-width: 60ch;
    margin-top: 18px;
    color: var(--ink-muted);
    font-size: 1.06rem;
}

.hero__lead,
.page-intro .section-copy {
    color: var(--ink-inverse-muted);
}

.site-header {
    position: sticky;
    top: 18px;
    z-index: 30;
    padding-top: 18px;
}

.site-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 16px 20px;
    border-radius: 34px;
    background: var(--surface-glass);
    border: 1px solid var(--line-strong);
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.18);
    backdrop-filter: blur(22px) saturate(120%);
}

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

.brand-mark__emblem {
    position: relative;
    width: 58px;
    height: 68px;
    flex-shrink: 0;
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 22px 36px rgba(0, 0, 0, 0.25);
    overflow: hidden;
}

.brand-mark__emblem::after {
    content: "";
    position: absolute;
    inset: 10px 18px;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(14, 12, 11, 0.36), rgba(14, 12, 11, 0));
}

.brand-mark__wood,
.brand-mark__resin {
    position: absolute;
    top: 8px;
    bottom: 8px;
    width: 50%;
    border-radius: 18px;
}

.brand-mark__wood {
    left: 7px;
    background:
        linear-gradient(90deg, rgba(79, 41, 17, 0.34), transparent 40%),
        linear-gradient(180deg, #bf7b48 0%, #754323 100%);
    clip-path: polygon(0 0, 100% 0, 70% 50%, 100% 100%, 0 100%);
}

.brand-mark__resin {
    right: 7px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent 28%),
        linear-gradient(180deg, #8ef0e7 0%, #1ca8a3 42%, #0e5a64 100%);
    clip-path: polygon(30% 0, 100% 0, 100% 100%, 30% 100%, 0 50%);
    box-shadow: 0 0 24px rgba(42, 165, 160, 0.34);
}

.brand-mark__copy {
    display: grid;
    gap: 4px;
}

.brand-mark__title {
    color: var(--ink-inverse);
    font-size: 1.18rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.brand-mark__title span {
    color: var(--resin-soft);
}

.brand-mark__caption {
    color: var(--ink-inverse-muted);
    font-size: 0.74rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.site-header__menu-toggle {
    display: none;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
    color: var(--ink-inverse);
}

.site-header__menu-toggle-box {
    display: grid;
    gap: 4px;
}

.site-header__menu-toggle-box span {
    display: block;
    width: 18px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transition: transform 0.24s ease, opacity 0.24s ease;
    transform-origin: center;
}

.site-header__menu-toggle-label {
    font-size: 0.9rem;
    font-weight: 700;
}

.site-header__dock,
.site-header__actions,
.site-nav {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.site-header__dock {
    flex: 1;
    justify-content: flex-end;
}

.site-nav {
    padding: 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.04);
}

.site-nav a {
    padding: 11px 14px;
    border-radius: 999px;
    color: var(--ink-inverse-muted);
    font-size: 0.95rem;
}

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

.nav-pill {
    padding: 12px 18px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: var(--ink-inverse);
    background: rgba(255, 255, 255, 0.06);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.nav-pill--accent {
    background: linear-gradient(135deg, rgba(18, 90, 100, 0.92), rgba(42, 165, 160, 0.95));
    box-shadow: 0 18px 36px rgba(14, 90, 100, 0.24), 0 0 28px rgba(42, 165, 160, 0.18);
}

.nav-pill--utility {
    background: rgba(255, 255, 255, 0.08);
}

.messages-stack {
    display: grid;
    gap: 12px;
    padding-top: 22px;
}

.flash {
    padding: 14px 18px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(20, 15, 13, 0.56);
    box-shadow: var(--shadow-card);
    color: var(--ink-inverse);
}

.flash-success {
    border-color: rgba(47, 124, 99, 0.32);
}

.flash-error {
    border-color: rgba(166, 63, 54, 0.32);
}

.rich-panel,
.empty-panel {
    position: relative;
    padding: 28px;
    border-radius: var(--radius-xl);
    border: 1px solid var(--line);
    background: linear-gradient(180deg, rgba(255, 252, 247, 0.96), rgba(252, 244, 235, 0.84));
    box-shadow: var(--shadow-card);
    overflow: hidden;
}

.rich-panel::before,
.empty-panel::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
}

.empty-panel {
    color: var(--ink-muted);
}

.narrow-flow {
    display: grid;
    gap: 20px;
    max-width: 780px;
}

.card-grid,
.contact-card-grid,
.studio-panels,
.detail-form-layout,
.gallery-grid,
.detail-gallery,
.detail-layout,
.hero__grid,
.intro-split,
.section-head,
.cta-banner,
.detail-hero {
    display: grid;
    gap: 24px;
}

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

.contact-card-grid,
.studio-panels,
.detail-form-layout,
.detail-layout,
.hero__grid,
.intro-split,
.cta-banner {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.section-head,
.detail-hero {
    grid-template-columns: 1.3fr 0.7fr;
    align-items: end;
}

.section-head {
    position: relative;
    margin-bottom: 28px;
}

.section-head--with-stage {
    padding-left: 112px;
}

.section-stage {
    position: absolute;
    left: 0;
    top: -10px;
    color: rgba(31, 24, 18, 0.08);
    font-family: var(--display-font);
    font-size: clamp(4rem, 10vw, 7rem);
    line-height: 0.85;
}

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

.gallery-grid > *,
.detail-gallery > * {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.gallery-grid img,
.detail-gallery img {
    display: block;
    width: 100%;
    aspect-ratio: 5 / 4;
    object-fit: cover;
    background: var(--surface);
}

.detail-specs,
.mini-stack {
    display: grid;
    gap: 12px;
}

.detail-specs div {
    padding: 16px 18px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.detail-specs span {
    display: block;
    margin-bottom: 6px;
    color: var(--ink-inverse-muted);
    font-size: 0.84rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 700;
    color: var(--wood-dark);
}

.text-link::after {
    content: ">";
    color: var(--resin-deep);
}

.site-footer {
    position: relative;
    padding: 28px 0 64px;
}

.site-footer__panel {
    position: relative;
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    padding: 38px;
    border-radius: 40px;
    background: linear-gradient(180deg, rgba(24, 18, 16, 0.94), rgba(18, 14, 13, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: var(--shadow-hero);
    overflow: hidden;
}

.site-footer__panel::before {
    content: "";
    position: absolute;
    right: -10%;
    bottom: -42%;
    width: 26rem;
    height: 26rem;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(42, 165, 160, 0.18), transparent 70%);
}

.site-footer__lead,
.site-footer__meta {
    position: relative;
    z-index: 1;
}

.site-footer__title {
    max-width: 10ch;
    color: var(--ink-inverse);
    font-size: clamp(2rem, 4vw, 3.5rem);
}

.site-footer__meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 24px;
}

.footer-label {
    margin-bottom: 12px;
    color: var(--resin-soft);
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.footer-copy,
.footer-links {
    color: var(--ink-inverse-muted);
}

.footer-links {
    display: grid;
    gap: 8px;
}

.footer-links a:hover {
    color: var(--ink-inverse);
}

@keyframes ambient-drift {
    from {
        transform: translate3d(0, 0, 0) scale(1);
    }

    to {
        transform: translate3d(18px, -22px, 0) scale(1.06);
    }
}

@media (max-width: 1100px) {
    .site-header__inner,
    .site-header__dock,
    .section-head,
    .site-footer__panel,
    .site-footer__meta,
    .card-grid,
    .contact-card-grid,
    .detail-layout,
    .intro-split,
    .cta-banner,
    .detail-form-layout,
    .gallery-grid,
    .detail-gallery,
    .detail-hero {
        grid-template-columns: 1fr;
    }

    .site-header__dock {
        justify-content: flex-start;
    }

    .site-footer__title {
        max-width: 14ch;
    }
}

@media (max-width: 720px) {
    .site-header {
        top: 12px;
        padding-top: 12px;
    }

    .site-header__inner {
        position: relative;
        flex-wrap: wrap;
        align-items: center;
        gap: 14px;
        padding: 14px 16px;
        border-radius: 28px;
    }

    .brand-mark {
        flex: 1;
        min-width: 0;
    }

    .site-header__menu-toggle {
        display: inline-flex;
        margin-left: auto;
    }

    .site-header__dock {
        display: none;
        flex: 0 0 100%;
        width: 100%;
        padding-top: 4px;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        justify-content: flex-start;
    }

    .site-header--menu-open .site-header__dock {
        display: flex;
    }

    .site-header--menu-open .site-header__menu-toggle-box span:nth-child(1) {
        transform: translateY(6px) rotate(45deg);
    }

    .site-header--menu-open .site-header__menu-toggle-box span:nth-child(2) {
        opacity: 0;
    }

    .site-header--menu-open .site-header__menu-toggle-box span:nth-child(3) {
        transform: translateY(-6px) rotate(-45deg);
    }

    .site-nav {
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        padding: 8px;
        border-radius: 28px;
    }

    .site-header__actions {
        width: 100%;
        flex-direction: column;
    }

    .site-nav a,
    .site-header__actions .nav-pill {
        width: 100%;
        flex: none;
        justify-content: center;
        text-align: center;
    }

    .content-section--lifted {
        margin-top: -28px;
    }

    .page-intro .container::after {
        width: 14rem;
        height: 14rem;
        right: -2rem;
    }

    .section-head--with-stage {
        padding-left: 74px;
    }

    .section-stage {
        top: -4px;
    }

    .container {
        width: min(var(--container), calc(100% - 24px));
    }

    .rich-panel,
    .empty-panel,
    .site-footer__panel {
        padding: 24px;
    }
}
