/*
 * I'Mihajlo premium theme
 * A clean editorial layer for the MS application.
 */

:root {
  --default-font: "Manrope", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --heading-font: "Manrope", system-ui, sans-serif;
  --nav-font: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --background-color: #f4f2ee;
  --default-color: #4f5156;
  --heading-color: #252629;
  --accent-color: #b85f3b;
  --surface-color: #ffffff;
  --contrast-color: #ffffff;
  --nav-color: #4f5156;
  --nav-hover-color: #9f4f31;
  --nav-mobile-background-color: #ffffff;
  --nav-dropdown-background-color: #ffffff;
  --nav-dropdown-color: #5f6267;
  --nav-dropdown-hover-color: #9f4f31;
  --ms-ink: #252629;
  --ms-ink-soft: #323438;
  --ms-paper: #f4f2ee;
  --ms-paper-deep: #e6e2dc;
  --ms-line: rgba(37, 38, 41, 0.13);
  --ms-muted: #6b6e73;
  --ms-lime: #b85f3b;
  --ms-lime-bright: #9f4f31;
  --ms-mint: #d79b7d;
  --ms-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --ms-shadow: 0 20px 54px rgba(37, 38, 41, 0.08);
}

html {
  scroll-padding-top: 92px;
}

body {
  min-width: 320px;
  color: var(--default-color);
  background: var(--ms-paper);
  font-family: var(--default-font);
  font-size: 16px;
  line-height: 1.75;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body::before {
  z-index: 0;
  opacity: 1;
  background:
    linear-gradient(rgba(37, 38, 41, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 38, 41, 0.022) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, black, transparent 70%);
}

::selection {
  color: #fff;
  background: var(--ms-lime);
}

a {
  color: #9f4f31;
  text-underline-offset: 4px;
}

a:hover {
  color: #783b27;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(184, 95, 59, 0.38);
  outline-offset: 4px;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--ms-ink);
  font-family: var(--heading-font);
  letter-spacing: -0.045em;
}

.main,
.footer {
  position: relative;
  z-index: 1;
}

.container,
.container-xl {
  --bs-gutter-x: 2rem;
}

section,
.section {
  padding: 96px 0;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  color: var(--ms-lime);
  font-family: var(--ms-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  line-height: 1.4;
  text-transform: uppercase;
}

.section-kicker::before {
  width: 30px;
  height: 1px;
  content: "";
  background: currentColor;
}

.section-heading-row {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  gap: clamp(40px, 7vw, 110px);
  align-items: end;
  margin-bottom: 64px;
  padding-top: 30px;
  border-top: 1px solid rgba(184, 95, 59, 0.24);
}

.section-heading-row h2 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(2.35rem, 4vw, 4.2rem);
  font-weight: 700;
  line-height: 0.98;
}

.section-heading-row p {
  max-width: 520px;
  margin: 0;
  color: var(--ms-muted);
  font-size: 17px;
  line-height: 1.75;
}

.section-heading-action > a {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  color: var(--ms-ink);
  font-family: var(--ms-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.section-heading-action > a i {
  transition: transform 0.25s ease;
}

.section-heading-action > a:hover i {
  transform: translateX(5px);
}

/* Header and navigation */
.header {
  --background-color: transparent;
  min-height: 92px;
  padding: 12px 0;
  background: transparent;
  transition: padding 0.3s ease;
}

.header .container-xl {
  min-height: 68px;
  padding: 0 24px;
  border: 1px solid rgba(37, 38, 41, 0.08);
  border-radius: 12px;
  background: rgba(250, 249, 247, 0.9);
  box-shadow: 0 10px 32px rgba(37, 38, 41, 0.05);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  transition: min-height 0.3s ease, background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.scrolled .header {
  --background-color: transparent;
  padding-top: 8px;
  box-shadow: none;
}

.scrolled .header .container-xl {
  min-height: 62px;
  border-color: rgba(37, 38, 41, 0.1);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 40px rgba(37, 38, 41, 0.09);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.header .logo {
  gap: 0;
  color: var(--ms-ink);
}

.header .logo::before {
  display: none;
}

.header .logo h1,
.header .logo .sitename {
  color: var(--ms-ink);
  font-family: var(--default-font);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.04em;
}

.header .logo h1 small,
.header .logo .sitename small {
  font-weight: 500 !important;
  opacity: 0.68;
}

@media (min-width: 1200px) {
  .navmenu > ul {
    gap: 2px;
  }

  .navmenu a,
  .navmenu a:focus {
    position: relative;
    padding: 14px 12px;
    color: var(--nav-color);
    font-family: var(--nav-font);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

  .navmenu > ul > li > a::after {
    position: absolute;
    right: 12px;
    bottom: 9px;
    left: 12px;
    height: 1px;
    content: "";
    background: var(--ms-lime);
    transform: scaleX(0);
    transform-origin: right;
    transition: transform 0.25s ease;
  }

  .navmenu > ul > li:hover > a::after,
  .navmenu > ul > li > a.active::after {
    transform: scaleX(1);
    transform-origin: left;
  }

  .navmenu .dropdown ul {
    top: calc(100% + 12px);
    min-width: 240px;
    padding: 10px;
    border: 1px solid var(--ms-line);
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 24px 60px rgba(37, 38, 41, 0.13);
  }

  .navmenu .dropdown ul a,
  .navmenu .dropdown ul a:focus {
    padding: 11px 13px;
    border-radius: 6px;
    color: var(--ms-muted);
    font-size: 11px;
    text-transform: none;
  }

  .navmenu .dropdown ul a:hover,
  .navmenu .dropdown ul .active {
    color: var(--ms-lime-bright);
    background: rgba(184, 95, 59, 0.1);
  }

  .navmenu .nav-auth-item {
    margin-left: 8px;
  }

  .navmenu .nav-auth-item > a {
    padding: 11px 16px;
    border: 1px solid rgba(37, 38, 41, 0.2);
    border-radius: 7px;
    color: var(--ms-ink);
  }

  .navmenu .nav-auth-item > a::after {
    display: none;
  }

  .navmenu .nav-auth-item > a:hover {
    border-color: var(--ms-lime);
    color: #fff;
    background: var(--ms-lime);
  }
}

.mobile-nav-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  padding: 9px 12px;
  border: 1px solid rgba(37, 38, 41, 0.16);
  border-radius: 7px;
  color: var(--ms-ink);
  background: rgba(255, 255, 255, 0.84);
  font-family: var(--ms-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.mobile-nav-toggle i {
  font-size: 21px;
}

/* Home hero */
.hero {
  --background-color: var(--ms-paper);
  --default-color: var(--ms-muted);
  --heading-color: var(--ms-ink);
  --contrast-color: #fff;
  min-height: 700px;
  padding: 142px 0 92px;
  color: var(--ms-muted);
  background:
    radial-gradient(circle at 12% 22%, rgba(184, 95, 59, 0.1), transparent 30%),
    #efede8;
  isolation: isolate;
}

.hero::before {
  z-index: 2;
  background:
    linear-gradient(90deg, rgba(242, 239, 235, 1) 0%, rgba(242, 239, 235, 0.97) 44%, rgba(237, 233, 228, 0.62) 64%, rgba(224, 220, 214, 0.14) 100%),
    linear-gradient(180deg, rgba(184, 95, 59, 0.025), rgba(37, 38, 41, 0.16));
}

.hero::after {
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  content: "";
  background: linear-gradient(90deg, var(--ms-lime) 0 14%, var(--ms-line) 14% 100%);
}

.hero-media {
  position: absolute;
  z-index: 1;
  inset: 0 0 0 43%;
  overflow: hidden;
}

.hero-media::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    radial-gradient(circle at 65% 45%, transparent 0, rgba(37, 38, 41, 0.04) 48%, rgba(37, 38, 41, 0.22) 100%),
    linear-gradient(180deg, rgba(247, 246, 243, 0.03), rgba(37, 38, 41, 0.12));
}

.hero-media img,
.hero > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.72) contrast(1.02) brightness(1.02);
}

.hero > img {
  display: none;
}

.hero-grid {
  position: absolute;
  z-index: 3;
  inset: 0;
  pointer-events: none;
  opacity: 0.32;
  background-image:
    linear-gradient(rgba(37, 38, 41, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 38, 41, 0.055) 1px, transparent 1px);
  background-size: 96px 96px;
  mask-image: linear-gradient(90deg, black, transparent 75%);
}

.hero .hero-container {
  position: relative;
  z-index: 4;
  margin-top: auto;
  margin-bottom: auto;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 30px;
  color: #686b70;
  font-family: var(--ms-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.status-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--ms-lime);
  box-shadow: 0 0 0 6px rgba(184, 95, 59, 0.1);
}

.status-dot::after {
  position: absolute;
  inset: -6px;
  border: 1px solid rgba(184, 95, 59, 0.38);
  border-radius: inherit;
  content: "";
  animation: ms-pulse 2.2s ease-out infinite;
}

@keyframes ms-pulse {
  0% { opacity: 0.8; transform: scale(0.7); }
  75%, 100% { opacity: 0; transform: scale(1.65); }
}

.hero h1 {
  max-width: 820px;
  margin: 0;
  color: var(--ms-ink);
  font-size: clamp(3.5rem, 5.8vw, 5.9rem);
  font-weight: 700;
  letter-spacing: -0.075em;
  line-height: 0.96;
  text-wrap: balance;
  word-spacing: 0.07em;
}

.hero h1 em,
.hero h1 i {
  color: var(--ms-lime);
  font-style: normal;
}

.hero-copy {
  max-width: 650px;
  margin: 32px 0 0;
  padding-left: 22px;
  border-left: 2px solid var(--ms-lime);
  color: #5d6065;
  font-size: clamp(1rem, 1.25vw, 1.18rem);
  line-height: 1.8;
}

.hero-copy p,
.hero-copy div,
.hero-copy span {
  color: inherit;
}

.hero-copy strong,
.hero-copy b {
  color: var(--ms-ink);
}

.hero-copy p:last-child {
  margin-bottom: 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 38px;
}

.hero .btn-get-started,
.hero .btn-quiet,
.call-to-action .cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 54px;
  padding: 0 23px;
  border-radius: 7px;
  font-family: var(--ms-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.055em;
  text-transform: uppercase;
  transition: transform 0.25s ease, background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

.hero .btn-get-started {
  color: #fff;
  background: var(--ms-lime);
  box-shadow: 0 14px 34px rgba(126, 63, 37, 0.16);
}

.hero .btn-get-started:hover {
  color: #fff;
  background: var(--ms-lime-bright);
  transform: translateY(-3px);
}

.hero .btn-quiet {
  border: 1px solid rgba(37, 38, 41, 0.2);
  color: var(--ms-ink);
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

.hero .btn-quiet:hover {
  border-color: var(--ms-lime);
  color: var(--ms-lime-bright);
  transform: translateY(-3px);
}

.hero-console {
  max-width: 360px;
  margin-left: auto;
  border: 1px solid rgba(37, 38, 41, 0.13);
  border-radius: 10px;
  color: var(--ms-muted);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 24px 60px rgba(37, 38, 41, 0.12);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.hero-console-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 15px;
  border-bottom: 1px solid var(--ms-line);
  font-family: var(--ms-mono);
}

.hero-console-head > span {
  display: flex;
  gap: 6px;
}

.hero-console-head i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(37, 38, 41, 0.2);
}

.hero-console-head i:first-child {
  background: var(--ms-lime);
}

.hero-console-head small {
  color: var(--ms-muted);
  font-size: 9px;
  letter-spacing: 0.06em;
}

.hero-console dl {
  margin: 0;
  padding: 7px 18px 11px;
}

.hero-console dl > div {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--ms-line);
}

.hero-console dl > div:last-child {
  border-bottom: 0;
}

.hero-console dt,
.hero-console dd {
  margin: 0;
  font-family: var(--ms-mono);
  font-size: 10px;
  line-height: 1.5;
}

.hero-console dt {
  color: var(--ms-lime);
  font-weight: 500;
  text-transform: uppercase;
}

.hero-console dd {
  color: #56595e;
}

.hero-scroll {
  position: absolute;
  z-index: 5;
  bottom: 34px;
  left: max(24px, calc((100vw - 1320px) / 2 + 16px));
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: var(--ms-muted);
  font-family: var(--ms-mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-scroll:hover {
  color: var(--ms-lime);
}

/* Capability slider */
.capabilities {
  background: linear-gradient(180deg, #f0eeea 0%, #e7e4df 100%);
}

.capability-shell {
  overflow: hidden;
  border: 1px solid var(--ms-line);
  border-top: 3px solid rgba(184, 95, 59, 0.68);
  border-radius: 12px;
  box-shadow: var(--ms-shadow);
}

.why-us .capability-shell {
  box-shadow: var(--ms-shadow);
}

.why-us .img-bg {
  min-height: 610px;
}

.why-us .img-bg::after {
  position: absolute;
  z-index: 2;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, transparent 42%, rgba(37, 38, 41, 0.72));
}

.why-us .img-bg img {
  filter: saturate(0.72) contrast(1.05);
}

.image-caption {
  position: absolute;
  z-index: 3;
  right: 30px;
  bottom: 30px;
  left: 30px;
  color: #fff;
}

.image-caption span {
  display: block;
  margin-bottom: 8px;
  color: var(--ms-lime);
  font-family: var(--ms-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
}

.image-caption strong {
  display: block;
  max-width: 340px;
  font-size: clamp(1.55rem, 2.8vw, 2.3rem);
  line-height: 1.1;
}

.why-us .slides {
  display: flex;
  min-height: 610px;
  align-items: stretch;
  color: var(--ms-muted);
  background:
    radial-gradient(circle at 82% 18%, rgba(184, 95, 59, 0.13), transparent 32%),
    linear-gradient(145deg, #fff 0%, #f2eeea 100%);
}

.why-us .swiper {
  width: 100%;
  margin: 0;
  overflow: hidden;
}

.why-us .swiper-wrapper,
.why-us .swiper-slide,
.why-us .item {
  height: 100%;
}

.why-us .swiper-slide .item {
  display: flex;
  min-height: 610px;
  padding: clamp(46px, 6vw, 88px);
  flex-direction: column;
  justify-content: center;
}

.capability-number {
  display: inline-block;
  margin-bottom: 34px;
  color: var(--ms-lime);
  font-family: var(--ms-mono);
  font-size: 12px;
  letter-spacing: 0.12em;
}

.why-us .swiper-slide .item h3 {
  max-width: 620px;
  margin: 0;
  color: var(--ms-ink);
  font-size: clamp(2.15rem, 3.35vw, 3.75rem);
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 0.98;
}

.capability-rule {
  width: 100%;
  height: 1px;
  margin: 40px 0 28px;
  background: linear-gradient(90deg, var(--ms-lime) 0 18%, var(--ms-line) 18%);
}

.capability-copy,
.capability-copy p,
.why-us .item > p {
  max-width: 580px;
  margin: 0;
  color: var(--ms-muted);
  font-size: 16px;
  line-height: 1.85;
}

.why-us .swiper-pagination {
  right: 104px;
  bottom: 36px;
  left: auto;
  width: auto;
  margin: 0;
  color: var(--ms-muted);
  font-family: var(--ms-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
}

.why-us .swiper-button-prev,
.why-us .swiper-button-next {
  top: auto;
  bottom: 26px;
  width: 42px;
  height: 42px;
  margin: 0;
  border: 1px solid var(--ms-line);
  border-radius: 7px;
  color: var(--ms-ink);
  background: #fff;
  box-shadow: none;
}

.why-us .swiper-button-prev {
  right: 158px;
  left: auto;
}

.why-us .swiper-button-next {
  right: 38px;
}

.why-us .swiper-button-prev:hover,
.why-us .swiper-button-next:hover {
  border-color: var(--ms-lime);
  color: #fff;
  background: var(--ms-lime);
}

.why-us .swiper-button-prev::after,
.why-us .swiper-button-next::after {
  color: inherit;
  font-size: 13px;
}

/* Call to action */
.call-to-action {
  --background-color: var(--ms-paper-deep);
  --default-color: var(--ms-muted);
  --heading-color: var(--ms-ink);
  --contrast-color: #fff;
  padding: 0;
  background: #e4ded8;
}

.call-to-action::before {
  z-index: 2;
  background:
    linear-gradient(90deg, rgba(239, 235, 230, 0.97), rgba(239, 235, 230, 0.8)),
    linear-gradient(180deg, rgba(184, 95, 59, 0.035), rgba(225, 219, 212, 0.9));
}

.call-to-action::after {
  position: absolute;
  z-index: 2;
  inset: 0;
  content: "";
  background-image: radial-gradient(rgba(37, 38, 41, 0.1) 0.7px, transparent 0.7px);
  background-size: 18px 18px;
  mask-image: linear-gradient(90deg, black, transparent 70%);
}

.call-to-action img {
  filter: grayscale(0.45) contrast(0.92) brightness(1.08);
}

.call-to-action .container {
  position: relative;
  z-index: 3;
  padding-top: 100px;
  padding-bottom: 100px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.cta-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: clamp(50px, 8vw, 130px);
  align-items: end;
}

.call-to-action .section-kicker {
  color: var(--ms-lime);
}

.call-to-action h2 {
  max-width: 800px;
  margin: 0;
  color: var(--ms-ink);
  font-size: clamp(2.5rem, 4.25vw, 4.35rem);
  font-weight: 700;
  letter-spacing: -0.07em;
  line-height: 1;
}

.call-to-action .cta-copy {
  padding-left: 28px;
  border-left: 1px solid var(--ms-line);
}

.call-to-action p {
  margin: 0 0 30px;
  color: #5d6065;
  font-size: 17px;
  line-height: 1.8;
}

.call-to-action .cta-btn {
  margin: 0;
  border: 0;
  color: #fff;
  background: var(--ms-lime);
  box-shadow: 0 14px 34px rgba(126, 63, 37, 0.14);
}

.call-to-action .cta-btn:hover {
  color: #fff;
  background: var(--ms-lime-bright);
  transform: translateY(-3px);
}

/* Recent writing */
.recent-posts {
  background: linear-gradient(135deg, #f3eee9 0%, #ebe8e3 62%, #eee4dd 100%);
}

.recent-posts .row {
  --bs-gutter-x: 1.4rem;
  --bs-gutter-y: 1.4rem;
}

.recent-posts .row > div {
  display: flex;
}

.recent-posts .post-box {
  position: relative;
  display: flex;
  width: 100%;
  padding: 12px 12px 24px;
  overflow: hidden;
  flex-direction: column;
  border: 1px solid var(--ms-line);
  border-radius: 10px;
  background: #fff;
  box-shadow: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.recent-posts .post-box:hover {
  border-color: rgba(7, 17, 15, 0.28);
  box-shadow: 0 24px 54px rgba(7, 17, 15, 0.1);
  transform: translateY(-7px);
}

.recent-posts .post-box .post-img {
  margin: 0 0 18px;
  overflow: hidden;
  border-radius: 7px;
  background: var(--ms-paper-deep);
}

.recent-posts .post-box .post-img img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  filter: saturate(0.8);
}

.recent-posts .post-box:hover .post-img img {
  filter: saturate(1);
  transform: scale(1.035);
}

.recent-posts .post-box .meta {
  min-height: 20px;
  margin: 0 8px 12px;
  color: var(--ms-muted);
  font-family: var(--ms-mono);
  font-size: 9px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.recent-posts .post-box .meta .post-date,
.recent-posts .post-box .meta .post-author {
  color: var(--ms-muted);
  font-weight: 500;
}

.post-index {
  position: absolute;
  top: 24px;
  right: 24px;
  z-index: 2;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 6px;
  color: #fff;
  background: var(--ms-lime);
  font-family: var(--ms-mono);
  font-size: 9px;
  font-weight: 600;
}

.recent-posts .post-box .post-title {
  margin: 0 8px 12px;
  color: var(--ms-ink);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.25;
}

.recent-posts .post-box p {
  margin: 0 8px;
  color: var(--ms-muted);
  font-size: 14px;
  line-height: 1.7;
}

.recent-posts .post-box .readmore {
  gap: 10px;
  margin: auto 8px 0;
  padding-top: 22px;
  color: var(--ms-ink);
  font-family: var(--ms-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Testimonials */
.testimonials {
  color: var(--ms-muted);
  background:
    radial-gradient(circle at 15% 20%, rgba(184, 95, 59, 0.07), transparent 28%),
    #e3e0db;
}

.testimonials .section-heading-row {
  border-top-color: var(--ms-line);
}

.testimonials .section-kicker {
  color: var(--ms-lime);
}

.testimonials .section-heading-row h2 {
  color: var(--ms-ink);
}

.testimonials .section-heading-row p {
  color: var(--ms-muted);
}

.testimonials .testimonial-item {
  position: relative;
  min-height: 390px;
  margin: 12px 10px 46px;
  padding: 30px;
  overflow: hidden;
  border: 1px solid var(--ms-line);
  border-radius: 10px;
  color: var(--ms-muted);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: none;
  text-align: left;
}

.testimonials .testimonial-item::before {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 2px;
  content: "";
  background: linear-gradient(90deg, var(--ms-lime) 0 24%, var(--ms-line) 24%);
}

.testimonial-quote {
  display: block;
  margin-bottom: 20px;
  color: var(--ms-lime);
  font-size: 30px;
  line-height: 1;
}

.testimonials .testimonial-item .stars {
  position: absolute;
  top: 34px;
  right: 30px;
}

.testimonials .testimonial-item .stars i {
  color: var(--ms-lime);
  font-size: 10px;
}

.testimonials .testimonial-item > p {
  margin: 0 0 28px;
  color: #595c61;
  font-size: 16px;
  font-style: normal;
  line-height: 1.8;
}

.testimonials .testimonial-item .profile {
  display: grid;
  grid-template-columns: 54px 1fr;
  column-gap: 14px;
  align-items: center;
}

.testimonials .testimonial-item .testimonial-img {
  grid-row: 1 / span 4;
  width: 54px;
  height: 54px;
  margin: 0;
  border: 1px solid var(--ms-line);
  object-fit: cover;
}

.testimonials .testimonial-item h3 {
  margin: 0;
  color: var(--ms-ink);
  font-family: var(--default-font);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.testimonials .testimonial-item h4 {
  margin: 2px 0 0;
  color: var(--ms-muted);
  font-family: var(--ms-mono);
  font-size: 9px;
  letter-spacing: 0.04em;
}

.testimonials .testimonial-item .profile hr {
  display: none;
}

.testimonials .testimonial-read-more {
  margin-top: 8px;
  color: var(--ms-lime);
  font-family: var(--ms-mono);
  font-size: 9px;
  letter-spacing: 0.07em;
}

.testimonials .swiper-slide,
.testimonials .swiper-slide-next {
  opacity: 1;
  transform: none;
}

.testimonials .swiper-pagination .swiper-pagination-bullet {
  width: 22px;
  height: 3px;
  border-radius: 0;
  background: rgba(37, 38, 41, 0.22);
}

.testimonials .swiper-pagination .swiper-pagination-bullet-active {
  background: var(--ms-lime);
}

/* Interior page mastheads */
.page-title {
  --background-color: #e5e1dc;
  --default-color: var(--ms-muted);
  --heading-color: var(--ms-ink);
  display: flex;
  min-height: 340px;
  padding: 132px 0 52px;
  align-items: flex-end;
  background-position: center 34%;
  isolation: isolate;
}

.page-title::before {
  z-index: 0;
  background:
    linear-gradient(90deg, rgba(239, 236, 232, 0.95) 0%, rgba(233, 229, 224, 0.84) 58%, rgba(220, 216, 211, 0.67)),
    linear-gradient(180deg, rgba(184, 95, 59, 0.025), rgba(224, 219, 213, 0.88));
}

.page-title::after {
  z-index: 1;
  opacity: 0.5;
  background-image:
    linear-gradient(rgba(37, 38, 41, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 38, 41, 0.055) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: linear-gradient(90deg, black, transparent 75%);
}

.page-title .container {
  z-index: 2;
  width: 100%;
  max-width: 1320px;
  padding: 0 16px 0 26px;
  border: 0;
  border-left: 3px solid rgba(184, 95, 59, 0.72);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  text-align: left;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.page-title h1 {
  max-width: 980px;
  margin: 0 0 18px;
  color: var(--ms-ink);
  font-size: clamp(2.65rem, 4vw, 4rem);
  font-weight: 700;
  letter-spacing: -0.075em;
  line-height: 1;
}

.page-title .breadcrumbs ol {
  justify-content: flex-start;
  gap: 10px;
  color: var(--ms-muted);
  font-family: var(--ms-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.page-title .breadcrumbs a {
  color: var(--ms-lime);
}

.page-title .breadcrumbs ol li + li::before {
  margin-right: 10px;
  color: rgba(37, 38, 41, 0.28);
  content: "→";
}

.section-title {
  padding-bottom: 60px;
  text-align: left;
}

.section-title h2 {
  display: inline-block;
  margin-bottom: 18px;
  padding: 0;
  font-size: clamp(2.25rem, 3.8vw, 3.85rem);
  font-weight: 700;
  letter-spacing: -0.06em;
  line-height: 1;
}

.section-title h2::after {
  top: -12px;
  right: -34px;
  bottom: auto;
  left: auto;
  width: 22px;
  height: 3px;
  border-radius: 999px;
  background: var(--ms-lime);
}

.section-title p {
  max-width: 660px;
  margin: 0;
  color: var(--ms-muted);
}

/* Shared cards and content */
.services .service-item,
.service-cards .card-item,
.team .team-member,
.blog-posts article,
.blog-details .article,
.blog-author .author-container,
.widget-item,
.contact .php-email-form,
.contact .info-item,
.service-details .service-box,
.portfolio-details .portfolio-info,
#resume .card,
.account-form-card {
  border: 1px solid var(--ms-line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: none;
}

.services .service-item,
.service-cards .card-item,
.team .team-member,
.blog-posts article {
  transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.services .service-item:hover,
.service-cards .card-item:hover,
.team .team-member:hover,
.blog-posts article:hover {
  border-color: rgba(7, 17, 15, 0.3);
  box-shadow: 0 24px 56px rgba(7, 17, 15, 0.09);
  transform: translateY(-6px);
}

.services .service-item {
  position: relative;
  margin-bottom: 24px;
  padding: 28px;
  overflow: hidden;
}

.services .service-item::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 3px;
  content: "";
  background: var(--ms-lime);
}

.services .service-item .icon {
  width: 54px;
  min-width: 54px;
  height: 54px;
  margin-right: 20px;
  border-radius: 8px;
  color: #fff;
  background: var(--ms-lime);
}

.services .service-item .icon i {
  color: #fff;
  font-size: 24px;
}

.services .service-item .title {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
}

.services .service-item .description {
  color: var(--ms-muted);
  font-size: 14px;
  line-height: 1.7;
}

.services .service-item .readmore {
  color: var(--ms-ink);
  font-family: var(--ms-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.service-details .service-box {
  padding: 24px;
}

.service-details .services-list a {
  margin-top: 8px;
  border: 1px solid transparent;
  border-radius: 7px;
  color: var(--ms-muted);
  background: rgba(37, 38, 41, 0.035);
}

.service-details .services-list a.active,
.service-details .services-list a:hover {
  border-color: var(--ms-lime);
  color: var(--ms-lime-bright);
  background: rgba(184, 95, 59, 0.1);
}

.service-details .services-img {
  border-radius: 10px;
  filter: saturate(0.82);
}

.service-details h3 {
  font-size: clamp(2rem, 3vw, 3.25rem);
  font-weight: 700;
  letter-spacing: -0.055em;
}

.service-details .help-box {
  border-radius: 10px;
  color: var(--ms-ink);
  background: var(--ms-paper-deep);
}

.service-details .help-box h4,
.service-details .help-box a {
  color: var(--ms-ink);
}

/* Blog */
.blog-page > .main > .container > .row {
  --bs-gutter-x: 3rem;
}

.blog-posts article {
  height: 100%;
  padding: 12px 12px 26px;
  overflow: hidden;
}

.blog-posts .post-img {
  margin: 0 0 22px;
  border-radius: 7px;
}

.blog-posts .post-img img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  filter: saturate(0.8);
}

.blog-posts article:hover .post-img img {
  filter: saturate(1);
}

.blog-posts .post-category,
.blog-posts .title,
.blog-posts article > .d-flex,
.blog-posts article > p:last-child {
  margin-right: 12px;
  margin-left: 12px;
}

.blog-posts .post-category a {
  padding: 6px 10px;
  border-radius: 5px;
  color: #8a452c;
  background: rgba(184, 95, 59, 0.12);
  font-family: var(--ms-mono);
  font-size: 8px;
  letter-spacing: 0.08em;
}

.blog-posts .title {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.25;
}

.blog-posts .post-author-img {
  width: 46px;
  height: 46px;
  border: 1px solid var(--ms-line);
}

.blog-posts .post-author,
.blog-posts .post-date {
  font-family: var(--ms-mono);
  font-size: 9px;
}

.sidebar .widgets-container {
  position: sticky;
  top: 100px;
}

.widget-item {
  margin-bottom: 18px;
  padding: 24px;
}

.widget-title {
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--ms-line);
  font-family: var(--default-font);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.035em;
}

.widget-title::before,
.widget-title::after {
  display: none;
}

.search-widget form {
  padding: 4px;
  border: 1px solid var(--ms-line);
  border-radius: 7px;
  background: #fff;
}

.search-widget form button {
  width: 42px;
  border-radius: 5px;
  color: #fff;
  background: var(--ms-lime);
}

.categories-widget ul a {
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 6px;
  color: var(--ms-muted);
  background: rgba(37, 38, 41, 0.025);
}

.categories-widget ul a.active,
.categories-widget ul a:hover {
  border-color: rgba(184, 95, 59, 0.2);
  color: var(--ms-lime-bright);
  background: rgba(184, 95, 59, 0.1);
}

.recent-posts-widget .post-item {
  padding: 10px;
  border-radius: 7px;
  background: rgba(37, 38, 41, 0.025);
}

.recent-posts-widget .post-item img {
  border-radius: 5px;
  object-fit: cover;
}

.blog-pagination {
  padding-top: 20px;
}

.blog-pagination li a,
.blog-pagination li span {
  min-width: 42px;
  height: 42px;
  border: 1px solid var(--ms-line);
  border-radius: 6px;
  color: var(--ms-ink);
  background: #fff;
  font-family: var(--ms-mono);
  font-size: 10px;
}

.blog-pagination li a.active,
.blog-pagination li a:hover {
  border-color: var(--ms-lime);
  color: #fff;
  background: var(--ms-lime);
}

.blog-details .article {
  padding: clamp(22px, 4vw, 42px);
}

.blog-details .post-img {
  margin: calc(clamp(22px, 4vw, 42px) * -1) calc(clamp(22px, 4vw, 42px) * -1) 34px;
  border-radius: 0;
}

.blog-details .title {
  font-size: clamp(2.2rem, 3.6vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.065em;
  line-height: 1.02;
}

.blog-details .content {
  color: #4f5156;
  font-size: 17px;
  line-height: 1.9;
}

.blog-details .content h2,
.blog-details .content h3 {
  margin-top: 1.5em;
  font-weight: 700;
}

.blog-details .content blockquote {
  padding: 30px 34px;
  border: 0;
  border-radius: 8px;
  background: rgba(184, 95, 59, 0.09);
}

.blog-details .content blockquote::after {
  left: 0;
  width: 4px;
  background: var(--ms-lime);
}

.blog-author .author-container {
  padding: 28px;
}

/* Portfolio, about and team */
.portfolio .portfolio-filters {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 42px;
}

.portfolio .portfolio-filters li {
  margin: 0;
  padding: 10px 14px;
  border: 1px solid var(--ms-line);
  border-radius: 6px;
  color: var(--ms-muted);
  background: rgba(255, 255, 255, 0.5);
  font-family: var(--ms-mono);
  font-size: 9px;
  letter-spacing: 0.06em;
}

.portfolio .portfolio-filters li:hover,
.portfolio .portfolio-filters li.filter-active {
  border-color: var(--ms-lime);
  color: #fff;
  background: var(--ms-lime);
}

.portfolio .portfolio-item {
  border-radius: 10px;
  box-shadow: none;
}

.portfolio .portfolio-item img {
  width: 100%;
}

.portfolio .portfolio-item .portfolio-info {
  right: 12px;
  bottom: 12px;
  left: 12px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 7px;
  background: rgba(248, 250, 245, 0.92);
  box-shadow: 0 18px 42px rgba(7, 17, 15, 0.14);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.portfolio-details .portfolio-info {
  padding: 28px;
}

.about .content h3 {
  font-size: clamp(2rem, 3vw, 3.2rem);
  font-weight: 700;
  line-height: 1.04;
}

.about .content ul i {
  color: var(--ms-lime);
}

.about img,
.team .team-member,
.service-cards .card-item {
  border-radius: 10px;
}

.team .team-member .member-info h4 {
  font-size: 18px;
  font-weight: 700;
}

/* Contact, account and forms */
.contact {
  background: transparent;
}

.contact::before {
  display: none;
}

.contact.section > .container {
  max-width: 1140px;
}

.contact .php-email-form,
.contact .info-item {
  padding: clamp(24px, 4vw, 44px);
}

.form-label {
  margin-bottom: 8px;
  color: var(--ms-ink);
  font-family: var(--ms-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.form-control,
.form-select,
.contact .php-email-form input[type="text"],
.contact .php-email-form input[type="email"],
.contact .php-email-form input[type="password"],
.contact .php-email-form textarea {
  min-height: 52px;
  padding: 13px 15px;
  border: 1px solid rgba(7, 17, 15, 0.18);
  border-radius: 7px;
  color: var(--ms-ink);
  background: #fff;
  box-shadow: none;
}

.contact .php-email-form textarea,
textarea.form-control {
  min-height: 150px;
}

.form-control:focus,
.form-select:focus,
.contact .php-email-form input:focus,
.contact .php-email-form textarea:focus {
  border-color: var(--ms-lime);
  box-shadow: 0 0 0 4px rgba(184, 95, 59, 0.12);
}

.btn,
.hero .btn-get-started,
.hero .btn-quiet,
.call-to-action .cta-btn,
.contact .php-email-form button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  line-height: 1.2;
  text-align: center;
}

.btn-primary,
.contact .php-email-form button[type="submit"],
.account-section.contact .php-email-form button[type="submit"] {
  min-height: 50px;
  padding: 0 22px;
  border: 1px solid var(--ms-lime);
  border-radius: 7px;
  color: #fff;
  background: var(--ms-lime);
  box-shadow: none;
  font-family: var(--ms-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.btn-primary:hover,
.contact .php-email-form button[type="submit"]:hover {
  border-color: var(--ms-lime-bright);
  color: #fff;
  background: var(--ms-lime-bright);
  transform: translateY(-2px);
}

.btn-outline-primary {
  border-color: rgba(184, 95, 59, 0.42);
  border-radius: 7px;
  color: var(--ms-lime-bright);
}

.btn-outline-primary:hover {
  border-color: var(--ms-lime);
  color: #fff;
  background: var(--ms-lime);
}

.account-section,
.account-sections {
  min-height: 42vh;
}

.account-section .php-email-form {
  max-width: 720px;
  margin-right: auto;
  margin-left: auto;
}

.account-section .php-email-form h2 {
  font-size: 1.5rem;
  letter-spacing: -0.035em;
}

.account-section .nav-tabs {
  gap: 8px;
  border: 0;
}

.account-section .nav-tabs .nav-link {
  border: 1px solid var(--ms-line);
  border-radius: 6px;
  color: var(--ms-muted);
  font-family: var(--ms-mono);
  font-size: 10px;
  text-transform: uppercase;
}

.account-section .nav-tabs .nav-link.active {
  border-color: var(--ms-lime);
  color: #fff;
  background: var(--ms-lime);
}

.alert {
  border-radius: 7px;
}

.alert-info {
  border-color: rgba(184, 95, 59, 0.2);
  color: #70412f;
  background: #f6e9e2;
}

/* Resume */
#resume.bg-light {
  background: transparent !important;
}

#resume .card {
  overflow: hidden;
}

#resume .card-body {
  padding: clamp(22px, 3vw, 34px);
}

#resume .rounded-circle {
  border: 5px solid #fff;
  outline: 1px solid var(--ms-line);
}

#resume h3,
#resume h4,
#resume h5,
#resume h6 {
  color: var(--ms-ink) !important;
}

#resume h4,
#resume h5 {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--ms-line);
}

#resume .text-secondary,
#resume .text-muted {
  color: var(--ms-muted) !important;
}

#resume li {
  margin-bottom: 8px;
}

/* Footer */
.footer {
  --background-color: var(--ms-ink);
  --default-color: rgba(242, 247, 240, 0.64);
  --heading-color: #f7faf5;
  --accent-color: var(--ms-lime);
  color: rgba(242, 247, 240, 0.64);
  background:
    radial-gradient(circle at 12% 16%, rgba(184, 95, 59, 0.1), transparent 25%),
    #292a2d;
}

.footer::before {
  opacity: 0.2;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(90deg, black, transparent 72%);
}

.footer .footer-top {
  padding: 100px 0 54px;
  border: 0;
}

.footer-kicker {
  display: block;
  margin-bottom: 14px;
  color: var(--ms-lime);
  font-family: var(--ms-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer .footer-about .logo {
  margin-bottom: 20px;
}

.footer .footer-about .logo span {
  color: #f7faf5;
  font-family: var(--default-font);
  font-size: clamp(2.25rem, 3.2vw, 3.5rem);
  font-weight: 700;
  letter-spacing: -0.07em;
}

.footer .footer-about p,
.footer .footer-contact p {
  max-width: 480px;
  color: rgba(242, 247, 240, 0.56);
  line-height: 1.8;
}

.footer .footer-contact a {
  color: var(--ms-lime);
  overflow-wrap: anywhere;
}

.footer .footer-contact a:hover {
  color: #fff;
}

.footer h4 {
  margin-bottom: 20px;
  color: #f7faf5;
  font-family: var(--ms-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer .footer-links ul a {
  color: rgba(242, 247, 240, 0.58);
  font-size: 13px;
}

.footer .footer-links ul a:hover {
  color: var(--ms-lime);
  transform: translateX(4px);
}

.footer .social-links a {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 7px;
  color: rgba(248, 250, 245, 0.76);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: none;
}

.footer .social-links a:hover {
  border-color: var(--ms-lime);
  color: #fff;
  background: var(--ms-lime);
  transform: translateY(-3px);
}

.footer .copyright {
  display: flex;
  padding-top: 26px;
  padding-bottom: 26px;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid rgba(255, 255, 255, 0.11);
  text-align: left !important;
}

.footer .copyright p,
.footer .credits {
  margin: 0;
  color: rgba(242, 247, 240, 0.4);
  font-family: var(--ms-mono);
  font-size: 9px;
  letter-spacing: 0.04em;
}

.footer .credits a {
  color: rgba(242, 247, 240, 0.6);
}

.scroll-top {
  right: 18px;
  bottom: 92px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 7px;
  color: #fff;
  background: var(--ms-lime);
  box-shadow: 0 14px 36px rgba(7, 17, 15, 0.2);
}

.scroll-top:hover {
  color: #fff;
  background: var(--ms-lime-bright);
}

#preloader {
  background: var(--ms-paper);
}

#preloader::before {
  width: 46px;
  height: 46px;
  border: 2px solid rgba(37, 38, 41, 0.12);
  border-top-color: var(--ms-lime);
}

/* Responsive */
@media (max-width: 1199px) {
  .header {
    z-index: 10020;
  }

  .header .container-xl,
  .scrolled .header .container-xl,
  .mobile-nav-active .header .container-xl {
    margin-right: 18px;
    margin-left: 18px;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .navmenu > ul {
    inset: 82px 18px 18px;
    padding: 18px;
    border: 1px solid var(--ms-line);
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 28px 80px rgba(37, 38, 41, 0.16);
  }

  .navmenu a,
  .navmenu a:focus {
    padding: 12px 14px;
    border-radius: 6px;
    color: var(--ms-muted);
    font-family: var(--ms-mono);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.04em;
  }

  .navmenu a:hover,
  .navmenu .active,
  .navmenu .active:focus {
    color: #fff;
    background: var(--ms-lime);
  }

  .navmenu .dropdown ul {
    margin: 8px 10px;
    border-color: var(--ms-line);
    border-radius: 7px;
    background: var(--ms-paper);
  }

  .mobile-nav-active .navmenu {
    position: fixed;
    z-index: 10021;
    inset: 0;
    background: rgba(235, 231, 226, 0.94);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
  }

  .mobile-nav-active .navmenu > ul {
    z-index: 10022;
    inset: 88px 18px auto;
    max-height: calc(100svh - 106px);
    border-top: 3px solid var(--accent-color);
  }

  .mobile-nav-active .mobile-nav-toggle {
    z-index: 10023;
    top: 22px;
    right: 22px;
    color: var(--ms-ink);
  }

  .mobile-nav-active #scroll-top,
  .mobile-nav-active .lfd-widget-root,
  .mobile-nav-active [id^="lfd-widget-"] {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  .hero-media {
    left: 52%;
  }

  .hero h1 {
    font-size: clamp(3.5rem, 7vw, 5.4rem);
  }

  .hero-console {
    margin: 10px 0 0;
  }

  .why-us .img-bg,
  .why-us .slides,
  .why-us .swiper-slide .item {
    min-height: 520px;
  }
}

@media (max-width: 991px) {
  section,
  .section {
    padding: 88px 0;
  }

  .section-heading-row,
  .cta-grid {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .section-heading-row {
    margin-bottom: 48px;
  }

  .hero {
    min-height: 740px;
    padding-top: 132px;
  }

  .hero-media {
    inset: 0;
    opacity: 0.34;
  }

  .hero::before {
    background: linear-gradient(90deg, rgba(242, 239, 235, 0.98), rgba(232, 228, 223, 0.78));
  }

  .hero-grid {
    opacity: 0.15;
  }

  .call-to-action .cta-copy {
    max-width: 640px;
    padding-left: 0;
    border-left: 0;
  }

  .page-title {
    min-height: 320px;
  }

  .blog-page > .main > .container > .row {
    --bs-gutter-x: 1.5rem;
  }

  .sidebar .widgets-container {
    position: static;
  }
}

@media (max-width: 767px) {
  .container,
  .container-xl {
    --bs-gutter-x: 1.5rem;
  }

  section,
  .section {
    padding: 72px 0;
  }

  .header {
    min-height: 76px;
    padding: 8px 0;
  }

  .header .container-xl {
    min-height: 58px;
    margin-right: 10px;
    margin-left: 10px;
    padding: 0 12px;
  }

  .header .logo::before {
    width: 30px;
    height: 30px;
  }

  .header .logo h1,
  .header .logo .sitename {
    font-size: 16px;
  }

  .mobile-nav-toggle span {
    display: none;
  }

  .mobile-nav-toggle {
    padding: 7px 9px;
  }

  .hero {
    min-height: 680px;
    padding: 112px 0 78px;
  }

  .hero h1 {
    font-size: clamp(3rem, 12.5vw, 4rem);
    line-height: 0.98;
  }

  .hero-copy {
    margin-top: 24px;
    padding-left: 16px;
    font-size: 15px;
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero .btn-get-started,
  .hero .btn-quiet {
    width: 100%;
  }

  .hero-console {
    display: none;
  }

  .hero-scroll {
    bottom: 24px;
  }

  .section-heading-row {
    padding-top: 24px;
  }

  .section-heading-row h2 {
    font-size: clamp(2.35rem, 10vw, 3.45rem);
  }

  .why-us .img-bg {
    min-height: 390px;
  }

  .why-us .slides,
  .why-us .swiper-slide .item {
    min-height: 500px;
  }

  .why-us .swiper-slide .item {
    padding: 40px 26px 100px;
  }

  .why-us .swiper-slide .item h3 {
    font-size: clamp(2.1rem, 9vw, 3rem);
  }

  .why-us .swiper-button-prev {
    right: auto;
    left: 26px;
  }

  .why-us .swiper-button-next {
    right: 26px;
  }

  .why-us .swiper-pagination {
    right: 50%;
    transform: translateX(50%);
  }

  .call-to-action .container {
    padding-top: 76px;
    padding-bottom: 76px;
  }

  .call-to-action h2 {
    font-size: clamp(2.45rem, 10.5vw, 3.55rem);
  }

  .call-to-action .cta-btn {
    width: 100%;
  }

  .page-title {
    min-height: 290px;
    padding: 112px 0 42px;
  }

  .page-title h1 {
    font-size: clamp(2.5rem, 11vw, 3.45rem);
  }

  .testimonials .testimonial-item {
    min-height: 370px;
    margin-right: 0;
    margin-left: 0;
  }

  .portfolio .portfolio-filters {
    flex-wrap: wrap;
  }

  .footer .footer-top {
    padding-top: 76px;
  }

  .footer .copyright {
    gap: 10px;
    align-items: flex-start;
    flex-direction: column;
  }
}

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

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

/* ========================================================================== */
/* Complete theme rework — graphite / warm stone / copper                     */
/* ========================================================================== */

:root {
  --background-color: #eceae5;
  --default-color: #555a60;
  --heading-color: #25282d;
  --accent-color: #b85f3b;
  --surface-color: #f8f6f2;
  --contrast-color: #ffffff;
  --nav-color: #d9d7d1;
  --nav-hover-color: #ffffff;
  --nav-mobile-background-color: #272a2f;
  --nav-dropdown-background-color: #272a2f;
  --nav-dropdown-color: #d9d7d1;
  --nav-dropdown-hover-color: #ffffff;
  --ms-ink: #25282d;
  --ms-ink-soft: #34383e;
  --ms-paper: #eceae5;
  --ms-paper-deep: #dbd8d2;
  --ms-panel: #f8f6f2;
  --ms-graphite: #25282d;
  --ms-graphite-soft: #30343a;
  --ms-line: rgba(37, 40, 45, 0.14);
  --ms-line-dark: rgba(255, 255, 255, 0.13);
  --ms-muted: #656a70;
  --ms-lime: #b85f3b;
  --ms-lime-bright: #9f4d30;
  --ms-mint: #d79a7c;
  --ms-shadow: 0 24px 65px rgba(28, 31, 35, 0.12);
}

body {
  color: var(--default-color);
  background: var(--ms-paper);
}

body::before {
  opacity: 0.42;
  background-image:
    linear-gradient(rgba(37, 40, 45, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 40, 45, 0.035) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(to bottom, black, transparent 62%);
}

section,
.section {
  padding: 104px 0;
}

.section-kicker {
  gap: 9px;
  margin-bottom: 18px;
  padding: 7px 10px;
  border: 1px solid rgba(184, 95, 59, 0.28);
  border-radius: 3px;
  color: var(--ms-lime);
  background: rgba(184, 95, 59, 0.06);
  font-size: 9px;
  letter-spacing: 0.13em;
}

.section-kicker::before {
  width: 18px;
}

.section-heading-row {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.58fr);
  gap: clamp(42px, 8vw, 120px);
  margin-bottom: 58px;
  padding: 0 0 28px;
  border-top: 0;
  border-bottom: 1px solid var(--ms-line);
}

.section-heading-row h2 {
  max-width: 720px;
  font-size: clamp(2.45rem, 3.7vw, 3.65rem);
  letter-spacing: -0.058em;
  line-height: 1.02;
}

.section-heading-row p {
  font-size: 16px;
  line-height: 1.72;
}

/* Reworked header */
.header {
  min-height: 88px;
  padding: 12px 0;
}

.header .container-xl,
.scrolled .header .container-xl {
  min-height: 64px;
  padding: 0 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  color: #fff;
  background: rgba(37, 40, 45, 0.97);
  box-shadow: 0 16px 46px rgba(20, 22, 25, 0.2);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.scrolled .header {
  padding-top: 8px;
}

.scrolled .header .container-xl {
  min-height: 60px;
  border-color: rgba(184, 95, 59, 0.36);
  background: rgba(32, 35, 39, 0.98);
  box-shadow: 0 16px 42px rgba(20, 22, 25, 0.26);
}

.header .logo,
.header .logo h1,
.header .logo .sitename {
  color: #f7f4ef;
}

.header .logo h1,
.header .logo .sitename {
  font-size: 17px;
  letter-spacing: -0.045em;
}

.header .logo h1 small,
.header .logo .sitename small {
  color: #c8c6c0;
  opacity: 1;
}

@media (min-width: 1200px) {
  .navmenu > ul {
    gap: 0;
  }

  .navmenu a,
  .navmenu a:focus {
    padding: 13px 11px;
    color: rgba(244, 242, 237, 0.68);
    font-size: 10px;
    letter-spacing: 0.055em;
  }

  .navmenu a:hover,
  .navmenu .active,
  .navmenu .active:focus {
    color: #fff;
  }

  .navmenu > ul > li > a::after {
    right: 11px;
    bottom: 7px;
    left: 11px;
    height: 2px;
    background: var(--ms-lime);
  }

  .navmenu .dropdown ul {
    top: calc(100% + 10px);
    min-width: 250px;
    padding: 8px;
    border-color: rgba(255, 255, 255, 0.12);
    border-radius: 4px;
    background: rgba(37, 40, 45, 0.99);
    box-shadow: 0 28px 70px rgba(14, 16, 18, 0.32);
  }

  .navmenu .dropdown ul a,
  .navmenu .dropdown ul a:focus {
    padding: 11px 12px;
    border-radius: 2px;
    color: rgba(244, 242, 237, 0.68);
  }

  .navmenu .dropdown ul a:hover,
  .navmenu .dropdown ul .active {
    color: #fff;
    background: rgba(184, 95, 59, 0.2);
  }

  .navmenu .nav-auth-item > a {
    margin-left: 7px;
    padding: 11px 15px;
    border: 1px solid var(--ms-lime);
    border-radius: 3px;
    color: #fff;
    background: var(--ms-lime);
  }

  .navmenu .nav-auth-item > a:hover {
    border-color: #d48766;
    background: #9f4d30;
  }
}

.mobile-nav-toggle {
  border-color: rgba(255, 255, 255, 0.18);
  border-radius: 3px;
  color: #f7f4ef;
  background: rgba(255, 255, 255, 0.06);
}

/* Reworked hero */
.hero {
  --background-color: #e7e4de;
  min-height: 760px;
  padding: 150px 0 96px;
  background: #e7e4de;
}

.hero::before {
  background:
    linear-gradient(90deg, rgba(236, 234, 229, 1) 0%, rgba(236, 234, 229, 1) 46%, rgba(236, 234, 229, 0.92) 55%, rgba(236, 234, 229, 0.08) 76%),
    linear-gradient(180deg, rgba(37, 40, 45, 0.02), rgba(37, 40, 45, 0.2));
}

.hero::after {
  height: 5px;
  background: linear-gradient(90deg, var(--ms-lime) 0 24%, var(--ms-graphite) 24% 100%);
}

.hero-media {
  inset: 0 0 0 46%;
  clip-path: polygon(9% 0, 100% 0, 100% 100%, 0 100%);
}

.hero-media::after {
  background:
    linear-gradient(90deg, rgba(37, 40, 45, 0.03), transparent 30%),
    linear-gradient(180deg, rgba(37, 40, 45, 0.04), rgba(37, 40, 45, 0.28));
}

.hero-media img,
.hero > img {
  object-position: center 44%;
  filter: grayscale(0.18) saturate(0.72) contrast(1.06);
}

.hero-grid {
  opacity: 0.2;
  background-size: 52px 52px;
  mask-image: linear-gradient(90deg, black, transparent 62%);
}

.hero .row {
  align-items: center !important;
}

.hero-kicker {
  margin-bottom: 24px;
  color: #575c62;
  font-size: 10px;
  letter-spacing: 0.12em;
}

.status-dot {
  width: 7px;
  height: 7px;
  border-radius: 1px;
  box-shadow: 0 0 0 5px rgba(184, 95, 59, 0.11);
}

.status-dot::after {
  border-radius: 2px;
}

.hero h1 {
  max-width: 720px;
  font-size: clamp(3.4rem, 5.15vw, 4.9rem);
  letter-spacing: -0.068em;
  line-height: 0.98;
  word-spacing: 0.02em;
}

.hero-copy {
  max-width: 620px;
  margin-top: 28px;
  padding: 20px 22px;
  border: 0;
  border-left: 4px solid var(--ms-lime);
  color: #555a60;
  background: rgba(248, 246, 242, 0.58);
  font-size: 16px;
  line-height: 1.72;
}

.hero-actions {
  gap: 10px;
  margin-top: 28px;
}

.hero .btn-get-started,
.hero .btn-quiet,
.call-to-action .cta-btn {
  min-height: 50px;
  padding: 0 20px;
  border-radius: 3px;
  font-size: 10px;
}

.hero .btn-get-started {
  box-shadow: 0 14px 30px rgba(123, 57, 34, 0.18);
}

.hero .btn-quiet {
  border-color: rgba(37, 40, 45, 0.22);
  background: rgba(248, 246, 242, 0.84);
}

.hero-console {
  max-width: 350px;
  overflow: hidden;
  border-color: rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  color: rgba(255, 255, 255, 0.68);
  background: rgba(37, 40, 45, 0.94);
  box-shadow: 0 30px 70px rgba(20, 22, 25, 0.3);
}

.hero-console-head {
  border-bottom-color: rgba(255, 255, 255, 0.12);
}

.hero-console-head i {
  background: rgba(255, 255, 255, 0.24);
}

.hero-console-head small,
.hero-console dd {
  color: rgba(255, 255, 255, 0.62);
}

.hero-console dl > div {
  border-bottom-color: rgba(255, 255, 255, 0.1);
}

.hero-scroll {
  bottom: 28px;
}

/* Dark capability chapter */
.capabilities {
  color: rgba(255, 255, 255, 0.64);
  background:
    radial-gradient(circle at 92% 6%, rgba(184, 95, 59, 0.16), transparent 28%),
    var(--ms-graphite);
}

.capabilities .section-heading-row {
  border-bottom-color: rgba(255, 255, 255, 0.13);
}

.capabilities .section-heading-row h2 {
  color: #f6f3ee;
}

.capabilities .section-heading-row p {
  color: rgba(255, 255, 255, 0.6);
}

.capabilities .section-kicker {
  border-color: rgba(215, 154, 124, 0.34);
  color: #d79a7c;
  background: rgba(184, 95, 59, 0.12);
}

.capability-shell {
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-top: 4px solid var(--ms-lime);
  border-radius: 4px;
  box-shadow: 0 34px 80px rgba(14, 16, 18, 0.3);
}

.why-us .capability-shell {
  border-radius: 4px;
  box-shadow: 0 34px 80px rgba(14, 16, 18, 0.3);
}

.why-us .img-bg,
.why-us .slides,
.why-us .swiper-slide .item {
  min-height: 560px;
}

.why-us .img-bg::after {
  background: linear-gradient(180deg, rgba(37, 40, 45, 0.04) 24%, rgba(23, 25, 28, 0.9));
}

.why-us .img-bg img {
  filter: grayscale(0.35) saturate(0.72) contrast(1.08);
}

.image-caption span {
  color: #d79a7c;
}

.why-us .slides {
  color: rgba(255, 255, 255, 0.64);
  background:
    linear-gradient(135deg, rgba(184, 95, 59, 0.12), transparent 36%),
    var(--ms-graphite-soft);
}

.why-us .swiper-slide .item {
  padding: clamp(42px, 5.5vw, 76px);
}

.capability-number {
  margin-bottom: 26px;
  color: #d79a7c;
}

.why-us .swiper-slide .item h3 {
  max-width: 560px;
  color: #f7f4ef;
  font-size: clamp(2.05rem, 3.1vw, 3.3rem);
  letter-spacing: -0.052em;
  line-height: 1.02;
}

.capability-rule {
  margin: 32px 0 24px;
  background: linear-gradient(90deg, var(--ms-lime) 0 20%, rgba(255, 255, 255, 0.13) 20%);
}

.capability-copy,
.capability-copy p,
.why-us .item > p {
  color: rgba(255, 255, 255, 0.62);
  line-height: 1.75;
}

.why-us .swiper-pagination {
  color: rgba(255, 255, 255, 0.55);
}

.why-us .swiper-button-prev,
.why-us .swiper-button-next {
  border-color: rgba(255, 255, 255, 0.16);
  border-radius: 3px;
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

/* Split copper / graphite CTA */
.call-to-action {
  --default-color: rgba(255, 255, 255, 0.72);
  --heading-color: #fff;
  background: var(--ms-graphite);
}

.call-to-action::before {
  background: linear-gradient(90deg, rgba(177, 87, 52, 0.96) 0 50%, rgba(37, 40, 45, 0.96) 50% 100%);
}

.call-to-action::after {
  opacity: 0.32;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.14) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.14) 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: linear-gradient(90deg, black, transparent 74%);
}

.call-to-action img {
  filter: grayscale(1) contrast(1.1) brightness(0.52);
}

.call-to-action .container {
  padding-top: 92px;
  padding-bottom: 92px;
}

.call-to-action .section-kicker {
  border-color: rgba(255, 255, 255, 0.28);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.call-to-action h2 {
  max-width: 680px;
  color: #fff;
  font-size: clamp(2.4rem, 3.7vw, 3.7rem);
  letter-spacing: -0.055em;
}

.call-to-action .cta-copy {
  padding-left: 34px;
  border-left-color: rgba(255, 255, 255, 0.2);
}

.call-to-action p {
  color: rgba(255, 255, 255, 0.68);
  font-size: 16px;
  line-height: 1.7;
}

.call-to-action .cta-btn {
  color: var(--ms-ink);
  background: #f5f2ed;
  box-shadow: none;
}

.call-to-action .cta-btn:hover {
  color: #fff;
  background: var(--ms-lime);
}

/* Reworked writing cards */
.recent-posts {
  background: #dedbd5;
}

.recent-posts .post-box {
  padding: 0 0 24px;
  border: 0;
  border-radius: 4px;
  background: var(--ms-panel);
  box-shadow: 0 18px 44px rgba(27, 29, 32, 0.08);
}

.recent-posts .post-box::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 3px;
  content: "";
  background: linear-gradient(90deg, var(--ms-lime) 0 28%, var(--ms-graphite) 28% 100%);
}

.recent-posts .post-box:hover {
  border-color: transparent;
  box-shadow: 0 28px 60px rgba(27, 29, 32, 0.14);
  transform: translateY(-6px);
}

.recent-posts .post-box .post-img {
  margin: 0 0 20px;
  border-radius: 0;
}

.recent-posts .post-box .post-img img {
  aspect-ratio: 16 / 11;
  filter: grayscale(0.18) saturate(0.72);
}

.recent-posts .post-box .meta,
.recent-posts .post-box .post-title,
.recent-posts .post-box p,
.recent-posts .post-box .readmore {
  margin-right: 20px;
  margin-left: 20px;
}

.post-index {
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 2px;
  background: rgba(37, 40, 45, 0.92);
}

.recent-posts .post-box .post-title {
  font-size: 19px;
  line-height: 1.3;
}

.recent-posts .post-box .readmore {
  color: var(--ms-lime-bright);
}

/* Graphite testimonial cards */
.testimonials {
  color: var(--ms-muted);
  background:
    radial-gradient(circle at 10% 12%, rgba(184, 95, 59, 0.12), transparent 24%),
    #cfcac3;
}

.testimonials .testimonial-item {
  min-height: 370px;
  margin: 8px 8px 44px;
  padding: 28px;
  border-color: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  color: rgba(255, 255, 255, 0.62);
  background: var(--ms-graphite-soft);
  box-shadow: 0 22px 52px rgba(24, 26, 29, 0.14);
}

.testimonials .testimonial-item::before {
  height: 4px;
  background: var(--ms-lime);
}

.testimonial-quote,
.testimonials .testimonial-item .stars i,
.testimonials .testimonial-read-more {
  color: #d79a7c;
}

.testimonials .testimonial-item > p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 15px;
  line-height: 1.75;
}

.testimonials .testimonial-item h3 {
  color: #fff;
}

.testimonials .testimonial-item h4 {
  color: rgba(255, 255, 255, 0.52);
}

.testimonials .testimonial-item .testimonial-img {
  border-color: rgba(255, 255, 255, 0.15);
}

/* Compact graphite page mastheads */
.page-title {
  --background-color: var(--ms-graphite);
  --default-color: rgba(255, 255, 255, 0.62);
  --heading-color: #fff;
  min-height: 280px;
  padding: 120px 0 42px;
  background-color: var(--ms-graphite);
  background-position: center 38%;
}

.page-title::before {
  background:
    linear-gradient(90deg, rgba(28, 31, 35, 0.96) 0%, rgba(32, 35, 39, 0.88) 52%, rgba(32, 35, 39, 0.56) 100%),
    linear-gradient(180deg, rgba(184, 95, 59, 0.08), rgba(20, 22, 25, 0.54));
}

.page-title::after {
  opacity: 0.24;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 52px 52px;
}

.page-title .container {
  padding-left: 24px;
  border-left: 4px solid var(--ms-lime);
}

.page-title h1 {
  max-width: 800px;
  margin-bottom: 14px;
  color: #fff;
  font-size: clamp(2.4rem, 3.6vw, 3.35rem);
  letter-spacing: -0.058em;
}

.page-title .breadcrumbs ol {
  color: rgba(255, 255, 255, 0.54);
  font-size: 9px;
}

.page-title .breadcrumbs a {
  color: #d79a7c;
}

.page-title .breadcrumbs ol li + li::before {
  color: rgba(255, 255, 255, 0.28);
}

.section-title {
  padding-bottom: 52px;
}

.section-title h2 {
  font-size: clamp(2.2rem, 3.3vw, 3.3rem);
}

/* Interior surfaces */
.services .service-item,
.service-cards .card-item,
.team .team-member,
.blog-posts article,
.blog-details .article,
.blog-author .author-container,
.widget-item,
.contact .php-email-form,
.contact .info-item,
.service-details .service-box,
.portfolio-details .portfolio-info,
#resume .card,
.account-form-card {
  border-color: rgba(37, 40, 45, 0.14);
  border-radius: 4px;
  background: var(--ms-panel);
  box-shadow: 0 16px 42px rgba(26, 29, 33, 0.07);
}

.services .service-item,
.service-cards .card-item,
.team .team-member,
.blog-posts article {
  border-top: 3px solid rgba(184, 95, 59, 0.72);
}

.services .service-item:hover,
.service-cards .card-item:hover,
.team .team-member:hover,
.blog-posts article:hover {
  border-color: var(--ms-lime);
  box-shadow: 0 24px 54px rgba(26, 29, 33, 0.12);
}

.services .service-item::before {
  display: none;
}

.services .service-item .icon {
  border-radius: 3px;
  background: var(--ms-graphite);
}

.service-details .services-list a,
.categories-widget ul a,
.recent-posts-widget .post-item {
  border-radius: 3px;
}

.service-details .services-list a.active,
.service-details .services-list a:hover,
.categories-widget ul a.active,
.categories-widget ul a:hover {
  color: #fff;
  background: var(--ms-lime);
}

.blog-posts article {
  padding: 0 0 24px;
}

.blog-posts .post-img {
  margin-bottom: 22px;
  border-radius: 0;
}

.blog-posts .post-category,
.blog-posts .title,
.blog-posts article > .d-flex,
.blog-posts article > p:last-child {
  margin-right: 22px;
  margin-left: 22px;
}

.blog-posts .post-category a,
.portfolio .portfolio-filters li {
  border-radius: 3px;
}

.widget-item {
  border-left: 3px solid rgba(184, 95, 59, 0.55);
}

.blog-details .article {
  border-top: 4px solid var(--ms-lime);
}

.blog-details .content blockquote {
  border-radius: 3px;
  background: #e4dfd8;
}

.portfolio .portfolio-filters li.filter-active,
.portfolio .portfolio-filters li:hover {
  background: var(--ms-graphite);
}

.portfolio .portfolio-item,
.portfolio .portfolio-item .portfolio-info,
.service-details .services-img,
.about img,
.team .team-member,
.service-cards .card-item {
  border-radius: 4px;
}

/* Forms and account */
.contact,
.account-section,
.account-sections {
  background:
    linear-gradient(135deg, rgba(184, 95, 59, 0.055), transparent 34%),
    var(--ms-paper);
}

.contact .php-email-form,
.contact .info-item {
  padding: clamp(28px, 4vw, 48px);
}

.form-control,
.form-select,
.contact .php-email-form input[type="text"],
.contact .php-email-form input[type="email"],
.contact .php-email-form input[type="password"],
.contact .php-email-form textarea {
  border-radius: 3px;
  background: #fbfaf7;
}

.btn,
.btn-primary,
.btn-outline-primary,
.contact .php-email-form button[type="submit"] {
  border-radius: 3px;
}

.btn-primary,
.contact .php-email-form button[type="submit"],
.account-section.contact .php-email-form button[type="submit"] {
  background: var(--ms-lime);
}

.account-section .php-email-form {
  max-width: 760px;
  padding: clamp(36px, 5vw, 58px) !important;
  border-top: 4px solid var(--ms-lime);
}

.account-section .php-email-form h2 {
  color: var(--ms-ink);
  font-size: 1.65rem;
}

.alert {
  border-radius: 3px;
}

.alert-info {
  border-left: 4px solid var(--ms-lime);
  color: #5f3a2c;
  background: #eadbd2;
}

#resume .card {
  border-top: 3px solid rgba(184, 95, 59, 0.72);
}

/* Footer */
.footer {
  background:
    linear-gradient(90deg, rgba(184, 95, 59, 0.09), transparent 34%),
    #202327;
}

.footer::after {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 5px;
  content: "";
  background: linear-gradient(90deg, var(--ms-lime) 0 28%, #34383e 28% 100%);
}

.footer .footer-top {
  padding-top: 86px;
}

.footer .footer-about .logo span {
  font-size: clamp(2.2rem, 3vw, 3.15rem);
}

.footer .social-links a {
  border-radius: 3px;
}

.scroll-top {
  border-radius: 3px;
  background: var(--ms-lime);
}

#preloader {
  background: var(--ms-paper);
}

/* Reworked responsive navigation and layouts */
@media (max-width: 1199px) {
  .header,
  .mobile-nav-active .header {
    z-index: 10020;
  }

  .header .container-xl,
  .scrolled .header .container-xl,
  .mobile-nav-active .header .container-xl {
    margin-right: 14px;
    margin-left: 14px;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .mobile-nav-active .navmenu {
    position: fixed;
    z-index: 10021;
    inset: 0;
    background: rgba(25, 28, 31, 0.94);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
  }

  .navmenu > ul,
  .mobile-nav-active .navmenu > ul {
    z-index: 10022;
    inset: 86px 14px auto;
    max-height: calc(100svh - 104px);
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-top: 4px solid var(--ms-lime);
    border-radius: 4px;
    background: var(--ms-graphite);
    box-shadow: 0 30px 80px rgba(8, 10, 12, 0.42);
  }

  .navmenu a,
  .navmenu a:focus {
    padding: 12px 13px;
    border-radius: 2px;
    color: rgba(255, 255, 255, 0.66);
  }

  .navmenu a:hover,
  .navmenu .active,
  .navmenu .active:focus {
    color: #fff;
    background: var(--ms-lime);
  }

  .navmenu .dropdown ul {
    border-color: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
    background: #1f2226;
  }

  .mobile-nav-active .mobile-nav-toggle {
    z-index: 10023;
    top: 20px;
    right: 20px;
    color: #fff;
  }

  .mobile-nav-active #scroll-top,
  .mobile-nav-active .lfd-widget-root,
  .mobile-nav-active [id^="lfd-widget-"] {
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  .hero-media {
    inset: 0 0 0 48%;
  }

  .hero h1 {
    font-size: clamp(3.15rem, 6.5vw, 4.55rem);
  }
}

@media (max-width: 991px) {
  section,
  .section {
    padding: 84px 0;
  }

  .hero {
    min-height: 720px;
    padding-top: 128px;
  }

  .hero-media {
    inset: 0;
    opacity: 0.26;
    clip-path: none;
  }

  .hero::before {
    background: linear-gradient(90deg, rgba(236, 234, 229, 0.98), rgba(226, 223, 216, 0.8));
  }

  .section-heading-row,
  .cta-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .call-to-action::before {
    background: linear-gradient(180deg, rgba(177, 87, 52, 0.97) 0 48%, rgba(37, 40, 45, 0.97) 48% 100%);
  }

  .call-to-action .cta-copy {
    padding: 28px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-left: 0;
  }

  .page-title {
    min-height: 260px;
  }
}

@media (max-width: 767px) {
  .container,
  .container-xl {
    --bs-gutter-x: 1.35rem;
  }

  section,
  .section {
    padding: 70px 0;
  }

  .header {
    min-height: 72px;
    padding: 7px 0;
  }

  .header .container-xl,
  .scrolled .header .container-xl,
  .mobile-nav-active .header .container-xl {
    min-height: 56px;
    margin-right: 8px;
    margin-left: 8px;
    padding: 0 12px;
  }

  .header .logo h1,
  .header .logo .sitename {
    font-size: 16px;
  }

  .mobile-nav-toggle {
    padding: 7px 9px;
  }

  .navmenu > ul,
  .mobile-nav-active .navmenu > ul {
    inset: 78px 10px auto;
    max-height: calc(100svh - 92px);
  }

  .hero {
    min-height: 690px;
    padding: 112px 0 72px;
  }

  .hero h1 {
    max-width: 520px;
    font-size: clamp(2.8rem, 12vw, 3.45rem);
    line-height: 1;
  }

  .hero-kicker {
    max-width: 320px;
    margin-bottom: 20px;
    font-size: 9px;
    line-height: 1.6;
  }

  .hero-copy {
    margin-top: 22px;
    padding: 16px 17px;
    font-size: 14px;
    line-height: 1.68;
  }

  .hero-actions {
    gap: 9px;
    margin-top: 22px;
  }

  .hero .btn-get-started,
  .hero .btn-quiet {
    width: 100%;
    min-height: 49px;
  }

  .section-heading-row {
    gap: 24px;
    margin-bottom: 42px;
    padding-bottom: 22px;
  }

  .section-heading-row h2 {
    font-size: clamp(2.15rem, 9.3vw, 2.85rem);
  }

  .why-us .img-bg {
    min-height: 320px;
  }

  .why-us .slides,
  .why-us .swiper-slide .item {
    min-height: 460px;
  }

  .why-us .swiper-slide .item {
    padding: 34px 24px 92px;
  }

  .why-us .swiper-slide .item h3 {
    font-size: clamp(1.9rem, 8.4vw, 2.55rem);
  }

  .call-to-action .container {
    padding-top: 70px;
    padding-bottom: 70px;
  }

  .call-to-action h2 {
    font-size: clamp(2.15rem, 9.2vw, 2.85rem);
  }

  .page-title {
    min-height: 235px;
    padding: 100px 0 34px;
  }

  .page-title .container {
    padding-left: 18px;
  }

  .page-title h1 {
    font-size: clamp(2.1rem, 9.8vw, 2.7rem);
  }

  .testimonials .testimonial-item {
    min-height: 350px;
    margin-right: 0;
    margin-left: 0;
  }

  .account-section .php-email-form {
    padding: 30px 20px !important;
  }

  .footer .footer-top {
    padding-top: 68px;
  }
}
