/*
  MODEL [X] CONTAINER SYSTEM
  Structural CSS for the Model [X] starter site.
  Edit the variables below to change colors, spacing, and image placeholders.
*/

:root {
  --page-bg: #efe8de;
  --panel-bg: #f8f4ee;
  --panel-bg-2: #e8ded2;
  --ink: #27211d;
  --muted: #756b63;
  --line: rgba(39, 33, 29, 0.16);
  --accent: #b59476;
  --accent-dark: #6f5845;
  --shadow: 0 24px 70px rgba(55, 43, 33, 0.12);
  --radius-lg: 34px;
  --radius-md: 22px;
  --radius-sm: 14px;
  --max: 1160px;
  --serif: Georgia, 'Times New Roman', serif;
  --sans: Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: radial-gradient(circle at top left, #fbf7f0 0, var(--page-bg) 34%, #ded2c4 100%);
  color: var(--ink);
  font-family: var(--sans);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }

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

.mx-topbar {
  width: min(var(--max), calc(100% - 40px));
  margin: 24px auto 0;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(248, 244, 238, 0.78);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  position: sticky;
  top: 16px;
  z-index: 20;
  box-shadow: 0 12px 28px rgba(55, 43, 33, 0.08);
}

.mx-brand {
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.9rem;
}

.mx-brand span { color: var(--accent-dark); }

.mx-nav-links {
  display: flex;
  gap: 20px;
  color: var(--muted);
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.mx-nav-links a:hover { color: var(--ink); }

/* Top navigation dropdown for model pages */
.mx-nav-dropdown {
  position: relative;
}

.mx-nav-trigger {
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-transform: inherit;
  letter-spacing: inherit;
  cursor: pointer;
  padding: 0;
}

.mx-nav-trigger:hover,
.mx-nav-dropdown:hover .mx-nav-trigger,
.mx-nav-dropdown:focus-within .mx-nav-trigger {
  color: var(--ink);
}

.mx-dropdown-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 190px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(248, 244, 238, 0.96);
  backdrop-filter: blur(12px);
  box-shadow: 0 22px 48px rgba(55, 43, 33, 0.14);
  display: grid;
  gap: 4px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease, visibility .18s ease;
  z-index: 30;
}

.mx-dropdown-menu a {
  display: block;
  padding: 10px 12px;
  border-radius: 12px;
  color: var(--muted);
  text-transform: none;
  letter-spacing: 0.02em;
}

.mx-dropdown-menu a:hover {
  background: rgba(255, 255, 255, 0.58);
  color: var(--ink);
}

.mx-nav-dropdown:hover .mx-dropdown-menu,
.mx-nav-dropdown:focus-within .mx-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}


.mx-page-shell {
  width: min(var(--max), calc(100% - 40px));
  margin: 30px auto 70px;
}

.mx-hero,
.mx-section,
.mx-footer-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(248, 244, 238, 0.84); 
  box-shadow: var(--shadow);
  overflow: hidden;
}

.mx-hero {
  min-height: 620px;
  padding: clamp(38px, 7vw, 86px);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  gap: clamp(28px, 5vw, 70px);
  position: relative;
}

.mx-watermark-x::before {
  content: '[X]';
  position: absolute;
  right: 2%;
  top: 1%;
  font-family: var(--serif);
  font-size: clamp(7rem, 20vw, 18rem);
  color: rgba(111, 88, 69, 0.06);
  line-height: 1;
  pointer-events: none;
}

.mx-eyebrow {
  margin: 0 0 16px;
  color: var(--accent-dark);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.mx-hero-title,
.mx-page-title,
.mx-model-name,
.mx-section-title {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 0.96;
  letter-spacing: -0.04em;
  margin: 0;
}

.mx-hero-title { font-size: clamp(4rem, 12vw, 10rem); }
.mx-page-title { font-size: clamp(3.5rem, 10vw, 8rem); }
.mx-model-name { font-size: clamp(4rem, 13vw, 11rem); }
.mx-section-title { font-size: clamp(2.2rem, 5vw, 4.8rem); }

.mx-hero-subtitle,
.mx-lede {
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  max-width: 680px;
}

.mx-hero-card,
.mx-soft-card,
.mx-faq-item,
.mx-stat-card,
.mx-gallery-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 252, 247, 0.56);
  padding: 24px;
}

.mx-chip-row { display: flex; flex-wrap: wrap; gap: 10px; }
.mx-chip {
  display: inline-flex;
  padding: 9px 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
  color: var(--muted);
  font-size: 0.8rem;
}

.mx-hero-media,
.mx-profile-media,
.mx-gallery-image,
.mx-founder-image {
  min-height: 440px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(255,255,255,.36), rgba(39,33,29,.08)),
    var(--image, linear-gradient(135deg, #d8c8b8, #f8f4ee));
  background-size: cover;
  background-position: center;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.24);
  position: relative;
  overflow: hidden;
}

.mx-name-stamp {
  position: absolute;
  left: 26px;
  bottom: 22px;
  font-family: var(--serif);
  font-size: clamp(2rem, 5vw, 4.2rem);
  color: rgba(255,255,255,0.86);
  text-shadow: 0 8px 24px rgba(0,0,0,0.16);
  letter-spacing: -0.04em;
}

.mx-section { margin-top: 26px; padding: clamp(34px, 6vw, 72px); }
.mx-section--wash { background: rgba(232, 222, 210, 0.72); }

.mx-two-col {
  display: grid;
  grid-template-columns: 0.88fr 1.12fr;
  gap: clamp(28px, 5vw, 68px);
  align-items: start;
}

.mx-three-grid,
.mx-card-grid,
.mx-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.mx-card-grid { margin-top: 28px; }
.mx-gallery-grid { margin-top: 30px; }

.mx-model-card {
  min-height: 330px;
  border-radius: var(--radius-md);
  padding: 22px;
  border: 1px solid var(--line);
  background:
    linear-gradient(180deg, rgba(255,255,255,.08), rgba(0,0,0,.18)),
    var(--image, linear-gradient(135deg, #c9b8a8, #eee5da));
  background-size: cover;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  color: white;
  overflow: hidden;
}

.mx-model-card h3 { font-family: var(--serif); font-size: 2.3rem; margin: 0; }
.mx-model-card p { margin: 6px 0 0; opacity: .86; }

.mx-stat-card strong {
  display: block;
  font-family: var(--serif);
  font-size: 2.4rem;
  line-height: 1;
}

.mx-profile-block {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
}

.mx-profile-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 28px;
}

.mx-meta-box {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.mx-meta-box span {
  display: block;
  color: var(--muted);
  font-size: .74rem;
  text-transform: uppercase;
  letter-spacing: .12em;
}

.mx-meta-box strong { font-weight: 600; }

.mx-faq-list { display: grid; gap: 12px; margin-top: 28px; }
.mx-faq-item summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--ink);
}
.mx-faq-item p { color: var(--muted); margin-bottom: 0; }

.mx-button-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.mx-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--ink);
  color: #fff;
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.mx-button--light { background: transparent; color: var(--ink); }

.mx-footer-panel { margin-top: 26px; padding: 34px; }
.mx-footer-row { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.mx-small { color: var(--muted); font-size: .9rem; }

/* Per-page soft identities */
.theme-evangelina {
  --page-bg: #efe6dd;
  --panel-bg: #fbf5ef;
  --panel-bg-2: #e8d6ce;
  --accent: #bd8c80;
  --accent-dark: #805d55;
}

.theme-home {
  --page-bg: #ede6dc;
  --accent: #b59476;
  --accent-dark: #6f5845;
}

.theme-about {
  --page-bg: #e9e2d8;
  --accent: #9d8d78;
  --accent-dark: #63584c;
}

@media (max-width: 880px) {
  .mx-topbar { border-radius: 26px; align-items: flex-start; flex-direction: column; }
  .mx-nav-links { flex-wrap: wrap; gap: 12px; }

  .mx-nav-dropdown { width: auto; }
  .mx-dropdown-menu {
    left: 0;
    transform: translateY(8px);
  }
  .mx-nav-dropdown:hover .mx-dropdown-menu,
  .mx-nav-dropdown:focus-within .mx-dropdown-menu {
    transform: translateY(0);
  }

  .mx-hero, .mx-two-col, .mx-profile-block { grid-template-columns: 1fr; }
  .mx-three-grid, .mx-card-grid, .mx-gallery-grid { grid-template-columns: 1fr; }
  .mx-profile-meta { grid-template-columns: 1fr; }
  .mx-hero-media, .mx-profile-media { min-height: 340px; }
}

/* Founder feature panel
   Large, full-color Amanda & Jess founder feature.
   This section is designed to keep the existing soft Model [X] layout,
   while giving the founder image more vertical presence.
*/
.mx-founders-section {
  margin-top: 26px;
}

.mx-founders-shell {
  position: relative;
  min-height: 760px;
  padding: clamp(3.4rem, 7vw, 8rem) clamp(2rem, 6vw, 6rem);
  border: 1px solid var(--line);
  border-radius: clamp(30px, 4vw, 46px);
  background: rgba(248, 244, 238, 0.84);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.mx-founders-head {
  margin-bottom: clamp(2rem, 3.5vw, 3.25rem);
}

.mx-section-label {
  margin: 0 0 16px;
  color: var(--accent-dark);
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.mx-founders-layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 520px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(1.75rem, 4vw, 4.25rem);
}

.mx-founder-copy {
  position: relative;
  z-index: 2;
}

.mx-founder-copy h3 {
  margin: 0 0 1.35rem;
  color: var(--muted);
  font-size: clamp(1.55rem, 2.35vw, 2.3rem);
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.mx-founder-copy p {
  margin: 0;
  max-width: 560px;
  color: var(--muted);
  font-size: clamp(1.2rem, 1.85vw, 1.95rem);
  line-height: 1.45;
  font-weight: 500;
}

.mx-founder-copy--right {
  padding-left: 0.6rem;
}

.mx-founders-images {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
}

.mx-founders-images .mx-founder-img,
.mx-founder-img--amanda-jess,
.mx-founder-img--amanda {
  display: block;
  width: 100%;
  max-width: 520px;
  height: 610px;
  object-fit: cover;
  object-position: center top;
  border-radius: 0;
  opacity: 1;
  filter: none;
  box-shadow: none;
}

@media (max-width: 1100px) {
  .mx-founders-shell {
    min-height: auto;
  }

  .mx-founders-layout {
    grid-template-columns: 1fr;
  }

  .mx-founders-images {
    order: -1;
    width: min(100%, 560px);
    margin: 0 auto 1.75rem;
  }

  .mx-founders-images .mx-founder-img,
  .mx-founder-img--amanda-jess,
  .mx-founder-img--amanda {
    max-width: 100%;
    height: auto;
  }

  .mx-founder-copy--right {
    padding-left: 0;
  }

  .mx-founder-copy p {
    max-width: none;
  }
}

@media (max-width: 620px) {
  .mx-founders-shell {
    padding: 3rem 1.35rem;
  }

  .mx-founders-images {
    width: 100%;
  }

  .mx-founders-images .mx-founder-img,
  .mx-founder-img--amanda-jess,
  .mx-founder-img--amanda {
    width: 100%;
    min-width: 0;
    height: auto;
  }
}



/* Single image feature container */
.mx-feature-model-section {
  padding-bottom: clamp(34px, 6vw, 72px);
}

.mx-feature-model-card {
  margin-top: 28px;
}

.mx-feature-model-image {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: clamp(420px, 56vw, 680px);
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background-size: cover;
  background-position: center;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.22);
}

.mx-feature-model-image::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(0,0,0,0.02) 0%, rgba(0,0,0,0.12) 46%, rgba(0,0,0,0.58) 100%);
  pointer-events: none;
}

.mx-feature-model-copy {
  position: relative;
  z-index: 2;
  padding: clamp(24px, 5vw, 52px);
  color: #fff;
}

.mx-feature-model-copy h3 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(3rem, 8vw, 7rem);
  line-height: 0.9;
  letter-spacing: -0.06em;
  text-shadow: 0 10px 28px rgba(0,0,0,0.24);
}

.mx-feature-model-copy p {
  margin: 14px 0 0;
  max-width: 520px;
  font-size: clamp(1.05rem, 2vw, 1.5rem);
  font-weight: 700;
  color: rgba(255,255,255,0.88);
  text-shadow: 0 8px 24px rgba(0,0,0,0.24);
}

@media (max-width: 880px) {
  .mx-feature-model-image {
    min-height: 420px;
  }
}






/* ─────────────────────────────────────────────
   ANIMATED STARFIELD BACKGROUND
   Lightweight CSS-only fading stars.
   Use inside .mx-hero, .mx-section, or .mx-image-panel.
   ───────────────────────────────────────────── */

.mx-hero,
.mx-section,
.mx-image-panel {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.mx-starfield {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.mx-star {
  position: absolute;
  display: block;
  width: var(--star-size, 4px);
  height: var(--star-size, 4px);
  left: var(--star-left);
  top: var(--star-top);
  border-radius: 999px;
  background: rgba(215, 238, 255, 0.95);
  box-shadow:
    0 0 8px rgba(169, 219, 255, 0.65),
    0 0 18px rgba(91, 171, 238, 0.35);
  opacity: 0;
  animation: mx-star-fade var(--star-speed, 4s) ease-in-out infinite;
  animation-delay: var(--star-delay, 0s);
}

@keyframes mx-star-fade {
  0%, 100% {
    opacity: 0;
    transform: scale(0.6);
  }

  45%, 60% {
    opacity: var(--star-opacity, 0.85);
    transform: scale(1);
  }
}

/* Individual star placement, size, and timing */
.mx-star--1 {
  --star-left: 8%;
  --star-top: 18%;
  --star-size: 3px;
  --star-speed: 4.8s;
  --star-delay: 0s;
}

.mx-star--2 {
  --star-left: 18%;
  --star-top: 62%;
  --star-size: 5px;
  --star-speed: 6.2s;
  --star-delay: 1.1s;
}

.mx-star--3 {
  --star-left: 31%;
  --star-top: 28%;
  --star-size: 2px;
  --star-speed: 5.4s;
  --star-delay: 2.2s;
}

.mx-star--4 {
  --star-left: 43%;
  --star-top: 76%;
  --star-size: 4px;
  --star-speed: 7s;
  --star-delay: 0.7s;
}

.mx-star--5 {
  --star-left: 56%;
  --star-top: 19%;
  --star-size: 6px;
  --star-speed: 6.8s;
  --star-delay: 3s;
}

.mx-star--6 {
  --star-left: 68%;
  --star-top: 48%;
  --star-size: 3px;
  --star-speed: 4.5s;
  --star-delay: 1.8s;
}

.mx-star--7 {
  --star-left: 79%;
  --star-top: 24%;
  --star-size: 4px;
  --star-speed: 5.9s;
  --star-delay: 2.8s;
}

.mx-star--8 {
  --star-left: 87%;
  --star-top: 69%;
  --star-size: 2px;
  --star-speed: 7.4s;
  --star-delay: 0.4s;
}

.mx-star--9 {
  --star-left: 14%;
  --star-top: 84%;
  --star-size: 3px;
  --star-speed: 6.5s;
  --star-delay: 3.6s;
}

.mx-star--10 {
  --star-left: 36%;
  --star-top: 11%;
  --star-size: 5px;
  --star-speed: 5.2s;
  --star-delay: 1.4s;
}

.mx-star--11 {
  --star-left: 72%;
  --star-top: 82%;
  --star-size: 4px;
  --star-speed: 8s;
  --star-delay: 2s;
}

.mx-star--12 {
  --star-left: 94%;
  --star-top: 38%;
  --star-size: 3px;
  --star-speed: 5.7s;
  --star-delay: 3.2s;
}

/* Keep real content above the animated layer */
.mx-hero > *:not(.mx-starfield),
.mx-section > *:not(.mx-starfield),
.mx-image-panel > *:not(.mx-starfield) {
  position: relative;
  z-index: 1;
}

/* Accessibility: respects users who disable motion */
@media (prefers-reduced-motion: reduce) {
  .mx-star {
    animation: none;
    opacity: 0.35;
  }
}