:root {
  --jm-canvas: #f7f3ea;
  --jm-paper: #fffdf8;
  --jm-ink: #273138;
  --jm-muted: #6c7478;
  --jm-line: #ddd7cc;
  --jm-accent: #c7b69b;
  --jm-shadow: 0 24px 70px rgba(39, 49, 56, 0.10);
  --jm-radius: 22px;
}

html {
  scroll-behavior: smooth;
}

body {
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

a {
  text-underline-offset: 0.2em;
}

.jm-main {
  margin-top: 0;
}

.jm-site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  margin: 0;
  background: rgba(255, 253, 248, 0.90);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(16px);
  transition: border-color .2s ease, box-shadow .2s ease;
}

.jm-site-header.is-scrolled {
  border-color: rgba(39, 49, 56, 0.10);
  box-shadow: 0 10px 35px rgba(39, 49, 56, 0.06);
}

.jm-header-inner {
  min-height: 82px;
  gap: 2rem;
}

.jm-brand {
  gap: 0.75rem;
  min-width: max-content;
}

.jm-site-title,
.jm-site-title a,
.jm-brand .wp-block-site-title,
.jm-brand .wp-block-site-title a {
  color: var(--jm-ink);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-decoration: none;
  text-transform: uppercase;
}

.jm-site-logo img {
  border-radius: 999px;
}

.jm-main-nav {
  flex: 1;
}

.jm-main-nav a {
  text-decoration: none;
}

.jm-main-nav a:hover {
  opacity: .62;
}

.wp-block-button__link {
  padding: .92rem 1.28rem;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.wp-block-button__link:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(39, 49, 56, .13);
}

.wp-block-button.is-style-outline .wp-block-button__link {
  border: 1px solid currentColor;
  background: transparent;
  color: var(--jm-ink);
}

.jm-hero {
  margin: 0;
  padding: clamp(4.5rem, 8vw, 8rem) 1.5rem clamp(5rem, 9vw, 9rem);
  background:
    radial-gradient(circle at 76% 18%, rgba(199, 182, 155, .28), transparent 26rem),
    linear-gradient(135deg, #fffdf8 0%, #f7f3ea 100%);
  overflow: hidden;
}

.jm-hero-grid {
  min-height: 610px;
  gap: clamp(2rem, 5vw, 6rem);
}

.jm-eyebrow {
  margin-bottom: 1rem;
  color: var(--jm-muted);
  font-size: .73rem;
  font-weight: 750;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.jm-hero-title {
  max-width: 760px;
  margin: 0;
  font-size: clamp(3rem, 6.3vw, 6.7rem);
  line-height: .96;
  letter-spacing: -.055em;
}

.jm-hero-text {
  max-width: 690px;
  margin-top: 1.7rem;
  color: var(--jm-muted);
  font-size: clamp(1.05rem, 1.6vw, 1.35rem);
}

.jm-hero-buttons {
  margin-top: 2rem;
}

.jm-hero-art {
  position: relative;
  min-height: 590px;
  isolation: isolate;
}

.jm-arch {
  position: absolute;
  right: 8%;
  bottom: 0;
  width: min(72%, 380px);
  height: 78%;
  padding: 28px;
  border-radius: 190px 190px 18px 18px;
  background: linear-gradient(135deg, #d9cdbb, #f7f2e8 58%, #c8bca9);
  box-shadow: var(--jm-shadow);
  transform: rotate(.8deg);
}

.jm-arch-inner {
  display: grid;
  height: 100%;
  place-items: center;
  border: 1px solid rgba(39, 49, 56, .14);
  border-radius: 160px 160px 10px 10px;
  background:
    radial-gradient(circle at 50% 35%, rgba(255,255,255,.95), rgba(255,255,255,.08) 42%),
    linear-gradient(160deg, rgba(255,255,255,.4), rgba(39,49,56,.08));
  overflow: hidden;
}

.jm-monogram {
  display: grid;
  width: 126px;
  height: 126px;
  place-items: center;
  border: 7px solid var(--jm-ink);
  border-radius: 50%;
  color: var(--jm-ink);
  font-size: 3rem;
  font-weight: 550;
  letter-spacing: -.1em;
  box-shadow: 0 18px 34px rgba(39,49,56,.12);
}

.jm-orbit {
  position: absolute;
  border: 1px solid rgba(39,49,56,.13);
  border-radius: 50%;
}

.jm-orbit--one {
  top: 4%;
  right: -10%;
  width: 460px;
  height: 460px;
}

.jm-orbit--two {
  top: 26%;
  left: -18%;
  width: 280px;
  height: 280px;
  background: rgba(255,255,255,.38);
}

.jm-dot-grid {
  position: absolute;
  top: 4%;
  right: 1%;
  width: 126px;
  height: 92px;
  opacity: .48;
  background-image: radial-gradient(var(--jm-ink) 1.2px, transparent 1.2px);
  background-size: 13px 13px;
}

.jm-pedestal {
  position: absolute;
  right: 0;
  bottom: -8px;
  background: #fffdf8;
  box-shadow: 0 18px 42px rgba(39,49,56,.08);
}

.jm-pedestal--one {
  width: 34%;
  height: 96px;
}

.jm-pedestal--two {
  right: 20%;
  width: 28%;
  height: 60px;
}

.jm-section {
  margin: 0;
  padding: clamp(5rem, 8vw, 8.5rem) 1.5rem;
}

.jm-services,
.jm-projects,
.jm-process {
  background: var(--jm-paper);
}

.jm-section-head {
  align-items: end;
  gap: 2rem;
  margin-bottom: 2.6rem;
}

.jm-section h2 {
  margin-top: 0;
  font-size: clamp(2.2rem, 4vw, 4.3rem);
}

.jm-inline-link a {
  text-decoration: none;
  font-weight: 650;
}

.jm-card-grid,
.jm-project-grid,
.jm-process-grid {
  gap: 1rem;
}

.jm-card {
  position: relative;
  height: 100%;
  min-height: 290px;
  padding: 1.7rem;
  border: 1px solid var(--jm-line);
  background: rgba(255,255,255,.48);
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}

.jm-card:hover {
  transform: translateY(-6px);
  border-color: rgba(39,49,56,.35);
  box-shadow: 0 20px 45px rgba(39,49,56,.07);
}

.jm-card-icon {
  margin: 0 0 2.8rem;
  font-size: 2rem;
}

.jm-card h3 {
  font-size: 1.3rem;
}

.jm-card p:not(.jm-card-icon):not(.jm-card-arrow) {
  color: var(--jm-muted);
}

.jm-card-arrow {
  position: absolute;
  left: 1.7rem;
  bottom: 1.2rem;
  font-size: 1.3rem;
}

.jm-about {
  background: var(--jm-canvas);
}

.jm-about-grid {
  gap: 0;
  min-height: 660px;
  background: var(--jm-paper);
  box-shadow: 0 24px 65px rgba(39,49,56,.08);
}

.jm-about-copy {
  padding: clamp(2.4rem, 5vw, 6rem);
}

.jm-sculpture {
  position: relative;
  display: grid;
  min-height: 100%;
  place-items: center;
  background:
    radial-gradient(circle at 26% 24%, rgba(255,255,255,.9), transparent 18rem),
    linear-gradient(135deg, #ddd3c5, #f8f3e9);
  overflow: hidden;
}

.jm-sculpture::before {
  position: absolute;
  right: -14%;
  bottom: -18%;
  width: 460px;
  height: 460px;
  border: 1px solid rgba(39,49,56,.12);
  border-radius: 50%;
  content: "";
}

.jm-vase {
  position: relative;
  width: 170px;
  height: 270px;
  border-radius: 78px 78px 48px 48px;
  background: linear-gradient(145deg, #f7f2e8, #c7baa7);
  box-shadow: 0 32px 50px rgba(39,49,56,.18);
  transform: rotate(-4deg);
}

.jm-vase span {
  position: absolute;
  top: 90px;
  left: 38px;
  width: 94px;
  height: 94px;
  border-radius: 50%;
  background: #d8cdbd;
  box-shadow: inset 10px 10px 18px rgba(39,49,56,.13);
}

.jm-branch {
  position: absolute;
  top: 18%;
  left: 50%;
  color: var(--jm-ink);
  font-size: 12rem;
  font-family: Georgia, serif;
  transform: rotate(-24deg);
  opacity: .72;
}

.jm-project-card {
  height: 100%;
  padding-bottom: 1rem;
  border: 1px solid var(--jm-line);
  background: #fff;
}

.jm-project-card h3,
.jm-project-card > p {
  margin-right: 1.1rem;
  margin-left: 1.1rem;
}

.jm-project-card > p {
  color: var(--jm-muted);
}

.jm-project-visual {
  position: relative;
  display: grid;
  height: 260px;
  place-items: center;
  overflow: hidden;
  color: white;
  font-size: clamp(1.3rem, 2.5vw, 2.4rem);
  font-weight: 750;
  letter-spacing: .18em;
}

.jm-project-visual::before,
.jm-project-visual::after {
  position: absolute;
  content: "";
}

.jm-project-visual--one {
  background: linear-gradient(140deg, #121719, #475159);
}

.jm-project-visual--one::before {
  width: 62%;
  height: 34%;
  border: 1px solid rgba(255,255,255,.35);
  transform: rotate(-7deg);
}

.jm-project-visual--two {
  background: linear-gradient(140deg, #c8b89e, #f3eee4);
  color: var(--jm-ink);
}

.jm-project-visual--two::before {
  width: 64%;
  height: 54%;
  border: 10px solid var(--jm-ink);
  border-bottom-width: 22px;
  border-radius: 8px;
  opacity: .9;
}

.jm-project-visual--three {
  background: radial-gradient(circle at 40% 35%, #fff, #dbd2c3 45%, #b6aa98);
  color: var(--jm-ink);
}

.jm-project-visual--three::before {
  width: 110px;
  height: 150px;
  border-radius: 22px 22px 10px 10px;
  background: rgba(255,255,255,.7);
  box-shadow: 80px 34px 0 rgba(255,255,255,.46);
}

.jm-project-visual span {
  position: relative;
  z-index: 1;
  text-shadow: 0 4px 20px rgba(39,49,56,.25);
}

.jm-process {
  border-top: 1px solid var(--jm-line);
}

.jm-step {
  position: relative;
  min-height: 245px;
  padding-top: 4.2rem;
  border-top: 1px solid var(--jm-line);
}

.jm-step-number {
  position: absolute;
  top: -1.25rem;
  left: 0;
  display: grid;
  width: 2.6rem;
  height: 2.6rem;
  place-items: center;
  margin: 0;
  border-radius: 50%;
  background: var(--jm-ink);
  color: var(--jm-paper);
  font-size: .75rem;
  font-weight: 700;
}

.jm-step p {
  color: var(--jm-muted);
}

.jm-testimonial {
  margin: 0;
  padding: 5rem 1.5rem;
  background: linear-gradient(90deg, #f7f3ea, #fffdf8);
}

.jm-quote {
  border: 0;
  margin: 0;
  padding: 0;
}

.jm-quote p {
  margin: 0;
  font-size: clamp(1.8rem, 3.4vw, 3.5rem);
  line-height: 1.18;
  letter-spacing: -.03em;
}

.jm-final-cta {
  position: relative;
  margin: 0;
  padding: 4rem 1.5rem;
  background: var(--jm-ink);
  color: var(--jm-paper);
  overflow: hidden;
}

.jm-final-cta::after {
  position: absolute;
  right: -70px;
  bottom: -125px;
  width: 360px;
  height: 360px;
  border: 45px solid rgba(255,255,255,.045);
  border-radius: 50%;
  content: "JM";
  display: grid;
  place-items: center;
  color: rgba(255,255,255,.05);
  font-size: 5rem;
  font-weight: 700;
}

.jm-final-cta .wp-block-button.is-style-outline .wp-block-button__link {
  border-color: rgba(255,255,255,.6);
  color: var(--jm-paper);
}

.jm-footer {
  margin: 0;
  padding: 4.5rem 1.5rem 1.5rem;
  background: var(--jm-canvas);
}

.jm-footer-grid {
  gap: 3rem;
  padding-bottom: 3rem;
}

.jm-footer h4 {
  font-size: .78rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.jm-footer-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.jm-footer-list li {
  margin: .45rem 0;
}

.jm-footer-list a {
  text-decoration: none;
}

.jm-footer-bottom {
  padding-top: 1.3rem;
  border-top: 1px solid var(--jm-line);
}

.jm-content-shell {
  padding: clamp(4rem, 8vw, 8rem) 1.5rem;
}

.jm-post-card {
  padding: 2rem 0;
  border-bottom: 1px solid var(--jm-line);
}

.jm-404 {
  min-height: 60vh;
}

@media (max-width: 980px) {
  .jm-header-cta {
    display: none;
  }

  .jm-hero-grid {
    min-height: auto;
  }

  .jm-hero-art {
    min-height: 480px;
  }

  .jm-card-grid,
  .jm-project-grid,
  .jm-process-grid {
    flex-wrap: wrap !important;
  }

  .jm-card-grid > .wp-block-column,
  .jm-process-grid > .wp-block-column {
    flex-basis: calc(50% - .5rem) !important;
  }

  .jm-project-grid > .wp-block-column {
    flex-basis: 100% !important;
  }
}

@media (max-width: 720px) {
  .jm-header-inner {
    min-height: 70px;
  }

  .jm-main-nav {
    flex: 0;
  }

  .jm-hero {
    padding-top: 3.5rem;
  }

  .jm-hero-grid {
    display: block;
  }

  .jm-hero-title {
    font-size: clamp(3.2rem, 16vw, 5rem);
  }

  .jm-hero-art {
    min-height: 420px;
    margin-top: 3rem;
  }

  .jm-arch {
    right: 12%;
    width: 72%;
  }

  .jm-card-grid > .wp-block-column,
  .jm-process-grid > .wp-block-column {
    flex-basis: 100% !important;
  }

  .jm-about-grid {
    display: block;
  }

  .jm-sculpture {
    min-height: 460px;
  }

  .jm-section-head {
    display: block;
  }

  .jm-inline-link {
    margin-top: 1rem;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}
