/*
 * iD3EA mobile mode v2
 * The original desktop export remains untouched above 900px. On smaller
 * screens, mobile-mode.js creates a semantic, touch-friendly experience from
 * the page's existing content, imagery, links, and navigation.
 */

:root {
  --mm-ink: #17253a;
  --mm-navy: #07162f;
  --mm-navy-soft: #112847;
  --mm-brown: #322a27;
  --mm-gold: #d8b45d;
  --mm-gold-light: #f4df9d;
  --mm-cream: #f5f1e8;
  --mm-paper: #fffdf8;
  --mm-muted: #657184;
  --mm-line: rgba(20, 37, 58, 0.12);
  --mm-shadow-sm: 0 10px 30px rgba(7, 22, 47, 0.08);
  --mm-shadow-lg: 0 24px 70px rgba(7, 22, 47, 0.17);
  --mm-header-height: 66px;
  --mm-radius: 24px;
}

.mm-shell {
  display: none;
}

@media (max-width: 900px) {
  html.mm-ready {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--mm-header-height) + 18px);
  }

  html.mm-ready,
  html.mm-ready body {
    min-width: 0 !important;
    width: 100% !important;
    margin: 0 !important;
    overflow-x: hidden !important;
    background: var(--mm-cream) !important;
    color: var(--mm-ink) !important;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }

  html.mm-ready body.mm-nav-open {
    overflow: hidden !important;
    touch-action: none;
  }

  html.mm-ready #xr_xrii {
    display: none !important;
  }

  html.mm-ready .mm-shell {
    display: block;
    min-height: 100dvh;
    position: relative;
    isolation: isolate;
    font-family: "Open Sans", Inter, ui-sans-serif, system-ui, -apple-system,
      BlinkMacSystemFont, "Segoe UI", sans-serif;
  }

  .mm-shell,
  .mm-shell *,
  .mm-shell *::before,
  .mm-shell *::after {
    box-sizing: border-box;
  }

  .mm-shell a {
    text-decoration: none;
  }

  .mm-skip-link {
    position: fixed;
    z-index: 1100;
    left: 16px;
    top: calc(10px + env(safe-area-inset-top, 0px));
    transform: translateY(-180%);
    padding: 11px 15px;
    border-radius: 12px;
    background: var(--mm-paper);
    color: var(--mm-navy);
    font-size: 14px;
    font-weight: 800;
    box-shadow: var(--mm-shadow-lg);
    transition: transform 160ms ease;
  }

  .mm-skip-link:focus {
    transform: translateY(0);
  }

  .mm-header {
    position: fixed;
    z-index: 1000;
    inset: 0 0 auto;
    min-height: calc(var(--mm-header-height) + env(safe-area-inset-top, 0px));
    padding: env(safe-area-inset-top, 0px) 14px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(7, 22, 47, 0.9);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 10px 34px rgba(3, 12, 27, 0.2);
    -webkit-backdrop-filter: blur(18px) saturate(1.12);
    backdrop-filter: blur(18px) saturate(1.12);
  }

  .mm-brand {
    min-height: 54px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #fff;
  }

  .mm-brand-tree {
    width: 34px;
    height: 42px;
    object-fit: contain;
  }

  .mm-brand-wordmark {
    width: 88px;
    height: auto;
    object-fit: contain;
  }

  .mm-menu-button {
    min-width: 88px;
    height: 46px;
    padding: 0 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 11px;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.09);
    color: #fff;
    font: inherit;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  .mm-menu-label {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.01em;
  }

  .mm-menu-icon,
  .mm-menu-icon::before,
  .mm-menu-icon::after {
    width: 20px;
    height: 2px;
    display: block;
    border-radius: 999px;
    background: currentColor;
    transition: transform 180ms ease, opacity 180ms ease;
  }

  .mm-menu-icon {
    position: relative;
    flex: 0 0 auto;
  }

  .mm-menu-icon::before,
  .mm-menu-icon::after {
    content: "";
    position: absolute;
    left: 0;
  }

  .mm-menu-icon::before {
    top: -6px;
  }

  .mm-menu-icon::after {
    top: 6px;
  }

  .mm-menu-button[aria-expanded="true"] .mm-menu-icon {
    background: transparent;
  }

  .mm-menu-button[aria-expanded="true"] .mm-menu-icon::before {
    transform: translateY(6px) rotate(45deg);
  }

  .mm-menu-button[aria-expanded="true"] .mm-menu-icon::after {
    transform: translateY(-6px) rotate(-45deg);
  }

  .mm-nav-backdrop {
    position: fixed;
    z-index: 998;
    inset: calc(var(--mm-header-height) + env(safe-area-inset-top, 0px)) 0 0;
    border: 0;
    padding: 0;
    background: rgba(3, 12, 27, 0.7);
    opacity: 0;
    visibility: hidden;
    transition: opacity 200ms ease, visibility 200ms ease;
  }

  .mm-nav {
    position: fixed;
    z-index: 999;
    top: calc(var(--mm-header-height) + env(safe-area-inset-top, 0px));
    right: 0;
    bottom: 0;
    width: min(94vw, 420px);
    padding: 19px 18px calc(30px + env(safe-area-inset-bottom, 0px));
    overflow-y: auto;
    overscroll-behavior: contain;
    background:
      radial-gradient(circle at 100% 0, rgba(216, 180, 93, 0.13), transparent 32%),
      var(--mm-paper);
    border-radius: 28px 0 0;
    box-shadow: -28px 0 70px rgba(3, 12, 27, 0.32);
    transform: translateX(105%);
    visibility: hidden;
    transition: transform 220ms ease, visibility 220ms ease;
  }

  body.mm-nav-open .mm-nav {
    transform: translateX(0);
    visibility: visible;
  }

  body.mm-nav-open .mm-nav-backdrop {
    opacity: 1;
    visibility: visible;
  }

  .mm-nav-intro {
    margin: 1px 0 16px;
    padding: 3px 3px 17px;
    border-bottom: 1px solid var(--mm-line);
  }

  .mm-nav-kicker {
    margin: 0;
    color: var(--mm-navy);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 26px;
    font-weight: 600;
    letter-spacing: -0.025em;
  }

  .mm-nav-current {
    margin: 6px 0 0;
    color: var(--mm-muted);
    font-size: 12px;
    line-height: 1.45;
  }

  .mm-nav-current strong {
    color: var(--mm-navy);
    font-weight: 800;
  }

  .mm-nav-home,
  .mm-nav-contact {
    min-height: 50px;
    padding: 12px 15px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 800;
  }

  .mm-nav-home {
    margin-bottom: 10px;
    background: linear-gradient(135deg, var(--mm-navy), var(--mm-navy-soft));
    color: #fff;
    box-shadow: 0 10px 22px rgba(7, 22, 47, 0.14);
  }

  .mm-nav-home::after,
  .mm-nav-contact::after {
    content: "→";
    font-size: 18px;
  }

  .mm-nav-group {
    border-bottom: 1px solid var(--mm-line);
  }

  .mm-nav-group--current {
    margin-inline: -7px;
    padding-inline: 7px;
    background: rgba(216, 180, 93, 0.07);
    border-radius: 14px;
  }

  .mm-nav-group summary {
    min-height: 54px;
    padding: 14px 4px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    list-style: none;
    color: var(--mm-navy);
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  .mm-nav-group summary::-webkit-details-marker {
    display: none;
  }

  .mm-nav-group summary::after {
    content: "+";
    width: 28px;
    height: 28px;
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    border-radius: 9px;
    background: rgba(216, 180, 93, 0.14);
    color: #a47c23;
    font-size: 20px;
    font-weight: 400;
    line-height: 1;
  }

  .mm-nav-group[open] summary::after {
    content: "−";
  }

  .mm-nav-links {
    margin: -2px 0 14px;
    padding: 0 0 0 7px;
    display: grid;
    gap: 3px;
    list-style: none;
  }

  .mm-nav-links a {
    min-height: 46px;
    padding: 10px 12px;
    display: flex;
    align-items: center;
    border-radius: 11px;
    color: #46566b;
    font-size: 14px;
    line-height: 1.4;
  }

  .mm-nav-links a[aria-current="page"] {
    background: rgba(216, 180, 93, 0.18);
    color: var(--mm-navy);
    font-weight: 800;
  }

  .mm-nav-contact {
    margin-top: 18px;
    border: 1px solid var(--mm-gold);
    background: rgba(216, 180, 93, 0.08);
    color: var(--mm-navy);
  }

  .mm-hero {
    min-height: clamp(460px, 70svh, 610px);
    padding:
      calc(110px + env(safe-area-inset-top, 0px))
      21px
      58px;
    position: relative;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    background: var(--mm-navy);
    color: #fff;
  }

  .mm-hero-image {
    position: absolute;
    z-index: -3;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.012);
  }

  .mm-hero::before {
    content: "";
    position: absolute;
    z-index: -2;
    inset: 0;
    background:
      linear-gradient(180deg, rgba(3, 12, 27, 0.12) 10%, rgba(3, 12, 27, 0.32) 46%, rgba(3, 12, 27, 0.94) 100%),
      linear-gradient(90deg, rgba(7, 22, 47, 0.58), transparent 80%);
  }

  .mm-hero::after {
    content: "";
    position: absolute;
    z-index: -1;
    left: 21px;
    bottom: 0;
    width: 82px;
    height: 5px;
    border-radius: 999px 999px 0 0;
    background: var(--mm-gold);
  }

  .mm-hero-content {
    width: min(100%, 670px);
    position: relative;
    z-index: 1;
  }

  .mm-eyebrow {
    width: fit-content;
    margin: 0 0 13px;
    padding: 8px 11px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    background: rgba(7, 22, 47, 0.38);
    color: var(--mm-gold-light);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.14em;
    line-height: 1.2;
    text-transform: uppercase;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
  }

  .mm-hero h1 {
    margin: 0;
    max-width: 15ch;
    color: #fff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(35px, 10.5vw, 54px);
    font-weight: 500;
    line-height: 1.02;
    letter-spacing: -0.038em;
    text-wrap: balance;
    text-shadow: 0 3px 20px rgba(3, 12, 27, 0.22);
  }

  .mm-hero-summary {
    margin: 17px 0 0;
    max-width: 52ch;
    color: rgba(255, 255, 255, 0.82);
    font-size: 15px;
    line-height: 1.58;
  }

  .mm-hero-jump {
    width: 44px;
    height: 44px;
    position: absolute;
    right: 18px;
    bottom: 16px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 50%;
    background: rgba(7, 22, 47, 0.48);
    color: #fff;
    font-size: 19px;
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
  }

  .mm-main {
    margin-top: -18px;
    padding: 0 14px 20px;
    position: relative;
    z-index: 2;
  }

  .mm-content-list {
    width: min(100%, 760px);
    margin: 0 auto;
    display: grid;
    gap: 17px;
  }

  .mm-section,
  .mm-figure,
  .mm-media-card,
  .mm-map {
    border: 1px solid rgba(21, 36, 58, 0.09);
    border-radius: var(--mm-radius);
    background: var(--mm-paper);
    box-shadow: var(--mm-shadow-sm);
    overflow: hidden;
  }

  .mm-section {
    padding: 27px 22px;
    position: relative;
  }

  .mm-section--has-heading:not(.mm-section--dark):not(.mm-section--heading):not(.mm-section--stat)::before {
    content: "";
    width: 42px;
    height: 3px;
    position: absolute;
    top: 0;
    left: 22px;
    border-radius: 0 0 999px 999px;
    background: var(--mm-gold);
  }

  .mm-section--dark {
    border-color: rgba(255, 255, 255, 0.08);
    background:
      radial-gradient(circle at 100% 0, rgba(216, 180, 93, 0.2), transparent 38%),
      var(--mm-brown);
    color: #fff;
    box-shadow: 0 16px 38px rgba(50, 42, 39, 0.18);
  }

  .mm-section--heading {
    padding-block: 29px;
    background:
      radial-gradient(circle at 100% 0, rgba(216, 180, 93, 0.16), transparent 42%),
      var(--mm-navy);
    color: #fff;
  }

  .mm-section--stat {
    min-height: 180px;
    padding: 26px 23px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    border-color: rgba(255, 255, 255, 0.08);
    background:
      radial-gradient(circle at 100% 0, rgba(216, 180, 93, 0.24), transparent 44%),
      linear-gradient(145deg, var(--mm-brown), #241f1d);
    color: #fff;
    box-shadow: 0 17px 40px rgba(50, 42, 39, 0.2);
  }

  .mm-section h2,
  .mm-section h3,
  .mm-media-body h2,
  .mm-media-body h3 {
    margin: 0 0 11px;
    color: var(--mm-navy);
    font-family: Georgia, "Times New Roman", serif;
    font-weight: 600;
    line-height: 1.14;
    letter-spacing: -0.027em;
    text-wrap: balance;
  }

  .mm-section h2,
  .mm-media-body h2 {
    font-size: clamp(27px, 7.8vw, 37px);
  }

  .mm-section h3,
  .mm-media-body h3 {
    font-size: 23px;
  }

  .mm-section--dark h2,
  .mm-section--dark h3,
  .mm-section--heading h2,
  .mm-section--heading h3,
  .mm-section--stat h2,
  .mm-section--stat h3,
  .mm-media-card--dark h2,
  .mm-media-card--dark h3 {
    color: #fff;
  }

  .mm-section p,
  .mm-media-body p {
    margin: 0;
    color: #526176;
    font-size: 15.5px;
    line-height: 1.7;
  }

  .mm-section p + p,
  .mm-section h2 + p,
  .mm-section h3 + p,
  .mm-section p + h2,
  .mm-section p + h3,
  .mm-media-body p + p,
  .mm-media-body h2 + p,
  .mm-media-body h3 + p,
  .mm-media-body p + h2,
  .mm-media-body p + h3 {
    margin-top: 13px;
  }

  .mm-section--dark p,
  .mm-section--heading p,
  .mm-section--stat p,
  .mm-media-card--dark p {
    color: rgba(255, 255, 255, 0.78);
  }

  .mm-stat-value {
    margin: 0 0 9px !important;
    color: var(--mm-gold) !important;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(54px, 17vw, 78px) !important;
    font-weight: 600;
    line-height: 0.92 !important;
    letter-spacing: -0.055em;
  }

  .mm-cta,
  .mm-card-link {
    min-height: 48px;
    width: fit-content;
    margin-top: 19px;
    padding: 12px 17px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid var(--mm-gold);
    border-radius: 13px;
    background: var(--mm-gold);
    color: var(--mm-navy) !important;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.2;
    box-shadow: 0 8px 20px rgba(216, 180, 93, 0.2);
  }

  .mm-cta::after,
  .mm-card-link::after {
    content: "→";
    font-size: 17px;
  }

  .mm-figure {
    min-height: 230px;
    margin: 0;
    background: #dce2e8;
  }

  .mm-figure-link,
  .mm-image-link {
    display: block;
  }

  .mm-figure img {
    width: 100%;
    height: clamp(230px, 67vw, 440px);
    display: block;
    object-fit: cover;
    object-position: center;
  }

  .mm-media-card {
    margin: 0;
  }

  .mm-media-visual {
    width: 100%;
    min-height: 220px;
    aspect-ratio: var(--mm-media-ratio, 4 / 3);
    overflow: hidden;
    background:
      linear-gradient(145deg, rgba(216, 180, 93, 0.12), rgba(7, 22, 47, 0.06)),
      #e9e5dc;
  }

  .mm-media-link {
    width: 100%;
    height: 100%;
    display: block;
  }

  .mm-media-visual img {
    width: 100%;
    height: 100%;
    min-height: 220px;
    display: block;
    object-fit: cover;
    object-position: center;
  }

  .mm-media-body {
    padding: 24px 21px 25px;
  }

  .mm-media-card--dark .mm-media-body {
    background:
      radial-gradient(circle at 100% 0, rgba(216, 180, 93, 0.18), transparent 40%),
      var(--mm-brown);
    color: #fff;
  }

  .mm-map {
    min-height: 340px;
  }

  .mm-map iframe {
    width: 100%;
    height: 340px;
    display: block;
    border: 0;
  }

  .mm-back-top {
    width: 48px;
    height: 48px;
    position: fixed;
    z-index: 900;
    right: 15px;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 16px;
    background: rgba(7, 22, 47, 0.92);
    color: #fff;
    font: inherit;
    font-size: 19px;
    box-shadow: 0 12px 28px rgba(3, 12, 27, 0.25);
    opacity: 0;
    visibility: hidden;
    transform: translateY(14px);
    transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
    cursor: pointer;
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
  }

  .mm-back-top--visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .mm-footer {
    margin-top: 30px;
    padding: 40px 22px calc(36px + env(safe-area-inset-bottom, 0px));
    background:
      radial-gradient(circle at 50% 0, rgba(216, 180, 93, 0.12), transparent 32%),
      var(--mm-navy);
    color: #fff;
    text-align: center;
  }

  .mm-footer-brand {
    display: inline-flex;
    align-items: center;
    gap: 8px;
  }

  .mm-footer-brand img:first-child {
    width: 43px;
    height: 50px;
    object-fit: contain;
  }

  .mm-footer-brand img:last-child {
    width: 104px;
    height: auto;
    object-fit: contain;
  }

  .mm-footer-tagline {
    margin: 18px auto 0;
    max-width: 31ch;
    color: rgba(255, 255, 255, 0.66);
    font-size: 14px;
    line-height: 1.58;
  }

  .mm-footer-links {
    margin: 21px auto 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 18px;
  }

  .mm-footer-links a {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    color: rgba(255, 255, 255, 0.82);
    font-size: 13px;
    font-weight: 700;
  }

  .mm-footer-contact {
    min-height: 48px;
    margin: 18px auto 0;
    padding: 12px 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 13px;
    color: #fff;
    font-size: 14px;
    font-weight: 800;
  }

  .mm-footer-copy {
    margin: 28px 0 0;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.13);
    color: rgba(255, 255, 255, 0.5);
    font-size: 12px;
  }

  .mm-shell a,
  .mm-shell button,
  .mm-shell summary {
    -webkit-tap-highlight-color: rgba(216, 180, 93, 0.2);
  }

  .mm-shell a:focus-visible,
  .mm-shell button:focus-visible,
  .mm-shell summary:focus-visible {
    outline: 3px solid var(--mm-gold-light);
    outline-offset: 3px;
  }
}

@media (min-width: 600px) and (max-width: 900px) {
  .mm-header {
    padding-inline: 24px;
  }

  .mm-hero {
    min-height: clamp(490px, 68svh, 640px);
    padding-inline: 42px;
  }

  .mm-hero::after {
    left: 42px;
  }

  .mm-hero-jump {
    right: 30px;
    bottom: 22px;
  }

  .mm-main {
    padding-inline: 28px;
  }

  .mm-section {
    padding: 34px 32px;
  }

  .mm-section--has-heading:not(.mm-section--dark):not(.mm-section--heading):not(.mm-section--stat)::before {
    left: 32px;
  }

  .mm-media-card {
    display: grid;
    grid-template-columns: minmax(235px, 0.9fr) minmax(0, 1.1fr);
    align-items: stretch;
  }

  .mm-media-visual {
    min-height: 300px;
    aspect-ratio: auto;
  }

  .mm-media-visual img {
    min-height: 300px;
  }

  .mm-media-body {
    padding: 30px 28px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .mm-footer {
    padding-inline: 42px;
  }
}

@media (max-width: 390px) {
  :root {
    --mm-radius: 21px;
  }

  .mm-brand-wordmark {
    width: 82px;
  }

  .mm-menu-button {
    min-width: 48px;
    width: 48px;
    padding: 0;
  }

  .mm-menu-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .mm-hero {
    padding-inline: 18px;
  }

  .mm-hero::after {
    left: 18px;
  }

  .mm-main {
    padding-inline: 11px;
  }

  .mm-section {
    padding-inline: 19px;
  }

  .mm-section--has-heading:not(.mm-section--dark):not(.mm-section--heading):not(.mm-section--stat)::before {
    left: 19px;
  }

  .mm-media-body {
    padding-inline: 19px;
  }
}

@media (max-width: 900px) and (max-height: 560px) and (orientation: landscape) {
  .mm-hero {
    min-height: 100svh;
    padding-top: calc(94px + env(safe-area-inset-top, 0px));
    padding-bottom: 38px;
  }

  .mm-hero h1 {
    font-size: clamp(33px, 7vw, 48px);
  }

  .mm-hero-summary {
    max-width: 68ch;
    font-size: 14px;
  }
}

@media (hover: hover) and (pointer: fine) and (max-width: 900px) {
  .mm-menu-button:hover,
  .mm-hero-jump:hover,
  .mm-back-top:hover {
    background: rgba(216, 180, 93, 0.2);
  }

  .mm-nav-links a:hover {
    background: rgba(216, 180, 93, 0.1);
    color: var(--mm-navy);
  }

  .mm-media-link img,
  .mm-figure-link img {
    transition: transform 260ms ease;
  }

  .mm-media-link:hover img,
  .mm-figure-link:hover img {
    transform: scale(1.025);
  }
}

@media (prefers-reduced-motion: reduce) {
  html.mm-ready {
    scroll-behavior: auto;
  }

  .mm-menu-icon,
  .mm-menu-icon::before,
  .mm-menu-icon::after,
  .mm-nav,
  .mm-nav-backdrop,
  .mm-skip-link,
  .mm-back-top,
  .mm-media-link img,
  .mm-figure-link img {
    transition: none !important;
  }
}
