.hp {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
    padding: 0;
    margin: -1px;
    pointer-events: none;
}
.contact-form > input[type="hidden"] { display: none; }
.send-wrap { min-width: 0; }
.send-err {
    margin: 0.45rem 0 0;
    font-size: 0.72rem;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: none;
    opacity: 0.55;
    color: inherit;
}
.send-err[hidden] { display: none; }

.contact-layer {
    position: fixed;
    inset: 0;
    z-index: var(--z-overlay, 80);
    overflow: hidden;
    overscroll-behavior: contain;
    visibility: hidden;
    pointer-events: none;
    color-scheme: dark;
    scrollbar-width: auto;
    scrollbar-color: #9f9f9f #2c2c2c;
}
.contact-layer.is-on {
    visibility: visible;
    pointer-events: auto;
    overflow-y: scroll;
    -webkit-overflow-scrolling: touch;
}
.contact-layer::-webkit-scrollbar {
    width: 15px;
    height: 15px;
    background: #2c2c2c;
}
.contact-layer::-webkit-scrollbar-track {
    background: #2c2c2c;
}
.contact-layer::-webkit-scrollbar-thumb {
    background: #9f9f9f;
    border: 3px solid #2c2c2c;
    border-radius: 8px;
}
.contact-layer::-webkit-scrollbar-thumb:hover {
    background: #b0b0b0;
}
.contact-layer::-webkit-scrollbar-corner {
    background: #2c2c2c;
}
.contact-layer textarea {
    color-scheme: dark;
    scrollbar-width: thin;
    scrollbar-color: #9f9f9f transparent;
}
.contact-sheet {
    position: relative;
    min-height: 100%;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 40px 1.5rem 2.4rem;
}
.contact-scrim {
    position: fixed;
    inset: 0;
    z-index: 0;
    background: rgba(8, 9, 12, 0.7);
    backdrop-filter: blur(var(--veil-blur, 60px)) saturate(var(--veil-saturate, 0.85));
    -webkit-backdrop-filter: blur(var(--veil-blur, 60px)) saturate(var(--veil-saturate, 0.85));
}
.contact-card {
    position: relative;
    z-index: 1;
    width: min(620px, 100%);
    color: #f4f6fb;
    font-family: Outfit, sans-serif;
}
.contact-glass {
    position: relative;
    isolation: isolate;
    border-radius: 22px;
    border: var(--frame-stroke, 1.5px) solid var(--frame-stroke-c, rgba(255, 255, 255, 0.1));
    background: transparent;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
    padding: 1.85rem 4.1rem 1.15rem 1.7rem;
}
.contact-glass::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: rgba(16, 16, 18, 0);
    backdrop-filter: blur(28px) saturate(1.2);
    -webkit-backdrop-filter: blur(28px) saturate(1.2);
    pointer-events: none;
    z-index: 0;
}
.contact-form,
.contact-sent {
    position: relative;
    z-index: 1;
}
.contact-form {
    opacity: 0;
    transform: translateY(-16px);
    transition: opacity 0.5s ease, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.contact-layer.is-on .contact-form {
    opacity: 1;
    transform: none;
}
html.contact-open { overflow: hidden; }
body.contact-open {
    position: fixed;
    left: 0;
    right: var(--sb, 0px);
    width: auto;
    overflow: hidden;
}
body.contact-open .site-nav {
    padding-right: var(--sb, 0px);
}
.contact-form {
    display: grid;
    grid-template-columns: 1.7rem minmax(0, 1fr);
    column-gap: 0.7rem;
}
.form-head {
    grid-column: 2;
    text-align: center;
}
.contact-form h2 {
    margin: 0;
    font-size: 1.85rem;
    font-weight: 600;
    letter-spacing: -0.04em;
}
.contact-sub {
    margin: 0.25rem 0 1.5rem;
    font-size: 0.82rem;
    opacity: 0.42;
    font-weight: 400;
}
@property --beam {
    syntax: "<angle>";
    initial-value: 0deg;
    inherits: false;
}
@keyframes beam-orbit {
    to { --beam: 360deg; }
}
.biz-toggle {
    position: relative;
    isolation: isolate;
    display: block;
    width: 100%;
    margin: 0 0 1.15rem;
    padding: 0.72rem 1rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    background: transparent;
    color: inherit;
    font: inherit;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.biz-toggle::after {
    content: "";
    position: absolute;
    inset: -1px;
    border-radius: inherit;
    padding: 1.4px;
    box-sizing: border-box;
    pointer-events: none;
    background: conic-gradient(from var(--beam), transparent 0 84%, hsla(0, 0%, 100%, 0.7) 95%, transparent 100%);
    -webkit-mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    mask:
        linear-gradient(#000 0 0) content-box,
        linear-gradient(#000 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    animation: beam-orbit 5s linear infinite;
}
.biz-toggle i { font-style: normal; }
.biz-toggle:hover {
    background: #ececec;
    color: #111;
    border-color: transparent;
}
.biz-toggle:hover::after,
.biz-toggle.is-on::after {
    opacity: 0;
    animation: none;
}
.biz-toggle:hover i { display: none; }
.biz-toggle:hover .biz-label::after { content: " !"; }
.biz-toggle.is-on {
    background: #e4bc3c;
    color: #1a1408;
    border-color: transparent;
}
.biz-toggle.is-on i,
.biz-toggle.is-on:hover i { display: none; }
.biz-toggle.is-on:hover { background: #e4bc3c; color: #1a1408; }
.biz-toggle.is-on:hover .biz-label::after { content: none; }
@media (prefers-reduced-motion: reduce) {
    .biz-toggle::after { animation: none; opacity: 0; }
}

.biz-panel {
    grid-column: 1 / -1;
    display: grid;
    grid-template-rows: 0fr;
    margin: 0 -4.1rem 1.15rem -1.7rem;
    background: rgba(255, 255, 255, 0.05);
    transition: grid-template-rows 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.biz-panel.is-open { grid-template-rows: 1fr; }
.biz-inner {
    overflow: hidden;
    padding: 0 4.1rem 0 calc(1.7rem + 1.7rem + 0.7rem);
}
.biz-panel.is-open .biz-inner { padding-top: 2.05rem; padding-bottom: 2.05rem; }
.topics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.55rem;
    margin-bottom: 2.05rem;
}
.topic {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    min-height: 4.6rem;
    padding: 0.55rem 0.3rem;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    background: transparent;
    color: rgba(255, 255, 255, 0.5);
    font-size: calc(0.68rem * 1.1);
    text-align: center;
    cursor: pointer;
    transition: border-color 0.15s ease, color 0.15s ease;
}
.topic input { position: absolute; opacity: 0; pointer-events: none; }
.topic-ico {
    width: calc(22px * 1.1);
    height: calc(22px * 1.1);
    display: block;
    background-color: currentColor;
    -webkit-mask-image: var(--ico);
    mask-image: var(--ico);
    -webkit-mask-size: contain;
    mask-size: contain;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
}
.topic:hover {
    border-color: #fff;
    color: #fff;
}
.topic:has(input:checked),
.topic:has(input:checked):hover {
    border-color: #E1BA2F;
    color: #fff;
}
.topic:has(input:checked) .topic-ico,
.topic:has(input:checked):hover .topic-ico {
    background-color: #E1BA2F;
}

.slide-row { margin: 0 0 0.95rem; }
.slide-row:last-child { margin-bottom: 0; }
.slide-lab {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    font-size: 0.78rem;
    margin-bottom: 0.55rem;
}
.slide-lab span { opacity: 0.72; }
.slide-lab b { font-weight: 500; font-size: 0.78rem; }
.dual {
    position: relative;
    height: 30px;
}
.dual-track {
    position: absolute;
    left: 0;
    right: 0;
    top: 13px;
    height: 4px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.16);
}
.dual-track i {
    position: absolute;
    top: 0;
    bottom: 0;
    background: #E1BA2F;
    border-radius: inherit;
}
.dual input[type="range"] {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    width: 100%;
    height: 30px;
    margin: 0;
    background: none;
    pointer-events: none;
    appearance: none;
    -webkit-appearance: none;
}
.dual input[type="range"]::-webkit-slider-runnable-track {
    height: 30px;
    background: transparent;
}
.dual input[type="range"]::-webkit-slider-thumb {
    pointer-events: auto;
    appearance: none;
    -webkit-appearance: none;
    box-sizing: border-box;
    width: 30px;
    height: 30px;
    margin-top: 0;
    border-radius: 50%;
    background: #917100;
    border: 3px solid #E1BA2F;
    box-shadow: none;
    cursor: pointer;
}
.dual input[type="range"]::-moz-range-track {
    height: 30px;
    background: transparent;
    border: 0;
}
.dual input[type="range"]::-moz-range-thumb {
    pointer-events: auto;
    box-sizing: border-box;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #917100;
    border: 3px solid #E1BA2F;
    box-shadow: none;
    cursor: pointer;
}

.field,
.send-row {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1.7rem minmax(0, 1fr);
    column-gap: 0.7rem;
    align-items: start;
    margin: 0 0 1.05rem;
}
.field > i,
.send-row > i {
    opacity: 0.35;
    font-style: normal;
    font-size: 0.68rem;
    line-height: 1.4;
    padding-top: 0.12rem;
    text-align: right;
}
.field-main { display: block; min-width: 0; }
.field-main .q {
    display: block;
    font-size: 0.8rem;
    margin-bottom: 0.45rem;
}
.field input,
.field textarea {
    width: 100%;
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 0;
    background-color: transparent;
    background-image: none;
    color: inherit;
    font: inherit;
    font-size: 1.05rem;
    padding: 0.2rem 0 0.45rem;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
    box-shadow: none;
    /* Keep UA autofill paint from flashing yellow/blue. */
    transition: background-color 99999s ease-out 0s;
}
.field input:focus,
.field textarea:focus { border-bottom-color: rgba(255, 255, 255, 0.55); }
.field input:-webkit-autofill,
.field input:-webkit-autofill:hover,
.field input:-webkit-autofill:focus,
.field input:-webkit-autofill:active,
.field textarea:-webkit-autofill,
.field textarea:-webkit-autofill:hover,
.field textarea:-webkit-autofill:focus,
.field input:autofill,
.field textarea:autofill {
    background-color: transparent !important;
    background-image: none !important;
    box-shadow: none !important;
    -webkit-box-shadow: 0 0 0 1000px transparent inset !important;
    -webkit-text-fill-color: #f4f6fb;
    caret-color: #f4f6fb;
    transition: background-color 99999s ease-out 0s;
}
.contact-layer.is-biz .field input,
.contact-layer.is-biz .field textarea { color: #e4bc3c; }
.contact-layer.is-biz .field input:-webkit-autofill,
.contact-layer.is-biz .field input:-webkit-autofill:hover,
.contact-layer.is-biz .field input:-webkit-autofill:focus,
.contact-layer.is-biz .field textarea:-webkit-autofill,
.contact-layer.is-biz .field input:autofill,
.contact-layer.is-biz .field textarea:autofill {
    -webkit-text-fill-color: #e4bc3c;
    caret-color: #e4bc3c;
}
.contact-layer.is-biz .field input:focus,
.contact-layer.is-biz .field textarea:focus,
.contact-layer.is-biz .field input:not(:placeholder-shown),
.contact-layer.is-biz .field textarea:not(:placeholder-shown) {
    border-bottom-color: #e4bc3c;
}
.field-msg .field-main { position: relative; }
.field-msg textarea {
    min-height: 5.6rem;
    resize: vertical;
}
.field-msg textarea::-webkit-resizer { background: transparent; }
.grab {
    position: absolute;
    right: 1px;
    bottom: 1.55rem;
    width: 11px;
    height: 11px;
    pointer-events: none;
    background:
        linear-gradient(135deg, transparent 42%, rgba(255,255,255,0.45) 42%, rgba(255,255,255,0.45) 48%, transparent 48%),
        linear-gradient(135deg, transparent 62%, rgba(255,255,255,0.45) 62%, rgba(255,255,255,0.45) 68%, transparent 68%);
}
.field-msg .count {
    display: block;
    text-align: right;
    font-size: 0.68rem;
    font-style: normal;
    opacity: 0.38;
    margin-top: 0.2rem;
}
.send-row { margin-top: 0.15rem; align-items: center; }
.send {
    --arrow-gap: 0px;
    --arrow-size: 18px;
    --arrow-nudge: 0px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--arrow-gap);
    width: 100%;
    padding: 0.85rem 1rem;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: transparent;
    color: rgba(244, 246, 251, 0.35);
    font: inherit;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    cursor: not-allowed;
}
.send .legal-mail-arrow {
    display: block;
    flex: none;
    width: var(--arrow-size);
    height: var(--arrow-size);
    transform: translateY(var(--arrow-nudge));
    opacity: 0.35;
}
.send.is-ready {
    cursor: pointer;
    color: #111;
    background: #f4f6fb;
    border-color: transparent;
}
.send.is-ready .legal-mail-arrow {
    opacity: 1;
    filter: invert(1);
}
.contact-layer.is-biz .send.is-ready {
    background: #e4bc3c;
    color: #1a1408;
}
.contact-x {
    grid-column: 2;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin: 0.55rem auto 0;
    border: 0;
    padding: 0;
    appearance: none;
    -webkit-appearance: none;
    background: transparent;
    -webkit-tap-highlight-color: transparent;
    color: rgba(244, 246, 251, 0.45);
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
}
.contact-x:hover { color: #fff; }

.contact-sent {
    display: none;
    grid-template-columns: 1.7rem minmax(0, 1fr);
    column-gap: 0.7rem;
}
.contact-layer.is-sent .contact-form { display: none; }
.contact-layer.is-sent .contact-sent { display: grid; }
.sent-body {
    grid-column: 2;
    text-align: center;
    padding: 0.4rem 0 0.2rem;
}
.sent-title {
    margin: 0;
    font-size: 1.85rem;
    font-weight: 600;
    letter-spacing: -0.04em;
}
.contact-layer.is-biz .sent-title { color: #E1BA2F; }
.sent-sub {
    margin: 0.35rem 0 0;
    font-size: 0.82rem;
    opacity: 0.42;
    font-weight: 400;
}
.sent-tick {
    height: 2px;
    margin: 1.35rem 0 0.2rem;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.12);
    overflow: hidden;
}
.sent-tick i {
    display: block;
    width: 0;
    height: 100%;
    background: #f4f6fb;
    border-radius: inherit;
}
.contact-layer.is-biz .sent-tick i { background: #E1BA2F; }
.contact-layer.is-sent .sent-tick i {
    animation: sent-tick 2.8s linear forwards;
}
@keyframes sent-tick {
    to { width: 100%; }
}

@media (max-width: 560px) {
    .topics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .contact-form,
    .contact-sent,
    .field,
    .send-row { grid-template-columns: 1.4rem minmax(0, 1fr); column-gap: 0.5rem; }
}
