/* Millennium Software public website
   This file is deliberately separate from the CRM main.css. */

:root {
  --ms-black: #070707;
  --ms-charcoal: #131313;
  --ms-charcoal-soft: #1d1d1d;
  --ms-white: #ffffff;
  --ms-cream: #f4f0e8;
  --ms-gold: #c8922e;
  --ms-gold-light: #e1ad4d;
  --ms-silver: #a9a9a9;
  --ms-text: #262626;
  --ms-muted: #686868;
  --ms-border: rgba(16, 16, 16, 0.12);
  --ms-shadow: 0 24px 65px rgba(0, 0, 0, 0.12);
  --ms-container: 1380px;
}

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

html {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body.ms-public-site {
  width: 100%;
  max-width: 100%;
  min-height: 100vh;
  overflow-x: hidden;
  margin: 0;
  background: var(--ms-white);
  color: var(--ms-text);
  font-family: Arial, Helvetica, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body.ms-public-site img {
  max-width: 100%;
}

body.ms-public-site a {
  text-underline-offset: 0.2em;
}

#main-content {
  width: 100%;
  overflow: hidden;
}

/* Navigation */

.ms-site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 1050;
  width: 100%;
  transition: background-color 0.25s ease, box-shadow 0.25s ease, backdrop-filter 0.25s ease;
}

.ms-site-header.is-scrolled {
  background: rgba(7, 7, 7, 0.94);
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(16px);
}

.ms-public-nav {
  width: 100%;
  min-height: 82px;
  padding: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.58), rgba(0, 0, 0, 0));
}

.ms-site-header.is-scrolled .ms-public-nav {
  background: transparent;
}

.ms-nav-shell {
  display: flex;
  align-items: center;
  width: min(var(--ms-container), calc(100% - 3rem));
  min-width: 0;
  margin: 0 auto;
}

.ms-public-logo {
  display: flex;
  align-items: center;
  flex: 0 0 210px;
  width: 210px;
  height: 48px;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

.ms-public-logo img,
.ms-footer-brand img {
  display: block;
  width: 210px !important;
  height: 48px !important;
  min-width: 210px !important;
  max-width: 210px !important;
  min-height: 48px !important;
  max-height: 48px !important;
  margin: 0 !important;
  padding: 0 !important;
  object-fit: contain !important;
  object-position: left center !important;
}

.ms-public-collapse {
  min-width: 0;
  margin-left: auto;
}

.ms-public-links {
  align-items: center;
  gap: 0.15rem;
  margin-left: auto;
}

.ms-public-links .nav-link {
  position: relative;
  padding: 0.8rem 0.72rem !important;
  color: rgba(255, 255, 255, 0.88) !important;
  font-size: 0.87rem;
  font-weight: 750;
  letter-spacing: 0.025em;
  white-space: nowrap;
}

.ms-public-links .nav-link::after {
  position: absolute;
  right: 0.72rem;
  bottom: 0.55rem;
  left: 0.72rem;
  height: 1px;
  background: var(--ms-gold-light);
  content: "";
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}

.ms-public-links .nav-link:hover,
.ms-public-links .nav-link:focus {
  color: var(--ms-white) !important;
}

.ms-public-links .nav-link:hover::after,
.ms-public-links .nav-link:focus::after {
  transform: scaleX(1);
}

.ms-portal-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  margin-left: 1rem;
  padding: 0.65rem 1rem;
  border: 1px solid var(--ms-gold);
  border-radius: 4px;
  background: var(--ms-gold);
  color: #101010;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.045em;
  text-decoration: none;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.ms-portal-button:hover {
  border-color: var(--ms-gold-light);
  background: var(--ms-gold-light);
  color: #101010;
  transform: translateY(-1px);
}

.ms-menu-button {
  margin-left: auto;
  border-color: rgba(255, 255, 255, 0.45);
  box-shadow: none !important;
}

.ms-flash-wrap {
  position: fixed;
  top: 94px;
  right: 1rem;
  z-index: 1060;
  width: min(420px, calc(100% - 2rem));
}

/* Shared layout */

.ms-container {
  width: min(var(--ms-container), calc(100% - 3rem));
  margin: 0 auto;
}

.ms-narrow {
  max-width: 790px;
}

.ms-section {
  position: relative;
  padding: clamp(5rem, 8vw, 8rem) 0;
}

.ms-section--cream {
  background: var(--ms-cream);
}

.ms-section--dark {
  background: var(--ms-black);
  color: var(--ms-white);
}

.ms-eyebrow {
  display: inline-block;
  margin-bottom: 0.9rem;
  color: var(--ms-gold);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.ms-heading {
  margin: 0;
  color: inherit;
  font-size: clamp(2.2rem, 4vw, 4.5rem);
  line-height: 1.02;
  font-weight: 850;
  letter-spacing: -0.045em;
  text-wrap: balance;
}

.ms-lead {
  color: var(--ms-muted);
  font-size: 1.03rem;
  line-height: 1.75;
}

.ms-section--dark .ms-lead {
  color: rgba(255, 255, 255, 0.72);
}

/* Reveal animation */

[data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* Trust strip */

.ms-trust-strip {
  border-bottom: 1px solid var(--ms-border);
  background: var(--ms-white);
}

.ms-trust-item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 82px;
  padding: 1rem;
  border-right: 1px solid var(--ms-border);
  color: #343434;
  font-size: 0.87rem;
  font-weight: 760;
  text-align: center;
}

.ms-trust-strip [class*="col-"]:last-child .ms-trust-item {
  border-right: 0;
}

.ms-trust-item i {
  margin-right: 0.55rem;
  color: var(--ms-gold);
  font-size: 1.1rem;
}

/* Cards */

.ms-build-card,
.ms-step,
.ms-insight-card {
  height: 100%;
  border: 1px solid var(--ms-border);
  background: var(--ms-white);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.ms-build-card {
  padding: clamp(1.6rem, 3vw, 2.5rem);
}

.ms-build-card:hover,
.ms-insight-card:hover {
  border-color: rgba(200, 146, 46, 0.44);
  box-shadow: var(--ms-shadow);
  transform: translateY(-7px);
}

.ms-build-icon {
  display: grid;
  width: 54px;
  height: 54px;
  margin-bottom: 1.5rem;
  place-items: center;
  border: 1px solid rgba(200, 146, 46, 0.4);
  color: var(--ms-gold);
  font-size: 1.5rem;
}

/* Case studies */

.ms-case {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--ms-border);
  background: var(--ms-white);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.06);
}

.ms-case-media {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #e6e1d8;
}

.ms-case-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ms-case-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.7rem;
}

.ms-case-tag {
  margin-bottom: 0.75rem;
  color: var(--ms-gold);
  font-size: 0.7rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ms-case-points {
  display: grid;
  gap: 0.55rem;
  margin: 0 0 1.5rem;
  padding: 0;
  color: #505050;
  list-style: none;
}

.ms-case-points li {
  position: relative;
  padding-left: 1.15rem;
  font-size: 0.92rem;
}

.ms-case-points li::before {
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ms-gold);
  content: "";
}

.ms-case-actions {
  margin-top: auto;
}

/* Buttons */

.btn-ms-primary,
.btn-ms-secondary,
.btn-ms-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 48px;
  padding: 0.78rem 1.2rem;
  border: 1px solid transparent;
  border-radius: 4px;
  font-size: 0.82rem;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-decoration: none;
  text-transform: uppercase;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn-ms-primary {
  border-color: var(--ms-gold);
  background: var(--ms-gold);
  color: #111;
}

.btn-ms-secondary {
  border-color: rgba(255, 255, 255, 0.38);
  background: transparent;
  color: inherit;
}

.ms-section:not(.ms-section--dark) .btn-ms-secondary {
  border-color: rgba(0, 0, 0, 0.24);
  color: #202020;
}

.btn-ms-ghost {
  padding-right: 0;
  padding-left: 0;
  color: #202020;
}

.btn-ms-primary:hover,
.btn-ms-secondary:hover,
.btn-ms-ghost:hover {
  color: inherit;
  transform: translateY(-2px);
}

.btn-ms-primary:hover {
  border-color: var(--ms-gold-light);
  background: var(--ms-gold-light);
  color: #111;
}

.btn-sm {
  min-height: 40px;
  padding: 0.58rem 0.85rem;
}

/* About */

.ms-about-media {
  overflow: hidden;
  aspect-ratio: 4 / 5;
  background: #e7e2da;
}

.ms-about-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ms-song-link {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: #202020;
  font-weight: 750;
  text-decoration: none;
}

.ms-song-link i {
  color: var(--ms-gold);
}

/* Process */

.ms-step {
  padding: 1.7rem;
}

.ms-step-number {
  margin-bottom: 1.2rem;
  color: var(--ms-gold);
  font-size: 2.3rem;
  font-weight: 900;
  line-height: 1;
}

/* Testimonials */

.ms-testimonial-slider {
  max-width: 930px;
  margin: 0 auto;
  text-align: center;
}

.ms-testimonial-slide {
  display: none;
}

.ms-testimonial-slide.is-active {
  display: block;
}

.ms-testimonial-slide blockquote {
  color: var(--ms-white);
  font-size: clamp(1.75rem, 3.1vw, 3.25rem);
  line-height: 1.28;
  font-weight: 650;
  letter-spacing: -0.025em;
}

.ms-testimonial-slide figcaption {
  margin-top: 1.5rem;
  color: var(--ms-gold-light);
  font-size: 0.83rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ms-testimonial-dots {
  display: flex;
  justify-content: center;
  gap: 0.55rem;
  margin-top: 1.2rem;
}

.ms-testimonial-dots button {
  width: 7px;
  height: 7px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
}

.ms-testimonial-dots button.is-active {
  background: var(--ms-gold-light);
}

/* Insights */

.ms-insight-card {
  overflow: hidden;
}

.ms-insight-media {
  height: 215px;
  overflow: hidden;
  background: #ece8e1;
}

.ms-insight-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.ms-insight-card:hover .ms-insight-media img {
  transform: scale(1.04);
}

.ms-insight-body {
  padding: 1.5rem;
}

.ms-insight-date {
  margin-bottom: 0.6rem;
  color: var(--ms-gold);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ms-insight-body h3 {
  color: #222;
  font-size: 1.2rem;
}

.ms-insight-body p {
  margin-bottom: 0;
  color: var(--ms-muted);
  line-height: 1.65;
}

/* Secondary services */

.ms-secondary-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ms-secondary-list li {
  display: flex;
  align-items: center;
  min-height: 66px;
  padding: 1rem 1.15rem;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: rgba(255, 255, 255, 0.64);
  font-weight: 730;
}

.ms-secondary-list i {
  margin-right: 0.7rem;
  color: var(--ms-gold);
  font-size: 1.25rem;
}

/* CTA */

.ms-final-cta {
  background: var(--ms-charcoal);
  color: var(--ms-white);
  text-align: center;
}

.ms-final-cta .ms-lead {
  color: rgba(255, 255, 255, 0.7);
}

.ms-cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
  margin-top: 2.2rem;
}

/* Footer */

.ms-public-footer {
  background: var(--ms-black);
  color: rgba(255, 255, 255, 0.72);
  border-top: 1px solid rgba(200, 146, 46, 0.3);
}

.ms-footer-shell {
  width: min(var(--ms-container), calc(100% - 3rem));
  margin: 0 auto;
  padding: 4rem 0 1.5rem;
}

.ms-footer-main {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(360px, 0.9fr);
  gap: 4rem;
}

.ms-footer-brand {
  max-width: 550px;
}

.ms-footer-brand p {
  max-width: 530px;
  margin: 1.2rem 0 0;
  line-height: 1.75;
}

.ms-footer-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2rem;
}

.ms-footer-links h2 {
  margin-bottom: 1rem;
  color: var(--ms-white);
  font-size: 0.82rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ms-footer-links a {
  display: block;
  margin: 0.55rem 0;
  color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
}

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

.ms-footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 1.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.84rem;
}

/* Responsive */

@media (max-width: 1199.98px) {
  .ms-site-header,
  .ms-public-nav {
    background: rgba(7, 7, 7, 0.96);
  }

  .ms-nav-shell {
    flex-wrap: wrap;
    width: calc(100% - 2rem);
    padding: 0.85rem 0;
  }

  .ms-public-logo {
    flex-basis: 180px;
    width: 180px;
    height: 42px;
  }

  .ms-public-logo img {
    width: 180px !important;
    min-width: 180px !important;
    max-width: 180px !important;
    height: 42px !important;
    min-height: 42px !important;
    max-height: 42px !important;
  }

  .ms-public-collapse {
    flex-basis: 100%;
    width: 100%;
    margin-top: 0.8rem;
    padding: 1rem;
    border: 1px solid rgba(200, 146, 46, 0.25);
    background: #0d0d0d;
  }

  .ms-public-links {
    align-items: flex-start;
  }

  .ms-public-links .nav-link {
    width: 100%;
  }

  .ms-public-links .nav-link::after {
    display: none;
  }

  .ms-portal-button {
    width: 100%;
    margin: 0.75rem 0 0;
  }
}

@media (max-width: 991.98px) {
  .ms-container,
  .ms-footer-shell {
    width: min(100% - 2rem, 760px);
  }

  .ms-trust-item {
    border-bottom: 1px solid var(--ms-border);
  }

  .ms-footer-main {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
}

@media (max-width: 575.98px) {
  .ms-section {
    padding: 4.5rem 0;
  }

  .ms-heading {
    font-size: clamp(2.05rem, 11vw, 3.15rem);
  }

  .ms-secondary-list,
  .ms-footer-links {
    grid-template-columns: 1fr;
  }

  .ms-cta-actions {
    flex-direction: column;
  }

  .ms-cta-actions a {
    width: 100%;
  }

  .ms-footer-bottom {
    flex-direction: column;
  }
}

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

  [data-reveal] {
    opacity: 1;
    transform: none;
    transition: none;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}


/* =========================================================
   V2 BLACK NAVIGATION + HOME HERO
   ========================================================= */

body.ms-public-site {
  padding-top: 74px;
}

.ms-site-header {
  position: fixed !important;
  inset: 0 0 auto !important;
  width: 100% !important;
  height: 74px !important;
  background: #070707 !important;
  border-bottom: 1px solid rgba(200, 146, 46, 0.42) !important;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.28) !important;
  backdrop-filter: none !important;
}

.ms-public-nav {
  width: 100% !important;
  min-height: 74px !important;
  height: 74px !important;
  padding: 0 !important;
  background: #070707 !important;
}

.ms-nav-shell {
  display: flex !important;
  align-items: center !important;
  width: min(1420px, calc(100% - 2.5rem)) !important;
  min-width: 0 !important;
  height: 74px !important;
  margin: 0 auto !important;
}

.ms-public-logo {
  display: flex !important;
  align-items: center !important;
  flex: 0 0 190px !important;
  width: 190px !important;
  max-width: 190px !important;
  height: 50px !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

.ms-public-logo img {
  display: block !important;
  width: 190px !important;
  max-width: 190px !important;
  height: 50px !important;
  max-height: 50px !important;
  object-fit: contain !important;
  object-position: left center !important;
  margin: 0 !important;
  padding: 0 !important;
}

.ms-public-collapse {
  min-width: 0 !important;
  margin-left: auto !important;
}

.ms-public-links {
  align-items: center !important;
  gap: 0.1rem !important;
  margin-left: auto !important;
}

.ms-public-links .nav-link {
  padding: 0.7rem 0.66rem !important;
  color: rgba(255,255,255,0.82) !important;
  font-size: 0.82rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.03em !important;
  text-transform: uppercase !important;
}

.ms-public-links .nav-link:hover,
.ms-public-links .nav-link:focus {
  color: var(--ms-gold-light) !important;
}

.ms-portal-button {
  min-height: 40px !important;
  margin-left: 0.85rem !important;
  padding: 0.58rem 0.9rem !important;
  border-radius: 3px !important;
  font-size: 0.75rem !important;
}

/* Home hero: all copy is locked to the left side. */

.ms-home-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: calc(100svh - 74px);
  overflow: hidden;
  background: #0a0a0a;
  color: #fff;
}

.ms-home-hero__photo {
  position: absolute;
  inset: 0;
  z-index: -3;
  background-image: url("../img/waterfall.png");
  background-repeat: no-repeat;
  background-position: center right;
  background-size: cover;
  animation: msHeroZoom 24s ease-out both;
}

.ms-home-hero__shade {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(
      90deg,
      rgba(4,4,4,0.98) 0%,
      rgba(4,4,4,0.94) 24%,
      rgba(4,4,4,0.72) 43%,
      rgba(4,4,4,0.22) 62%,
      rgba(4,4,4,0.02) 82%
    ),
    linear-gradient(0deg, rgba(0,0,0,0.42), transparent 42%);
}

.ms-home-hero__shell {
  position: relative;
  width: min(1420px, calc(100% - 3rem));
  min-height: 620px;
  margin: 0 auto;
  padding: 5.5rem 0 10rem;
}

.ms-home-hero__copy {
  position: relative;
  display: flex;
  align-items: center;
  width: min(650px, 44vw);
  min-height: 500px;
  margin: 0 auto 0 0 !important;
  text-align: left !important;
}

.ms-home-story,
.ms-home-final {
  position: absolute;
  top: 50%;
  left: 0 !important;
  right: auto !important;
  width: 100%;
  max-width: 650px;
  text-align: left !important;
  transform: translateY(-50%);
}

.ms-home-story__line {
  position: absolute;
  top: 50%;
  left: 0 !important;
  right: auto !important;
  width: 100%;
  max-width: 650px;
  margin: 0;
  opacity: 0;
  color: #fff;
  font-size: clamp(2rem, 4vw, 4.65rem);
  font-weight: 850;
  line-height: 1.05;
  letter-spacing: -0.05em;
  text-align: left !important;
  text-shadow: 0 4px 30px rgba(0,0,0,0.8);
  text-wrap: balance;
  transform: translateY(calc(-50% + 24px));
  animation: msHeroLine 4.6s ease both;
}

.ms-home-story__line--1 { animation-delay: 0.5s; }
.ms-home-story__line--2 { animation-delay: 4.9s; }
.ms-home-story__line--3 {
  animation-delay: 9.3s;
  font-size: clamp(1.8rem, 3.35vw, 3.75rem);
}
.ms-home-story__line--4 {
  animation-delay: 13.7s;
  font-size: clamp(1.8rem, 3.35vw, 3.75rem);
}
.ms-home-story__line--5 { animation-delay: 18.1s; }

.ms-home-final {
  left: 0 !important;
  right: auto !important;
  margin: 0 !important;
  opacity: 0;
  text-align: left !important;
  transform: translateY(calc(-50% + 24px));
  animation: msHeroFinal 1.3s ease 22.8s forwards;
}

.ms-home-final__eyebrow {
  display: inline-block;
  margin-bottom: 1rem;
  color: var(--ms-gold-light);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.ms-home-final h1 {
  width: 100%;
  max-width: 640px;
  margin: 0;
  color: #fff;
  font-size: clamp(2.7rem, 4.75vw, 5.2rem);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: -0.055em;
  text-align: left !important;
  text-shadow: 0 4px 30px rgba(0,0,0,0.78);
  text-wrap: balance;
}

.ms-home-final > p {
  width: 100%;
  max-width: 580px;
  margin: 1.35rem 0 0;
  color: rgba(255,255,255,0.9);
  font-size: clamp(1rem, 1.3vw, 1.24rem);
  line-height: 1.65;
  text-align: left !important;
  text-shadow: 0 2px 18px rgba(0,0,0,0.72);
}

.ms-home-final__actions {
  display: flex;
  justify-content: flex-start !important;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.8rem;
  text-align: left !important;
}

.ms-home-replay {
  position: absolute;
  bottom: -0.75rem;
  left: 0;
  border: 0;
  background: transparent;
  color: rgba(255,255,255,0.72);
  font-size: 0.82rem;
}

.ms-home-replay:hover {
  color: #fff;
}

.ms-home-scroll {
  position: absolute;
  bottom: 1.4rem;
  left: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: rgba(255,255,255,0.74);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-decoration: none;
  text-transform: uppercase;
  transform: translateX(-50%);
  animation: msHeroBounce 1.7s ease-in-out infinite;
}

@keyframes msHeroLine {
  0% {
    opacity: 0;
    transform: translateY(calc(-50% + 24px));
  }
  18%, 73% {
    opacity: 1;
    transform: translateY(-50%);
  }
  100% {
    opacity: 0;
    transform: translateY(calc(-50% - 20px));
  }
}

@keyframes msHeroFinal {
  to {
    opacity: 1;
    transform: translateY(-50%);
  }
}

@keyframes msHeroZoom {
  from { transform: scale(1.02); }
  to { transform: scale(1.1); }
}

@keyframes msHeroBounce {
  50% { transform: translate(-50%, 7px); }
}

@media (max-width: 1199.98px) {
  body.ms-public-site {
    padding-top: 68px;
  }

  .ms-site-header,
  .ms-public-nav {
    height: 68px !important;
    min-height: 68px !important;
    background: #070707 !important;
  }

  .ms-nav-shell {
    width: calc(100% - 2rem) !important;
    height: 68px !important;
    padding: 0 !important;
  }

  .ms-public-logo,
  .ms-public-logo img {
    width: 165px !important;
    max-width: 165px !important;
    height: 42px !important;
    max-height: 42px !important;
    flex-basis: 165px !important;
  }

  .ms-public-collapse {
    position: absolute;
    top: 68px;
    right: 1rem;
    left: 1rem;
    margin: 0 !important;
    padding: 1rem !important;
    border: 1px solid rgba(200,146,46,0.34);
    background: #0b0b0b !important;
    box-shadow: 0 18px 40px rgba(0,0,0,0.35);
  }

  .ms-home-hero {
    min-height: calc(100svh - 68px);
  }

  .ms-home-hero__photo {
    background-position: 68% center;
  }

  .ms-home-hero__shade {
    background:
      linear-gradient(
        90deg,
        rgba(4,4,4,0.97) 0%,
        rgba(4,4,4,0.91) 40%,
        rgba(4,4,4,0.5) 66%,
        rgba(4,4,4,0.08) 90%
      ),
      linear-gradient(0deg, rgba(0,0,0,0.48), transparent 48%);
  }

  .ms-home-hero__copy {
    width: min(590px, 56vw);
  }
}

@media (max-width: 767.98px) {
  .ms-home-hero {
    align-items: flex-end;
  }

  .ms-home-hero__photo {
    background-position: 67% top;
  }

  .ms-home-hero__shade {
    background:
      linear-gradient(
        0deg,
        rgba(4,4,4,0.99) 0%,
        rgba(4,4,4,0.94) 46%,
        rgba(4,4,4,0.38) 73%,
        rgba(4,4,4,0.08) 100%
      );
  }

  .ms-home-hero__shell {
    width: calc(100% - 2rem);
    min-height: 690px;
    padding: 13rem 0 6rem;
  }

  .ms-home-hero__copy {
    align-items: flex-end;
    width: 100%;
    min-height: 470px;
  }

  .ms-home-story,
  .ms-home-final {
    top: auto;
    bottom: 0;
    width: 100%;
    max-width: 100%;
    transform: none;
  }

  .ms-home-story__line {
    top: auto;
    bottom: 0;
    max-width: 100%;
    font-size: clamp(1.8rem, 8vw, 2.9rem);
    transform: translateY(20px);
  }

  .ms-home-story__line--3,
  .ms-home-story__line--4 {
    font-size: clamp(1.65rem, 7vw, 2.5rem);
  }

  .ms-home-final {
    transform: translateY(24px);
  }

  .ms-home-final h1 {
    max-width: 100%;
    font-size: clamp(2.35rem, 11vw, 3.8rem);
  }

  @keyframes msHeroLine {
    0% {
      opacity: 0;
      transform: translateY(20px);
    }
    18%, 73% {
      opacity: 1;
      transform: none;
    }
    100% {
      opacity: 0;
      transform: translateY(-16px);
    }
  }

  @keyframes msHeroFinal {
    to {
      opacity: 1;
      transform: none;
    }
  }

  .ms-home-scroll {
    display: none;
  }
}

@media (max-width: 575.98px) {
  .ms-home-final__actions {
    flex-direction: column;
  }

  .ms-home-final__actions a {
    width: 100%;
  }

  .ms-home-replay {
    bottom: -0.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ms-home-hero__photo,
  .ms-home-story__line,
  .ms-home-scroll {
    animation: none !important;
  }

  .ms-home-story__line {
    display: none;
  }

  .ms-home-final {
    opacity: 1;
    transform: translateY(-50%);
    animation: none !important;
  }

  @media (max-width: 767.98px) {
    .ms-home-final {
      transform: none;
    }
  }
}


/* =========================================================
   ABOUT STEVE — REDESIGNED
   ========================================================= */

.ms-about-section {
  position: relative;
  overflow: hidden;
  padding: clamp(5rem, 8vw, 8rem) 0;
  background:
    radial-gradient(circle at 12% 18%, rgba(200, 146, 46, 0.13), transparent 32%),
    #101010;
  color: rgba(255, 255, 255, 0.76);
}

.ms-about-section::after {
  position: absolute;
  right: -160px;
  bottom: -240px;
  width: 520px;
  height: 520px;
  border: 1px solid rgba(200, 146, 46, 0.12);
  border-radius: 50%;
  content: "";
}

.ms-about-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(330px, 0.78fr) minmax(0, 1.22fr);
  gap: clamp(3rem, 6vw, 6.5rem);
  align-items: center;
}

.ms-about-portrait-wrap {
  position: relative;
  max-width: 490px;
}

.ms-about-portrait {
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  margin: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #222;
  box-shadow: 0 35px 80px rgba(0, 0, 0, 0.38);
}

.ms-about-portrait::before {
  position: absolute;
  inset: 18px;
  z-index: 1;
  border: 1px solid rgba(225, 173, 77, 0.35);
  content: "";
  pointer-events: none;
}

.ms-about-portrait img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.ms-about-experience {
  position: absolute;
  right: -2rem;
  bottom: 2.2rem;
  z-index: 2;
  width: min(270px, 72%);
  padding: 1.15rem 1.25rem;
  border-left: 3px solid var(--ms-gold);
  background: rgba(7, 7, 7, 0.94);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(12px);
}

.ms-about-experience strong {
  display: block;
  margin-bottom: 0.25rem;
  color: var(--ms-gold-light);
  font-size: 1.05rem;
}

.ms-about-experience span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
  line-height: 1.45;
}

.ms-about-content {
  max-width: 760px;
}

.ms-about-content .ms-eyebrow {
  margin-bottom: 1rem;
}

.ms-about-title {
  max-width: 760px;
  margin: 0 0 1.6rem;
  color: #fff;
  font-size: clamp(2.4rem, 4.4vw, 4.7rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.ms-about-content > p {
  max-width: 710px;
  margin-bottom: 1rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
  line-height: 1.75;
}

.ms-about-content .ms-about-intro {
  color: rgba(255, 255, 255, 0.92);
  font-size: 1.1rem;
}

.ms-about-values {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 2rem 0 2.2rem;
}

.ms-about-values > div {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 62px;
  padding: 0.85rem 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.035);
}

.ms-about-values i {
  flex: 0 0 auto;
  color: var(--ms-gold-light);
  font-size: 1.1rem;
}

.ms-about-values span {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.83rem;
  font-weight: 760;
  line-height: 1.35;
}

.ms-about-video {
  display: grid;
  grid-template-columns: minmax(180px, 0.72fr) minmax(340px, 1.28fr);
  gap: 1.4rem;
  align-items: center;
  padding: 1.15rem;
  border: 1px solid rgba(200, 146, 46, 0.3);
  background: rgba(255, 255, 255, 0.045);
}

.ms-about-video__copy {
  padding: 0.4rem 0.25rem;
}

.ms-about-video__label {
  display: block;
  margin-bottom: 0.5rem;
  color: var(--ms-gold-light);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ms-about-video h3 {
  margin: 0 0 0.65rem;
  color: #fff;
  font-size: 1.25rem;
  font-weight: 850;
}

.ms-about-video p {
  margin: 0;
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.84rem;
  line-height: 1.6;
}

.ms-about-video__frame {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: #000;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.3);
}

.ms-about-video__frame iframe {
  border: 0;
}

@media (max-width: 1099.98px) {
  .ms-about-grid {
    grid-template-columns: minmax(290px, 0.8fr) minmax(0, 1.2fr);
    gap: 3rem;
  }

  .ms-about-video {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 839.98px) {
  .ms-about-grid {
    grid-template-columns: 1fr;
  }

  .ms-about-portrait-wrap {
    width: min(100%, 520px);
    margin: 0 auto;
  }

  .ms-about-content {
    max-width: 100%;
  }

  .ms-about-title {
    max-width: 680px;
  }
}

@media (max-width: 575.98px) {
  .ms-about-section {
    padding: 4.5rem 0;
  }

  .ms-about-experience {
    right: 0.75rem;
    bottom: 0.75rem;
    width: calc(100% - 1.5rem);
  }

  .ms-about-values {
    grid-template-columns: 1fr;
  }

  .ms-about-video {
    padding: 0.8rem;
  }

  .ms-about-video__copy {
    padding: 0.4rem;
  }
}


/* =========================================================
   ABOUT STEVE — FULL-WIDTH HEADING
   ========================================================= */

.ms-about-header {
  position: relative;
  z-index: 1;
  width: 100%;
  margin-bottom: clamp(2.75rem, 5vw, 5rem);
  text-align: left;
}

.ms-about-header .ms-eyebrow {
  display: block;
  margin: 0 0 0.9rem;
}

.ms-about-header .ms-about-title {
  width: 100%;
  max-width: 1180px;
  margin: 0;
  text-align: left;
}

.ms-about-grid {
  align-items: start;
}

.ms-about-content {
  padding-top: 0.25rem;
}

/* =========================================================
   CLIENT SUPPORT
   ========================================================= */

.ms-client-support {
  position: relative;
  padding: clamp(4rem, 7vw, 6.5rem) 0;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(200, 146, 46, 0.11), transparent 42%),
    #f3efe7;
}

.ms-client-support__panel {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: clamp(1.5rem, 3vw, 3rem);
  align-items: center;
  padding: clamp(1.8rem, 3vw, 3rem);
  border: 1px solid rgba(20, 20, 20, 0.13);
  background: #fff;
  box-shadow: 0 24px 65px rgba(0, 0, 0, 0.11);
}

.ms-client-support__icon {
  display: grid;
  width: 86px;
  height: 86px;
  place-items: center;
  border: 1px solid rgba(200, 146, 46, 0.42);
  background: #0b0b0b;
  color: var(--ms-gold-light);
  font-size: 2rem;
}

.ms-client-support__copy .ms-eyebrow {
  margin-bottom: 0.65rem;
}

.ms-client-support__copy h2 {
  margin: 0 0 0.8rem;
  color: #202020;
  font-size: clamp(1.75rem, 3vw, 3rem);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.ms-client-support__copy p {
  max-width: 760px;
  margin: 0;
  color: var(--ms-muted);
  line-height: 1.72;
}

.ms-client-support__notes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem 1.25rem;
  margin-top: 1.2rem;
}

.ms-client-support__notes span {
  display: inline-flex;
  align-items: center;
  gap: 0.42rem;
  color: #414141;
  font-size: 0.82rem;
  font-weight: 750;
}

.ms-client-support__notes i {
  color: var(--ms-gold);
}

.ms-client-support__action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.65rem;
  min-width: 230px;
}

.ms-client-support__action .btn-ms-primary {
  width: 100%;
  white-space: nowrap;
}

.ms-client-support__action small {
  color: var(--ms-muted);
  font-size: 0.75rem;
}

@media (max-width: 899.98px) {
  .ms-client-support__panel {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .ms-client-support__action {
    grid-column: 1 / -1;
    width: 100%;
    min-width: 0;
  }

  .ms-client-support__action .btn-ms-primary {
    width: auto;
  }
}

@media (max-width: 575.98px) {
  .ms-client-support__panel {
    grid-template-columns: 1fr;
  }

  .ms-client-support__icon {
    width: 68px;
    height: 68px;
  }

  .ms-client-support__notes {
    display: grid;
    gap: 0.65rem;
  }

  .ms-client-support__action {
    align-items: stretch;
  }

  .ms-client-support__action .btn-ms-primary {
    width: 100%;
    white-space: normal;
  }
}


/* =========================================================
   FEATURED WORK — LARGE, SHARP PROJECT SCREENSHOTS
   ========================================================= */

#featured-work .row {
  row-gap: clamp(2rem, 4vw, 3.5rem);
}

#featured-work .ms-case {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(330px, 0.75fr);
  min-height: 440px;
  overflow: hidden;
}

#featured-work .col-12:nth-child(even) .ms-case {
  grid-template-columns: minmax(330px, 0.75fr) minmax(0, 1.55fr);
}

#featured-work .col-12:nth-child(even) .ms-case-media {
  grid-column: 2;
  grid-row: 1;
}

#featured-work .col-12:nth-child(even) .ms-case-body {
  grid-column: 1;
  grid-row: 1;
}

#featured-work .ms-case-media {
  width: 100%;
  height: 100%;
  min-height: 440px;
  aspect-ratio: auto;
  overflow: hidden;
  background: #eef0f3;
}

#featured-work .ms-case-media img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 440px;
  object-fit: contain;
  object-position: center;
  image-rendering: auto;
  backface-visibility: hidden;
  transform: translateZ(0);
}

#featured-work .ms-case-body {
  justify-content: center;
  padding: clamp(2rem, 4vw, 3.5rem);
}

#featured-work .ms-case-body .h5 {
  margin-bottom: 1rem;
  font-size: clamp(1.65rem, 2.3vw, 2.5rem);
  font-weight: 900;
  letter-spacing: -0.035em;
}

#featured-work .ms-case-body .ms-lead {
  font-size: 1rem;
}

@media (max-width: 899.98px) {
  #featured-work .ms-case,
  #featured-work .col-12:nth-child(even) .ms-case {
    grid-template-columns: 1fr;
  }

  #featured-work .col-12:nth-child(even) .ms-case-media,
  #featured-work .col-12:nth-child(even) .ms-case-body {
    grid-column: auto;
    grid-row: auto;
  }

  #featured-work .ms-case-media,
  #featured-work .ms-case-media img {
    min-height: 0;
    height: auto;
  }

  #featured-work .ms-case-media img {
    aspect-ratio: 1.88 / 1;
    object-fit: contain;
  }
}

/* The longer evergreen hero statements need slightly more controlled sizing. */
.ms-home-story__line--3,
.ms-home-story__line--4,
.ms-home-story__line--5 {
  font-size: clamp(1.65rem, 3vw, 3.35rem);
}


/* =========================================================
   PUBLIC BLOG
   ========================================================= */

.ms-blog-hero {
  padding: clamp(6rem, 10vw, 9rem) 0 clamp(4rem, 7vw, 6rem);
  background:
    radial-gradient(circle at 80% 20%, rgba(200, 146, 46, 0.2), transparent 34%),
    #0b0b0b;
  color: #fff;
}

.ms-blog-hero .ms-container {
  max-width: 1000px;
}

.ms-blog-hero h1 {
  max-width: 940px;
  margin: 0;
  color: #fff;
  font-size: clamp(2.65rem, 5.2vw, 5.8rem);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.ms-blog-hero p {
  max-width: 760px;
  margin: 1.5rem 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 1.08rem;
  line-height: 1.75;
}

.ms-blog-list-section {
  padding: clamp(4.5rem, 8vw, 7.5rem) 0;
  background: #f4f0e8;
}

.ms-blog-admin-action {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 1.5rem;
}

.ms-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.ms-blog-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(15, 15, 15, 0.11);
  background: #fff;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.06);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.ms-blog-card:hover {
  box-shadow: 0 28px 65px rgba(0, 0, 0, 0.12);
  transform: translateY(-6px);
}

.ms-blog-card__image {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #e7e2d9;
}

.ms-blog-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.ms-blog-card:hover .ms-blog-card__image img {
  transform: scale(1.035);
}

.ms-blog-card__placeholder {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  color: var(--ms-gold);
  font-size: 2.6rem;
}

.ms-blog-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.55rem;
}

.ms-blog-card__date {
  margin-bottom: 0.65rem;
  color: var(--ms-gold);
  font-size: 0.72rem;
  font-weight: 850;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.ms-blog-card h2 {
  margin: 0 0 0.85rem;
  font-size: 1.35rem;
  font-weight: 850;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.ms-blog-card h2 a {
  color: #1c1c1c;
  text-decoration: none;
}

.ms-blog-card__body > p {
  margin: 0 0 1.4rem;
  color: var(--ms-muted);
  line-height: 1.65;
}

.ms-blog-card__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: auto;
}

.ms-blog-read-link,
.ms-blog-admin-link {
  color: #222;
  font-size: 0.82rem;
  font-weight: 850;
  text-decoration: none;
}

.ms-blog-read-link:hover,
.ms-blog-admin-link:hover {
  color: var(--ms-gold);
}

.ms-blog-staff-actions {
  display: flex;
  gap: 0.7rem;
}

.ms-blog-staff-actions form {
  margin: 0;
}

.ms-blog-admin-link {
  padding: 0;
  border: 0;
  background: transparent;
}

.ms-blog-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.4rem;
  margin-top: 3rem;
}

.ms-blog-pagination a,
.ms-blog-pagination span {
  color: #2a2a2a;
  font-size: 0.84rem;
  font-weight: 780;
  text-decoration: none;
}

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

.ms-blog-pagination .is-disabled {
  opacity: 0.42;
}

.ms-blog-empty {
  padding: 5rem 1.5rem;
  border: 1px solid rgba(15, 15, 15, 0.1);
  background: #fff;
  text-align: center;
}

.ms-blog-empty i {
  color: var(--ms-gold);
  font-size: 2.7rem;
}

.ms-blog-cta {
  padding: clamp(4rem, 7vw, 6rem) 0;
  background: #111;
  color: #fff;
  text-align: center;
}

.ms-blog-cta h2 {
  max-width: 780px;
  margin: 0 auto 1.75rem;
  color: #fff;
  font-size: clamp(2rem, 4vw, 4rem);
  font-weight: 900;
  line-height: 1.03;
  letter-spacing: -0.045em;
}

/* Article */

.ms-article {
  background: #fff;
}

.ms-article-header {
  padding: clamp(5.5rem, 9vw, 8rem) 0 clamp(3.5rem, 6vw, 5rem);
  background:
    radial-gradient(circle at 82% 18%, rgba(200, 146, 46, 0.18), transparent 34%),
    #0b0b0b;
  color: #fff;
}

.ms-article-header__inner {
  max-width: 1040px;
}

.ms-article-back {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 2rem;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.82rem;
  font-weight: 760;
  text-decoration: none;
}

.ms-article-back:hover {
  color: var(--ms-gold-light);
}

.ms-article-header h1 {
  max-width: 1000px;
  margin: 0;
  color: #fff;
  font-size: clamp(2.6rem, 5vw, 5.4rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.055em;
  text-wrap: balance;
}

.ms-article-summary {
  max-width: 800px;
  margin: 1.35rem 0 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 1.1rem;
  line-height: 1.7;
}

.ms-article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 1.25rem;
  margin-top: 1.6rem;
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.78rem;
  font-weight: 720;
}

.ms-article-image {
  max-width: 1120px;
  margin: -2.5rem auto 0;
  overflow: hidden;
  border: 8px solid #fff;
  background: #ece8e0;
  box-shadow: 0 25px 65px rgba(0, 0, 0, 0.16);
}

.ms-article-image img {
  display: block;
  width: 100%;
  max-height: 620px;
  object-fit: cover;
}

.ms-article-layout {
  display: grid;
  grid-template-columns: minmax(0, 760px) minmax(250px, 330px);
  gap: clamp(3rem, 6vw, 6rem);
  justify-content: center;
  align-items: start;
  padding: clamp(4rem, 7vw, 6.5rem) 0;
}

.ms-article-content {
  min-width: 0;
  color: #292929;
  font-size: 1.06rem;
  line-height: 1.78;
}

.ms-article-content p {
  margin: 0 0 1.15rem;
}

.ms-article-content p:empty {
  display: none;
}

.ms-article-content h2 {
  margin: 2.5rem 0 1rem;
  color: #171717;
  font-size: clamp(1.65rem, 2.5vw, 2.35rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.ms-article-content h3 {
  margin: 2rem 0 0.8rem;
  color: #222;
  font-size: 1.35rem;
  font-weight: 850;
}

.ms-article-content ul,
.ms-article-content ol {
  margin: 0 0 1.4rem;
  padding-left: 1.3rem;
}

.ms-article-content li {
  margin-bottom: 0.55rem;
}

.ms-article-content a {
  color: #8e5d0b;
  font-weight: 700;
}

.ms-article-content img {
  width: auto;
  max-width: 100%;
  height: auto;
}

.ms-article-aside {
  position: sticky;
  top: 105px;
}

.ms-article-aside__box {
  padding: 1.7rem;
  border: 1px solid rgba(200, 146, 46, 0.32);
  background: #f4f0e8;
}

.ms-article-aside__box h2 {
  margin: 0 0 0.8rem;
  color: #1d1d1d;
  font-size: 1.45rem;
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.ms-article-aside__box p {
  color: var(--ms-muted);
  font-size: 0.9rem;
  line-height: 1.65;
}

.ms-article-footer {
  padding: 0 0 5rem;
  text-align: center;
}

@media (max-width: 991.98px) {
  .ms-blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ms-article-layout {
    grid-template-columns: 1fr;
    max-width: 800px;
    margin: 0 auto;
  }

  .ms-article-aside {
    position: static;
  }
}

@media (max-width: 639.98px) {
  .ms-blog-grid {
    grid-template-columns: 1fr;
  }

  .ms-blog-card__actions,
  .ms-blog-pagination {
    align-items: flex-start;
    flex-direction: column;
  }

  .ms-article-image {
    margin-top: -1.5rem;
    border-width: 4px;
  }
}
