:root {
    --navy: #0b2f5b;
    --gold: #c8922c;
    --sand: #f7f2e8;
    --text: #1f2937;
    --muted: #5f6b7a;
    --panel: rgba(255, 255, 255, 0.88);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    font-family: "Avenir Next", "Segoe UI", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 28% 14%, rgba(200, 146, 44, 0.16), transparent 34%),
        radial-gradient(circle at 78% 76%, rgba(11, 47, 91, 0.12), transparent 24%),
        linear-gradient(135deg, #fcfcfa 0%, var(--sand) 100%);
}

.card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    text-align: center;
    width: min(860px, 100%);
    padding: 0;
    margin: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none;
    transform: translateY(-24px);
    position: relative;
    z-index: 1;
}

.orbit {
    position: relative;
    width: min(860px, calc(100vw - 48px), calc(100vh - 180px));
    height: min(860px, calc(100vw - 48px), calc(100vh - 180px));
    display: grid;
    place-items: center;
}

.orbit-center {
    position: relative;
    z-index: 2;
    display: grid;
    place-items: center;
}

.logo {
    width: min(410px, 58vw);
    display: block;
    margin: 0;
    transform-origin: center;
}

.logo.logo-knock-knock {
    animation: logo-knock-knock 620ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.orbit-services {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.orbit-service {
    position: absolute;
    left: 50%;
    top: 50%;
    padding: 0.68rem 1rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(11, 47, 91, 0.12);
    box-shadow: 0 12px 30px rgba(11, 47, 91, 0.08);
    color: var(--navy);
    font-size: 0.92rem;
    letter-spacing: 0.02em;
    white-space: nowrap;
    opacity: 0;
    transform: translate(-50%, -50%) translate(var(--x, 0), var(--y, 0)) scale(0.72);
    pointer-events: auto;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    font: inherit;
    text-align: center;
    transition:
        transform 280ms cubic-bezier(0.2, 0.8, 0.2, 1),
        opacity 240ms ease,
        filter 240ms ease;
    transition-delay: var(--delay, 0ms);
    filter: blur(2px);
    will-change: transform, opacity, filter;
}

.orbit:hover .orbit-service,
.orbit:focus-within .orbit-service {
    opacity: 1;
    filter: blur(0);
    transform: translate(-50%, -50%) translate(calc(var(--x, 0px) * 1.08), calc(var(--y, 0px) * 1.08)) scale(1);
}

.orbit:hover .orbit-service:hover,
.orbit:hover .orbit-service:focus-visible {
    background: rgba(255, 255, 255, 0.96);
    border-color: rgba(11, 47, 91, 0.18);
    box-shadow: 0 16px 38px rgba(11, 47, 91, 0.12);
    transform: translate(-50%, -50%) translate(calc(var(--x, 0px) * 1.08), calc(var(--y, 0px) * 1.08)) scale(1.03);
}

.editorbit .orbit-service {
    opacity: 1;
    filter: blur(0);
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    touch-action: none;
    transform: translate(-50%, -50%) translate(calc(var(--x, 0px) * 1.08), calc(var(--y, 0px) * 1.08)) scale(1);
    box-shadow: 0 12px 30px rgba(11, 47, 91, 0.08);
    transition: none;
}

.editorbit .orbit-service.is-dragging {
    cursor: grabbing;
    z-index: 3;
    transition: none;
}

.editorbit .orbit-service.save-flash {
    animation: save-flash 420ms ease-out;
}

.editorbit .orbit:hover .orbit-service,
.editorbit .orbit:focus-within .orbit-service {
    opacity: 1;
    filter: blur(0);
}

.slogan {
    margin: 0;
    font-size: 1.1rem;
    color: var(--gold);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-align: right;
}

.footer {
    position: fixed;
    right: 28px;
    bottom: 22px;
    font-size: 0.92rem;
    letter-spacing: 0.02em;
    color: var(--muted);
    white-space: nowrap;
    z-index: 40;
    pointer-events: auto;
}

.footer-line {
    display: inline;
}

.footer-desktop-separator {
    display: inline;
}

.footer-separator {
    color: var(--gold);
}

.footer a {
    color: inherit;
    text-decoration: none;
    pointer-events: auto;
}

.footer a:hover,
.footer a:focus,
.footer a:active,
.footer a:visited {
    color: inherit;
    text-decoration: none;
}

.orbit-toggle {
    position: fixed;
    left: 20px;
    bottom: 22px;
    width: 42px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid rgba(11, 47, 91, 0.12);
    box-shadow: 0 12px 30px rgba(11, 47, 91, 0.08);
    color: var(--navy);
    z-index: 2;
    text-decoration: none;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px) scale(0.95);
    transition:
        opacity 180ms ease,
        transform 180ms ease,
        background 180ms ease;
}

.orbit-toggle svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.orbit-toggle:hover,
.orbit-toggle:focus-visible {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.95);
}

body.show-orbit-toggle .orbit-toggle {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.orbit-toggle.is-editor-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

body.is-config-modal-open {
    overflow: hidden;
}

body.is-service-detail-open {
    overflow: hidden;
}

body.is-service-detail-cooldown .orbit-service {
    opacity: 1;
    filter: blur(0);
    transform: translate(-50%, -50%) translate(calc(var(--x, 0px) * 1.08), calc(var(--y, 0px) * 1.08)) scale(1);
}

.orbit-config-toggle {
    position: fixed;
    left: 78px;
    bottom: 22px;
    width: 42px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid rgba(11, 47, 91, 0.12);
    box-shadow: 0 12px 30px rgba(11, 47, 91, 0.08);
    color: var(--navy);
    z-index: 9999;
    cursor: pointer;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    -webkit-tap-highlight-color: transparent;
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
    touch-action: manipulation;
}

.orbit-config-toggle svg,
.orbit-config-close svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.orbit-config-toggle:hover,
.orbit-config-toggle:focus-visible,
.orbit-config-close:hover,
.orbit-config-close:focus-visible {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.95);
}

.orbit-config-modal {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: grid;
    place-items: center;
    padding: 20px;
}

.orbit-config-modal[hidden] {
    display: none;
}

.orbit-config-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(11, 47, 91, 0.22);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.orbit-config-panel {
    position: relative;
    z-index: 1;
    width: min(920px, calc(100vw - 40px));
    max-height: min(84vh, 860px);
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 24px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(11, 47, 91, 0.10);
    box-shadow: 0 32px 70px rgba(11, 47, 91, 0.18);
    overflow: hidden;
}

.orbit-config-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.orbit-config-kicker {
    margin: 0 0 4px;
    font-size: 0.78rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--gold);
}

.orbit-config-header h2,
.orbit-config-title {
    margin: 0;
    font-size: clamp(1.35rem, 1vw + 1rem, 2rem);
}

.orbit-config-title {
    color: var(--navy);
}

.orbit-config-note {
    margin: 8px 0 0;
    color: var(--muted);
    max-width: 52ch;
    line-height: 1.45;
}

.orbit-config-close {
    width: 42px;
    height: 42px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.86);
    border: 1px solid rgba(11, 47, 91, 0.12);
    box-shadow: 0 12px 30px rgba(11, 47, 91, 0.08);
    color: var(--navy);
    cursor: pointer;
    flex: 0 0 auto;
}

.orbit-config-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
    flex: 1 1 auto;
    min-height: 0;
}

.orbit-config-list {
    flex: 1 1 auto;
    display: grid;
    gap: 14px;
    overflow: auto;
    padding-right: 4px;
    min-height: 0;
}

.orbit-config-row {
    padding: 14px 18px 12px;
    border-radius: 22px;
    background: rgba(247, 242, 232, 0.72);
    border: 1px solid rgba(11, 47, 91, 0.08);
    transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

.orbit-config-row.is-inactive {
    opacity: 0.68;
    background: rgba(247, 242, 232, 0.52);
}

.orbit-config-row.is-inactive .orbit-config-input-label {
    color: rgba(31, 41, 55, 0.70);
}

.orbit-config-row-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
    margin-bottom: 0;
}

.orbit-config-row.is-dragging {
    opacity: 0.68;
    transform: scale(0.995);
    box-shadow: 0 18px 34px rgba(11, 47, 91, 0.10);
}

.orbit-config-list.is-sorting .orbit-config-row:not(.is-dragging) {
    transition: transform 160ms ease, box-shadow 160ms ease, opacity 160ms ease;
}

.orbit-config-switch {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    width: 42px;
    min-width: 42px;
    max-width: 42px;
    height: 42px;
    padding: 0;
    margin: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(11, 47, 91, 0.10);
    color: var(--navy);
    cursor: pointer;
    user-select: none;
    position: relative;
    box-shadow: 0 12px 30px rgba(11, 47, 91, 0.08);
    appearance: none;
    -webkit-appearance: none;
    line-height: 0;
    box-sizing: border-box;
    flex: 0 0 42px;
    overflow: hidden;
}

.orbit-config-eye {
    position: relative;
    width: 18px;
    height: 18px;
    color: var(--navy);
}

.orbit-config-eye svg {
    position: absolute;
    inset: 0;
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: opacity 160ms ease, transform 160ms ease;
}

.orbit-config-eye-open {
    opacity: 1;
}

.orbit-config-eye-closed {
    opacity: 0;
    transform: scale(0.92);
}

.orbit-config-switch.is-active .orbit-config-eye-open {
    opacity: 1;
}

.orbit-config-switch.is-active .orbit-config-eye-closed {
    opacity: 0;
}

.orbit-config-switch:not(.is-active) .orbit-config-eye-open {
    opacity: 0;
}

.orbit-config-switch:not(.is-active) .orbit-config-eye-closed {
    opacity: 1;
}

.orbit-config-handle {
    width: 38px;
    height: 38px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(11, 47, 91, 0.10);
    color: var(--navy);
    cursor: grab;
    touch-action: none;
}

.orbit-config-reorder {
    display: none;
}

.orbit-config-reorder-button {
    width: 34px;
    height: 34px;
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(11, 47, 91, 0.10);
    color: var(--navy);
    cursor: pointer;
    touch-action: none;
    box-shadow: 0 10px 22px rgba(11, 47, 91, 0.07);
    appearance: none;
    -webkit-appearance: none;
    line-height: 0;
    box-sizing: border-box;
}

.orbit-config-reorder-button svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.orbit-config-handle svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
    stroke: none;
}

.orbit-config-remove-icon {
    position: relative;
    width: 18px;
    height: 18px;
    color: var(--navy);
}

.orbit-config-remove-icon svg {
    position: absolute;
    inset: 0;
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.orbit-config-remove {
    width: 42px;
    min-width: 42px;
    max-width: 42px;
    height: 42px;
    padding: 0;
    margin: 0;
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(11, 47, 91, 0.10);
    color: var(--navy);
    cursor: pointer;
    touch-action: none;
    box-shadow: 0 12px 30px rgba(11, 47, 91, 0.08);
    appearance: none;
    -webkit-appearance: none;
    line-height: 0;
    box-sizing: border-box;
    flex: 0 0 42px;
    overflow: hidden;
    transition: background 180ms ease, transform 180ms ease, opacity 180ms ease;
}

.orbit-config-remove:disabled {
    opacity: 0.35;
    cursor: not-allowed;
    box-shadow: none;
}

.orbit-config-remove:not(:disabled):hover,
.orbit-config-remove:not(:disabled):focus-visible {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-1px);
}

.orbit-config-content {
    width: 42px;
    min-width: 42px;
    max-width: 42px;
    height: 42px;
    padding: 0;
    margin: 0;
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(11, 47, 91, 0.10);
    color: var(--navy);
    cursor: pointer;
    touch-action: none;
    box-shadow: 0 12px 30px rgba(11, 47, 91, 0.08);
    appearance: none;
    -webkit-appearance: none;
    line-height: 0;
    box-sizing: border-box;
    overflow: hidden;
    transition: background 180ms ease, transform 180ms ease, opacity 180ms ease;
}

.orbit-config-content:not(:disabled):hover,
.orbit-config-content:not(:disabled):focus-visible {
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-1px);
}

.orbit-config-content-icon {
    position: relative;
    width: 18px;
    height: 18px;
    color: var(--navy);
}

.orbit-config-content-icon svg {
    position: absolute;
    inset: 0;
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.orbit-config-grid {
    display: none;
}

.orbit-config-input {
    width: 100%;
    min-height: 46px;
    padding: 0.78rem 0.92rem;
    border-radius: 14px;
    border: 1px solid rgba(11, 47, 91, 0.12);
    background: rgba(255, 255, 255, 0.92);
    color: var(--text);
    font: inherit;
    outline: none;
}

.orbit-config-input:focus {
    border-color: rgba(11, 47, 91, 0.32);
    box-shadow: 0 0 0 4px rgba(11, 47, 91, 0.08);
}

.orbit-config-input-label {
    flex: 1 1 auto;
    min-width: 220px;
}

.orbit-config-input-delay {
    display: none;
    width: 120px;
    flex: 0 0 120px;
}

.orbit-config-content-value {
    display: none;
}

.orbit-config-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    flex: 0 0 auto;
}

.orbit-config-actions-left,
.orbit-config-actions-right {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.orbit-config-actions-right {
    margin-left: auto;
    justify-content: flex-end;
}

.orbit-config-secondary,
.orbit-config-primary {
    min-height: 46px;
    padding: 0.78rem 1.15rem;
    border-radius: 999px;
    border: 1px solid transparent;
    font: inherit;
    cursor: pointer;
}

.orbit-config-secondary {
    background: rgba(255, 255, 255, 0.9);
    color: var(--navy);
    border-color: rgba(11, 47, 91, 0.12);
}

.orbit-config-primary {
    background: var(--navy);
    color: #fff;
    box-shadow: 0 12px 30px rgba(11, 47, 91, 0.12);
}

.orbit-config-primary.is-busy {
    position: relative;
    padding-right: 2.45rem;
    cursor: wait;
}

.orbit-config-primary.is-busy::before {
    content: "";
    position: absolute;
    right: 1rem;
    top: 50%;
    width: 0.95rem;
    height: 0.95rem;
    margin-top: -0.475rem;
    border-radius: 999px;
    border: 2px solid rgba(255, 255, 255, 0.55);
    border-top-color: rgba(255, 255, 255, 1);
    animation: orbit-spin 0.75s linear infinite;
}

.orbit-config-primary:disabled {
    opacity: 0.6;
    cursor: wait;
}

.orbit-content-modal {
    position: fixed;
    inset: 0;
    z-index: 10003;
    display: grid;
    place-items: center;
    padding: 20px;
}

.orbit-content-modal[hidden] {
    display: none;
}

.orbit-content-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(11, 47, 91, 0.18);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.orbit-content-panel {
    position: relative;
    z-index: 1;
    width: min(780px, calc(100vw - 40px));
    max-height: min(82vh, 780px);
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 24px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid rgba(11, 47, 91, 0.10);
    box-shadow: 0 32px 70px rgba(11, 47, 91, 0.18);
    overflow: hidden;
}

.orbit-content-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.orbit-content-note {
    margin: 8px 0 0;
    color: var(--muted);
    max-width: 52ch;
    line-height: 1.45;
}

.orbit-content-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-height: 0;
}

.orbit-content-label {
    font-size: 0.92rem;
    color: var(--muted);
    letter-spacing: 0.02em;
}

.orbit-content-textarea {
    width: 100%;
    min-height: min(48vh, 420px);
    resize: vertical;
    padding: 0.95rem 1rem;
    border-radius: 18px;
    border: 1px solid rgba(11, 47, 91, 0.12);
    background: rgba(255, 255, 255, 0.92);
    color: var(--text);
    font: inherit;
    line-height: 1.55;
    outline: none;
}

.orbit-content-textarea:focus {
    border-color: rgba(11, 47, 91, 0.32);
    box-shadow: 0 0 0 4px rgba(11, 47, 91, 0.08);
}

.orbit-detail-modal {
    position: fixed;
    inset: 0;
    z-index: 70;
    display: grid;
    place-items: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 260ms ease;
}

.orbit-detail-modal[hidden] {
    display: none;
}

.orbit-detail-modal.is-open {
    opacity: 1;
    pointer-events: auto;
}

.orbit-detail-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(252, 250, 245, 0.86);
    backdrop-filter: blur(9px);
    -webkit-backdrop-filter: blur(9px);
}

.orbit-detail-panel {
    position: relative;
    z-index: 1;
    width: min(760px, calc(100vw - 40px));
    max-height: min(82vh, 780px);
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 24px;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(11, 47, 91, 0.10);
    box-shadow: 0 32px 70px rgba(11, 47, 91, 0.18);
    overflow: hidden;
    transform: translateY(12px) scale(0.985);
    opacity: 0;
    transition:
        transform 260ms cubic-bezier(0.2, 0.8, 0.2, 1),
        opacity 260ms ease;
}

.orbit-detail-modal.is-open .orbit-detail-panel {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.orbit-detail-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
}

.orbit-detail-title-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.orbit-detail-accent {
    width: 12px;
    height: 12px;
    border-radius: 4px;
    background: var(--gold);
    flex: 0 0 auto;
}

.orbit-detail-header h2 {
    margin: 0;
    font-size: clamp(1.5rem, 1.2vw + 1rem, 2.25rem);
    color: var(--navy);
}

.orbit-detail-content {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding-right: 4px;
    padding-bottom: 12px;
    color: var(--text);
    line-height: 1.7;
    white-space: pre-wrap;
}

.orbit-detail-content.is-empty {
    color: var(--muted);
}

.orbit-detail-close {
    width: 36px;
    height: 36px;
    display: inline-grid;
    place-items: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(11, 47, 91, 0.08);
    box-shadow: 0 8px 18px rgba(11, 47, 91, 0.06);
    color: var(--navy);
    cursor: pointer;
    flex: 0 0 auto;
}

.orbit-detail-close svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.mobile-menu-toggle {
    display: none;
    position: fixed;
    top: 18px;
    right: 18px;
    width: 42px;
    height: 42px;
    padding: 0;
    place-items: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.84);
    border: 1px solid rgba(11, 47, 91, 0.12);
    box-shadow: 0 12px 30px rgba(11, 47, 91, 0.08);
    color: var(--navy);
    z-index: 19;
    cursor: pointer;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    -webkit-tap-highlight-color: transparent;
}

.mobile-menu-toggle-icon {
    position: relative;
    width: 20px;
    height: 20px;
    display: block;
}

.mobile-menu-toggle-line {
    position: absolute;
    left: 2px;
    width: 16px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    transform-origin: center;
    transition:
        transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1),
        opacity 160ms ease,
        top 220ms cubic-bezier(0.2, 0.8, 0.2, 1),
        width 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.mobile-menu-toggle-line-top {
    top: 4px;
}

.mobile-menu-toggle-line-middle {
    top: 9px;
}

.mobile-menu-toggle-line-bottom {
    top: 14px;
}

.mobile-menu-toggle.is-open .mobile-menu-toggle-line-top {
    top: 9px;
    transform: rotate(45deg);
}

.mobile-menu-toggle.is-open .mobile-menu-toggle-line-middle {
    opacity: 0;
    width: 10px;
}

.mobile-menu-toggle.is-open .mobile-menu-toggle-line-bottom {
    top: 9px;
    transform: rotate(-45deg);
}

.mobile-menu-toggle-icon,
.mobile-menu-toggle svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

body.is-mobile-menu-open {
    overflow: hidden;
}

.mobile-menu {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: grid;
    place-items: center;
    padding: 12px;
    opacity: 0;
    transition: opacity 320ms ease;
    pointer-events: none;
}

.mobile-menu.is-open {
    opacity: 1;
    pointer-events: auto;
}

.mobile-menu[hidden] {
    display: none;
}

.mobile-menu-backdrop {
    position: absolute;
    inset: 0;
    background: #fcfcfa;
}

.mobile-menu.is-open .mobile-menu-backdrop {
    opacity: 1;
}

.mobile-menu-panel {
    position: relative;
    z-index: 1;
    width: min(540px, 100%);
    height: 100%;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    align-content: stretch;
    justify-items: center;
    padding: 12px 0 0;
    gap: 12px;
    min-height: 0;
    overflow: hidden;
}

.mobile-menu-brand {
    grid-row: 1;
    display: grid;
    place-items: center;
    justify-self: center;
    align-self: start;
    margin: 8px 0 0;
}

.mobile-menu-logo {
    width: min(150px, 34vw);
    display: block;
}

.mobile-menu-logo,
.mobile-menu-list {
    position: relative;
    z-index: 1;
}

.mobile-menu-list {
    grid-row: 2;
    list-style: none;
    margin: 0;
    padding: 18px 0 0;
    width: min(420px, calc(100vw - 48px));
    display: grid;
    place-items: center;
    text-align: center;
    align-self: stretch;
    align-content: start;
    overflow-y: auto;
    min-height: 0;
    padding-bottom: 0;
}

.mobile-menu-contact {
    grid-row: 3;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding-bottom: 0;
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
    letter-spacing: 0.02em;
    line-height: 1;
    position: relative;
    z-index: 2;
    pointer-events: auto;
}

.mobile-menu-contact a {
    color: inherit;
    text-decoration: none;
}

.mobile-menu-contact-separator {
    color: var(--gold);
}

.mobile-menu-item {
    width: 100%;
    display: grid;
    place-items: center;
}

.mobile-menu-divider {
    width: min(240px, 62vw);
    height: 1px;
    margin: 12px 0;
    background: rgba(200, 146, 44, 0.42);
}

.mobile-menu-link {
    appearance: none;
    -webkit-appearance: none;
    border: 0;
    background: transparent;
    color: var(--navy);
    font: inherit;
    font-size: clamp(1.2rem, 3.5vw, 1.55rem);
    letter-spacing: 0.02em;
    padding: 10px 8px;
    cursor: pointer;
}

.mobile-menu-link:hover,
.mobile-menu-link:focus-visible {
    color: var(--gold);
}

@keyframes save-flash {
    0% {
        box-shadow: 0 12px 30px rgba(11, 47, 91, 0.08), 0 0 0 0 rgba(127, 207, 143, 0.0);
        background: rgba(255, 255, 255, 0.86);
    }
    35% {
        box-shadow: 0 12px 30px rgba(11, 47, 91, 0.08), 0 0 0 10px rgba(127, 207, 143, 0.26);
        background: rgba(239, 253, 241, 0.96);
    }
    100% {
        box-shadow: 0 12px 30px rgba(11, 47, 91, 0.08), 0 0 0 0 rgba(127, 207, 143, 0.0);
        background: rgba(255, 255, 255, 0.86);
    }
}

@keyframes logo-knock-knock {
    0% {
        transform: scale(1);
    }
    18% {
        transform: scale(1.035);
    }
    34% {
        transform: scale(0.985);
    }
    52% {
        transform: scale(1.02);
    }
    72% {
        transform: scale(0.995);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes orbit-spin {
    to {
        transform: rotate(360deg);
    }
}

@media (min-width: 561px) {
    body {
        position: relative;
        overflow: hidden;
        isolation: isolate;
    }

    body::before,
    body::after {
        content: "";
        position: fixed;
        pointer-events: none;
        z-index: 0;
        opacity: 0.55;
        will-change: transform, border-radius;
        transition: var(--transition);
    }

    body::before {
        top: 6%;
        left: 8%;
        width: min(26vw, 340px);
        height: min(26vw, 340px);
        background: radial-gradient(circle, rgba(200, 146, 44, 0.06) 0%, rgba(200, 146, 44, 0.02) 42%, transparent 72%);
        filter: blur(10px);
        border-radius: 46% 54% 58% 42% / 49% 46% 54% 51%;
        animation: drift-gold-debug 26s ease-in-out infinite alternate;
    }

    body::after {
        right: 7%;
        bottom: 10%;
        width: min(30vw, 380px);
        height: min(30vw, 380px);
        background: radial-gradient(circle, rgba(11, 47, 91, 0.025) 0%, rgba(11, 47, 91, 0.008) 44%, transparent 74%);
        filter: blur(12px);
        border-radius: 55% 45% 44% 56% / 47% 56% 44% 53%;
        animation: drift-navy-debug 34s ease-in-out infinite alternate;
    }
}

@media (prefers-reduced-motion: reduce) {
    .logo.logo-knock-knock {
        animation: none;
    }
}

@keyframes drift-gold {
    0% {
        transform: translate3d(0, 0, 0) scale(0.95) rotate(0deg);
        border-radius: 46% 54% 58% 42% / 49% 46% 54% 51%;
    }
    100% {
        transform: translate3d(18px, -12px, 0) scale(1.08) rotate(4deg);
        border-radius: 54% 46% 48% 52% / 43% 56% 44% 57%;
    }
}

@keyframes drift-navy {
    0% {
        transform: translate3d(0, 0, 0) scale(1) rotate(0deg);
        border-radius: 55% 45% 44% 56% / 47% 56% 44% 53%;
    }
    100% {
        transform: translate3d(-20px, 14px, 0) scale(0.9) rotate(-5deg);
        border-radius: 48% 52% 60% 40% / 56% 45% 55% 44%;
    }
}

@keyframes drift-gold-debug {
    0% {
        transform: translate3d(0, 0, 0) scale(0.84) rotate(-5deg);
        border-radius: 22% 78% 34% 66% / 70% 22% 78% 30%;
    }
    50% {
        transform: translate3d(7px, -9px, 0) scale(1.12) rotate(3deg);
        border-radius: 46% 54% 62% 38% / 34% 66% 30% 70%;
    }
    100% {
        transform: translate3d(-4px, 5px, 0) scale(0.92) rotate(6deg);
        border-radius: 34% 66% 24% 76% / 52% 48% 68% 32%;
    }
}

@keyframes drift-navy-debug {
    0% {
        transform: translate3d(0, 0, 0) scale(0.88) rotate(5deg);
        border-radius: 64% 36% 24% 76% / 28% 72% 58% 42%;
    }
    50% {
        transform: translate3d(-6px, 8px, 0) scale(1.1) rotate(-3deg);
        border-radius: 40% 60% 66% 34% / 62% 38% 26% 74%;
    }
    100% {
        transform: translate3d(4px, -5px, 0) scale(0.9) rotate(-7deg);
        border-radius: 28% 72% 48% 52% / 40% 60% 70% 30%;
    }
}

@media (max-width: 560px) {
    html,
    body {
        position: fixed;
        inset: 0;
        width: 100%;
        height: 100%;
        overflow: hidden;
        overscroll-behavior: none;
        touch-action: none;
    }

    html {
        background:
            radial-gradient(circle at 28% 14%, rgba(200, 146, 44, 0.16), transparent 34%),
            radial-gradient(circle at 78% 76%, rgba(11, 47, 91, 0.12), transparent 24%),
            linear-gradient(135deg, #fcfcfa 0%, var(--sand) 100%);
    }

    body {
        background: transparent;
    }

    body::before,
    body::after {
        content: "";
        position: fixed;
        pointer-events: none;
        z-index: 0;
        opacity: 0.18;
        will-change: transform, border-radius;
        transition: var(--transition);
    }

    body::before {
        top: 9%;
        left: 10%;
        width: min(40vw, 220px);
        height: min(40vw, 220px);
        background: radial-gradient(circle, rgba(200, 146, 44, 0.06) 0%, rgba(200, 146, 44, 0.02) 42%, transparent 72%);
        filter: blur(8px);
        border-radius: 46% 54% 58% 42% / 49% 46% 54% 51%;
        animation: drift-gold-debug 26s ease-in-out infinite alternate;
    }

    body::after {
        right: 8%;
        bottom: 12%;
        width: min(44vw, 250px);
        height: min(44vw, 250px);
        background: radial-gradient(circle, rgba(11, 47, 91, 0.025) 0%, rgba(11, 47, 91, 0.008) 44%, transparent 74%);
        filter: blur(10px);
        border-radius: 55% 45% 44% 56% / 47% 56% 44% 53%;
        animation: drift-navy-debug 34s ease-in-out infinite alternate;
    }

    .card {
        padding: 0;
        transform: translateY(-150px);
    }

    .orbit {
        width: min(620px, calc(100vw - 24px), calc(100vh - 220px));
        height: min(620px, calc(100vw - 24px), calc(100vh - 220px));
    }

    .logo {
        width: min(518px, 73.3vw);
        margin-left: 0;
        margin-right: 15px;
    }

    .orbit-services {
        display: none;
    }

    .orbit-service {
        display: none;
    }

    .editorbit .orbit-services {
        display: block;
    }

    .editorbit .orbit-service {
        display: none;
    }

    .orbit-center {
        pointer-events: auto;
    }

    .footer {
        left: 16px;
        right: 16px;
        bottom: 22px;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 2px;
        text-align: center;
        white-space: normal;
        line-height: 1;
        font-size: 0.92rem;
        touch-action: auto;
    }

    .editorbit .footer {
        display: none;
    }

    .footer-line {
        display: block;
        line-height: 1.05;
        margin: 0;
    }

    .footer-desktop-separator {
        display: none;
    }

    .footer a {
        touch-action: auto;
    }

    .orbit-toggle {
        left: 20px;
        bottom: 22px;
    }

    .editorbit .orbit-toggle {
        left: 20px;
    }

    .orbit-config-toggle {
        display: inline-grid;
        left: auto;
        right: 16px;
        bottom: 22px;
        z-index: 10001;
    }

    .editorbit .orbit-config-toggle {
        right: 20px;
    }

    .orbit-config-test-open {
        left: 20px;
        bottom: 78px;
    }

    .orbit-config-modal {
        padding: 12px;
    }

    .orbit-config-panel {
        width: calc(100vw - 24px);
        max-height: calc(100vh - 24px);
        padding: 18px;
        border-radius: 22px;
    }

    body.is-config-modal-open .mobile-menu-toggle {
        opacity: 0;
        pointer-events: none;
    }

    .orbit-config-modal {
        z-index: 10002;
        padding: 0;
    }

    .orbit-config-panel {
        width: 100vw;
        height: 100vh;
        max-height: none;
        padding: 16px 16px calc(94px + env(safe-area-inset-bottom));
        border-radius: 0;
        overflow: hidden;
    }

    .orbit-config-header {
        display: block;
        padding-right: 56px;
        min-height: 44px;
        position: relative;
    }

    .orbit-config-close {
        position: absolute;
        top: 0;
        right: 0;
    }

    .orbit-config-note {
        display: none;
    }

    .orbit-config-title {
        margin-top: 0;
    }

    .orbit-config-header > div {
        padding-top: 8px;
    }

    .orbit-config-form {
        display: flex;
        flex-direction: column;
        gap: 12px;
        min-height: 0;
    }

    .orbit-config-list {
        flex: 1 1 auto;
        padding-right: 2px;
        padding-bottom: calc(110px + env(safe-area-inset-bottom));
        min-height: 0;
    }

    .orbit-config-actions {
        position: fixed;
        left: 16px;
        right: 16px;
        bottom: calc(14px + env(safe-area-inset-bottom));
        z-index: 74;
        padding: 10px 12px;
        margin-top: 0;
        background: rgba(255, 255, 255, 0.98);
        border-radius: 18px;
        box-shadow: 0 16px 34px rgba(11, 47, 91, 0.10);
    }

    .orbit-config-actions-left,
    .orbit-config-actions-right {
        gap: 8px;
    }

    .orbit-config-grid {
        grid-template-columns: 1fr;
    }

    .orbit-config-row-head {
        flex-wrap: wrap;
        justify-content: flex-start;
        align-items: center;
    }

    .orbit-config-input-label,
    .orbit-config-input-delay {
        width: 100%;
        flex: 1 1 100%;
        min-width: 0;
    }

    .orbit-config-input-label {
        order: 1;
        flex-basis: 100%;
    }

    .orbit-config-handle {
        order: 2;
        display: none;
    }

    .orbit-config-reorder {
        order: 2;
        display: flex;
        flex-direction: row;
        gap: 6px;
        margin-right: auto;
    }

    .orbit-config-reorder-button {
        width: 34px;
        height: 34px;
    }

    .orbit-config-reorder-button:disabled {
        opacity: 0.35;
        cursor: not-allowed;
        box-shadow: none;
    }

    .orbit-config-remove {
        order: 3;
    }

    .orbit-config-switch {
        order: 4;
    }

    .orbit-config-content {
        order: 5;
    }

    .orbit-content-modal {
        z-index: 10004;
        padding: 0;
    }

    .orbit-content-panel {
        width: 100vw;
        height: 100vh;
        max-height: none;
        padding: 16px 16px calc(94px + env(safe-area-inset-bottom));
        border-radius: 0;
        overflow: hidden;
    }

    .orbit-content-header {
        display: block;
        padding-right: 56px;
        min-height: 44px;
        position: relative;
    }

    .orbit-content-header > div {
        padding-top: 8px;
    }

    .orbit-content-close {
        position: absolute;
        top: 0;
        right: 0;
    }

    .orbit-content-note {
        display: none;
    }

    .orbit-content-form {
        display: flex;
        flex-direction: column;
        gap: 12px;
        min-height: 0;
        height: 100%;
    }

    .orbit-content-textarea {
        min-height: 0;
        flex: 1 1 auto;
        height: auto;
        max-height: 45vh;
    }

    .orbit-content-label {
        margin-top: 2px;
    }

    .orbit-detail-modal {
        padding: 0;
    }

    .orbit-detail-panel {
        width: 100vw;
        height: 100vh;
        max-height: none;
        padding: 20px 18px 18px;
        border-radius: 0;
    }

    .orbit-detail-header {
        display: block;
        padding-right: 56px;
        min-height: 44px;
        position: relative;
    }

    .orbit-detail-title-row {
        margin-top: 6px;
    }

    .orbit-detail-close {
        position: absolute;
        top: 0;
        right: 0;
    }

    .orbit-detail-content {
        min-height: 0;
        padding-bottom: 18px;
    }

    .mobile-menu-toggle {
        display: inline-grid;
        z-index: 61;
    }

    .mobile-menu-link {
        font-size: clamp(1.3rem, 4vw, 1.7rem);
    }

    .mobile-menu-logo {
        width: min(130px, 36vw);
    }

    .mobile-menu-brand {
        margin-top: 0;
    }

    .mobile-menu-toggle {
        display: inline-grid;
        z-index: 61;
    }
}
