/* ============================================================
   Momentos Siderais, design system
   Warm gold on black, professional, mobile first.
   Loaded on every page. The scanner extends this in scanner.css.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&family=Inter:wght@400;500;600;700&display=swap');

:root {
    /* Brand palette */
    --ms-bg: #0e0d0b;
    --ms-bg-soft: #161410;
    --ms-bg-card: #1f1c17;
    --ms-bg-elevated: #252118;

    --ms-gold: #c9a063;
    --ms-gold-soft: #a07f4b;
    --ms-gold-bright: #e0bd84;
    --ms-gold-faint: rgba(201, 160, 99, .12);

    --ms-text: #f2ede2;
    --ms-text-soft: #c9c0ad;
    --ms-text-muted: #7a7468;
    --ms-border: #2e2a23;
    --ms-border-soft: #221f19;

    --ms-success: #7fb583;
    --ms-warning: #d4a155;
    --ms-error: #d97a7a;

    /* Type */
    --ms-font-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
    --ms-font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

    /* Radii and shadows */
    --ms-radius-sm: 8px;
    --ms-radius: 14px;
    --ms-radius-lg: 22px;
    --ms-shadow: 0 14px 44px rgba(0, 0, 0, .5);
    --ms-shadow-soft: 0 4px 18px rgba(0, 0, 0, .35);
    --ms-glow: 0 0 0 1px rgba(201, 160, 99, .25), 0 18px 40px rgba(0, 0, 0, .55);
}

/* Reset */
*,
*::before,
*::after {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

html,
body {
    margin: 0;
    padding: 0;
    background: var(--ms-bg);
    color: var(--ms-text);
    font-family: var(--ms-font-sans);
    font-size: 17px;
    line-height: 1.65;
    overflow-x: hidden;
    width: 100%;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

body {
    position: relative;
}

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

a {
    color: var(--ms-gold);
    text-decoration: none;
    transition: color .2s ease;
}

a:hover {
    color: var(--ms-gold-bright);
}

::selection {
    background: var(--ms-gold);
    color: var(--ms-bg);
}

/* Subtle starfield background */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background:
        radial-gradient(1px 1px at 12% 18%, rgba(255, 255, 255, .45) 50%, transparent 51%),
        radial-gradient(1px 1px at 78% 32%, rgba(255, 255, 255, .35) 50%, transparent 51%),
        radial-gradient(1px 1px at 33% 72%, rgba(255, 255, 255, .4) 50%, transparent 51%),
        radial-gradient(1.5px 1.5px at 88% 80%, rgba(224, 189, 132, .5) 50%, transparent 51%),
        radial-gradient(1px 1px at 55% 9%, rgba(255, 255, 255, .3) 50%, transparent 51%),
        radial-gradient(1px 1px at 8% 88%, rgba(255, 255, 255, .35) 50%, transparent 51%),
        radial-gradient(2px 2px at 95% 50%, rgba(224, 189, 132, .35) 50%, transparent 51%),
        radial-gradient(circle at 50% -10%, rgba(201, 160, 99, .08), transparent 60%);
}

/* Layout */
.ms-container {
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 24px;
    position: relative;
    z-index: 1;
}

.ms-container-narrow {
    max-width: 760px;
}

/* Typography */
h1,
h2,
h3,
h4 {
    color: var(--ms-text);
    margin: 0 0 .6em;
}

h1,
h2 {
    font-family: var(--ms-font-serif);
    font-weight: 600;
}

h1 {
    font-size: clamp(2.15rem, 5.4vw, 4.05rem);
    line-height: 1.05;
    letter-spacing: .003em;
}

h2 {
    font-size: clamp(1.75rem, 3.4vw, 2.65rem);
    line-height: 1.12;
    letter-spacing: .004em;
}

h3 {
    font-family: var(--ms-font-sans);
    font-size: clamp(1.05rem, 1.7vw, 1.25rem);
    line-height: 1.35;
    font-weight: 650;
    letter-spacing: .005em;
}

h4 {
    font-family: var(--ms-font-sans);
    font-size: 1rem;
    line-height: 1.35;
    font-weight: 700;
}

p {
    margin-top: 0;
    line-height: 1.68;
}

.ms-eyebrow {
    display: inline-block;
    font-family: var(--ms-font-sans);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .18em;
    line-height: 1.5;
    text-transform: uppercase;
    color: var(--ms-gold);
    margin-bottom: 14px;
    max-width: 100%;
    overflow-wrap: break-word;
}

.ms-lead {
    font-size: clamp(1.08rem, 1.45vw, 1.22rem);
    color: var(--ms-text-soft);
    line-height: 1.68;
    max-width: 56ch;
    font-weight: 400;
}

/* Header */
.ms-site-header {
    position: sticky;
    top: 18px;
    z-index: 100;
    padding: 0 22px;
    background: transparent;
    border-bottom: 0;
}

.ms-site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;

    max-width: 1180px;
    margin: 0 auto;
    padding: 13px 18px 13px 20px;
    border-radius: 24px;

    background:
        radial-gradient(circle at 12% 0%, rgba(201, 160, 99, .16), transparent 38%),
        linear-gradient(180deg, rgba(31, 28, 23, .88), rgba(14, 13, 11, .72));

    border: 1px solid rgba(201, 160, 99, .18);

    box-shadow:
        0 22px 60px rgba(0, 0, 0, .42),
        inset 0 1px 0 rgba(255, 255, 255, .045);

    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
}

.ms-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-left: 2px;
    text-decoration: none;
    color: var(--ms-text);
    min-width: 0;
}

.ms-logo-img {
    height: 48px;
    width: auto;
    max-width: 230px;
    object-fit: contain;
    display: block;
}

.ms-logo-mark {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, var(--ms-gold-bright), var(--ms-gold-soft) 65%, #6b5234);
    box-shadow: 0 0 18px rgba(201, 160, 99, .35);
    flex-shrink: 0;
}

.ms-logo-text {
    font-family: var(--ms-font-serif);
    font-size: 20px;
    line-height: 1;
    letter-spacing: .02em;
}

.ms-logo-text small {
    display: block;
    font-family: var(--ms-font-sans);
    font-size: 10px;
    letter-spacing: .25em;
    color: var(--ms-gold);
    text-transform: uppercase;
    margin-top: 4px;
}

/* Desktop navigation */
.ms-nav-desktop {
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: nowrap;
}

.ms-nav-desktop a {
    color: rgba(242, 237, 226, .74);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: .005em;
    white-space: nowrap;
}

.ms-nav-desktop a:hover,
.ms-nav-desktop a.is-active {
    color: var(--ms-gold-bright);
}

.ms-nav-cta {
    background: var(--ms-gold);
    color: var(--ms-bg) !important;
    padding: 9px 16px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: .02em;
    box-shadow: 0 8px 24px rgba(201, 160, 99, .22);
}

.ms-nav-cta:hover {
    background: var(--ms-gold-bright);
    color: var(--ms-bg) !important;
}

.ms-lang-pill {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    display: inline-flex;
    align-items: center;

    width: auto;
    min-width: 70px;

    background:
        linear-gradient(135deg, rgba(218,165,32,0.18), rgba(255,255,255,0.04)),
        #12100c;
    color: #f6e6b5;

    border: 1px solid rgba(218,165,32,0.55);
    border-radius: 999px;

    padding: 8px 30px 8px 12px;

    font-family: var(--ms-font-sans);
    font-size: 12px;
    font-weight: 700;
    line-height: 1;
    letter-spacing: 0.08em;
    text-transform: uppercase;

    cursor: pointer;

    box-shadow: 0 0 18px rgba(218,165,32,0.12);

    background-image:
        linear-gradient(135deg, rgba(218,165,32,0.18), rgba(255,255,255,0.04)),
        linear-gradient(45deg, transparent 50%, #f6e6b5 50%),
        linear-gradient(135deg, #f6e6b5 50%, transparent 50%);

    background-position:
        0 0,
        calc(100% - 15px) 50%,
        calc(100% - 10px) 50%;

    background-size:
        100% 100%,
        5px 5px,
        5px 5px;

    background-repeat: no-repeat;

    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        background .2s ease,
        color .2s ease;
}

.ms-lang-pill:hover {
    border-color: rgba(224,189,132,0.85);
    box-shadow:
        0 0 20px rgba(218,165,32,0.18),
        inset 0 1px 0 rgba(255,255,255,0.06);
}

.ms-lang-pill:focus {
    outline: none;
    border-color: var(--ms-gold-bright);
    color: #fff0c7;
    box-shadow:
        0 0 0 3px rgba(201,160,99,0.18),
        0 0 20px rgba(218,165,32,0.2);
}

.ms-lang-pill option {
    background: #12100c;
    color: #f6e6b5;
}

/* Mobile navigation */
.ms-burger {
    display: none;
    background: rgba(255, 255, 255, .03);
    border: 1px solid var(--ms-border);
    color: var(--ms-text);
    width: 48px;
    height: 48px;
    border-radius: 12px;
    cursor: pointer;
    padding: 0;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: border-color .2s ease, background .2s ease;
    position: relative;
}

.ms-burger:hover {
    border-color: var(--ms-gold);
    background: rgba(201, 160, 99, .08);
}

.ms-burger:focus-visible {
    outline: 2px solid var(--ms-gold);
    outline-offset: 2px;
}

.ms-burger-icon {
    position: relative;
    width: 22px;
    height: 16px;
    display: inline-block;
}

.ms-burger-icon span {
    position: absolute;
    left: 0;
    width: 100%;
    height: 2.5px;
    background: var(--ms-text);
    border-radius: 2px;
    transform-origin: center;
    transition:
        transform .3s cubic-bezier(.4, 0, .2, 1),
        opacity .2s ease,
        top .3s cubic-bezier(.4, 0, .2, 1),
        background .2s ease;
}

.ms-burger-icon span:nth-child(1) {
    top: 0;
}

.ms-burger-icon span:nth-child(2) {
    top: 7px;
}

.ms-burger-icon span:nth-child(3) {
    top: 14px;
}

.ms-burger.is-open .ms-burger-icon span {
    background: var(--ms-gold);
}

.ms-burger.is-open .ms-burger-icon span:nth-child(1) {
    top: 7px;
    transform: rotate(45deg);
}

.ms-burger.is-open .ms-burger-icon span:nth-child(2) {
    opacity: 0;
}

.ms-burger.is-open .ms-burger-icon span:nth-child(3) {
    top: 7px;
    transform: rotate(-45deg);
}

.ms-nav-mobile {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 9998;
    background:
        radial-gradient(circle at 50% -10%, rgba(201, 160, 99, .10), transparent 60%),
        linear-gradient(180deg, #0e0d0b 0%, #1a1815 100%);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-12px);
    transition: opacity .3s ease, transform .3s ease, visibility 0s linear .3s;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.ms-nav-mobile.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    transition: opacity .3s ease, transform .3s ease, visibility 0s;
}

.ms-nav-mobile-inner {
    max-width: 540px;
    margin: 0 auto;
    padding: calc(env(safe-area-inset-top, 0px) + 120px) 28px 40px;
    display: flex;
    flex-direction: column;
}

.ms-nav-mobile a:not(.ms-nav-cta) {
    padding: 20px 0;
    border-bottom: 1px solid rgba(201, 160, 99, .14);
    font-family: var(--ms-font-sans);
    font-size: 20px;
    font-weight: 600;
    color: var(--ms-text);
    letter-spacing: .005em;
    text-decoration: none;
}

.ms-nav-mobile a:not(.ms-nav-cta):first-child {
    border-top: 1px solid rgba(201, 160, 99, .14);
}

.ms-nav-mobile a:not(.ms-nav-cta).is-active,
.ms-nav-mobile a:not(.ms-nav-cta):hover {
    color: var(--ms-gold);
}

.ms-nav-mobile .ms-lang-pill {
    margin: 28px 0 0;
    align-self: flex-start;
    font-size: 12px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, .03);
}

.ms-nav-mobile .ms-nav-cta {
    margin-top: 24px;
    text-align: center;
    padding: 16px 22px;
    font-size: 15px;
    font-family: var(--ms-font-sans);
}

/* Sections */
.ms-section {
    padding: clamp(76px, 9vw, 130px) 0;
    position: relative;
    z-index: 1;
}

.ms-section:nth-of-type(even) {
    background:
        radial-gradient(circle at 50% 0%, rgba(201, 160, 99, .045), transparent 46%);
}

.ms-section-tight {
    padding: clamp(48px, 6vw, 80px) 0;
}

/* Hero */
.ms-hero {
    min-height: calc(100vh - 120px);
    display: flex;
    align-items: center;
    padding: clamp(90px, 11vw, 150px) 0 clamp(70px, 9vw, 120px);
    text-align: center;
    position: relative;
    z-index: 1;
}

.ms-hero::before {
    content: "";
    position: absolute;
    inset: -120px 0 auto 0;
    height: 520px;
    pointer-events: none;
    background:
        radial-gradient(circle at 50% 0%, rgba(201, 160, 99, .18), transparent 58%),
        radial-gradient(circle at 20% 30%, rgba(224, 189, 132, .08), transparent 34%),
        radial-gradient(circle at 80% 35%, rgba(201, 160, 99, .07), transparent 36%);
    z-index: -1;
}

.ms-hero h1 {
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 24px;
    font-weight: 600;
    letter-spacing: .004em;
    text-wrap: balance;
}

.ms-hero h1 em {
    font-style: italic;
    color: var(--ms-gold);
    font-weight: 500;
}

.ms-hero .ms-lead {
    max-width: 720px;
    margin: 0 auto 36px;
}

.ms-hero .ms-cta-row {
    justify-content: center;
}

.ms-hero-glow {
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 700px;
    height: 700px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201, 160, 99, .18), transparent 60%);
    filter: blur(40px);
    pointer-events: none;
    z-index: -1;
}

/* Cards and panels */
.ms-panel {
    position: relative;
    overflow: hidden;
    background:
        radial-gradient(circle at 18% 0%, rgba(201, 160, 99, .09), transparent 36%),
        linear-gradient(180deg, rgba(31, 28, 23, .96), rgba(18, 16, 13, .96));
    border: 1px solid rgba(201, 160, 99, .13);
    border-radius: var(--ms-radius);
    padding: 32px 28px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, .22);
    transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}

.ms-panel::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(135deg, rgba(255, 255, 255, .035), transparent 38%);
    opacity: .8;
}

.ms-panel:hover {
    border-color: rgba(201, 160, 99, .38);
    transform: translateY(-4px);
    box-shadow: 0 20px 48px rgba(0, 0, 0, .36);
}

.ms-panel-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background:
        radial-gradient(circle at 30% 20%, rgba(224, 189, 132, .28), rgba(201, 160, 99, .10));
    border: 1px solid rgba(201, 160, 99, .18);
    color: var(--ms-gold);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

.ms-panel-icon svg {
    width: 22px;
    height: 22px;
}

.ms-panel h3 {
    font-family: var(--ms-font-sans);
    font-size: 1rem;
    line-height: 1.35;
    font-weight: 700;
    letter-spacing: .005em;
    margin-bottom: 8px;
    color: var(--ms-text);
}

.ms-panel p {
    color: var(--ms-text-soft);
    margin: 0;
    font-size: .95rem;
    line-height: 1.65;
}

/* Grids */
.ms-grid {
    display: grid;
    gap: 22px;
    grid-template-columns: 1fr;
}

@media (min-width: 720px) {
    .ms-grid-2 {
        grid-template-columns: 1fr 1fr;
    }
}

@media (min-width: 880px) {
    .ms-grid-3 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 1000px) {
    .ms-grid-4 {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* Buttons */
.ms-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;

    min-height: 52px;
    padding: 15px 28px;

    border-radius: 999px;
    border: 1px solid transparent;

    font-family: var(--ms-font-sans);
    font-size: 14px;
    font-weight: 750;
    line-height: 1;
    letter-spacing: .01em;
    text-decoration: none;
    text-align: center;
    white-space: nowrap;

    cursor: pointer;
    user-select: none;

    background: transparent;
    color: var(--ms-text);

    box-shadow: none;

    transition:
        background .22s ease,
        color .22s ease,
        border-color .22s ease,
        box-shadow .22s ease,
        transform .08s ease,
        opacity .22s ease;
}

.ms-btn:hover {
    transform: translateY(-1px);
}

.ms-btn:active {
    transform: translateY(1px);
}

.ms-btn:focus-visible {
    outline: none;
    box-shadow:
        0 0 0 3px rgba(14, 13, 11, .95),
        0 0 0 5px rgba(224, 189, 132, .75);
}

.ms-btn-primary {
    background:
        linear-gradient(135deg, #f0cf96 0%, var(--ms-gold-bright) 38%, var(--ms-gold) 100%);
    color: var(--ms-bg) !important;
    border-color: rgba(240, 207, 150, .45);
    box-shadow:
        0 12px 30px rgba(201, 160, 99, .26),
        0 2px 0 rgba(255, 255, 255, .18) inset,
        0 -10px 24px rgba(92, 66, 35, .18) inset;
}

.ms-btn-primary:hover {
    background:
        linear-gradient(135deg, #f5d9a5 0%, #e8c58d 42%, #cfa86c 100%);
    color: var(--ms-bg) !important;
    box-shadow:
        0 16px 38px rgba(201, 160, 99, .34),
        0 2px 0 rgba(255, 255, 255, .24) inset,
        0 -10px 24px rgba(92, 66, 35, .16) inset;
}

.ms-btn-primary:active {
    box-shadow:
        0 8px 20px rgba(201, 160, 99, .22),
        0 1px 0 rgba(255, 255, 255, .18) inset;
}

.ms-btn-ghost {
    color: var(--ms-gold-bright);
    border-color: rgba(201, 160, 99, .42);
    background: rgba(201, 160, 99, .055);
}

.ms-btn-ghost:hover {
    color: var(--ms-gold-bright);
    border-color: rgba(224, 189, 132, .68);
    background: rgba(201, 160, 99, .105);
    box-shadow: 0 10px 26px rgba(0, 0, 0, .20);
}

.ms-btn-outline {
    color: var(--ms-text-soft);
    border-color: rgba(201, 160, 99, .18);
    background: rgba(255, 255, 255, .025);
}

.ms-btn-outline:hover {
    color: var(--ms-gold-bright);
    border-color: rgba(201, 160, 99, .48);
    background: rgba(201, 160, 99, .07);
}

.ms-btn-link {
    min-height: 0;
    padding: 8px 2px;
    border-radius: 0;
    border-color: transparent;
    background: transparent;
    color: var(--ms-text-soft);

    font-size: 14px;
    font-weight: 650;
    letter-spacing: .005em;

    text-decoration: underline;
    text-underline-offset: 5px;
    text-decoration-thickness: 1px;
    text-decoration-color: rgba(201, 160, 99, .32);
}

.ms-btn-link:hover {
    color: var(--ms-gold-bright);
    background: transparent;
    transform: none;
    text-decoration-color: var(--ms-gold);
}

.ms-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

/* Divider */
.ms-divider-gold {
    width: 86px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--ms-gold), transparent);
    margin: 18px auto 24px;
    border: none;
    opacity: .8;
}

/* Forms */
input[type=text],
input[type=email],
input[type=tel],
input[type=password],
textarea,
select {
    background: var(--ms-bg-card);
    color: var(--ms-text);
    border: 1px solid var(--ms-border);
    border-radius: 10px;
    padding: 13px 16px;
    font-size: 15px;
    font-family: inherit;
    width: 100%;
    transition: border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

input:focus,
textarea:focus,
select:focus {
    outline: none;
    border-color: var(--ms-gold);
    box-shadow: 0 0 0 3px rgba(201, 160, 99, .18);
    background: var(--ms-bg-elevated);
}

textarea {
    min-height: 120px;
    resize: vertical;
}

::placeholder {
    color: var(--ms-text-muted);
    opacity: 1;
}

label {
    color: var(--ms-text);
    font-size: 14px;
}

/* Footer */
.ms-site-footer {
    border-top: 1px solid rgba(201, 160, 99, .10);
    background:
        radial-gradient(circle at 50% 0%, rgba(201, 160, 99, .07), transparent 42%),
        linear-gradient(180deg, rgba(22, 20, 16, .72), rgba(14, 13, 11, 1));
    padding: 56px 0 32px;
    margin-top: 60px;
    position: relative;
    z-index: 1;
}

.ms-footer-grid {
    display: grid;
    gap: 36px;
    grid-template-columns: 1fr;
}

.ms-footer h4 {
    font-family: var(--ms-font-sans);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--ms-gold);
    margin-bottom: 14px;
}

.ms-footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ms-footer li {
    margin-bottom: 8px;
}

.ms-footer a {
    color: var(--ms-text-soft);
    font-size: 14px;
    line-height: 1.6;
}

.ms-footer a:hover {
    color: var(--ms-gold);
}

.ms-footer-tagline {
    color: var(--ms-text-soft);
    font-size: 14px;
    line-height: 1.6;
    margin-top: 12px;
    max-width: 32ch;
}

.ms-footer-bottom {
    border-top: 1px solid var(--ms-border-soft);
    padding-top: 22px;
    margin-top: 36px;
    color: var(--ms-text-muted);
    font-size: 13px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
}

@media (min-width: 720px) {
    .ms-footer-grid {
        grid-template-columns: 1.4fr 1fr 1fr;
    }
}

/* Helpers */
.ms-text-center {
    text-align: center;
}

.ms-mb-0 {
    margin-bottom: 0 !important;
}

.ms-mt-0 {
    margin-top: 0 !important;
}

.ms-card,
.ms-panel,
.ms-admin-card,
.ms-lead,
p {
    overflow-wrap: anywhere;
}

table {
    max-width: 100%;
}

/* Desktop only */
@media (min-width: 881px) {
    .ms-nav-mobile {
        display: none !important;
    }

    .ms-burger {
        display: none !important;
    }
}

/* Tablet and mobile */
@media (max-width: 880px) {
    .ms-site-header {
        top: 12px;
        padding: 0 12px;
        z-index: 9999;
    }

    .ms-site-header-inner {
        padding: 11px 12px;
        border-radius: 20px;
        gap: 10px;
    }

    .ms-logo {
        flex: 1 1 auto;
        overflow: hidden;
    }

    .ms-logo-img {
        height: 42px;
        max-width: 185px;
    }

    .ms-nav-desktop {
        display: none !important;
    }

    .ms-burger {
        display: inline-flex;
        width: 42px;
        height: 42px;
        border-radius: 14px;
        border-color: rgba(201, 160, 99, .24);
        background: rgba(255, 255, 255, .04);
    }

    .ms-burger-icon {
        width: 18px;
        height: 13px;
    }

    .ms-burger-icon span {
        height: 2px;
    }

    .ms-burger-icon span:nth-child(1) {
        top: 0;
    }

    .ms-burger-icon span:nth-child(2) {
        top: 5.5px;
    }

    .ms-burger-icon span:nth-child(3) {
        top: 11px;
    }

    .ms-burger.is-open .ms-burger-icon span:nth-child(1) {
        top: 5.5px;
        transform: rotate(45deg);
    }

    .ms-burger.is-open .ms-burger-icon span:nth-child(3) {
        top: 5.5px;
        transform: rotate(-45deg);
    }
}

/* Mobile */
@media (max-width: 600px) {
    html,
    body {
        font-size: 16.5px;
        line-height: 1.68;
    }

    .ms-section {
        padding: 46px 0;
    }

    .ms-section-tight {
        padding: 40px 0;
    }

    .ms-hero {
        min-height: auto;
        padding-top: 72px;
        padding-bottom: 52px;
    }

    h1 {
        font-size: clamp(2rem, 9vw, 2.65rem);
        line-height: 1.06;
    }

    h2 {
        font-size: clamp(1.55rem, 6.8vw, 2rem);
        line-height: 1.14;
    }

    h3 {
        font-size: 1.05rem;
    }

    .ms-lead {
        font-size: 1rem;
        line-height: 1.68;
    }

    .ms-panel,
    .ms-card,
    .ms-admin-card {
        padding: 20px 16px;
    }

    .ms-panel-icon {
        width: 38px;
        height: 38px;
        margin-bottom: 14px;
    }

    .ms-panel h3 {
        font-size: 1rem;
    }

    .ms-panel p {
        font-size: .96rem;
        line-height: 1.68;
    }

    .ms-grid {
        gap: 16px;
    }

    .ms-cta-row {
        flex-direction: column;
        align-items: stretch;
        gap: 11px;
    }

    .ms-cta-row .ms-btn {
        width: 100%;
    }

    .ms-btn {
        min-height: 54px;
        padding: 16px 22px;
        font-size: 14px;
        border-radius: 18px;
        white-space: normal;
        line-height: 1.2;
    }

    .ms-btn-primary {
        box-shadow:
            0 10px 24px rgba(201, 160, 99, .24),
            0 2px 0 rgba(255, 255, 255, .18) inset,
            0 -8px 20px rgba(92, 66, 35, .16) inset;
    }

    .ms-btn-link {
        min-height: 0;
        padding: 8px 4px;
        border-radius: 0;
    }
}

/* Small mobile */
@media (max-width: 480px) {
    .ms-container {
        padding: 0 16px;
    }

    .ms-eyebrow {
        font-size: 10px;
        letter-spacing: .10em;
        line-height: 1.55;
    }

    .ms-nav-mobile a:not(.ms-nav-cta) {
        font-size: 19px;
    }

    .ms-hero-glow {
        width: 380px;
        height: 380px;
    }
}

/* Very small mobile */
@media (max-width: 380px) {
    .ms-logo-img {
        height: 38px;
        max-width: 160px;
    }

    .ms-logo-text {
        font-size: 16px;
    }

    .ms-logo-text small {
        font-size: 9px;
    }

    .ms-site-header-inner {
        padding: 9px 10px;
    }

    .ms-burger {
        width: 40px;
        height: 40px;
    }
}

/* ============================================================
   Final mobile consistency overrides
   Keeps phone layout consistent across small and large phones
   ============================================================ */

/* Touch devices and all screens up to tablet width */
@media (max-width: 880px), (hover: none) and (pointer: coarse) {
    .ms-site-header {
        top: 10px;
        padding: 0 10px;
        z-index: 9999;
    }

    .ms-site-header-inner {
        min-height: 58px;
        padding: 8px 10px;
        border-radius: 18px;
        gap: 10px;
    }

    .ms-logo {
        flex: 1 1 auto;
        min-width: 0;
        overflow: hidden;
    }

    .ms-logo-img {
        height: 38px;
        max-width: 175px;
    }

    .ms-nav-desktop {
        display: none !important;
    }

    .ms-burger {
        display: inline-flex;
        width: 40px;
        height: 40px;
        border-radius: 13px;
        border-color: rgba(201, 160, 99, .24);
        background: rgba(255, 255, 255, .04);
    }

    .ms-burger-icon {
        width: 18px;
        height: 13px;
    }

    .ms-burger-icon span {
        height: 2px;
    }

    .ms-burger-icon span:nth-child(1) {
        top: 0;
    }

    .ms-burger-icon span:nth-child(2) {
        top: 5.5px;
    }

    .ms-burger-icon span:nth-child(3) {
        top: 11px;
    }

    .ms-burger.is-open .ms-burger-icon span:nth-child(1) {
        top: 5.5px;
        transform: rotate(45deg);
    }

    .ms-burger.is-open .ms-burger-icon span:nth-child(3) {
        top: 5.5px;
        transform: rotate(-45deg);
    }

    .ms-nav-mobile-inner {
        padding: calc(env(safe-area-inset-top, 0px) + 96px) 24px 40px;
    }

    .ms-nav-mobile a:not(.ms-nav-cta) {
        font-size: 19px;
        padding: 18px 0;
    }

    .ms-nav-mobile .ms-nav-cta {
        font-size: 14px;
        padding: 15px 20px;
    }
}

/* All normal phones, including bigger phones */
@media (max-width: 767px), (hover: none) and (pointer: coarse) {
    html,
    body {
        font-size: 16.5px;
        line-height: 1.68;
    }

    .ms-container {
        padding-left: 16px;
        padding-right: 16px;
    }

    .ms-section {
        padding: 46px 0;
    }

    .ms-section-tight {
        padding: 40px 0;
    }

    .ms-hero {
        min-height: auto;
        padding-top: 72px;
        padding-bottom: 52px;
    }

    h1 {
        font-size: clamp(2rem, 9vw, 2.65rem);
        line-height: 1.06;
    }

    h2 {
        font-size: clamp(1.55rem, 6.8vw, 2rem);
        line-height: 1.14;
    }

    h3 {
        font-size: 1.05rem;
    }

    .ms-lead {
        font-size: 1rem;
        line-height: 1.68;
    }

    .ms-panel,
    .ms-card,
    .ms-admin-card {
        padding: 20px 16px;
    }

    .ms-panel-icon {
        width: 38px;
        height: 38px;
        margin-bottom: 14px;
    }

    .ms-panel h3 {
        font-size: 1rem;
    }

    .ms-panel p {
        font-size: .96rem;
        line-height: 1.68;
    }

    .ms-grid {
        gap: 16px;
    }

    .ms-cta-row {
        flex-direction: column;
        align-items: stretch;
        gap: 11px;
    }

    .ms-cta-row .ms-btn {
        width: 100%;
    }

    .ms-btn {
        min-height: 54px;
        padding: 16px 22px;
        font-size: 14px;
        font-weight: 700;
        border-radius: 18px;
        white-space: normal;
        line-height: 1.2;
    }

    .ms-btn-primary {
        box-shadow:
            0 10px 24px rgba(201, 160, 99, .24),
            0 2px 0 rgba(255, 255, 255, .18) inset,
            0 -8px 20px rgba(92, 66, 35, .16) inset;
    }

    .ms-btn-link {
        min-height: 0;
        padding: 8px 4px;
        border-radius: 0;
    }
}

/* Small phones */
@media (max-width: 480px) {
    .ms-site-header-inner {
        min-height: 56px;
        padding: 8px 9px;
    }

    .ms-logo-img {
        height: 36px;
        max-width: 165px;
    }

    .ms-burger {
        width: 38px;
        height: 38px;
    }

    .ms-eyebrow {
        font-size: 10px;
        letter-spacing: .10em;
        line-height: 1.55;
    }

    .ms-nav-mobile a:not(.ms-nav-cta) {
        font-size: 19px;
    }

    .ms-hero-glow {
        width: 380px;
        height: 380px;
    }
}

/* Very small phones */
@media (max-width: 380px) {
    .ms-site-header-inner {
        min-height: 54px;
        padding: 7px 8px;
    }

    .ms-logo-img {
        height: 34px;
        max-width: 150px;
    }

    .ms-burger {
        width: 36px;
        height: 36px;
        border-radius: 12px;
    }

    .ms-logo-text {
        font-size: 16px;
    }

    .ms-logo-text small {
        font-size: 9px;
    }
}
.ms-atlas-results {
    position: relative;
    transition: opacity .18s ease, transform .18s ease;
}

.ms-atlas-results.is-loading {
    opacity: .45;
    transform: translateY(4px);
    pointer-events: none;
}
@media (min-width: 881px) {
    .ms-mobile-header-actions {
        display: none !important;
    }
}