:root {
    --bg0: #000000;
    --bg1: #090101;
    --ink: #b8877c;
    --muted: #8e5e54;
    --ember: #7a2a18;
    --amber: #a56a2a;
    --wood: #2a0806;
    --line: rgba(58, 22, 14, 0.18);
    --shadow: 0 24px 70px rgba(7, 2, 2, 0.65);
    --r: 22px;
    --max: 1240px;
    --fontFamily1:
        ui-sans-serif,
        system-ui,
        -apple-system,
        Segoe UI,
        Roboto,
        Helvetica,
        Arial;
    --fontFamily2: "MedievalSharp", cursive;
}

* {
    box-sizing: border-box;
}

html,
body {
    height: 100%;
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    margin: 0;
    min-height: 100vh;
    overflow-x: hidden;
    padding: 32px 18px 54px;
    color: var(--ink);
    font-family: var(--fontFamily1);
    background:
        radial-gradient(
            1100px 700px at 70% 20%,
            rgba(90, 40, 18, 0.06),
            transparent 55%
        ),
        radial-gradient(
            900px 600px at 20% 70%,
            rgba(55, 20, 12, 0.05),
            transparent 60%
        ),
        linear-gradient(180deg, var(--bg0), var(--bg1));
}

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

a:hover {
    color: var(--ember);
}

.sheet {
    width: 100%;
    max-width: var(--max);
    margin: 0 auto;
    padding-bottom: 28px;
    background: transparent;
}

.topbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 0 22px;
}

.topbar .pill {
    margin-top: -15px;
    margin-right: 35px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 11px;
}

.brand-copy h1 {
    position: relative;
    top: 10px;
    margin: 0;
    font-family: var(--fontFamily2);
    font-size: 34px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.02em;
}

.wax {
    position: relative;
    top: -5px;
    display: flex;
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 20px;
    background:
        radial-gradient(
            circle at 30% 30%,
            rgba(10, 0, 0, 0.45),
            transparent 55%
        ),
        linear-gradient(
            135deg,
            rgba(24, 1, 1, 0.25),
            rgba(26, 4, 4, 0.2)
        ),
        var(--wood);
    box-shadow: var(--shadow);
}

.wax img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.pill {
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(10, 6, 4, 0.35);
    backdrop-filter: blur(6px);
    font-family: var(--fontFamily1);
    font-size: 15px;
}

.pill:hover {
    color: #754e06;
    border-color: rgb(75, 44, 1);
}

.tagline {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    margin-top: 8px;
    margin-left: 8px;
    font-size: 0.60rem;
    letter-spacing: 0.15em;
    opacity: 0.85;
}

.tagline::before {
    width: 25px;
    height: 1px;
    background: currentColor;
    content: "";
    opacity: 0.6;
}

.tagline::after {
    width: 45px;
    height: 1px;
    background: currentColor;
    content: "";
    opacity: 0.6;
}

.panel {
    overflow: hidden;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: var(--r);
    background:
        radial-gradient(
            900px 340px at 10% 10%,
            rgba(120, 58, 24, 0.06),
            transparent 45%
        ),
        rgba(8, 3, 2, 0.44);
    box-shadow: var(--shadow);
}

.hero-line {
    margin: 0 10px 0;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.6;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 10px 13px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(39, 3, 3, 0.35);
    text-decoration: none;
}

.btn:hover {
    color: #7a2a18;
    border-color: rgb(75, 44, 1);
    background: rgb(41, 23, 1);
    box-shadow: 0 0 12px rgba(120, 60, 30, 0.18);
    transform: translateY(-1px);
}

.btn.primary {
    padding: 11px 17px;
    border-color: rgba(18, 1, 1, 0.35);
    background:
        radial-gradient(
            circle at 30% 30%,
            rgba(99, 12, 12, 0.28),
            transparent 55%
        ),
        linear-gradient(
            180deg,
            rgba(61, 3, 3, 0.22),
            rgba(0, 0, 0, 0.1)
        );
    box-shadow: 0 0 14px rgba(120, 60, 30, 0.22);
    font-weight: 500;
}

.btn.primary:hover {
    color: #7a2a18;
    border-color: rgb(75, 44, 1);
    background: rgb(41, 23, 1);
    box-shadow: 0 0 12px rgba(120, 60, 30, 0.18);
}

.contact-layout {
    display: grid;
    gap: 18px;
    padding: 10px 0 18px;
}

.contact-hero-panel {
    padding: 24px 22px;
}

.contact-panel {
    padding: 22px;
}

.contact-form {
    display: grid;
    gap: 16px;
}

.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.field {
    display: grid;
    gap: 8px;
}

.field label {
    color: var(--muted);
    font-size: 14px;
    letter-spacing: 0.03em;
}

.field input,
.field select,
.field textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    outline: none;
    background: rgba(34, 3, 3, 0.35);
    color: var(--ink);
    font: inherit;
    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        background 0.18s ease;
}

.field textarea {
    min-height: 180px;
    resize: vertical;
    line-height: 1.6;
}

.field input::placeholder,
.field textarea::placeholder {
    color: var(--muted);
    opacity: 0.8;
}

.field input:hover,
.field textarea:hover {
    box-shadow: 0 0 12px rgba(120, 60, 30, 0.18);
}

.field input:focus,
.field select:focus,
.field textarea:focus {
    border-color: rgba(165, 106, 42, 0.45);
    background: rgba(41, 23, 1, 0.55);
    box-shadow: 0 0 0 2px rgba(165, 106, 42, 0.18);
}

.custom-select-trigger:hover {
    box-shadow: 0 0 12px rgba(120, 60, 30, 0.18);
}

.contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 4px;
}

.custom-select {
    position: relative;
    width: 100%;
}

.custom-select-trigger {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    outline: none;
    background: rgba(34, 3, 3, 0.35);
    color: var(--ink);
    font: inherit;
    cursor: pointer;
    transition:
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        background 0.18s ease;
}

.custom-select-trigger:focus,
.custom-select.open .custom-select-trigger {
    border-color: rgba(165, 106, 42, 0.45);
    background: rgba(41, 23, 1, 0.55);
    box-shadow: 0 0 0 2px rgba(165, 106, 42, 0.18);
}

.custom-select-text {
    text-align: left;
}

.custom-select-arrow {
    flex: 0 0 auto;
    color: var(--muted);
    font-size: 14px;
    line-height: 1;
}

.custom-select-menu {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    left: 0;
    z-index: 50;
    display: none;
    margin: 0;
    padding: 8px;
    border: 1px solid rgba(165, 106, 42, 0.28);
    border-radius: 14px;
    background: #1b0707;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.35);
    list-style: none;
}

.custom-select.open .custom-select-menu {
    display: block;
}

.custom-select-option {
    padding: 12px 14px;
    border-radius: 10px;
    color: #e7d7c2;
    cursor: pointer;
    transition:
        background 0.16s ease,
        color 0.16s ease;
}

.custom-select-option:hover,
.custom-select-option:focus {
    background: rgba(165, 106, 42, 0.18);
    color: #f3e7d6;
}

.custom-select-option.selected {
    background: rgba(165, 106, 42, 0.24);
    color: #f3e7d6;
}

.footer {
    margin-top: 60px;
    color: rgba(116, 77, 77, 0.75);
    font-size: 12px;
    letter-spacing: 0.06em;
    text-align: left;
    hyphens: auto;
}

/* @MEDIA 640PX */

@media (max-width: 640px) {
    body {
        padding: 18px 12px 34px;
    }

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

    .contact-panel,
    .contact-hero-panel {
        padding: 16px;
    }

    .contact-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .contact-actions .btn {
        width: 100%;
        justify-content: center;
    }

    .wax {
        width: 38px;
        height: 38px;
        border-radius: 15px;
    }

    .topbar {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding-top: 8px;
    }

    .topbar .pill {
        margin: 0;
    }

    .brand-copy h1 {
        position: relative;
        top: 8px;
        font-size: clamp(26px, 7vw, 32px);
    }

    .tagline {
        gap: 4px;
        margin-left: 2px;
        font-size: 0.56rem;
        letter-spacing: 0.08em;
    }

    .tagline::before {
        width: 15px;
    }

    .tagline::after {
        width: 35px;
    }

    .hero-line {
        margin: 0;
    }
}
