/* ============================================================
   Markets & Management — six-word slider landing page
   Tokens & styles ported from the design handoff (README is source of truth)
   ============================================================ */

:root {
  --orange: #BE5A2C;   /* brand / page background, matches floor */
  --cream:  #FDFBF8;   /* primary foreground */
  --deep:   #A8431F;   /* menu / search / drawer panels */
  --brown:  #2B1408;   /* scrims & shadows */

  --cream-90: rgba(253,251,248,0.90);
  --cream-88: rgba(253,251,248,0.88);
  --cream-82: rgba(253,251,248,0.82);
  --cream-80: rgba(253,251,248,0.80);
  --cream-78: rgba(253,251,248,0.78);
  --cream-70: rgba(253,251,248,0.70);
  --cream-60: rgba(253,251,248,0.60);
  --cream-55: rgba(253,251,248,0.55);
  --cream-50: rgba(253,251,248,0.50);
  --cream-45: rgba(253,251,248,0.45);
  --cream-40: rgba(253,251,248,0.40);
  --cream-22: rgba(253,251,248,0.22);

  --sans: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --mono: 'Space Mono', monospace;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  background: var(--orange);
  overflow: hidden;
  font-family: var(--sans);
  color: var(--cream);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button { font-family: inherit; }

a { color: inherit; }

/* hide scrollbar on the snap container */
.mm-scroll { scrollbar-width: none; -ms-overflow-style: none; }
.mm-scroll::-webkit-scrollbar { display: none; }

/* ---------- keyframes ---------- */
@keyframes mm-drawer-in { from { transform: translateX(100%); } to { transform: translateX(0); } }
@keyframes mm-fade-in   { from { opacity: 0; } to { opacity: 1; } }
@keyframes mm-menu-in   { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }

/* ============================================================
   Background
   ============================================================ */
.mm-stage { position: fixed; inset: 0; overflow: hidden; }

.mm-hero {
  position: fixed; inset: 0; z-index: 0;
  background: var(--orange) url('assets/hero.jpg') center center / cover no-repeat;
}

/* three stacked gradients in one layer: floor-melt, nav-scrim, vignette */
.mm-scrim {
  position: fixed; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(to bottom, transparent 0%, transparent 52%, rgba(190,90,44,0.42) 73%, rgba(190,90,44,0.93) 90%, var(--orange) 100%),
    linear-gradient(to bottom, rgba(43,20,8,0.40) 0%, rgba(43,20,8,0.06) 19%, transparent 33%),
    radial-gradient(132% 92% at 50% 28%, transparent 38%, rgba(43,20,8,0.24) 100%);
}

/* ============================================================
   Scroll-snap sections
   ============================================================ */
.mm-scroll {
  position: fixed; inset: 0; z-index: 2;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  -webkit-overflow-scrolling: touch;
}

.mm-section {
  height: 100vh; width: 100%;
  position: relative;
  scroll-snap-align: start;
}

.mm-word-wrap {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
}

.mm-word {
  font-family: var(--sans);
  font-weight: 700;
  font-size: clamp(86px, 18.6vw, 300px);
  letter-spacing: -0.058em;
  line-height: 0.8;
  color: var(--cream);
  /* float the baseline just above the toe caps of the photo */
  transform: translateY(calc(-19vh - 50px));
  text-shadow: 0 8px 64px rgba(43,20,8,0.34);
  user-select: none;
}

/* right text rail */
.mm-rail {
  position: absolute;
  right: 6vw; top: 60%;
  width: min(28vw, 322px);
  display: flex; flex-direction: column;
  align-items: flex-end;
  gap: 15px;
  text-align: right;
}
.mm-rail__counter {
  font-family: var(--mono);
  font-size: 12px; letter-spacing: 0.22em;
  color: var(--cream-82);
}
.mm-rail__headline {
  font-weight: 600;
  font-size: clamp(18px, 1.55vw, 23px);
  line-height: 1.2; letter-spacing: -0.012em;
  margin: 0;
}
.mm-rail__subhead {
  font-size: 13.5px; line-height: 1.62;
  color: var(--cream-78);
  max-width: 30ch;
}

/* pill "read more" button */
.mm-pill {
  font-family: var(--mono);
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.08em;
  color: var(--cream);
  background: transparent;
  border: 1.5px solid var(--cream);
  border-radius: 30px;
  padding: 9px 18px;
  cursor: pointer;
  transition: all .25s;
}
.mm-pill:hover { background: var(--cream); color: var(--orange); }

/* ============================================================
   Top nav
   ============================================================ */
.mm-nav {
  position: fixed; top: 0; left: 0; right: 0; height: 66px;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 clamp(20px, 4vw, 46px);
  z-index: 8;
}
.mm-nav__left { display: flex; align-items: center; gap: 18px; }

.mm-hamburger {
  display: flex; flex-direction: column; gap: 4px;
  background: transparent; border: none; cursor: pointer; padding: 6px;
}
.mm-hamburger span { width: 22px; height: 2px; background: var(--cream); display: block; }

.mm-logo { height: 30px; width: auto; display: block; }

.mm-navwords { display: flex; gap: 22px; align-items: center; }
.mm-navword {
  font-family: var(--mono);
  font-size: 12px; letter-spacing: 0.05em;
  color: var(--cream);
  background: transparent; border: none;
  border-bottom: 2px solid transparent;
  padding: 4px 0; cursor: pointer;
  opacity: 0.7;
  transition: opacity .2s;
}
.mm-navword:hover { opacity: 1; }
.mm-navword.is-active { opacity: 1; border-bottom-color: var(--cream); }

.mm-search-btn {
  width: 34px; height: 34px; border-radius: 50%;
  border: 1.5px solid var(--cream-60);
  background: transparent; color: var(--cream);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
  transition: all .25s;
}
.mm-search-btn:hover { border-color: var(--cream); background: rgba(253,251,248,0.12); }

/* ============================================================
   Left pagination dots
   ============================================================ */
.mm-dots {
  position: fixed; left: clamp(16px, 2.4vw, 30px); top: 50%;
  transform: translateY(-50%);
  display: flex; flex-direction: column; gap: 14px;
  z-index: 8;
}
.mm-dot {
  width: 11px; height: 11px; border-radius: 50%;
  border: 1.5px solid var(--cream-55);
  background: transparent;
  cursor: pointer; padding: 0;
  transition: all .25s;
}
.mm-dot.is-active { background: var(--cream); border-color: var(--cream); }

/* ============================================================
   Bottom-left social
   ============================================================ */
.mm-social {
  position: fixed; left: clamp(16px, 2.4vw, 30px); bottom: 26px;
  display: flex; gap: 16px; align-items: center;
  z-index: 8;
  font-family: var(--mono); font-size: 12px;
}
.mm-social a { color: var(--cream-88); text-decoration: none; transition: color .2s; }
.mm-social a:hover { color: var(--cream); }

/* ============================================================
   Bottom-right next
   ============================================================ */
.mm-next {
  position: fixed; right: clamp(20px, 4vw, 46px); bottom: 24px;
  width: 62px; height: 62px; border-radius: 50%;
  border: 1.5px solid var(--cream);
  background: transparent; color: var(--cream);
  font-size: 23px; cursor: pointer; z-index: 8;
  display: flex; align-items: center; justify-content: center;
  transition: all .25s;
}
.mm-next:hover { background: var(--cream); color: var(--orange); }

/* ============================================================
   Hamburger menu overlay
   ============================================================ */
.mm-menu {
  position: fixed; inset: 0; background: var(--deep); z-index: 15;
  display: flex; flex-direction: column; justify-content: center;
  padding: 0 clamp(28px, 9vw, 140px);
  animation: mm-fade-in .3s ease;
}
.mm-menu__close {
  position: absolute; top: 22px; right: clamp(20px, 4vw, 46px);
  width: 42px; height: 42px; border-radius: 50%;
  border: 1.5px solid var(--cream);
  background: transparent; color: var(--cream);
  font-size: 20px; cursor: pointer;
}
.mm-menu__close:hover { background: var(--cream); color: var(--deep); }
.mm-menu__list { display: flex; flex-direction: column; gap: 6px; }
.mm-menu__item {
  display: flex; align-items: baseline; gap: 20px;
  background: transparent; border: none; cursor: pointer;
  color: var(--cream); text-align: left; padding: 6px 0;
  transition: opacity .2s;
}
.mm-menu__item:hover { opacity: 0.7; }
.mm-menu__idx { font-family: var(--mono); font-size: 14px; opacity: 0.7; }
.mm-menu__word {
  font-family: var(--sans); font-weight: 700;
  font-size: clamp(40px, 7vw, 86px);
  letter-spacing: -0.04em; line-height: 1;
}

/* ============================================================
   Search overlay
   ============================================================ */
.mm-search {
  position: fixed; top: 66px; left: 0; right: 0;
  background: var(--deep); z-index: 14;
  padding: 18px clamp(20px, 4vw, 46px);
  display: flex; gap: 14px; align-items: center;
  animation: mm-menu-in .25s ease;
}
.mm-search__input {
  flex: 1; background: transparent; border: none;
  border-bottom: 1.5px solid var(--cream-50);
  color: var(--cream);
  font-family: var(--sans); font-size: 18px;
  padding: 8px 2px; outline: none;
}
.mm-search__input::placeholder { color: var(--cream-60); }
.mm-search__close {
  width: 34px; height: 34px; border-radius: 50%;
  border: 1.5px solid var(--cream);
  background: transparent; color: var(--cream);
  font-size: 16px; cursor: pointer;
}
.mm-search__close:hover { background: var(--cream); color: var(--deep); }

/* ============================================================
   Read-more drawer
   ============================================================ */
.mm-drawer { position: fixed; inset: 0; z-index: 20; }
.mm-drawer__scrim {
  position: absolute; inset: 0;
  background: rgba(43,20,8,0.4);
  animation: mm-fade-in .3s ease;
  border: none; padding: 0; cursor: pointer;
}
.mm-drawer-panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(58vw, 640px);              /* "Half" (default) */
  background: var(--deep);
  display: flex; flex-direction: column;
  box-shadow: -22px 0 55px rgba(43,20,8,0.4);
  animation: mm-drawer-in .42s cubic-bezier(.76,0,.24,1);
}
.mm-stage[data-drawer-size="Wide"] .mm-drawer-panel { width: min(74vw, 860px); }

.mm-drawer__head {
  flex: none;
  display: flex; align-items: center; justify-content: space-between;
  padding: clamp(22px, 3vw, 32px) clamp(24px, 3.4vw, 44px);
  border-bottom: 1px solid var(--cream-22);
}
.mm-drawer__counter {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em;
  color: var(--cream);
}
.mm-drawer__close {
  width: 40px; height: 40px; border-radius: 50%;
  border: 1.5px solid var(--cream);
  background: transparent; color: var(--cream);
  font-size: 19px; cursor: pointer; flex: none;
}
.mm-drawer__close:hover { background: var(--cream); color: var(--deep); }

.mm-drawer__body {
  flex: 1; overflow-y: auto;
  padding: clamp(26px, 3.6vw, 46px) clamp(24px, 3.4vw, 44px) 56px;
}

/* drawer content blocks (only the active one is shown) */
.mm-block { display: none; }
.mm-block.is-active { display: block; }

.mm-eyebrow {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em;
  color: var(--cream-70);
}
.mm-h2 {
  font-weight: 700;
  font-size: clamp(26px, 2.7vw, 36px);
  line-height: 1.08; letter-spacing: -0.02em;
  margin: 14px 0 20px; max-width: 18ch;
}
.mm-p {
  font-size: 15px; line-height: 1.65;
  color: var(--cream-88);
  margin: 0 0 16px; max-width: 48ch;
}
.mm-pullquote {
  font-family: var(--sans); font-weight: 700;
  font-size: clamp(20px, 2vw, 26px); line-height: 1.25; letter-spacing: -0.01em;
  margin: 12px 0 0;
  border-left: 2px solid var(--cream-50);
  padding-left: 18px; max-width: 24ch;
}

/* services card grid */
.mm-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.mm-card {
  border: 1px solid var(--cream-40); border-radius: 10px; padding: 18px;
}
.mm-card__num { font-family: var(--mono); font-size: 11px; color: var(--cream-60); }
.mm-card__title { font-weight: 600; font-size: 17px; margin: 8px 0; }
.mm-card__copy { font-size: 13.5px; line-height: 1.55; color: var(--cream-82); margin: 0; }

/* process steps */
.mm-steps { display: flex; flex-direction: column; gap: 22px; }
.mm-step { display: flex; gap: 18px; align-items: flex-start; }
.mm-step__num {
  font-family: var(--sans); font-weight: 700; font-size: 34px; line-height: 1;
  color: var(--cream-45); flex: none; width: 48px;
}
.mm-step__title { font-weight: 600; font-size: 18px; margin: 0 0 6px; }
.mm-step__copy { font-size: 14px; line-height: 1.6; color: var(--cream-85, rgba(253,251,248,0.85)); margin: 0; max-width: 42ch; }

/* stats row */
.mm-stats {
  display: flex; gap: 14px; flex-wrap: wrap;
  border-top: 1px solid var(--cream-22); border-bottom: 1px solid var(--cream-22);
  padding: 20px 0; margin-bottom: 26px;
}
.mm-stat { flex: 1; min-width: 90px; }
.mm-stat__num { font-family: var(--sans); font-weight: 700; font-size: clamp(30px, 3.4vw, 42px); line-height: 1; }
.mm-stat__label { font-size: 12px; line-height: 1.4; color: var(--cream-78); margin-top: 8px; }

/* case-study rows */
.mm-cases { display: flex; flex-direction: column; gap: 12px; }
.mm-case {
  border: 1px solid var(--cream-40); border-radius: 10px;
  padding: 16px 18px;
  display: flex; justify-content: space-between; align-items: center; gap: 14px;
  text-decoration: none; color: inherit;
}
.mm-case__title { font-weight: 600; font-size: 15.5px; margin: 0 0 4px; }
.mm-case__copy { font-size: 13px; color: var(--cream-80); margin: 0; }
.mm-case__arrow { font-family: var(--mono); font-size: 11px; color: var(--cream-55); flex: none; }

/* contact block */
.mm-email {
  display: block;
  font-family: var(--sans); font-weight: 700;
  font-size: clamp(19px, 2.1vw, 26px); letter-spacing: -0.01em;
  color: var(--cream); text-decoration: none; margin-bottom: 8px;
}
.mm-email:hover { opacity: 0.75; }
.mm-call {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono); font-size: 13px;
  color: var(--cream-82); text-decoration: none; margin-bottom: 32px;
}
.mm-call:hover { color: var(--cream); }
.mm-cta {
  width: 100%;
  font-family: var(--mono); font-size: 13px; font-weight: 700; letter-spacing: 0.08em;
  color: var(--deep); background: var(--cream);
  border: none; border-radius: 30px; padding: 15px;
  cursor: pointer; transition: transform .2s, opacity .2s;
}
.mm-cta:hover { transform: translateY(-2px); }
.mm-cta:disabled { opacity: 0.55; cursor: default; transform: none; }

/* ----- contact form ----- */
.mm-form { display: flex; flex-direction: column; gap: 18px; margin-top: 30px; }
.mm-field { display: flex; flex-direction: column; gap: 7px; }
.mm-label {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em;
  color: var(--cream-70); text-transform: uppercase;
}
.mm-input {
  width: 100%;
  background: var(--cream); color: var(--brown);
  border: 1px solid rgba(43,20,8,0.18);
  border-radius: 10px;
  font-family: var(--sans); font-size: 15px;
  padding: 12px 14px; outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.mm-input::placeholder { color: rgba(43,20,8,0.45); }
.mm-input:focus {
  border-color: rgba(43,20,8,0.55);
  box-shadow: 0 0 0 3px rgba(43,20,8,0.14);
}
.mm-textarea { resize: vertical; min-height: 96px; line-height: 1.55; }

/* honeypot — visually hidden, off-screen */
.mm-hp {
  position: absolute !important;
  left: -9999px; width: 1px; height: 1px;
  opacity: 0; pointer-events: none;
}

.mm-form__status {
  font-size: 13.5px; line-height: 1.55; margin: 4px 0 0; min-height: 1.2em;
}
.mm-form__status.is-ok  { color: var(--cream); }
.mm-form__status.is-err { color: #FFD9C7; }

/* ============================================================
   Focus states (accessibility)
   ============================================================ */
:focus-visible { outline: 2px solid var(--cream); outline-offset: 3px; }
.mm-hamburger:focus-visible,
.mm-search-btn:focus-visible,
.mm-dot:focus-visible { outline-offset: 2px; }

/* ============================================================
   Utility
   ============================================================ */
[hidden] { display: none !important; }

/* ============================================================
   Responsive (<760px)
   ============================================================ */
@media (max-width: 760px) {
  .mm-navwords { display: none !important; }
  .mm-rail {
    left: 24px; right: 24px; width: auto;
    top: auto; bottom: 132px;
    align-items: flex-start; text-align: left;
  }
  .mm-drawer-panel,
  .mm-stage[data-drawer-size="Wide"] .mm-drawer-panel { width: 100%; }
  .mm-cards { grid-template-columns: 1fr; }
}

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .mm-scroll { scroll-behavior: auto !important; }
}
