/* =====================================================================
   H.A. Brill Digital Library welcome page (/page/Hoyt-Brill-Landing-Page)
   View: resources/views/Admin/Auth/brill/index.blade.php
   Design: hr-brill-new-design/Hoyt A. Brill Digital Library Welcome.png (1913 x 822).
   Header/footer come from homepage.css; everything here is scoped to .mh-brill.

   Desktop (>= 1200px) is the mockup at 1913px, scaled down proportionally:
   every mockup pixel value X is calc(X * var(--u)), with --u = min(1px, width / 1913).
   ===================================================================== */

.mh-brill {
    --b-navy: #0b2a4d;
    --b-maroon: #7b0214;
    --b-maroon-hover: #690112;
    --b-border: #0f2a4f;
}

/* ---------- Preview / not-launched notice (shared look with team-page.css) ---------- */
.mh-brill .mh-preview-bar {
    position: sticky; top: 0; z-index: 1100;
    min-height: 44px;
    background: #fff4d6; border-bottom: 1px solid #f0d48a;
    font-family: var(--mh-font);
}
.mh-brill .mh-preview-bar__in {
    max-width: 1913px; margin: 0 auto; min-height: 43px;
    padding: 6px clamp(16px, 6.27vw, 120px);
    display: flex; align-items: center; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap;
}
.mh-brill .mh-preview-bar__text {
    display: flex; align-items: center; gap: 8px;
    font-size: 14px; line-height: 20px; font-weight: 600; color: #4a3b00;
}
.mh-brill .mh-preview-bar__text svg { flex: none; color: #8a6100; }
.mh-brill .mh-preview-bar__back {
    display: inline-flex; align-items: center; min-height: 32px; padding: 0 12px;
    border: 1px solid #8a6100; border-radius: 4px;
    font-size: 13px; font-weight: 600; color: #4a3b00; text-decoration: none; white-space: nowrap;
}
.mh-brill .mh-preview-bar__back:hover { background: #fbe7b0; }
.mh-has-notice .mh-header { top: var(--mh-notice-h, 44px); }
html.mh-nav-drawer .mh-has-notice .mh-nav { top: calc(var(--mh-header-h) + 4px + var(--mh-notice-h, 44px)); }
@media (max-width: 767.98px) {
    .mh-brill .mh-preview-bar__text { font-size: 13px; }
}

/* ---------- Hero ---------- */
.mh-brill__hero {
    position: relative;
    overflow: hidden;
    background: #f6f6f5;
    color: var(--b-navy);
    font-family: 'Nunito Sans', var(--mh-font);
    container-type: inline-size;
}
.mh-brill__inner,
.mh-brill__wave { --u: min(1px, calc(100vw / 1913)); }
@supports (width: 1cqw) {
    .mh-brill__inner,
    .mh-brill__wave { --u: min(1px, calc(100cqw / 1913)); }
}

.mh-brill .mh-brill__bg {
    position: absolute; inset: 0; z-index: 0;
    width: 100%; height: 100%; max-width: none;
    object-fit: cover; object-position: center;
}

.mh-brill__wave {
    position: absolute; left: 0; bottom: 0; z-index: 2;
    display: block; width: 100%;
    height: calc(222 * var(--u));
    pointer-events: none;
}

.mh-brill__inner {
    position: relative; z-index: 3;
    max-width: 1913px;
    height: calc(822 * var(--u));
    margin: 0 auto;
}

.mh-brill__text {
    position: absolute;
    left: calc(120 * var(--u));
    top: calc(69 * var(--u));
    width: calc(830 * var(--u));
}

.mh-brill .mh-brill__welcome {
    margin: 0;
    padding-left: calc(4 * var(--u));
    font: 700 calc(56 * var(--u)) / calc(64 * var(--u)) Montserrat, var(--mh-font);
    letter-spacing: -.034em;
    color: var(--b-navy);
}

.mh-brill .mh-brill__title {
    margin: 0;
    font-family: Lora, Georgia, serif;
    font-weight: 700;
    color: var(--b-navy);
}
.mh-brill__l1 {
    display: block;
    margin: calc(18 * var(--u)) 0 0 calc(-4 * var(--u));
    font-size: calc(104 * var(--u));
    line-height: calc(104 * var(--u));
    letter-spacing: .025em;
    word-spacing: .04em;
}
.mh-brill__l2 {
    display: block;
    font-size: calc(101 * var(--u));
    line-height: calc(104 * var(--u));
    height: calc(104 * var(--u));
    white-space: nowrap;
}
/* The script word box is 358/136 em wide in the mockup, including the word space that follows it. */
.mh-brill__script {
    display: inline-block;
    min-width: var(--b-script-w, 2.434em);
    position: relative; top: calc(4 * var(--u));
    font-family: Ephesis, cursive;
    font-weight: 400;
    font-size: calc(136 * var(--u));
    color: var(--b-maroon);
    -webkit-text-stroke: calc(1.6 * var(--u)) var(--b-maroon);
}

.mh-brill__rule {
    display: block;
    width: calc(574 * var(--u));
    height: calc(5 * var(--u));
    margin-top: calc(48 * var(--u));
    background: var(--b-maroon);
}

.mh-brill .mh-brill__intro {
    margin: calc(23 * var(--u)) 0 0;
    max-width: calc(730 * var(--u));
    font-size: calc(29 * var(--u));
    line-height: calc(34.5 * var(--u));
    color: var(--b-navy);
    overflow-wrap: anywhere;
}

/* ---------- Buttons ---------- */
.mh-brill__btns {
    display: flex; flex-wrap: wrap;
    gap: calc(22 * var(--u));
    margin-top: calc(28 * var(--u));
}
.mh-brill .mh-brill__btn {
    display: inline-flex; align-items: center;
    min-height: calc(77 * var(--u));
    border-radius: calc(8 * var(--u));
    font: 700 calc(23 * var(--u)) / 1.1 'Nunito Sans', var(--mh-font);
    letter-spacing: .02em;
    text-decoration: none;
    transition: background-color .15s ease, color .15s ease;
}
.mh-brill .mh-brill__btn--primary {
    min-width: calc(403 * var(--u));
    padding: 0 calc(34 * var(--u)) 0 calc(31 * var(--u));
    background: var(--b-maroon);
    color: #fff;
}
.mh-brill .mh-brill__btn--secondary {
    min-width: calc(373 * var(--u));
    padding: 0 calc(29 * var(--u)) 0 calc(31 * var(--u));
    background: #fff;
    color: var(--b-navy);
    border: 1.5px solid var(--b-border);
}
.mh-brill .mh-brill__btn--primary:hover { background: var(--b-maroon-hover); color: #fff; }
.mh-brill .mh-brill__btn--secondary:hover { background: #f3f6fa; color: var(--b-navy); }
.mh-brill .mh-brill__btn:focus-visible { outline: 3px solid rgba(11, 42, 77, .35); outline-offset: 2px; }

.mh-brill__icon { flex: none; display: block; }
.mh-brill__icon--book { width: calc(42 * var(--u)); height: calc(36 * var(--u)); }
.mh-brill__icon--person { width: calc(36 * var(--u)); height: calc(37 * var(--u)); }
.mh-brill__label { flex: 1 1 auto; padding: calc(8 * var(--u)) calc(12 * var(--u)) calc(8 * var(--u)) 0; }
.mh-brill__btn--primary .mh-brill__label { margin-left: calc(26 * var(--u)); }
.mh-brill__btn--secondary .mh-brill__label { margin-left: calc(25 * var(--u)); }
.mh-brill__chev { flex: none; display: block; width: calc(11 * var(--u)); height: calc(18 * var(--u)); }

/* ---------- Portrait + wordmark ---------- */
.mh-brill__portrait {
    position: absolute;
    left: calc(946 * var(--u));
    top: calc(70 * var(--u));
    width: calc(348 * var(--u));
    height: calc(348 * var(--u));
    padding: calc(3 * var(--u));
    border-radius: 50%;
    background: conic-gradient(#82091a 0deg, #86091a 40deg, #0b1630 90deg, #82091a 140deg, #6e0408 180deg, #70050a 220deg, #0b1630 270deg, #82091a 320deg, #82091a 360deg);
}
.mh-brill__ring {
    display: block; width: 100%; height: 100%;
    padding: calc(5 * var(--u));
    border-radius: 50%;
    background: #fff;
}
.mh-brill .mh-brill__ring img {
    width: 100%; height: 100%;
    border-radius: 50%;
    object-fit: cover; object-position: top;
    background: #e9edf2;
}

.mh-brill .mh-brill__wm {
    position: absolute;
    left: calc(946 * var(--u));
    top: calc(428 * var(--u));
    width: calc(348 * var(--u));
    margin: 0;
    text-align: center;
    font-family: Lora, Georgia, serif;
    font-weight: 700;
    color: var(--b-navy);
}
.mh-brill__wm1 {
    display: block;
    font-size: calc(46 * var(--u));
    line-height: calc(50 * var(--u));
    letter-spacing: .012em;
}
.mh-brill__wm2 {
    display: block;
    margin-top: calc(-4 * var(--u));
    font-size: calc(37 * var(--u));
    line-height: calc(44 * var(--u));
}
.mh-brill__wm-script {
    display: inline-block;
    min-width: 2.8em;
    text-align: left;
    position: relative; top: calc(4 * var(--u));
    font-family: Ephesis, cursive;
    font-weight: 400;
    font-size: calc(45 * var(--u));
    color: var(--b-maroon);
    -webkit-text-stroke: calc(.7 * var(--u)) var(--b-maroon);
}

/* =====================================================================
   Tablet + phone (< 1200px): stacked, centred, portrait on top
   ===================================================================== */
@media (max-width: 1199.98px) {
    .mh-brill .mh-brill__bg { object-position: 75% center; }
    .mh-brill__hero::after {
        content: ""; position: absolute; inset: 0; z-index: 1;
        background: rgba(255, 255, 255, .82);
    }
    .mh-brill__wave { height: 120px; }

    .mh-brill__inner {
        --u: 1px;
        height: auto;
        display: flex; flex-direction: column; align-items: center;
        padding: 40px 32px 140px;
        text-align: center;
    }
    .mh-brill__text { position: static; width: 100%; max-width: 640px; }

    .mh-brill__portrait {
        position: static; order: -1;
        width: 240px; height: 240px;
        padding: 3px; margin-bottom: 28px;
    }
    .mh-brill__ring { padding: 4px; }
    .mh-brill .mh-brill__wm { display: none; }

    .mh-brill .mh-brill__welcome { padding-left: 0; font-size: 40px; line-height: 48px; }
    .mh-brill__l1 { margin: 10px 0 0; font-size: 72px; line-height: 72px; }
    .mh-brill__l2 { font-size: 70px; line-height: 72px; height: auto; white-space: normal; }
    .mh-brill__script { font-size: 94px; top: 3px; -webkit-text-stroke-width: 1.1px; min-width: 0; margin-right: .08em; }

    .mh-brill__rule { width: 360px; max-width: 100%; height: 4px; margin: 32px auto 0; }
    .mh-brill .mh-brill__intro { max-width: none; margin-top: 20px; font-size: 22px; line-height: 30px; }

    .mh-brill__btns { justify-content: center; gap: 16px; margin-top: 28px; }
    .mh-brill .mh-brill__btn { min-height: 60px; border-radius: 8px; font-size: 18px; text-align: left; }
    .mh-brill .mh-brill__btn--primary,
    .mh-brill .mh-brill__btn--secondary { min-width: 0; padding: 0 22px 0 20px; }
    .mh-brill__icon--book { width: 30px; height: 26px; }
    .mh-brill__icon--person { width: 26px; height: 27px; }
    .mh-brill__btn--primary .mh-brill__label,
    .mh-brill__btn--secondary .mh-brill__label { margin-left: 14px; padding: 8px 12px 8px 0; }
    .mh-brill__chev { width: 9px; height: 15px; }
}

@media (max-width: 767.98px) {
    .mh-brill__wave { height: 90px; }
    .mh-brill__inner { padding: 32px 16px 108px; }
    .mh-brill__portrait { width: 180px; height: 180px; margin-bottom: 22px; }

    .mh-brill .mh-brill__welcome { font-size: 30px; line-height: 36px; }
    .mh-brill__title { --t: min(72px, calc((100vw - 32px) / 7.1)); }
    .mh-brill__l1 { margin-top: 6px; font-size: var(--t); line-height: 1; }
    .mh-brill__l2 { font-size: calc(var(--t) * .97); line-height: 1.03; }
    .mh-brill__script { font-size: calc(var(--t) * 1.31); top: 2px; -webkit-text-stroke-width: .8px; }

    .mh-brill__rule { width: 240px; margin-top: 24px; }
    .mh-brill .mh-brill__intro { margin-top: 16px; font-size: 18px; line-height: 26px; }

    .mh-brill__btns { flex-wrap: nowrap; gap: 10px; margin-top: 24px; }
    .mh-brill .mh-brill__btn { flex: 1 1 0; min-width: 0; min-height: 56px; font-size: 15px; line-height: 1.2; }
    .mh-brill .mh-brill__btn--primary,
    .mh-brill .mh-brill__btn--secondary { padding: 0 10px 0 12px; }
    .mh-brill__icon--book,
    .mh-brill__icon--person { width: 22px; height: 22px; }
    .mh-brill__btn--primary .mh-brill__label,
    .mh-brill__btn--secondary .mh-brill__label { margin-left: 10px; padding: 6px 0; overflow-wrap: anywhere; }
    .mh-brill__chev { display: none; }
}

@media (max-width: 360px) {
    .mh-brill__btns { flex-direction: column; }
    .mh-brill .mh-brill__btn { flex: none; width: 100%; padding: 0 16px; }
    .mh-brill__btn--primary .mh-brill__label,
    .mh-brill__btn--secondary .mh-brill__label { padding-right: 10px; }
    .mh-brill__chev { display: block; }
}

@media (prefers-reduced-motion: reduce) {
    .mh-brill .mh-brill__btn { transition: none; }
}
